uboot 下载、启动(含NFS, USB, NAND)指令备忘

//下面两条命令用来设置linux启动参数,并通过USB DNW下载内核来启动系统

setenv bootargs root=0x30A00040 console=ttySAC0,115200 init=/linuxrc androidboot.console=s3c2410_serial0

setenv bootcmd 'dnw 0x30007fc0; dnw 0x30a00000; bootm 0x30007fc0'



//以下这条命令是在PC上通过mkimage工作制作uimage
PC: ./mkimage -n "Kernel 2.6.35" -A arm -O linux -T kernel -C none -a 20A07fc0 -e 20A08000 -d zImage uzImage


//下面几条指令用来下载内核到nand flash

BOARD: dnw 0x30000000
PC: dnw uzimage
BOARD: nand erase 0x600000 0x500000
BOARD: nand write.e 0x30000000 0x600000 0x500000

//下面几条命令用来下载 android root fs到nand flash,

//通过从nand flash中加载内核来启动

dnw 0x30000000
PC: dnw rootfs_android.img
BOARD: nand erase 0x0E00000 0x10000000
BOARD: nand write.yaffs 0x30000000 0x0E00000 0x????? size
BOARD: setenv bootargs root=/dev/mtdblock4 console=ttySAC0,115200 init=/linuxrc androidboot.console=s3c2410_serial0 mem=512M
BOARD: setenv bootcmd 'nand read.e 0x20A07fc0 0x600000 0x500000;bootm 0x20a07fc0'
BOARD: saveenv




ok:
PC: ./mkimage -n "Kernel 2.6.35" -A arm -O linux -T kernel -C none -a 20A07fc0 -e 20A08000 -d zImage uzImage
BOARD: setenv bootargs root=/dev/mtdblock4 console=ttySAC0,115200 init=/linuxrc androidboot.console=s3c2410_serial0 mem=512M
BOARD: setenv bootcmd 'dnw 0x20A07fc0;bootm 0x20a07fc0'
BOARD: saveenv
reset board
PC: dnw uzImage



//通过NFS启动android系统的linux启动参数
setenv bootargs root=/dev/nfs console=ttySAC0,115200 init=/linuxrc nfsroot=172.16.101.132:/work/tiny210/android-2.3.1-tiny210/rootfs_dir ip=192.168.170.40:172.16.101.132:192.168.170.200:255.255.255.0:tiny210:eth0:off fbcon=rotate:1

你可能感兴趣的:(c,linux,android,工作,Flash)