父子过户房产手续办理:U-Boot参数设置

来源:百度文库 编辑:偶看新闻 时间:2024/05/03 07:47:10

U-Boot参数设置

分类: u-boot 移植2011-10-19 11:1949人阅读评论(0)收藏举报

1)网络启动参数设置

setenv serverip 192.168.7.103                  // Ubuntu的ip地址  

setenv ipaddr  192.168.7.163                    // 开发板ip地址 

setenv gatewayip 192.168.7.1                  // 设置网关 

setenv ethaddr 08:00:3e:26:0a:03            // 设置MAC地址

1、setenv bootcmd tftp 30800000 uImage \; bootm            //   设置倒计时后的第一条命令  (二选一

                                                                                                           //   (cp u-boot-2010.03/tools/mkimge /usr/bin/,用来生成uImage,注意权限)

2、setenv bootcmd tftp 33000000 zImage \; go 33000000

 

setenv bootargs console=ttySAC0,115200 init=/linuxrc root=/dev/nfs nfsroot=192.168.7.103:/opt/filesystem ip=192.168.7.163           // uboot传给内核的参数


/******************************************************************/

nand分区文件所在:

u-boot:include/configs/fs2410.h

kernel:/linux-2.6.35/arch/arm/plat-s3c24xx/ common-smdk.c

/******************************************************************/



2)烧写内核 

tftp 33000000 uImage 

nand erase 100000 400000

nand write 33000000 100000 400000

setenv bootcmd nand read 33000000 100000 400000 \; bootm 33000000



3)烧写 cramfs 文件系统

tftp 30008000 filesystem.cramfs

nand erase 500000 800000

nand write 30008000 500000 实际大小

setenv bootargs root=/dev/mtdblock2 init=/linuxrc rootfstype=cramfs rw console=ttySAC0,115200 



4)烧写 yaffs2 文件系统

tftp 30008000 filesystem.yaffs2

nand erase D00000 3300000

nand write.yaffs2 30008000 D00000 实际大小

setenv bootargs root=/dev/mtdblock3 init=/linuxrc rootfstype=yaffs2 rw console=ttySAC0,115200