QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 1608|回复: 9

新手,skyeye上运行uclinux的问题!帮忙看看啊!!

[复制链接]
发表于 2007-1-25 21:15:57 | 显示全部楼层 |阅读模式
uclinux版本:
linux-2.4.24内核 +uClinux-2.4.24-uc0.diff.gz补丁

skyeye版本:
SkyEye  Simulator Ver 0.9.8 with  GDB/Insight 5.3 Interface

skyeye.conf :
cpu:arm7tdmi
mach:s3c4510b
mem_bank: map=M, type=R,  addr=0x00000000, size=0x00200000
mem_bank: map=M, type=RW, addr=0x01000000, size=0x00800000
mem_bank: map=I, type=RW, addr=0x03ff0000, size=0x00010000

arm-elf-gcc:
[root@rhle-ws3-up6 uClinux-dist]# arm-elf-gcc -v
Reading specs from /usr/local/lib/gcc-lib/arm-elf/2.95.3/specs
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/)

操作系统版本:
Linux rhle-ws3-up6 2.4.21-37.EL #1 Wed Sep 7 13:37:20 EDT 2005 i686 athlon i386 GNU/Linux

运行时出现的状况:
[root@rhle-ws3-up6 uClinux-dist]# skyeye linux-2.4.x/linux
***********************************************************************
****                                                               ****
****   SkyEye  Simulator Ver 0.9.8 with  GDB/Insight 5.3 Interface ****
****                                                               ****
***********************************************************************
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.
This SkyEye was configured as "--host=i686-pc-linux-gnu --target=arm-elf"...
(SkyEye) tar sim
cpu info: armv3, arm7tdmi, 41007700, fff8ff00, 0
mach info: name s3c4510b, mach_init addr 0x816243c
SKYEYE: use arm7100 mmu ops
Connected to the simulator.
(SkyEye)load

SKYEYE: WARNING: illegal write byte to 0xb7b5 of 0xa9 @ 0x0
SKYEYE: WARNING: illegal write byte to 0xb7b6 of 0x2 @ 0x0
SKYEYE: WARNING: illegal write byte to 0xb7b7 of 0xeb @ 0x0
SKYEYE: WARNING: illegal write byte to 0xb7b8 of 0xc @ 0x0
SKYEYE: WARNING: illegal write byte to 0xb7b9 of 0xa0 @ 0x0
SKYEYE: WARNING: illegal write byte to 0xb7ba of 0x84 @ 0x0
SKYEYE: WARNING: illegal write byte to 0xb7bb of 0xe5 @ 0x0
SKYEYE: WARNING: illegal write byte to 0xb7bc of 0x1 @ 0x0
SKYEYE: WARNING: illegal write byte to 0xb7bd of 0x0 @ 0x0
SKYEYE: WARNING: illegal write byte to 0xb7be of 0xa0 @ 0x0
SKYEYE: WARNING: illegal write byte to 0xb7bf of 0xe3 @ 0x0
SKYEYE: WARNING: illegal write byte to 0xb7c0 of 0x8 @ 0x0
SKYEYE: WARNING: illegal write byte to 0xb7c1 of 0x60 @ 0x0
SKYEYE: WARNING: illegal write byte to 0xb7c2 of 0x84 @ 0x0
SKYEYE: WARNING: illegal write byte to 0xb7c3 of 0xe5 @ 0x0
SKYEYE: WARNING: illegal write byte to 0xb7c4 of 0x7 @ 0x0
SKYEYE: WARNING: illegal write byte to 0xb7c5 of 0x0 @ 0x0
SKYEYE: WARNING: illegal write byte to 0xb7c6 of 0x0 @ 0x0
SKYEYE: WARNING: illegal write byte to 0xb7c7 of 0xea @ 0x0
SKYEYE: WARNING: illegal write byte to 0xb7c8 of 0x10 @ 0x0
SKYEYE: WARNING: illegal write byte to 0xb7c9 of 0x30 @ 0x0
SKYEYE: WARNING: illegal write byte to 0xb7ca of 0x9f @ 0x0
SKYEYE: WARNING: illegal write byte to 0xb7cb of 0xe5 @ 0x0
SKYEYE: WARNING: illegal write byte to 0xb7cc of 0x1 @ 0x0
SKYEYE: WARNING: illegal write byte to 0xb7cd of 0x0 @ 0x0
SKYEYE: WARNING: illegal write byte to 0xb7ce of 0xa0 @ 0x0
SKYEYE: WARNING: illegal write byte to 0xb7cf of 0xe3 @ 0x0
SKYEYE: WARNING: illegal write byte to 0xb7d0 of 0x0 @ 0x0
SKYEYE: WARNING: illegal write byte to 0xb7d1 of 0x50 @ 0x0
SKYEYE: WARNING: illegal write byte to 0xb7d2 of 0x83 @ 0x0
SKYEYE: WARNING: illegal write byte to 0xb7d3 of 0xe5 @ 0x0
SKYEYE: WARNING: illegal write byte to 0xb7d4 of 0x3 @ 0x0
SKYEYE: WARNING: illegal write byte to 0xb7d5 of 0x0 @ 0x0
SKYEYE: WARNING: illegal write byte to 0xb7d6 of 0x0 @ 0x0
SKYEYE: WARNING: illegal write byte to 0xb7d7 of 0xea @ 0x0
SKYEYE: WARNING: illegal write byte to 0xb7d8 of 0x1c @ 0x0
SKYEYE: WARNING: illegal write byte to 0xb7d9 of 0xbd @ 0x0
SKYEYE: WARNING: illegal write byte to 0xb7da of 0xb @ 0x0
SKYEYE: WARNING: illegal write byte to 0xb7db of 0x0 @ 0x0
SKYEYE: WARNING: illegal wr
[10]+  Stopped                 skyeye linux-2.4.x/linux



