Detailed development process of Embedded linux-general Linux technology-Linux programming and kernel information. The following is a detailed description. 1. first, build a cross-compilation environment: Cross-compilation refers to compiling on a PC and executing on the target board. My PC is a linux + arm-elf-gcc compiler. the wrench is ARM3000. the system on the board is uclinux. In this case, a small real-time embedded linux operating system is tailored. this is recommended.
2. then you write the program, but note that some library functions may not be available, because which compiler is slightly limited, not supported by all c library functions, but generally developed.
3. Can you connect your host and Development Board? Two connections are required: the serial port (used for the control panel) and the Ethernet port (used for downloading the program). We have all these peripherals on the board. If you want to make it impossible to replace the transfer program with other ports, but this is the serial port!
4. Compile the program on your host to generate the target code. We recommend that you use the makefile file to organize your association.
5. Download the generated code to the target board for debugging. I use the NFS (Network File) service of the host and download it to the target board.
6. Note: How is the target board controlled? It is controlled by serial port. You can use minicom to set the serial port you want to control. It should also be the one you connected to the board. in the command line, click minicom to enter the minicom section. To enable the minicom section, you must unzip the installation screen of the uclinux system. then use ifconfig eth0 .....
Configure the ip address. This ip address is the ip address of your board. Pay attention to a network segment with the host. then mount-t the nfs Host ip Address:/uclinux/a directory on the board, and place the host's uclinux directory on the board (this is actually unreasonable, it should be called mounting ). then you can find the compiled target code to execute.
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service