3.Bootloader(u-boot)操作
3.1 寫bootloader
寫入bootloader 需要我們的的LINUX下工具write_sd 命令,把支持SD卡啟動版本 u-boot-movi.bin寫入引導(dǎo)區(qū)
./write_sd /dev/sda u-boot-movi.bin
此時這張SD卡變成一個S3C6410啟動盤
3.2 寫入內(nèi)核
將開發(fā)板置SD卡啟動模式,并將SD卡啟動盤插入.開機長按回車進入u-boot控制臺
輸入如下命令
tftp 0x50008000 uImage #用tftp下載內(nèi)核到內(nèi)存0x50008000
movi write kernel 0x50008000 #從0x50008000讀取內(nèi)核并寫入sd卡的8092扇區(qū)
以下是命令系列
- hxy # tftp 0x50008000 uImage
- dm9000 i/o: 0x18000300, id: 0x90000a46
- MAC: 11:22:33:44:55:66
- operating at 100M full duplex mode
- TFTP from server 192.168.1.254; our IP address is 192.168.1.5
- Filename 'uImage'.
- Load address: 0x50008000
- Loading: #############################################################
- #############################################################
- #############################################################
- #############################################################
- #############################################################
- #############################################################
- ###########################
- done
- Bytes transferred = 2130724 (208324 hex)
- hxy # movi write kernel 0x50008000
- Writing kernel to sector 3902926 (8192 sectors).. completed
- hxy #
3.3 配置bootloader
# 修改內(nèi)核啟動配置
set bootcmd "movi read kernel 0x50008000 ; bootm 0x50008000"
#修改文件系統(tǒng)啟動,使用ext3的根文件系統(tǒng)
set bootargs "noinitrd root=179:2 rw console=ttySAC0"
#保存配置
save
#重啟開發(fā)板
reset
如果配置正常,應(yīng)該能從SD卡啟動內(nèi)核看到小企鵝,并能從SD卡啟動根文件系統(tǒng)上的qtopia
3.4 啟動根文件后, 使用nfs
在開發(fā)板mount NFS服務(wù)器必須用如下選項
mount -t nfs -o intr,nolock,rsize=1024,wsisze=1024 192.168.1.254:/home/hxy /mnt/nfs
必須要用 -o intr,nolock,rsize=1024,wsisze=1024 ,這是與桌面機的
mount -t nfs 192.168.1.254:/home/hxy /mnt/nfs #最大差別