vivi> part show
mtdpart info. (5 partitions)
name offset size flag
------------------------------------------------
vivi : 0x00000000 0x00020000 0 128k
param : 0x00020000 0x00010000 0 64k
kernel : 0x00030000 0x001c0000 0 1M+768k
root : 0x00200000 0x00400000 0 4M
usr : 0x00600000 0x03a00000 0 58M
vivi> param set linux_cmd_line "console=ttySAC0 initrd=0x30800000,0x440000 roo"Change linux command line to "console=ttySAC0 initrd=0x30800000,0x440000 root=/"vivi>
vivi> load ram 0x30008000 0x001c0000 t // load kernel image to ram
vivi> load ram 0x30800000 0x00400000 t //load ramdisk image to ram
vi> boot ram
Copy linux kernel from 0x00030000 to 0x30008000, size = 0x001c0000 ... done
zImage magic = 0x016f2818
Setup linux parameters at 0x30000100
linux command line is: "console=ttySAC0 initrd=0x30800000,0x440000 root=/dev/ra"MACH_TYPE = 193
NOW, Booting Linux......
Uncompressing Linux.............................................................Linux version 2.6.14 (root@hujunlinux) (gcc version 3.4.1) #29 Sun Feb 4 17:32:7CPU: ARM920Tid(wb) [41129200] revision 0 (ARMv4T)
Machine: SMDK2410
NET: Registered protocol family 1
RAMDISK: Compressed image found at block 0
VFS: Mounted root (ext2 filesystem).
Mounted devfs on /dev
Freeing init memory: 112K
Please press Enter to activate this console.
顺便熟悉了vivi的命令的使用。呵呵, uboot能做的vivi也能做阿。
1:说明kernel ,fs 都在ram 上用boot ram 可以成功加载
vivi> load ram 0x30008000 0x001c0000 t
vivi>load flash root t //load cramfs image to flash
vivi> param show
Number of parameters: 19
name : hex integer
-------------------------------------------------------------
mach_type : 000000c1 193
media_type : 00000003 3
boot_mem_base : 30000000 805306368
baudrate : 0001c200 115200
xmodem_one_nak : 00000000 0
xmodem_initial_timeout : 000493e0 300000
xmodem_timeout : 000f4240 1000000
ymodem_initial_timeout : 0016e360 1500000
boot_delay : 00300000 3145728
os : LINUX
display : VGA 640X480
ip : 59.69.74.199
host : 59.69.74.87
gw : 59.69.74.1
mask : 255.255.255.0
wincesource : 00000000 0
wincedeploy : 00000001 1
mac : 00:00:c0:ff:ee:08
wince part name: wince
Linux command line: noinitrd root=31:03 init=/linuxrc console=ttySAC0
vivi> param set linux_cmd_line "noinitrd root=/dev/mtdblock/3 init=/linuxrc co"Change linux command line to "noinitrd root=/dev/mtdblock/3 init=/linuxrc cons"vivi> boot ram
Copy linux kernel from 0x00030000 to 0x30008000, size = 0x001c0000 ... done
zImage magic = 0x016f2818
VFS: Unable to mount root fs via NFS, trying floppy.
VFS: Cannot open root device "mtdblock/3" or unknown-block(2,0)
Please append a correct "root=" boot option
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(2,0)
2:说明kernel 在ram, fs(cramfs) 在flash上用 boot ram 不行。
vivi>load flash kernel t
vivi> load ram 0x30800000 0x00400000 t
vivi> param show
Number of parameters: 19
name : hex integer
-------------------------------------------------------------
mach_type : 000000c1 193
media_type : 00000003 3
boot_mem_base : 30000000 805306368
baudrate : 0001c200 115200
xmodem_one_nak : 00000000 0
xmodem_initial_timeout : 000493e0 300000
xmodem_timeout : 000f4240 1000000
ymodem_initial_timeout : 0016e360 1500000
boot_delay : 00300000 3145728
os : LINUX
display : VGA 640X480
ip : 59.69.74.199
host : 59.69.74.87
gw : 59.69.74.1
mask : 255.255.255.0
wincesource : 00000000 0
wincedeploy : 00000001 1
mac : 00:00:c0:ff:ee:08
wince part name: wince
Linux command line: noinitrd root=31:03 init=/linuxrc console=ttySAC0
vivi> param set linux_cmd_line "console=ttySAC0 initrd=0x30800000,0x440000 roo"Change linux command line to "console=ttySAC0 initrd=0x30800000,0x440000 root=/"vivi> boot
RAMDISK: Compressed image found at block 0
VFS: Mounted root (ext2 filesystem).
Mounted devfs on /dev
Freeing init memory: 112K
Please press Enter to activate this console.
BusyBox v1.2.1 (2007.01.13-23:04+0000) Built-in shell (ash)
Enter 'help' for a list of built-in commands.
3:说明kernel 在flash上, fs 在ram上, 用boot 命令可以加载成功。
阅读(5239) | 评论(2) | 转发(0) |