QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 979|回复: 6

不再是问题

[复制链接]
发表于 2005-5-21 16:56:23 | 显示全部楼层 |阅读模式
Linux无法引导,提示bad magic number!
把制作 的image刷到flash中,可感觉没有刷进去,信息如下:

MPC8260 Reset Status: External Soft, External Hard

MPC8260 Clock Configuration
- Bus-to-Core Mult 4x, VCO Div 2, 60x Bus Freq 25-75 , Core Freq 100-300
- dfbrg 0, corecnf 0x0a, busdf 7, cpmdf 1, plldf 0, pllmf 3
- vco_out 264000000, cpm_clk 132000000, bus_clk 33000000
- scc_clk 66000000, brg_clk 66000000, cpu_clk 132000000

Initializing...
CPU: MPC8260 (Rev 01, Mask A.1 1K22A-XC) at 132 MHz
Board: EST SBC8260
DRAM: 16 MB
Relocating to: 00fc0000, 393216 bytes for malloc()
Board Info at: 00f5ffac
New Stack Pointer is: 00f5ff20
Now running in RAM - dest_addr = 0x00fc0000
FLASH: 4 MB
Monitor relocated to 0x00fc0000
In: serial
Out: serial
Err: serial

=> fli

Bank # 1: AMD AM29F080B (8 Mbit)
Size: 4 MB in 16 Sectors
Sector Start Addresses:
FE000000 (RO) FE040000 (RO) FE080000 FE0C0000 FE100000
FE140000 FE180000 FE1C0000 FE200000 FE240000
FE280000 FE2C0000 FE300000 FE340000 FE380000
FE3C0000
=> md fe080000
fe080000: ffffffff ffffffff ffffffff ffffffff ................
fe080010: ffffffff ffffffff ffffffff ffffffff ................
fe080020: ffffffff ffffffff ffffffff ffffffff ................
fe080030: ffffffff ffffffff ffffffff ffffffff ................
fe080040: ffffffff ffffffff ffffffff ffffffff ................
fe080050: ffffffff ffffffff ffffffff ffffffff ................
fe080060: ffffffff ffffffff ffffffff ffffffff ................
fe080070: ffffffff ffffffff ffffffff ffffffff ................
fe080080: ffffffff ffffffff ffffffff ffffffff ................
fe080090: ffffffff ffffffff ffffffff ffffffff ................
fe0800a0: ffffffff ffffffff ffffffff ffffffff ................
fe0800b0: ffffffff ffffffff ffffffff ffffffff ................
fe0800c0: ffffffff ffffffff ffffffff ffffffff ................
fe0800d0: ffffffff ffffffff ffffffff ffffffff ................
fe0800e0: ffffffff ffffffff ffffffff ffffffff ................
fe0800f0: ffffffff ffffffff ffffffff ffffffff ................
=>

=> bootm
## Booting image at 00100000 ...
Bad Magic Number
=>bootm 0fe080000
## Booting image at fe080000 ...
Bad Magic Number

________
 楼主| 发表于 2005-5-21 16:58:02 | 显示全部楼层
板子的相关信息:

printenv
baudrate=9600
ethaddr=08:00:22:50:70:63
serverip=172.16.76.133
hostname=sbc8260
rootpath=/opt/eldk/ppc_82xx
ipaddr=172.16.76.173
netmask=255.255.255.0
stdin=serial
stdout=serial
stderr=serialBad Magic Number
                                                                                                                                          
Environment size: 196/262140 bytes
=>
回复

使用道具 举报

发表于 2005-5-21 18:03:14 | 显示全部楼层
看起来从fe080000开始什么都没有…………
写FLASH前要先看看写保护开没有,还要擦一次才能写。
回复

使用道具 举报

 楼主| 发表于 2005-5-21 20:25:51 | 显示全部楼层
[quote:8f8c4921fd="tcz"]看起来从fe080000开始什么都没有…………
写FLASH前要先看看写保护开没有,还要擦一次才能写。[/quote]

md fe080000
fe080000: ffffffff ffffffff ffffffff ffffffff    ................
fe080010: ffffffff ffffffff ffffffff ffffffff    ................
fe080020: ffffffff ffffffff ffffffff ffffffff    ................
fe080030: ffffffff ffffffff ffffffff ffffffff    ................
fe080040: ffffffff ffffffff ffffffff ffffffff    ................
fe080050: ffffffff ffffffff ffffffff ffffffff    ................
fe080060: ffffffff ffffffff ffffffff ffffffff    ................
fe080070: ffffffff ffffffff ffffffff ffffffff    ................
fe080080: ffffffff ffffffff ffffffff ffffffff    ................
fe080090: ffffffff ffffffff ffffffff ffffffff    ................
fe0800a0: ffffffff ffffffff ffffffff ffffffff    ................
fe0800b0: ffffffff ffffffff ffffffff ffffffff    ................
fe0800c0: ffffffff ffffffff ffffffff ffffffff    ................
fe0800d0: ffffffff ffffffff ffffffff ffffffff    ................
fe0800e0: ffffffff ffffffff ffffffff ffffffff    ................
fe0800f0: ffffffff ffffffff ffffffff ffffffff    ................
=>
把image用BDI2000写进FLASH之后,看看

=> bootm fe080000
## Booting image at fe080000 ...
Bad Magic Number
=>
照旧呀




erase的结果:

erase fe080000 fe3bffff
Erase Flash from 0xfe080000 to 0xfe3bffff
....... done
Erased 13 sectors
=> md fe080000
fe080000: ffffffff ffffffff ffffffff ffffffff    ................
fe080010: ffffffff ffffffff ffffffff ffffffff    ................
fe080020: ffffffff ffffffff ffffffff ffffffff    ................
fe080030: ffffffff ffffffff ffffffff ffffffff    ................
fe080040: ffffffff ffffffff ffffffff ffffffff    ................
fe080050: ffffffff ffffffff ffffffff ffffffff    ................
fe080060: ffffffff ffffffff ffffffff ffffffff    ................
fe080070: ffffffff ffffffff ffffffff ffffffff    ................
fe080080: ffffffff ffffffff ffffffff ffffffff    ................
fe080090: ffffffff ffffffff ffffffff ffffffff    ................
fe0800a0: ffffffff ffffffff ffffffff ffffffff    ................
fe0800b0: ffffffff ffffffff ffffffff ffffffff    ................
fe0800c0: ffffffff ffffffff ffffffff ffffffff    ................
fe0800d0: ffffffff ffffffff ffffffff ffffffff    ................
fe0800e0: ffffffff ffffffff ffffffff ffffffff    ................
fe0800f0: ffffffff ffffffff ffffffff ffffffff    ................
=>
不知道是什么原因,是不是因为主板有保护???
回复

使用道具 举报

发表于 2005-5-21 21:59:35 | 显示全部楼层
建议看看bootloader的指令说明…………
回复

使用道具 举报

 楼主| 发表于 2005-5-22 11:13:05 | 显示全部楼层
昨天把主板上的一个跳线从1-2,3-4改成1-3,2-4,系统的启动改成了VXworks的Vwrae,
回复

使用道具 举报

 楼主| 发表于 2005-5-23 14:45:22 | 显示全部楼层
问题解决,没有把内核加载到FLASH,直接load 0x06000000
然后bootm 0x06000000就可以了。不过掉电后内核就没有了,要再次加载。
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

GMT+8, 2024-11-23 06:21 , Processed in 0.104872 second(s), 15 queries .

© 2021 Powered by Discuz! X3.5.

快速回复 返回顶部 返回列表