环境的搭建:
配制环境:
1.将u-boot-movi.bin写入sd卡中:
./write_sd /dev/sdb u-boot-movi.bin ==>其中/dev/sdb可以通过fdisk -l来查看.
sync
2.开发板连网:
minicom ==>通过串口与板子通信
minicom的配制==>minicom -s
ls /dev/tty*==>查看pc上的可用终端
minicom中的命令:
pri,setenv ipaddr 192.168.0.20==>板子的ip
setenv serverip 192.168.0.123==>pc的ip
3.板子的两种启动方式:sd卡与nand flash
从sd启动:将u-boot-nand.bin拷到nand flash中
将u-boot-nand.bin拷到/tftpboot下面:
nand erase clean ==>擦除nand flash中的所有数据
tftp 54000000 u-boot-nand.bin
nand write 54000000 0 30000
sav
4.拔出sd卡从nand flash中启动,将uImage映象系统考入内存50008000,将指针从u-boot-nand.bin到内存中50008000中执行,由minicom中的配制变量bootargs,使映象uImage去找文件系统,通过nfs远程共享.
cp uImag /tftpboot
在minicom中配制bootargs:
setenv bootargs console=ttySACO root = /dev/nfs nfsroot = 192.168.0.123:/mynfsroot ip=192.168.0.20:::
nfs共享配制:vim /etc/exports
/mynfsroot *(rw,sync)
下载映象:tftp 50008000 uImage
` bootm 50008000