[嵌入式Linux] 新手s5pv210写裸机程序出现问题

[复制链接]
1535|3
 楼主| seifguo 发表于 2015-6-30 22:35 | 显示全部楼层 |阅读模式
想在s5pv210上写裸机程序,点亮led。写了启动文件start.S,和led.c文件。编译后生成led.bin文件。再编译一个在网上下载的addheader.c文件,利用生成的文件再制作写入s5pv210的210.bin文件。电脑系统是ubuntu12.04。开机利用SD卡启动uboot,然后再uboot中将210.bin写入NAND Flash中。

进入uboot后,在kermit中输入dnw c0008000后,提示:
Insert a OTG cable into the connector!
OTG cable Connected!
Now, Waiting for DNW to transmit data

重新打开一个终端,输入:sudo dnw /xxx/xxx/210.bin后,提示:
file name : /home/guo/work/s5pv210/noos/led/210.bin
file size : 232 bytes
Writing data...
2         6 bytes     failed!

同时,在kermit的终端中提示:
Download Done!! Download Address: 0xc0008000, Download Filesize:0xa5fff8
Checksum is being calculated...........
Checksum Value => MEM:53ac DNW:fffb
Checksum failed.

请问怎么解决?
直接写led.bin也出现同样问题。
 楼主| seifguo 发表于 2015-7-3 08:04 | 显示全部楼层
将210.bin写入SD卡中,然后从SD卡启动,可以看到LED灯亮了。以前用dnw传输uboot.bin也没出问题,难道是dnw不支持小文件?
自己顶一顶
shexujia 发表于 2015-7-22 16:15 | 显示全部楼层
没看懂,是要从烧到nandflash,然后从flash执行 led.bin吗
huangweida 发表于 2015-8-4 19:01 | 显示全部楼层
大哥,你用的是什么开发板啊?哪家的?谢谢,能不能给我一份资料啊,827594759@qq.com
您需要登录后才可以回帖 登录 | 注册

本版积分规则

6

主题

83

帖子

2

粉丝
快速回复 在线客服 返回列表 返回顶部