以上问题是怎么回事呀,我试了好几个版本都这样,S3C44B0也试过,请高手帮忙指点一下!!!!谢谢。
发表于 2007-1-26 14:55:03 | 显示全部楼层
That means you try to write some data to 0x0 , but mem at 0x0 is read-only according to your skyeye.conf.So there is probably something wrong in your linux image or your skyeye.conf .
回复

使用道具 举报

 楼主| 发表于 2007-1-26 22:29:45 | 显示全部楼层
Aha,you are right,thanks!but,when i modify the attribute of memory,some error occured :

[root@rhle-ws3-up6 uClinux-dist]# skyeye linux
***********************************************************************
****                                                               ****
****   SkyEye  Simulator Ver 0.9.8 with  GDB/Insight 5.3 Interface ****
****                                                               ****
***********************************************************************
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.
This SkyEye was configured as "--host=i686-pc-linux-gnu --target=arm-elf"...
(SkyEye) tar sim
cpu info: armv3, arm7tdmi, 41007700, fff8ff00, 0
mach info: name s3c4510b, mach_init addr 0x816243c
SKYEYE: use arm7100 mmu ops
Connected to the simulator.
(SkyEye) load
Loading section .init, size 0xa000 vma 0x8000
Loading section .text, size 0x1ab618 vma 0x12000
Loading section .data, size 0x7bdc vma 0x1be000
Start address 0x8000
Transfer rate: 14585760 bits in <1 sec.
(SkyEye) r
Starting program: /root/uClinux-dist/linux
Linux version 2.4.24-uc0 (root@rhle-ws3-up6) (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/)) #2 五 1月 26 22:14:08 CST 2007
Processor: Samsung S3C4510B revision 6
Architecture: SNDS100
On node 0 totalpages: 2048
zone(0): 0 pages.
zone(1): 2048 pages.
zone(2): 0 pages.
Kernel command line: root=/dev/rom0
Calibrating delay loop... 20.78 BogoMIPS
Memory: 8MB = 8MB total
Memory: 6152KB available (1709K code, 158K data, 40K init)
Dentry cache hash table entries: 1024 (order: 1, 8192 bytes)
Inode cache hash table entries: 512 (order: 0, 4096 bytes)
Mount cache hash table entries: 512 (order: 0, 4096 bytes)
Kernel panic: Can't create rootfs
In idle task - not syncing
sim_info called

