QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 1546|回复: 5

uClinux起动失败怎么办??

[复制链接]
发表于 2004-5-15 18:43:12 | 显示全部楼层 |阅读模式
[root@TOM uClinux-dist]# skyeye linux-2.4.x/linux
GNU gdb 5.3
Copyright 2002 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
***************************************************************
************   SkyEye is Simulator based on GDB   *************
***************************************************************
This SkyEye was configured as "--host=i686-pc-linux-gnu --target=arm-elf"...
(SkyEye) target sim
cpu info: armv3, arm7tdmi, 41007700, fff8ff00, 0
mach info: name at91, mach_init addr 0x813dd14
SKYEYE: use arm7100 mmu ops
Connected to the simulator.
(SkyEye) load
Loading section .init, size 0xa000 vma 0x1000000
Loading section .text, size 0xc5c10 vma 0x100a000
Loading section .data, size 0x8320 vma 0x10d0000
Start address 0x1000000
Transfer rate: 7076224 bits/sec.
(SkyEye) run
Starting program: /home/skyeye/uClinux-dist/linux-2.4.x/linux
Linux version 2.4.19-uc1 (root@TOM) (gcc version 2.95.3 20010315 (release)(ColdFire patches - 20010318 from http://fiddes.net/coldfire/)(uClinux XIP and shared lib patches from http://www.snapgear.com/)) #1 六 5月 15 08:41:00 CST 2004
Processor: Atmel AT91M40xxx revision 0
Architecture: EB01
On node 0 totalpages: 1024
zone(0): 0 pages.
zone(1): 1024 pages.
zone(2): 0 pages.
Kernel command line: root=/dev/rom0
Calibrating delay loop... 12.97 BogoMIPS
Memory: 4MB = 4MB total
Memory: 3036KB available (791K code, 170K data, 40K init)
Dentry cache hash table entries: 512 (order: 0, 4096 bytes)
Inode cache hash table entries: 512 (order: 0, 4096 bytes)
Mount-cache hash table entries: 512 (order: 0, 4096 bytes)
Buffer-cache hash table entries: 1024 (order: 0, 4096 bytes)
Page-cache hash table entries: 1024 (order: 0, 4096 bytes)
POSIX conformance testing by UNIFIX
Linux NET4.0 for Linux 2.4
Based upon Swansea University Computer Society NET3.039
Initializing RT netlink socket
Starting kswapd
Atmel USART driver version 0.99
ttyS0 at 0xfffd0000 (irq = 2) is a builtin Atmel APB USART
ttyS1 at 0xfffcc000 (irq = 3) is a builtin Atmel APB USART
Blkmem copyright 1998,1999 D. Jeff Dionne
Blkmem copyright 1998 Kenneth Albanowski
Blkmem 1 disk images:
0: 1400000-13FFFFF [VIRTUAL 1400000-13FFFFF] (RO)
RAMDISK driver initialized: 16 RAM disks of 4096K size 1024 blocksize
NET4: Linux TCP/IP 1.0 for NET4.0
IP Protocols: ICMP, UDP, TCP
IP: routing cache hash table of 512 buckets, 4Kbytes
TCP: Hash tables configured (established 512 bind 512)
NET4: Unix domain sockets 1.0/SMP for Linux NET4.0.
Blkmem: bad access: block=2, count=2 (pos=800, len=0)
end_request: I/O error, dev 1f:00 (Blkmem), sector 2
EXT2-fs: unable to read superblock
Blkmem: bad access: block=0, count=2 (pos=400, len=0)
end_request: I/O error, dev 1f:00 (Blkmem), sector 0
romfs: unable to read superblock
Kernel panic: VFS: Unable to mount root fs on 1f:00
然后系统挂起没有反应了.
不知改怎么办?求教高手!!
发表于 2004-5-16 10:25:48 | 显示全部楼层
0: 1400000-13FFFFF [VIRTUAL 1400000-13FFFFF] (RO)
13FFFFF不对,
检查一下你的kernel目录下的.config,

FLASH_MEM_BASE=01400000
FLASH_SIZE=00400000
另外skyeye.conf也要匹配
回复

使用道具 举报

发表于 2004-9-14 11:33:20 | 显示全部楼层
请问一下是那个kernel目录啊?
在/uClinux-dist/linux-2.4.x/kernel?下面没有这个.config文件。
另skyeey.conf怎么匹配啊,
请帮个忙,都配置了几天,还是没有启动uclinux,郁闷中....
回复

使用道具 举报

发表于 2004-9-14 14:11:10 | 显示全部楼层
解决了
用以下skyeye.conf
cpu: arm7tdmi

mach: at91

mem_bank: map=M, type=RW, addr=0x00000000, size=0x00004000
mem_bank: map=M, type=RW, addr=0x01000000, size=0x00400000
mem_bank: map=M, type=R,  addr=0x01400000, size=0x00400000, file=./images/romfs.img
mem_bank: map=M, type=RW, addr=0x02000000, size=0x00400000
mem_bank: map=M, type=RW, addr=0x02400000, size=0x00008000
mem_bank: map=M, type=RW, addr=0x04000000, size=0x00400000
mem_bank: map=I, type=RW, addr=0xf0000000, size=0x10000000


不知道为什么昨天不行,今天OK了,什么也没做啊
回复

使用道具 举报

发表于 2004-9-16 11:12:52 | 显示全部楼层
昨天设置的是
mem_bank: map=M, type=RW, addr=0x01300000, size=0x00100000,file=images/romfs.img
与你这次的设置不同。
回复

使用道具 举报

发表于 2004-9-16 18:17:45 | 显示全部楼层
上面的兄弟对skyeye.conf很熟了,谢谢了!
回复

使用道具 举报

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

本版积分规则

GMT+8, 2024-11-6 00:19 , Processed in 0.061769 second(s), 16 queries .

© 2021 Powered by Discuz! X3.5.

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