This article goes from Schindler to Forum:http://www.topeetboard.com
1,cd/home/topeet/linux-simple/console under the establishment . C File
2, compile the command, in this directory
#arm-none-linux-gnueabi-gcc-o HelloWorld helloworld.c-static
The red file is required to be modified according to the established. C file .
3.copy the compiled files to the System/bin directory
Go to cd/home/topeet/linux-simple/system/bin directory , execute copy
Cp/home/topeet/linux-simple/console/helloworld HelloWorld
The red file is required to be modified according to the established. C file .
3, return to the Linux-simple directory , perform compression packaging
Make_ext4fs-s-L 314572800-a root-l Linux system.img system
Red is required to be modified according to the upper level of the Bin directory, where the upper level of the Bin directory is the system, under Android may be root, modified according to the situation
4, the Development Board power, press any key to enter the uboot mode, connect the OTG line , enter the fastboot command in the HyperTerminal, the computer prompts to connect to the mobile phone, enter U Sb-fastboot-tool folder, execute cmd.exe, burn write kernel file fastboot.exe Flash system system.img, Execute fastboot reboot after completion, Development Board restart complete Burn Write
5 . After reboot, execute the LS command in HyperTerminal, go to bin directory , find the generated program file, such as Helloworld, enter command hello in HyperTerminal World to complete the operation.
ITOP-4412 Development Board---Linux system learning download steps