|
我按照下面的网站的指导
http://blog.chinaunix.net/u1/34474/showart_485837.html
制作了一个initrd.img,用的是busybox-1.10.3和tinylogin-1.4
skyeye模拟mpc8560,使用linux-2.6.22,如果使用testcase的initrd.img,可以正常启动
使用在自己制作的initrd.img在启动的过程中则是如下的信息:
jason@gentoo ~/mpc8560 $ skyeye -e vmlinux
Your elf file is big endian.
arch: ppc
mach info: name mpc8560, mach_init addr 0x809fd21
uart_mod:0, desc_in:, desc_out:, converter:
malloc succ for dpram, dpram=0x80fa308
Load initrd.img to 0x2000000...
exec file "vmlinux"'s format is elf32-big.
load section .text: addr = 0xc0000000 size = 0x001ac048.
load section .rodata: addr = 0xc01ad000 size = 0x00024559.
not load section .pci_fixup: addr = 0xc01d1559 size = 0x00000000 .
not load section .rio_route: addr = 0xc01d1559 size = 0x00000000 .
not load section __ksymtab: addr = 0xc01d1559 size = 0x00000000 .
not load section __ksymtab_gpl: addr = 0xc01d1559 size = 0x00000000 .
not load section __ksymtab_unused: addr = 0xc01d1559 size = 0x00000000 .
not load section __ksymtab_unused_gpl: addr = 0xc01d1559 size = 0x00000000 .
not load section __ksymtab_gpl_future: addr = 0xc01d1559 size = 0x00000000 .
not load section __kcrctab: addr = 0xc01d1559 size = 0x00000000 .
not load section __kcrctab_gpl: addr = 0xc01d1559 size = 0x00000000 .
not load section __kcrctab_unused: addr = 0xc01d1559 size = 0x00000000 .
not load section __kcrctab_unused_gpl: addr = 0xc01d1559 size = 0x00000000 .
not load section __kcrctab_gpl_future: addr = 0xc01d1559 size = 0x00000000 .
load section __param: addr = 0xc01d155c size = 0x00000190.
load section __ex_table: addr = 0xc01d2000 size = 0x00001320.
load section __bug_table: addr = 0xc01d3320 size = 0x00002840.
load section .data: addr = 0xc01d6000 size = 0x00013b74.
load section .data.page_aligned: addr = 0xc01ea000 size = 0x00003000.
load section .data.cacheline_aligned: addr = 0xc01ed000 size = 0x000000c0.
load section .data.init_task: addr = 0xc01ee000 size = 0x00002000.
load section .init.text: addr = 0xc01f0000 size = 0x000165dc.
load section .exit.text: addr = 0xc02065dc size = 0x00000980.
load section .init.data: addr = 0xc0206f60 size = 0x00002368.
load section .init.setup: addr = 0xc02092d0 size = 0x00000270.
load section .initcall.init: addr = 0xc0209540 size = 0x00000188.
load section .con_initcall.init: addr = 0xc02096c8 size = 0x00000004.
not load section .security_initcall.init: addr = 0xc02096cc size = 0x00000000 .
load section __ftr_fixup: addr = 0xc02096cc size = 0x00000060.
load section .init.ramfs: addr = 0xc020a000 size = 0x00000085.
not load section .bss: addr = 0xc020b000 size = 0x000164f8 .
not load section .stab: addr = 0x00000000 size = 0x00000360 .
not load section .PPC.EMB.apuinfo: addr = 0x00000000 size = 0x00000020 .
not load section .stabstr: addr = 0x00000000 size = 0x000004a7 .
not load section .comment: addr = 0x00000000 size = 0x00002412 .
not load section .note.GNU-stack: addr = 0x00000000 size = 0x00000000 .
call ARMul_InitSymTable,kernel filename is vmlinux.
start addr is set to 0xc0000000 by exec file.
Memory CAM mapping: CAM0=64Mb, CAM1=0Mb, CAM2=0Mb residual: 0Mb
Linux version 2.6.22 (jason@gentoo) (gcc version 3.4.3) #1 Sat Jun 7 15:42:15 CST 2008
Zone PFN ranges:
DMA 0 -> 16384
Normal 16384 -> 16384
early_node_map[1] active PFN ranges
0: 0 -> 16384
Built 1 zonelists. Total pages: 16256
Kernel command line: root=/dev/ram0 console=ttyCPM0 mem=64M
OpenPIC Version 1.2 (1 CPUs and 60 IRQ sources) at fdf80000
PID hash table entries: 256 (order: 8, 1024 bytes)
cpm_uart: console: compat mode
Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
Memory: 54528k available (1716k kernel code, 360k data, 108k init, 0k highmem)
Mount-cache hash table entries: 512
NET: Registered protocol family 16
Generic PHY: Registered new driver
NET: Registered protocol family 2
IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
TCP established hash table entries: 2048 (order: 2, 16384 bytes)
TCP bind hash table entries: 2048 (order: 1, 8192 bytes)
TCP: Hash tables configured (established 2048 bind 204
TCP reno registered
checking if image is initramfs...it isn't (bad gzip magic numbers); looks like an initrd
Freeing initrd memory: 8192k freed
io scheduler noop registered
io scheduler anticipatory registered
io scheduler deadline registered
io scheduler cfq registered (default)
Generic RTC Driver v1.07
Serial: CPM driver $Revision: 0.02 $
cpm_uart: WARNING: no UART devices found on platform bus!
cpm_uart: the driver will guess configuration, but this mode is no longer supported.
ttyCPM0 at MMIO 0xfdfd1a00 (irq = 40) is a CPM UART
ttyCPM1 at MMIO 0xfdfd1a20 (irq = 41) is a CPM UART
RAMDISK driver initialized: 16 RAM disks of 32768K size 1024 blocksize
loop: module loaded
i2c /dev entries driver
TCP cubic registered
NET: Registered protocol family 1
NET: Registered protocol family 17
RAMDISK: ext2 filesystem found at block 0
RAMDISK: Loading 8192KiB [1 disk] into ram disk... done.
VFS: Mounted root (ext2 filesystem) readonly.
Freeing unused kernel memory: 108k init
[PPC/DEC] Bad opcode: 11c35b21 (4:400)
pc=0x30011fec
这是咋回事呢?谢谢! |
|