|
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
(没有响应了)
该怎么办呢?大家帮个忙吧,谢谢 |
|