Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Linux burning, configuring and building Edison environment

2025-04-05 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/02 Report--

The editor found that many friends have had a lot of problems when writing, configuring and building the Edison environment on linux. Basically, many people use setup tool for ubuntu. I would like to remind you that you must not use it!

First of all, let's take a look at the content related to the configuration of Edison entry environment.

Document description: the reading object of this article is suitable for developers who have just started Edison and operate under the linux system, and all operations are completed under the linux system, including the basic configuration of Edison board, the configuration of Arduino IDE and Eclipse IDE development environment, the update of firmware, the implementation of native compilation and cross-compilation, etc., after the configuration of these basic development environments and the implementation of program download You can further learn the relevant advanced development and related experiments of Edison.

Configuration requirements:

[size=12.0000pt] 1.ubuntu 12.04 64-bit operating system (development machine)

[size=12.0000pt] A copy of the 2.Edison module and arduino expansion board kit

[size=12.0000pt] 3. Two MicroUSB cables

Recommendation: because at the beginning of the configuration of Edison when using the VM virtual machine installed on the ubuntu, the result of many problems, in the configuration environment when connecting the development board is very unstable, often serial port recognition, program download failure and other problems, so it is recommended that the computer only install ubuntu system or install a ubuntu dual system, it is recommended to use ubuntu 12.04 desktop 64-bit version of the linux system, which will reduce the development of a lot of unnecessary trouble.

1.jpg (1003.46 KB, downloads: 1)

Download the attachment and save it to the album

2015-8-12 11:43 upload

Let's get straight to the point:

Edison board-level basic configuration:

The configuration here includes: development board name, password, wifi connection. The name, password and ip obtained after a successful wifi connection need to be used when the eclipse development tool downloads the program to the development board, so give some instructions on the configuration here:

In the Windows system, we often use Putty to connect the linux host, and Putty can also be used in the Linux system, but today we use screen to connect the Ubuntu development machine to the linux host.

First check whether screen is installed in ubuntu, and you can enter the command:

Screen-v

If the actual Screen version XXX (version number) indicates that Screen has been installed

If you do not have a real version number, enter the following command to install:

Sudo apt-get install screen

After the installation is completed, we will connect the arduino expansion board with edison to the ubuntu development machine, and wait for a moment to operate, because it will take some time to start the internal Linux system after edison is powered on. When edison is displayed in the navigation bar on the left side of the Ubuntu development machine, it indicates that the connection is successful.

Next, let's check whether the serial port exists. When the serial port is connected normally, the serial device number is / dev/ttyUSB0. Enter the command:

Ls / dev/ttyUSB0-l

If the output: / dev/ttyUSB0, indicates that the serial port exists, you can continue to operate, if it does not exist, you can plug and unplug the serial port cable.

Next, we will connect to the liunx host of edison in the ubuntu development machine and enter the command:

Sudo screen / dev/ttyUSB0 115200

After entering the Ubuntu developer, a new window pops up, and double-click enter to enter the login prompt:

Default input: root can log in directly!

Configure the development board after logging in successfully. You can use either of these two methods:

1. Enter the command: configure_ediosn-setup (Note: there are two "-" in front of setup, similar below)

After enter, follow the prompts to complete the configuration of name,password,wifi step by step.

two。 Optional configuration commands:

Enter the command configure_edison-name, enter, configure the name, and display the following information. The name set here is jason:

Enter the command: configure_edison-password, enter, configure the password, preferably 8 characters, display the following information, where the password is set to 12345678:

Enter the command: configure_edison-wifi, enter, and connect to wifi. The following message appears. Just follow the prompts:

When the wifi connection is successful, the blue font IP (192.168.0.130) is displayed, which can be used when downloading the eclipse program. You can take a look here.

At this point, the basic configuration of the Edison board level in Ubuntu is complete.

Let me take a look at the misunderstandings and solutions about the configuration of the environment:

1. Preface

Write, configure, and build Edison environment on linux, do not use the default setup tool for ubuntups environment! (even though you are using ubuntu)

Because its default tool downloads the configuration file from a bad link: https://downloadmirror.intel.com/25871/eng/iot_data.xml, which has already become 404.

It is suggested that the following step proceed from the red part of my circle!

> > https://software.intel.com/en-us/get-started-edison-linux-step2

2. Burn the firmware to Edison

Officials say setup tool is a good way to burn firmware, while dfu-util is prepared for some manual needs. In linux, setup tool will have the problems described in the first section, so we chose dfu-util to burn.

This process uses dfu-util, an open source program that implements the USB DFU (USB Device Firmware Upgrade) protocol.

It is relatively simple to use dfu-util, and you can follow the instructions completely:

> > https://software.intel.com/en-us/getting-started-troubleshooting-edison-for-linux#manual-flash-process

Note: you need to pay attention to the connection mode of the USB data cable and the dialing position of the switch switch; burn and write probably use 5min, do not cut off or unplug the data cable!

╭─ btfz@btfz-pc ~ / Tool/Edison/Image ╰─ $sudo. / flashall.sh 254↵ Using U-Boot target: edison-blankcdcNow waiting for dfu device 8087:0a99Please plug and reboot the boardFlashing IFWIDownload [=] 100% 4194304 bytesDownload [=] 100% 4194304 bytesFlashing U-BootDownload [=] 100% 237568 bytesFlashing U-Boot EnvironmentDownload 100% 65536 bytesFlashing U-Boot Environment BackupDownload [=] 100% 65536 bytesRebooting to apply partition changesNow waiting for dfu device 8087:0a99Flashing boot partition (kernel) Download [=] 100% 6144000 bytesFlashing rootfs (it can take up to 5 minutes... Please be patient) Download [=] 1373159424 bytesRebootingU-boot & Kernel System Flash Success...Your board needs to reboot to complete the flashing procedure, please do not unplug it for 2 minutes.

3. Serial port connection and configuration password and wifi

According to the official introduction, use screen to connect:

> > https://software.intel.com/en-us/get-started-edison-linux-step3

Mainly to install screen:sudo apt-get install screen

Connect the board to the computer through the USB cable and view the USB device: ls / dev/ttyUSB*

Connect to the board via USB: sudo screen / dev/ttyUSB0 115200

After logging in to the board with screen, you can refer to: https://software.intel.com/en-us/get-started-edison-linux-step4 to configure the user name and password of the board, and configure wifi and other operations ~

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report