QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 1786|回复: 2

skyeye运行s3c2410的问题。

[复制链接]
发表于 2007-2-10 16:07:17 | 显示全部楼层 |阅读模式
我用arm-linux-gcc version 2.95.3 20010315 (release)编译了
linux-2.4.18-rmk7-pxa1-mz4.tar.gz包,skyeye.conf取自于testsuite2.1包中testsuite2/s3c2410/2.4.18/skyeye.conf,具体配置如下:
[root@rh9-armlinux-22 kernel]# more skyeye.conf
#skyeye config file sample
cpu:  arm920t
mach: s3c2410x
#physical memory
#mem_bank: map=M, type=RW, addr=0x20000000, size=0x01000000
mem_bank: map=M, type=RW, addr=0xc0000000, size=0x01000000
mem_bank: map=M, type=RW, addr=0xc1000000, size=0x00600000
mem_bank: map=M, type=RW, addr=0xc1600000, size=0x00a00000
#all peripherals I/O mapping area
#mem_bank: map=I, type=RW, addr=0xfefa0000, size=0x00060000
mem_bank: map=I, type=RW, addr=0x48000000, size=0x20000000
mem_bank: map=I, type=RW, addr=0x19000300, size=0x00000020
net: type=cs8900a, base=0x19000300, size=0x20,int=9, mac=0:4:3:2:1:f, ethmod=tuntap, hostip=10.0.0.1
#lcd:type=s3c2410x,mod=gtk
#dbct:state=on
运行时候出现下面的问题:
[root@rh9-armlinux-22 kernel]# skyeye vmlinux
***********************************************************************
****                                                               ****
****   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"...(no debugging symbols found)...
(SkyEye) tar sim
cpu info: armv4, arm920t, 41009200, ff00fff0, 2
mach info: name s3c2410x, mach_init addr 0x8166774
nic[0] info: state=0, ethmod num=1, mac addr=0:4:3:2:1:f, hostip=10.0.0.1
SKYEYE: use arm920t mmu ops
Connected to the simulator.
(SkyEye) load
Loading section .init, size 0xb000 vma 0xc0008000
Loading section .text, size 0xe6de4 vma 0xc0013000
Loading section __ex_table, size 0x968 vma 0xc00f9df0
Loading section .data, size 0xc803 vma 0xc00fc000
Start address 0xc0008000
Transfer rate: 8354424 bits/sec.
(SkyEye) r
Starting program: /root/usr/src/kernel/vmlinux
Error: a

应该是读取architecture时出现的问题,现在我的问题是:
我要把linux-2.4.18-rmk7-pxa1-mz4移植到skyeye上需要修改哪些地方?
谢谢!
发表于 2007-2-10 20:25:59 | 显示全部楼层
You can modify skyeye source file. in arch / arm / mach / skyeye_mach_s3c2410x.c as the following:

609         state->Reg[1] = 193;        //for SMDK2410
  610         //state->Reg[1] = 395;  //for SMDK2410TK
  611         //state->Reg[1] = 241;    //ARCH_S3C2440

You need to modify the value of state->Reg[1] to some value.
回复

使用道具 举报

 楼主| 发表于 2007-2-10 22:15:09 | 显示全部楼层
我更改了state-->Red[1]=193
编译运行后又出现下面的问题:
[root@rh9-armlinux-22 kernel]# skyeye vmlinux
***********************************************************************
****                                                               ****
****   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: armv4, arm920t, 41009200, ff00fff0, 2
mach info: name s3c2410x, mach_init addr 0x8166774
nic[0] info: state=0, ethmod num=1, mac addr=0:4:3:2:1:f, hostip=10.0.0.1
SKYEYE: use arm920t mmu ops
Connected to the simulator.
(SkyEye) load
Loading section .init, size 0xb000 vma 0xc0008000
Loading section .text, size 0xe97e4 vma 0xc0013000
Loading section __ex_table, size 0x968 vma 0xc00fc7f0
Loading section .data, size 0xc803 vma 0xc00fe000
Start address 0xc0008000
Transfer rate: 8440440 bits in <1 sec.
(SkyEye) r
Starting program: /root/usr/src/kernel/vmlinux

Program received signal SIGINT, Interrupt.
0x00000000 in ?? ()
(SkyEye)
回复

使用道具 举报

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

本版积分规则

GMT+8, 2024-11-26 16:16 , Processed in 0.085917 second(s), 16 queries .

© 2021 Powered by Discuz! X3.5.

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