Program received signal SIGINT, Interrupt.
panic (fmt=0xbd368 "Can't create rootfs") at panic.c:107
107             for(;;) {
(SkyEye)


why?????
回复

使用道具 举报

 楼主| 发表于 2007-1-26 22:32:03 | 显示全部楼层
[root@rhle-ws3-up6 uClinux-dist]# more skyeye.conf
#cpu: arm7tdmi
#mach: s3c44b0
#mem_bank: map=M, type=R, addr=0x00000000,size=0x00200000
#mem_bank: map=M, type=RW,addr=0x0c000000,size=0x01000000
#mem_bank: map=I, type=RW,addr=0x01c00000,size=0x00400000

cpu:arm7tdmi
mach:s3c4510b
mem_bank: map=M, type=RW,  addr=0x00000000, size=0x00200000
mem_bank: map=M, type=RW, addr=0x01000000, size=0x00800000
mem_bank: map=I, type=RW, addr=0x03ff0000, size=0x00010000
回复

使用道具 举报

发表于 2007-1-27 12:39:16 | 显示全部楼层
Probably your kernel can not find your filesystem.So you should tell kernel where is filesystem.
回复

使用道具 举报

 楼主| 发表于 2007-1-30 20:52:59 | 显示全部楼层
我试了其他的版本,但也出现以下错误,下面的错误又是怎么产生的?
针对找不文件系统的问题我该怎么做?我已经试了三个2.4版本,都出现这样那样的问题。

Starting program: /root/uClinux-dist/linux
Linux version 2.4.24-uc1 (root@rhle-ws3-up6) (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/)) #13 二 1月 30 20:31:40 CST 2007
Processor: Samsung S3C4510B revision 6
Architecture: SNDS100
On node 0 totalpages: 2048
zone(0): 0 pages.
zone(1): 2048 pages.
zone(2): 0 pages.
Kernel command line: root=/dev/rom0
Calibrating delay loop... 20.78 BogoMIPS
Memory: 8MB = 8MB total
Memory: 6152KB available (1709K code, 158K data, 40K init)
Dentry cache hash table entries: 1024 (order: 1, 8192 bytes)
Inode cache hash table entries: 512 (order: 0, 4096 bytes)
Mount cache hash table entries: 512 (order: 0, 4096 bytes)
Kernel panic: Can't create rootfs
In idle task - not syncing
sim_info called

Program received signal SIGINT, Interrupt.
panic (fmt=0xbd3a8 "Can't create rootfs") at panic.c:107
107             for(;;) {
(SkyEye)
回复

使用道具 举报

 楼主| 发表于 2007-1-31 19:34:33 | 显示全部楼层
有人没?????谁能告诉我一下啊!!!郁闷!
回复

使用道具 举报

发表于 2007-2-2 16:54:04 | 显示全部楼层
楼主 ,我遇到和你一样的问题了,SKYEYE: WARNING: illegal write byte to 0xb7b5 of 0xa9 @ 0x0
这个错误你是如何解决的?
回复

使用道具 举报

 楼主| 发表于 2007-2-2 22:41:56 | 显示全部楼层
把type=R属性改为type=RW就没有上面的问题了
回复

使用道具 举报

发表于 2007-2-3 01:19:01 | 显示全部楼层
谢谢哈
回复

使用道具 举报

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

本版积分规则

GMT+8, 2024-11-23 05:33 , Processed in 0.080118 second(s), 16 queries .

© 2021 Powered by Discuz! X3.5.

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