1 Star 0 Fork 1

qqliyunpeng/dnw-linux

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
**************This code is based on the code from internet.
**************contact: Du, Changbin <[email protected]>

1. build and install
=====================
	$ make
	$ sudo make install

2. dnw tool usage 
=====================
Connect board to PC and open minicom. Boot board and enter U-Boot command line mode.
Then run command "dnw <download address>" in U-Boot. U-Boot may print bellow message:
	Insert a OTG cable into the connector!
	OTG cable Connected!
	Now, Waiting for DNW to transmit data

Now, you can download your file to board by follow command on PC end:
	$ sudo dnw <file_to_download>

Note: If your board isn't FL Ok6410, please set right load-address via "a" option.
      Above steps have only download file to board's RAM, so you need  flash
      it to nand via U-Boot command "nand write".

If above doesn't work, pls check if you can see bellow message in `dmesg`.
	usb 1-1: new full speed USB device using uhci_hcd and address 2
	usb 1-1: configuration #1 chosen from 1 choice
	secbulk:secbulk probing...
	secbulk:bulk out endpoint found!

===============================================
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.

空文件

简介

dnw tool for Linux (based on the code from internet) 展开 收起
C
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C
1
https://gitee.com/qqliyunpeng/dnw-linux.git
[email protected]:qqliyunpeng/dnw-linux.git
qqliyunpeng
dnw-linux
dnw-linux
master

搜索帮助