嵌入式 uboot常用的bootargs参数设置备忘录

set bootargs root=/dev/ram0 rw console=ttySAC0,115200 mem=64Mramdisk=32768 initrd=0x30800000,20M init=/linuxrc
setenv bootcmd tftpboot 0x33000000 uImage-rtc\; tftpboot 0x30800000initrd_fs-nfs.img\; bootm 33000000
set serverip 192.168.167.150

kgdb debug :
setenv bootargs root=/dev/ram0 rw console=ttySAC0,115200 mem=64Mramdisk=32768 initrd=0x30800000,20M init=/linuxrc kgdbwait8250kgdb=0,115200
setenv bootargs root=/dev/ram0 rw console=ttyKGDB,115200 mem=64Mramdisk=32768 initrd=0x30800000,20M init=/linuxrc kgdbwait8250kgdb=0,115200 
setenv bootargs root=/dev/ram0 rw console=ttySAC0,115200 mem=64Mramdisk=32768 initrd=0x30800000,20M init=/linuxrcip=192.168.167.100 kgdbwait 
[[email protected]/,@192.168.167.100/][email protected]/,@192.168.167.100/[/email]
kgdb-oe ok
setenv bootargs root=/dev/ram0 rw console=ttySAC0,115200 mem=64Mramdisk=32768 initrd=0x30800000,20Minit=/linuxrc  kgdbwait 
[[email protected]/,@192.168.167.150/][email protected]/,@192.168.167.150/[/email]
root=/dev/ram0 rw console=ttySAC0,115200 mem=64M ramdisk=32768initrd=0x30800000,20M init=/linuxrc
jk2410 nfs ok
setenv bootargs noinitrd init=/linuxrc root=/dev/nfsnfsroot=192.168.167.150:/work/nfsip=192.168.167.15:192.168.167.150:192.168.167.254:255.255.255.0:jk2410:eth0:offconsole=ttySAC0,115200 mem=64M ramdisk=32768
setenv bootargs noinitrd init=/linuxrc root=/dev/nfsnfsroot=192.168.167.162:/home/leibian/qtopia_arm/nfsip=192.168.167.15:192.168.167.162:192.168.167.254:255.255.255.0:jk2410:eth0:offconsole=ttySAC0,115200 mem=64M ramdisk=32768
omap5912 nfs ok
setenv bootargs noinitrd init=/linuxrc root=/dev/nfsnfsroot=192.168.167.168:/work/0015/inird-v5t-sunny/ramdisk-v5t,nolockip=192.168.167.15:192.168.167.168:192.168.167.254:255.255.255.0:omap5912:eth0:offconsole=ttyS0,115200n8 mem=30M ramdisk=32768
note: ,nolock后面不要加rsize=1024,wsize=1024,timeo=15,一旦加了以后,console的信息就乱掉了。
而且不能ip=dhcp ,因为我们公司根本就没有dhcp server ,就要ip=192.168.167.15:192.168.167.168:192.168.167.254:255.255.255.0:omap5912:eth0:off
先擦后写
nanderase  400000  400000
nanderase  800000  800000
nandwrite  33000000  400000    170000
nandwrite  30800000  800000    1c0000
jffs2 ok
setenv bootargs noinitrd root=/dev/mtdblock4 rootfstype=jffs2 rwconsole=ttySAC0,115200 mem=64M init=/linuxrc
cramfs 
setenv bootargs noinitrd root=/dev/mtdblock3rootfstype=cramfs  console=ttySAC0,115200mem=64M init=/linuxrc

一般的nfs mount :
mount -t nfs 192.168.167.150:/work/nfs /nfs -onolock,rsize=1024,wsize=1024,timeo=15
# 
#/tmpfs/bonnie\+\+  -s0  -d/jffs2/
Create files in sequential order...

done.
Stat files in sequential order...done.
Delete files in sequential order...
done.
Create files in random order...
done.
Stat files in random order...done.
Delete files in random order...done.
Version  1.03     ------Sequential Create------ --------RandomCreate--------
(none)           -Create----Read--- -Delete-- -Create-- --Read--- -Delete--
           files  /sec%CP  /sec%CP  /sec%CP  /sec%CP  /sec%CP  /sec %CP
             16  135  97  9752  97  144  95  134  94 26006100  147  96
(none),,,,,,,,,,,,,,16,135,97,9752,97,144,95,134,94,26006,100,147,96

你可能感兴趣的:(嵌入式 uboot常用的bootargs参数设置备忘录)