metop 发表于 2005-1-19 14:23:11

linux-2.6.8 for lubbock启动错误

编译linux-2.6.8 for lubbock,已经修改了CMDLINE等参数选项,initrd.img和skyeye.conf是拷贝的testsuite中的,
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=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

使用zImage启动后,系统在出现下列信息后hang:
RAMDISK: ext2 filesystem found at block 0
RAMDISK: Loading 4096 blocks into ram disk... done.
EXT2-fs warning: mounting unchecked fs, running e2fsck is recommended
VFS: Mounted root (ext2 filesystem).
Freeing init memory: 64K

zImage也没有调试信息,不知道如何单步调试?

如果修改skyeye.conf使用vmlinux启动,
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

则在出现下列信息后hang:
(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 0x10000 vma 0xc0008000
Loading section .text, size 0xff99c vma 0xc0018000
Loading section __ex_table, size 0x888 vma 0xc01179a0
Loading section __ksymtab, size 0x2a38 vma 0xc0118228
Loading section __ksymtab_gpl, size 0x108 vma 0xc011ac60
Loading section __ksymtab_strings, size 0x6948 vma 0xc011ad68
Loading section .data, size 0x31870 vma 0xc0122000
Start address 0xc0008000
Transfer rate: 10844384 bits/sec.
(SkyEye) run
Starting program: /mnt/hda2/tmp/test/vmlinux

请各位指教一二,谢谢

oyangjian 发表于 2005-1-19 14:33:32

你的文件系统没有安装上。如果你要调试,你必须 -g在make menuconfig中有一项市可以选择debug的。

cuinantrue 发表于 2005-1-19 15:02:25

你编译内核的时候RAMDISK指定大小了吗?还有CMDLINE那儿你注意了吗?

metop 发表于 2005-1-19 15:04:57

我的CMDLINE如下:
CONFIG_CMDLINE="root=/dev/ram rw initrd=0xa1000000,0x00400000 console=ttyS0,115200 console=tty0 mem=64M"
有什么不对的地方吗?
initrd和ramdisk的驱动肯定已经包含了啊?

cuinantrue 发表于 2005-1-19 18:36:02

你把size=0x00400000改为0x00800000试一下

metop 发表于 2005-1-19 20:56:53

搞定了,去掉console=tty0就可以了,可能是因为2.6.8中的framebuffer还无法在skyeye使用
页: [1]
查看完整版本: linux-2.6.8 for lubbock启动错误