|
楼主 |
发表于 2007-12-4 13:30:55
|
显示全部楼层
There is a error like the following,
Why?
and
What should I do to correct it?
When I use the vmlinux in testsuit, it is OK,
but when I run the linux compiled by me
there is a error.
I think it may be in the linux config,but I don't know
where I should change.
Would you like to tell me?
I use
Redhat Linux 2.4 environment,
arm-linux-tools-20061213.tar.gz
Linux 2.6.23 and Linux 2.6.20 kernel
Then
1 export ARCH=arm
2 export CROSSCOMPILE=arm-linux-
3 modify [include/asm-arm/arch-pxa/memory.h:42]
> #define PHYS_OFFSET UL(0xa0000000)
> to
> #define PHYS_OFFSET UL(0xc0000000)
4 make lubbock_defconfig
5 make menuconfig
modify:root/dev/ram rw initrd=0x08000000,0x00800000 console=ttyS0 mem=64M
--->修改
[ ]RamDisk support
为RamDisk support
--->修改
(4096) Default Ram disk size(kbytes)
为
(8192) Default Ram disk size(kbytes)
--->修改
[ ] Initial Ram disk (initrd) support
为 Initial Ram disk (initrd) support
Then make zImage
There is no error in compile.
Then
use init.img and skyeye.conf in testsuit
then
skyeye -e vmlinux
[root@nagisa 2.6.x]# skyeye -e vmlinux
big_endian is false.
arch: arm
cpu info: xscale, pxa25x, 69052100, fffffff0, 2
mach info: name pxa_lubbock, mach_init addr 0x808259c
uart_mod:0, desc_in:, desc_out:, converter:
SKYEYE: use xscale mmu ops
Loaded RAM ./ramdisk.img
exec file "vmlinux"'s format is elf32-little.
load section .init: addr = 0xc0008000 size =
0x00015000.
load section .text: addr = 0xc001d000 size =
0x001f2620.
not load section .rodata: addr = 0xc0210000 size =
0x00000000 .
not load section .pci_fixup: addr = 0xc0210000 size =
0x00000000 .
not load section .rio_route: addr = 0xc0210000 size =
0x00000000 .
load section __ksymtab: addr = 0xc0210000 size =
0x00003b98.
load section __ksymtab_gpl: addr = 0xc0213b98 size =
0x00000d40.
not load section __ksymtab_unused: addr = 0xc02148d8
size = 0x00000000 .
not load section __ksymtab_unused_gpl: addr =
0xc02148d8 size = 0x00000000 .
not load section __ksymtab_gpl_future: addr =
0xc02148d8 size = 0x00000000 .
not load section __kcrctab: addr = 0xc02148d8 size =
0x00000000 .
not load section __kcrctab_gpl: addr = 0xc02148d8
size = 0x00000000 .
not load section __kcrctab_unused: addr = 0xc02148d8
size = 0x00000000 .
not load section __kcrctab_unused_gpl: addr =
0xc02148d8 size = 0x00000000 .
not load section __kcrctab_gpl_future: addr =
0xc02148d8 size = 0x00000000 .
load section __ksymtab_strings: addr = 0xc02148d8
size = 0x0000b6e8.
load section __param: addr = 0xc021ffc0 size =
0x00000320.
load section .data: addr = 0xc0222000 size =
0x0001af7c.
not load section .bss: addr = 0xc023cf80 size =
0x0001412c .
not load section .comment: addr = 0x00000000 size =
0x000023dc .
not load section .note.gnu.arm.ident: addr =
0x00000000 size = 0x0000001c .
not load section .debug_abbrev: addr = 0x00000000
size = 0x0007ed5a .
not load section .debug_info: addr = 0x00000000 size
= 0x00eb9626 .
not load section .debug_line: addr = 0x00000000 size
= 0x000ff64b .
not load section .debug_pubnames: addr = 0x00000000
size = 0x000193bb .
not load section .debug_str: addr = 0x00000000 size =
0x000655cb .
not load section .debug_aranges: addr = 0x00000000
size = 0x00004d38 .
not load section .debug_frame: addr = 0x00000000 size
= 0x000463fc .
not load section .debug_ranges: addr = 0x00000000
size = 0x0001b648 .
call ARMul_InitSymTable,kernel filename is vmlinux.
start addr is set to 0xc0008000 by exec file.
`Linux version 2.6.20 ([email protected])
(gcc version 3.4.3) #2 Sun Dec 2 17:17:56 CST 2007
CPU: XScale-PXA250 [69052100] revision 0 (ARMv5TE),
cr=00003907
Machine: Intel DBPXA250 Development Platform (aka
Lubbock)
Memory policy: ECC disabled, Data cache writeback
Memory clock: 99.53MHz (*27)
Run Mode clock: 99.53MHz (*1)
Turbo Mode clock: 99.53MHz (*1.0, inactive)
CPU0: D VIVT undefined 5 cache
CPU0: I cache: 32768 bytes, associativity 32, 32 byte
lines, 32 sets
CPU0: D cache: 32768 bytes, associativity 32, 32 byte
lines, 32 sets
Built 1 zonelists. Total pages: 16256
Kernel command line: root=/dev/ram0 console=ttyS0
initrd=0xc0800000,0x00800000 rw mem=64M
options=mode:640x480-8
PID hash table entries: 256 (order: 8, 1024 bytes)
start_kernel(): bug: interrupts were enabled early
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: 64MB = 64MB total
Memory: 54332KB available (2064K code, 188K data, 84K
init)
Mount-cache hash table entries: 512
CPU: Testing write buffer coherency: ok
NET: Registered protocol family 16
Lubbock configured to boot from ROM (bank 0)
NET: Registered protocol family 2
IP route cache hash table entries: 1024 (order: 0,
4096 bytes)
TCP established hash table entries: 2048 (order: 1,
8192 bytes)
TCP bind hash table entries: 1024 (order: 0, 4096
bytes)
TCP: Hash tables configured (established 2048 bind
1024)
TCP reno registered
Unpacking initramfs...<0>Kernel panic - not syncing:
bad gzip magic numbers
[ 本帖最后由 snowman2008 于 2007-12-4 13:48 编辑 ] |
|