uboot的TFTP指令:tftp 0x80000000 uImage
启动TFTP的内核:bootm
(以上方式的内核不能完全启动,原因尚未查明)
tar xvf cross-tools-am335x-4.5.3.tar.bz2
新kernel编译必须执行的两条指令(forlink的kernel)
cp arch/arm/configs/ok335xd_evm_linux_defconfig .config
make CROSS_COMPILE=arm-arago-linux-gnueabi- ARCH=arm uImage
uboot的shell设置环境变量
setenv serverip 192.168.0.210(192.168.1.210为tftp服务器的ip)
setenv ipaddr 192.168.0.215(192.168.1.215为开发板ip和服务器的ip应该在一个网段中)
saveenv
printenv
共享文件夹:mount -t nfs -o nolock 192.168.0.210:/nfs_rootfs /mnt/
下一次共享文件夹之前,如果提示。。。on /mnt/ failed: Device or resource busy,
执行umount /mnt 再进行mount可解决
查看内核加载的驱动
cat /proc/devices
编译测试程序生成可执行文件(.o文件)
arm-arago-linux-gnueabi-gcc -o ledtest myledapp.c
执行可执行文件(.o文件)
./ledtest