Some U-boot commands of ok6410

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.