iTOP-4412开发板---Linux系统学习下载步骤

本文转自迅为论坛:http://www.topeetboard.com

 

 

1cd /home/topeet/Linux-simple/console  下建立.c文件

 

2、 编译命令,就在此目录下

#arm-none-linux-gnueabi-gcc -o helloworld helloworld.c -static

标红的文件是需要按建立的.c文件修改的

 

3、拷贝编译出来的文件到system/bin目录下面

进入cd /home/topeet/Linux-simple/system/bin目录,执行拷贝

cp /home/topeet/Linux-simple/console/helloworld helloworld

标红的文件是需要按建立的.c文件修改的

 

3、 返回到Linux-simple目录下,执行压缩打包

make_ext4fs -s -l 314572800 -a root -L linux system.img system

标红的是需要根据bin上一级目录进行修改的,在这里bin的上一级目录是system,在安卓下可能是root根据情况进行修改

 

4、 开发板上电,按任意键进入uboot模式,连接OTG线,在超级终端输入fastboot命令,电脑提示连接至手机,进入Usb-fastboot-tool文件夹,执行cmd.exe,烧写内核文件fastboot.exe flash system system.img,完成后执行fastboot reboot开发板重启完成烧写

 

5重启完成后,在超级终端执行ls命令,进入bin目录,找到生成的程序文件,例如hello world,在超级终端输入命令hello world执行,至此完成全部操作。

 

 

 

 

posted on 2015-10-27 18:59  topeet  阅读(395)  评论(0编辑  收藏  举报

导航