您的位置:首页 > 其它

移植u-boot-2010.03问题 --- 支持dnw

2014-01-21 15:57 197 查看

移植u-boot-2010.03问题 --- 支持dnw

原文出处:/article/6055971.html

感谢这位朋友,这里记录一下,方便以后查找。

1,下载uboot_dnw源码

https://github.com/plinx/uboot_dnw


2、将cmd_usbd.c拷贝到u-boot-2010.03/common目录下

3,修改u-boot-2010.03/common/Makefile

# core command
...
COBJS-y += cmd_usbd.o


4,将usbd-otg-hs.h,usbd-otg-hs.c拷贝到u-boot/cpu/arm1176/s3c64xx/

5,将regs.h,s3c64x0.h 拷贝到u-boot/include/

6,修改include/configs/smdk6410.h文件,加入下面两句

#define CONFIG_S3C_USBD
#define USBD_DOWN_ADDR           0xc0000000


注意:我这里是开发板uboot的dnw和Linux下的dnw相互通讯,而且在使用中发现不是很稳定,经常出现下面的情况:

Writing data...
failed!


具体原因不是太清楚,但在dnw传输文件时,要保证开发板运行了dnw,并保持连接状态。

Insert a OTG cable into the connector!
OTG cable Connected!
Now, Waiting for DNW to transmit data


如果还是不行,检查usb连接线,或者拔出重新插入,而且usb驱动是否加载上。

运行命令: lsmod | grep secbulk

secbulk                12728  0


说明驱动已经加载上。
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: