标签:tty ipad ignore mtdblock dev 网络文件 write yaffs2 set
setenv serverip 192.168.1.107
setenv ipaddr 192.168.1.10
setenv gatewayip 192.168.1.1
setenv netmask 255.255.255.0
saveenv
osdrv/pub/bin/pc/mkyaffs2image100 osdrv/pub/rootfs_glibc osdrv/pub/rootfs_glibc_2k_4bit.yaffs2 1 2
mw.b 42000000 ff 80000
tftp 0x42000000 u-boot-hi3519av100.bin
nand erase 0 80000
nand write 42000000 0 80000
mw.b 42000000 ff 400000
tftp 42000000 uImage
nand erase 100000 400000
nand write 42000000 100000 400000
mw.b 42000000 ff 2000000
tftp 42000000 rootfs_glibc_2k_4bit.yaffs2 #此处更新为文件的实际名称
nand erase 500000 0x1441a40 # 2000000要更新为文件的实际大小,上文会提示其大小
nand write.yaffs 42000000 500000 0x1441a40 # 2000000要更新为文件的实际大小,上文会提示其大小
118M 要更改成略大于上面制作的文件系统的大小。
setenv bootargs 'mem=256M console=ttyAMA0,115200 clk_ignore_unused root=/dev/mtdblock2 rw rootfstype=yaffs2 mtdparts=hinand:1M(boot),4M(kernel),118M(rootfs)'
setenv bootcmd 'nand read 0x42000000 100000 400000
bootm 0x42000000'
saveenv
re
setenv bootargs 'mem=256M console=ttyAMA0,115200 clk_ignore_unused root=/dev/nfs nfsroot=192.168.1.107:/opt/nfs rw ip=192.168.1.10:192.168.1.107:192.168.1.1:255.255.255.0:::off'
setenv bootcmd 'nand read 0x42000000 100000 400000
bootm 0x42000000'
saveenv
re
mount -t nfs -o tcp -o nolock 192.168.1.107:/opt/nfs /mnt
标签:tty ipad ignore mtdblock dev 网络文件 write yaffs2 set
原文地址:https://www.cnblogs.com/chay/p/10887496.html