|
新手请教:
我自己新编译的内核为2.4.8.1,用的是arm.cirrus.com上提供的cirrus-linux-1.04.patch的针对cirrus logic的内核补丁。
交叉编译环境为自己编译的工具链:
binutils-2.15
gcc-2.4.4
glibc-2.2.5
glibc-linuxthreads-2.2.5
工具链是根据http://kegel.com/crosstool/上提供的crosstool-0.38的脚本编译的。
工具链编译很正常,而且,用编译好的工具链编译我自己的内核也能编译成功,我想验证一下我的内核和工具链是不是工作正常,所以,把我内核产生的vmlinux弄到skyeye 1.0里边验证一下。
但是现在出现了一个问题,我的2.6.8.1内核在skyeye 1.0里边运行不正常,跑一段之后就挂掉了。
在skyeye的skyeye.conf文件是testsuite 2.0里边的ep9312的skyeye.conf
################skyeye.conf#################
cpu: arm920t
mach: ep9312
#mem_bank: map=F, type=R, addr=0x10000000, size=0x00080000, file=./redboot.bin,boot=yes
mem_bank: map=I, type=RW, addr=0x80000000, size=0x000d0000
mem_bank: map=I, type=RW, addr=0x80800000, size=0x00150000
mem_bank: map=I, type=RW, addr=0x80950000, size=0x00000008
mem_bank: map=M, type=RW, addr=0xC0000000, size=0x01000000
mem_bank: map=M, type=RW, addr=0xC1000000, size=0x01000000,file=./initrd.img
#log: logon=1, logfile=/tmp/test.log, start=0x100000, end=0x100100
#dbct:state=on
#lcd: state=on
#net: state=on, mac=0:4:3:2:1:f, #ethmod=tuntap,hostip=192.168.1.235
用skyeye -c skyeye.conf -e vmlinux 开始测试我的内核
输出信息如下:
------------------------- SkyEye -V1.0 ---------------------------
Usage: SkyEye [options] program [program args]
Default mode is STANDALONE mode
------------------------------------------------------------------
Options:
-e exec-file the (ELF executable format)kernel file name.
-d in GDB Server mode (can be connected by GDB).
-c config-file the skyeye configure file name.
-h This Help Display
------------------------------------------------------------------
cpu info: armv4, arm920t, 41009200, ff00fff0, 2
mach info: name ep9312, mach_init addr 0x8093044
SKYEYE: use arm920t mmu ops
Linux version 2.6.8.1 ([email protected]) (gcc version 3.4.4) #18 Fri Nov 4 12:05:13 CST 2005
CPU: ARM920Tid(wb) [41009200] revision 0 (ARMvundefined/unknown)
CPU: D VIVT write-back cache
CPU: I cache: 16384 bytes, associativity 64, 32 byte lines, 8 sets
CPU: D cache: 16384 bytes, associativity 64, 32 byte lines, 8 sets
Machine: edb9312
Warning: bad configuration page, trying to continue
Memory policy: ECC disabled, Data cache writeback
Built 1 zonelists
Kernel command line: root=/dev/ram initrd=0xC1000000,0x200000 rw console=ttyAM0 mem=32M
PID hash table entries: 256 (order 8: 2048 bytes
Console: colour dummy device 80x30
Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
Memory: 32MB = 32MB total
Memory: 27728KB available (1930K code, 575K data, 84K init)
Calibrating delay loop... 25.80 BogoMIPS
Mount-cache hash table entries: 512 (order: 0, 4096 bytes)
CPU: Testing write buffer coherency: ok
checking if image is initramfs...it isn't (bad gzip magic numbers); looks like an initrd
Freeing initrd memory: 2048K
NET: Registered protocol family 16
我的内核运行到这里就不跑下去了,我也查了很久没查到是什么问题。
但是,应该肯定的是,内核的前边一部份是跑起来了,但是为什么不接着跑下去,这个我就搞不清楚了。
哪位仁兄弄过9312板子的,给点建议好不?
或者是能把你的工具链和内核版本和补丁包报一下。。。。。
小弟不胜感激!! |
|