这段时间总是忙于开发板的烧写过程,因为对(arm开发板 arm9开发板 arm7开发板 2410开发板 2440开发板 925开发板)等开发板不是很精通所以走了不少弯路,在此我把自己在烧写板子的过程中遇到的若干个问题整理如下希望对初学者有所帮助。
1.写好了程序不必立刻写入flash中,可挂载在本机上,但出现这种错误:
# mount 192.168.2.122:/ /mnt
mount: Mounting 192.168.2.122:/ on /mnt failed: No such file or directory
说明nfs没有设置好.
我觉得在装系统时最好全部安装,因为我以前部分安装时,没装tftp,后来又单独安装了tftp的rpm包,试了很多遍,结果还是不能用,全部安装以后
问题解决,我猜想是不是还要装一些关联的库:).
2. 30008000是zImage,30800000是ramdisk在ram中的默认下载地址,可以改变的.
3.
Retry count exceeded; starting again
NetOurIP =c0a80278
NetServerIP = c0a8027a
NetOurGatewayIP = c0a80201
NetOurSubnetMask = ffffff00
ARP broadcast 1
ARP broadcast 2
ARP broadcast 3
ARP broadcast 4
ARP broadcast 5
我遇到的原因是我的IP地址没有设为192.168.2.122.改为192.168.2.122后出现:
Retry count exceeded; starting again
NetOurIP =c0a80278
NetServerIP = c0a8027a
NetOurGatewayIP = c0a80201
NetOurSubnetMask = ffffff00
ARP broadcast 1
ARP broadcast 2
TFTP from server 192.168.2.122;our IP address is 192.168.2.120
Loading:
TTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTT
当时试了好多次都这样,但是第二天在试就成功了.百思不得其解向wpq询问知道是网络不流畅,多试几次就好了,T表示timeout:)
4.进入SMDK2410目录相当于进入PC机的BIOS,故在SMDK2410# 后ifconfig是错误的命令.在SMDK2410# 输入help可以显示可在此目录下使用的命令:)
5.[root@localhost Images]# ./flash
+------------------------------------+
| SEC JTAG FLASH(SJF) v 0.3 |
| (S3C2410X & SMDK2410 B/D) |
+------------------------------------+
Usage: SJF /f: /d=
> No CPU is detected.
[SJF Main Menu]
0:K9S1208 program 1:28F128J3A program 2:Memory Rd/Wr 3:Exit
Select the function to test:1
[28F128J3A Flash JTAG Programmer]
*** Very Important Notes ***
1. 28F128J3A must be located at 0x08000000.
J6 : connect 2-3 pins, J9 : connect 1-2 pins
J33 : Open, J34 : Short
2. After programming, 28F128J3A may be located at 0x0.
J6 : connect 1-2 pins, J9 : connect 2-3 pins
J33 : Short, J34 : Open
Source size = 15d54h
Available Target Offset Address:
0x0,0x20000,0x40000, ..., 0x1ce0000
Input target address offset [0x?] : 0x08000000
Target base address(0x08000000) = 0x0
Target offset (0x0) = 0x8000000
Target size (0x20000*n) = 0x15d54
Identification check error !!
[root@localhost Images]#
开始以为是flash坏了,好害怕,后来才明白是JTAG接触不好.在烧写ppcboot时最好用tftp先下载,实在不行在用JTAG.
好了,先写到这里了,希望对大家有所帮助,在此推荐几个学习嵌入式系统 嵌入式开发及arm开发板 arm9开发板的好网站给大家http://www.armodm.com http://www.szarm.com里边有很多技术资料有时间不防进去看看哦!