系統采用REDHAT LINUX 9.0,按照手冊建立好開發環境,順利用Jflash 燒寫vivi 到Nand Flash.但在使用minicom通過xmodem協議使用load flash kernel x命令下載內核卻失敗(內核版本為zImage-yaffs-v6-6448,是光盤上所帶的,大小為894K),提示信息如下所示:
Retry 0: NAK on sector
Retry 0: NAK on sector
Retry 0: Retry Count Exceeded
Transfer incomplete
READY: press any key to continue...
然后在windows 2000 下通過超級終端使用load flash kernel x命令下載內核也失敗,信息如下:
vivi> load flash kernel x
Ready for downloading using xmodem...
Waiting...
Downloaded file at 0x30000000, size = 914560 bytes
An image size is too large to write flash.
wanted = 0x000c0000, loaded = 0x000df480
然后用load flash 0x00030000 0x000df480 x下載內核成功
vivi> load flash 0x00030000 0x000df480 x
Ready for downloading using xmodem...
Waiting...
Downloaded file at 0x30000000, size = 914560 bytes
Found block size = 0x000e0000
Erasing... ... done
Writing... ... done
Written 914560 bytes
然后進入linux
1、通過ifconfig eth0 192.168.0.1 設置IP
2、通過 /etc/init.d/nfs restart 啟動nfs服務(/etc/exports已設置好)
3、在vivi提示符模式下輸入命令參數,使用nfs啟動系統時卻進不了系統,一直停在 Booting Linux......,具體信息如下
Welcome to minicom 2.00.0
OPTIONS: History Buffer, F-key Macros, Search History Buffer, I18n
Compiled on Jan 25 2003, 00:15:18.
Press CTRL-A Z for help on special keys
VIVI version 0.1.4 (eady@eady.mizi.com) (gcc version 2.95.3 20010315 (release)) #0.1.4 .. 6宀?29 14:21:19 KST 2003
MMU table base address = 0x33DFC000
Succeed memory mapping.
NAND device: Manufacture ID: 0xec, Chip ID: 0x76 (Samsung K9D1208V0M)
Found saved vivi parameters.
Press Return to start the LINUX now, any other key for vivi
type "help" for help.
vivi> param set linux_cmd_line "console=ttyS0 root=/dev/nfs nfsroot=192.168.0.1:/friendly-arm/root ip=192.168.0.69:192.168.0.1:192.168.0.1:255"Change linux command line to "console=ttyS0 root=/dev/nfs nfsroot=192.168.0.1:/friendly-arm/root ip=192.168.0.69:192.168.0.1:192.168.0.1:255.2"vivi> boot
Copy linux kernel from 0x00030000 to 0x30008000, size = 0x000c0000 ... done
zImage magic = 0x016f2818
Setup linux parameters at 0x30000100
linux command line is: "console=ttyS0 root=/dev/nfs nfsroot=192.168.0.1:/friendly-arm/root ip=192.168.0.69:192.168.0.1:192.168.0.1:255.255.255"MACH_TYPE = 193
NOW, Booting Linux......
我在vivi下用part show命令,顯示如下
vivi> part show
mtdpart info. (4 partitions)
name offset size flag
------------------------------------------------
vivi : 0x00000000 0x00020000 0 128k
param : 0x00020000 0x00010000 0 64k
kernel : 0x00030000 0x000c0000 0 768k
root : 0x00100000 0x00140000 4 1M+256k
vivi>