1、Nfs 掛載根文件系統 1.1 mini2440選擇在NOR下燒寫u-boot.bin到NAND flash
1.2 Mini2440選擇NAND flash啟動,進入u-boot命令行
1.3使用print打印開發板系統信息,設置u-boot命令,設置
printenv
setenv ipaddr 192.168.1.100 // 開發板IP
setenv serverip 192.168.1.101 //Windows IP
setenv gatewayip 192.168.1.1 // 網關
saveenv
1.4 把uImage放到tftpboot目錄下,自動加載
燒寫uImage到nand Flash
將uImage拷貝至/tftpboot/
在SecureCRT中依次輸入:
SMDK2440A>tftp 0x30008000 uImage
SMDK2440A>nand erase 0x60000 0x500000
SMDK2440A>nand write 0x30008000 0x60000 0x500000
1.5 並且開啟NFS文件共享,自動掛載根文件系統
1.5.1設置配置共享目錄
vim /etc/exports
添加:/home/nfsshare/root_qtopia *(rw,sync,no_root_squash)
1.5.2 設置生效並查看:
exportfs -ra
exportfs -v
1.5.3開啟nfs服務
Service nfs restart
1.5.4開發板參數設置:
啟動uboot命令行,修改引導參數:
Setenv bootargs console=ttySAC0 root=/dev/nfs nfsroot=192.168.1.101:/home/nfsshare/root_qtopia ip=192.168.1.100:192.168.1.101:192.168.1.1:255.255.255.0:SMDK2440A.arm9.net:eth0:off
1.6總的參數設置如下:
[u-boot@SMDK2440A]# print
bootcmd=nand read 0x30008000 60000 500000;bootm 0x30008000
bootdelay=1
baudrate=115200
ethaddr=08:08:11:18:12:27
embedclub=bmp d 70000
stdin=serial
stdout=serial
stderr=serial
lcdtype=w
ethact=dm9000
filesize=22E50C
fileaddr=30008000
gatewayip=192.168.1.1
netmask=255.255.255.0
ipaddr=192.168.1.100
serverip=192.168.1.101
bootargs=console=ttySAC0 root=/dev/nfs nfsroot=192.168.1.101:/home/nfsshare/root_qtopia ip=192.168.1.100:192.168.1.101:192.168.1.1:255.255.255.0:SMDK2440A.arm9.net:eth0:off