码迷,mamicode.com
首页 > 其他好文 > 详细

Ok6410的一些U-Boot命令

时间:2015-01-12 10:49:04      阅读:290      评论:0      收藏:0      [点我收藏+]

标签:

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.232: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.232" is your board‘s ip;
# "192.168.0.201" is gateway; "255.255.255.0" is mask.

Ok6410的一些U-Boot命令

标签:

原文地址:http://www.cnblogs.com/CoderTian/p/4217820.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!