QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 780|回复: 0

求斑竹指点怎样调试2.6 for xsale的vmlinux

[复制链接]
发表于 2005-1-19 21:50:42 | 显示全部楼层 |阅读模式
skyeye-0.8.6+linux 2.6.8 for lubbock

linux采用如下方法编译的
make ARCH=arm lubbock_defconfig
make ARCH=arm menuconfig
make ARCH=arm CROSS_COMPILE=/path/to/arm-linux- zImage

可以采用如下skyeye.conf运行zImage
cpu: xscale
mach: pxa_lubbock
mem_bank: map=I, type=RW, addr=0x40000000, size=0x0c000000
mem_bank: map=M, type=RW, addr=0xa0000000, size=0x00200000
mem_bank: map=M, type=RW, addr=0xa0200000, size=0x00100000, file=./arch/arm/boot/zImage, boot=yes
mem_bank: map=M, type=RW, addr=0xa0300000, size=0x00d00000
mem_bank: map=M, type=RW, addr=0xa1000000, size=0x00800000, file=./initrd4M.img
mem_bank: map=M, type=RW, addr=0xa1800000, size=0x02800000

但是如果我想要按照源代码单步执行内核,是不是只能运行vmlinux文件呢?zImage中的调试信息已经都被strip掉了,我修改skyeye.conf如下
cpu: xscale
mach: pxa_lubbock
mem_bank: map=I, type=RW, addr=0x40000000, size=0x0c000000
mem_bank: map=M, type=RW, addr=0xa0000000, size=0x01000000
mem_bank: map=M, type=RW, addr=0xa1000000, size=0x00800000, file=./initrd4M.img
mem_bank: map=M, type=RW, addr=0xa1800000, size=0x02800000
然后运行:
#skyeye vmlinux
...
(SkyEye) target sim
cpu info: xscale, xscale, 69052100, fffffff0, 2
mach info: name pxa_lubbock, mach_init addr 0x814a3dc
SKYEYE: use xscale mmu ops
Loaded ROM ./initrd4M.img
Connected to the simulator.
(SkyEye) load
Loading section .init, size 0x12000 vma 0xc0008000
Loading section .text, size 0xead84 vma 0xc001a000
Loading section __ex_table, size 0x890 vma 0xc0104d90
Loading section __ksymtab, size 0x29d8 vma 0xc0105620
Loading section __ksymtab_gpl, size 0xb8 vma 0xc0107ff8
Loading section __ksymtab_strings, size 0x66f0 vma 0xc01080b0
Loading section .data, size 0x2f5e0 vma 0xc0110000
Start address 0xc0008000
Transfer rate: 10152864 bits in <1 sec.
(SkyEye) r
Starting program: /mnt/hda2/tmp/linux-2.6.8/vmlinux
(没有响应了)

该怎么办呢?大家帮个忙吧,谢谢
您需要登录后才可以回帖 登录 | 注册

本版积分规则

GMT+8, 2024-11-5 18:57 , Processed in 0.056248 second(s), 15 queries .

© 2021 Powered by Discuz! X3.5.

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