#define CONFIG_EXTRA_ENV_SETTINGS \
"netdev=eth0\0"\
"consoledev=ttyS0\0"\
"loadaddr=a00000\0"\
"fdtaddr=900000\0"\
"fdtfile=dtb\0"\
"fsfile=fs\0"\
"ubootfile=u-boot.bin\0"\
"mtdparts=mtdparts=60000000.nand-flash:4096k(kernel),128k(dtb),-(rootfs)\0"\
"setbootargs=setenv bootargs console=$consoledev,$baudrate "\
"$mtdparts panic=1\0"\
"adddhcpargs=setenv bootargs $bootargs ip=on\0"\
"addnfsargs=setenv bootargs $bootargs ip=$ipaddr:$serverip:"\
"$gatewayip:$netmask:$hostname:$netdev:off "\
"root=/dev/nfs rw nfsroot=$serverip:$rootpath\0"\
"addnandargs=setenv bootargs $bootargs root=/dev/mtdblock3 "\
"rootfstype=jffs2 rw\0"\
"tftp_get_uboot=tftp 100000 $ubootfile\0"\
"tftp_get_kernel=tftp $loadaddr $bootfile\0"\
"tftp_get_dtb=tftp $fdtaddr $fdtfile\0"\
"tftp_get_fs=tftp c00000 $fsfile\0"\
"nand_erase_kernel=nand erase 0 400000\0"\
"nand_erase_dtb=nand erase 400000 20000\0"\
"nand_erase_fs=nand erase 420000 3be0000\0"\
"nand_write_kernel=nand write.jffs2 $loadaddr 0 400000\0"\
"nand_write_dtb=nand write.jffs2 $fdtaddr 400000 20000\0"\
"nand_write_fs=nand write.jffs2 c00000 420000 $filesize\0"\
"nand_read_kernel=nand read.jffs2 $loadaddr 0 400000\0"\
"nand_read_dtb=nand read.jffs2 $fdtaddr 400000 20000\0"\
"nor_reflash=protect off ff800000 ff87ffff ; erase ff800000 ff87ffff ; "\
"cp.b 100000 ff800000 $filesize\0"\
"nand_reflash_kernel=run tftp_get_kernel nand_erase_kernel "\
"nand_write_kernel\0"\
"nand_reflash_dtb=run tftp_get_dtb nand_erase_dtb nand_write_dtb\0"\
"nand_reflash_fs=run tftp_get_fs nand_erase_fs nand_write_fs\0"\
"nand_reflash=run nand_reflash_kernel nand_reflash_dtb "\
"nand_reflash_fs\0"\
"boot_m=bootm $loadaddr - $fdtaddr\0"\
"dhcpboot=dhcp ; run setbootargs adddhcpargs tftp_get_dtb boot_m\0"\
"nfsboot=run setbootargs addnfsargs tftp_get_kernel tftp_get_dtb "\
"boot_m\0"\
"nandboot=run setbootargs addnandargs nand_read_kernel nand_read_dtb "\
"boot_m\0"\
""
mount -r -o sync -o noatime -t jffs2 /dev/mtdblock/5 /info
mount -r -o sync -o noatime -t jffs2 /dev/mtdblock/6 /apps
mount -w -o sync -o noatime -t jffs2 /dev/mtdblock/7 /logs
|
文件: | General.pdf |
大小: | 275KB |
下载: | 下载
|
|
阅读(1278) | 评论(0) | 转发(0) |