Chinaunix首页 | 论坛 | 博客
  • 博客访问: 554610
  • 博文数量: 109
  • 博客积分: 2300
  • 博客等级: 大尉
  • 技术积分: 810
  • 用 户 组: 普通用户
  • 注册时间: 2009-10-02 13:11
文章分类

全部博文(109)

文章存档

2012年(1)

2011年(17)

2010年(62)

2009年(29)

我的朋友

分类: 嵌入式

2010-06-02 18:33:05

ram0文件系统
setenv serverip 192.168.1.103
setenv ipaddr 192.168.1.168
setenv ethaddr 00:0C:0C:A0:02:6A

tftpboot 0x80700000 uImage_ipnc_dm365_0.7.0
tftpboot 0x80700000 uImageUby3

tftpboot 0x82000000 cramfsImage_ipnc_dm365_0.7.0
tftpboot 0x82000000 cramfsUby3

nand erase 0x200000 0xDD0000
nand write 0x80700000 0x200000 0x200000
nand write 0x82000000 0x400000 0xBD0000

nand erase 0x200000 0x200000
nand erase 0x400000 0xBD0000

setenv bootcmd 'nand read 0x82000000 0x400000 0xBD0000;nboot 0x80700000 0 0x200000;bootm 0x80700000'
setenv bootargs 'mem=60M console=ttyS1,115200n8 root=/dev/ram0 rw initrd=0x82000000,13M ip=dhcp quiet eth=$(ethaddr)'
setenv bootargs 'mem=60M console=ttyS1,115200n8 root=/dev/ram0 rw initrd=0x82000000,13M ip=192.168.1.108:192.168.1.168:192.168.1.1:255.255.255.0:::off eth=00:0C:0C:A0:02:6A quiet'
saveenv

文档u-boot
update  UBOOT
tftp 0x80700000 uboot_rom_nand_pri_bin.bin
nand erase 0x2C000 0x30000
nand write 0x80700000 0x2C000 0x30000

loadb 0x80700000
nand erase 0x2C000 0x30000
nand write 0x80700000 0x2C000 0x30000

UBL下载tftp
tftp 0x80700000 ubl_ipnc_dm36x_297_0.2.0.bin
nand erase 0x010000 0x08000
nand write 0x80700000 0x010000 0x08000


文档使用nfs文件系统启动
setenv nfshost 192.168.1.114
setenv serverip 192.168.1.114
setenv rootpath /camera/ss/ipnc/target/filesys
setenv bootcmd 'nboot 0x80700000 0 0x200000;bootm 0x80700000'
setenv bootcmd 'tftpboot 0x80700000 uImage_nfs; bootm 0x80700000'
setenv bootargs console=ttyS1,115200n8 noinitrd rw ip=dhcp root=/dev/nfs quiet nfsroot=$(nfshost):$(rootpath), nolock mem=60M


own改1
tftp 0x80700000 ubl_ipnc_dm36x_297_0.2.0.bin
nand erase 0xF000 0x6000
nand write 0x80700000 0xF000 0x6000

tftp 0x80700000 u-boot1.bin
nand erase 0x20000 0x20000
nand write 0x80700000 0x20000 0x20000

tftpboot 0x80400000 uImageUby2
tftpboot 0x81C00000 cramfsUby2
nand erase 0x1F0000 0xDF0000
nand write 0x80400000 0x1F0000 0x200000
nand write 0x81C00000 0x410000 0xBD0000
setenv bootcmd 'nand read 0x81C00000 0x410000 0xBD0000;nboot 0x80400000 0 0x1F0000;bootm 0x80400000'
setenv bootargs 'mem=60M console=ttyS1,115200n8 root=/dev/ram0 rw initrd=0x81C00000,13M ip=dhcp quiet eth=$(ethaddr)'

DB参数设置
setenv bootcmd 'nand read 0x82000000 0x400000 0xcd0000;nboot 0x80700000 0 0x200000;bootm 0x80700000'
setenv bootargs 'mem=48M console=ttyS1,115200n8 root=/dev/ram0 rw initrd=0x82000000,13M ip=192.168.1.101:192.168.1.100:192.168.1.1:255.255.255.0:::off eth=00:11:22:33:46:01
阅读(3916) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~