Some U-boot commands special for FL ok6410
(1) download U-boot
$ Dnw 50008000
$ NAND erase 0 100000
$ NAND write. uboot 50008000 0 100000
# Dnw default load address is 0xc0000000
All in one:
$ Dnw 50008000 & NAND erase 0 100000 & NAND write. uboot 50008000 0 100000
(2) download Kernel
$ Dnw 50008000
$ NAND erase 100000 500000
$ NAND write. e 50008000 100000 500000
All in one:
$ Dnw 50008000 & NAND erase 100000 500000 & NAND write. e 50008000 100000 500000
(3) download yaffs2 root file system
$ Dnw 50008000
$ NAND erase 600000 # erase mtdblock2 Partition
$ NAND write. yaffs2 50008000 600000 8000000 # instead 8000000 of real image size
All in one:
$ Dnw 50008000 & NAND erase 600000 & NAND write. yaffs2 50008000 600000 8000000
(4) download ubifs/cramfs root file system
$ Dnw 50008000
$ NAND erase 600000 # erase mtdblock2 Partition
$ NAND write. e 50008000 600000 8000000 # instead 8000000 of real image size
All in one:
$ Dnw 50008000 & NAND erase 600000 & NAND write. e 50008000 600000 8000000
(5) download jffs2 root file system
$ Dnw 50008000
$ NAND erase 600000 # erase mtdblock2 Partition
$ NAND write. jffs2 50008000 600000 8000000 # instead 8000000 of real image size
All in one:
$ Dnw 50008000 & NAND erase 600000 & NAND write. jffs2 50008000 600000 8000000
(6) deal with bad Blocks
$ NAND scrub
(7) set kernel arguments
To boot using ubi image:
$ Setenv bootargs console = ttysac0, 115200 ubi. MTD = rootfs root = ubi0: rootfs rootfstype = ubifs RW init =/linuxrc debug
$ Save
$ Reset
To boot using cramfs image:
$ Setenv bootargs console = ttysac0, 115200 root =/dev/mtdblock2 rootfstype = cramfs init =/linuxrc debug
$ Save
$ Reset
To boot using yaffs2 image:
$ Setenv bootargs "root =/dev/mtdblock2 rootfstype = yaffs2 console = ttysac0. 115200"
$ Save
$ Reset
To boot from NFS
$ Setenv bootargs "root =/dev/nfs nfsroot = 192.168.0.231:/FileSystem-Yaffs2 \
IP = 192.168.0.20.: 192.168.0.231: 192.168.0.201: 255.255.255.0: 8.8.8.8: eth0: off \
Console = ttysac0, 115200"
$ Save
# "192.168.0.231" is your host IP; "192.168.0.20." is your board's IP;
# "192.168.0.201" is gateway; "255.255.255.0" is mask.
Some U-boot commands of ok6410