|
模拟mpc8560的skyeye配置文件应该如何写呢?在网上搜到一个,如下:
# skyeye config file sample
arch: ppc
#cpu: e500(这个是我注释掉了,根据运行skyeye的提示,好像不需要指定cpu)
mach:mpc8560
mem_bank: map=M, type=RW, addr=0xFF000000, size=0x1000000
#log: logon=0, logfile=./test.log, start=0xC0000000, end=0xB0000000
首次执行skyeye,结果如下:
[root@localhost u-boot-2009.11-rc2]# ./skyeye -e u-boot
SkyEye is an Open Source project under GPL. All rights of different parts or modules are reserved by their author. Any modification or redistributions of SkyEye should note remove or modify the annoucement of SkyEye copyright.
Get more information about it, please visit the homepage http://www.skyeye.org.
Type "help" to get command list.
(skyeye)start
arch: ppc
In do_mach_option, mach info: name mpc8560, mach_init addr 0x4f47ed0
1 core is initialized.
Can not open initrd file initrd.img.
In skyeye_exit, Some unknown exception happened.
exec file "u-boot"'s format is elf32-i386.
load section .text: addr = 0xfff80000 size = 0x0002c520.
load section .rodata: addr = 0xfffac520 size = 0x00009ec8.
load section .reloc: addr = 0xfffb6400 size = 0x00002434.
load section .data: addr = 0xfffb8834 size = 0x00000d84.
load section .data.rel.ro.local: addr = 0xfffb95b8 size = 0x00000060.
load section .data.rel: addr = 0xfffb9618 size = 0x00000a90.
load section .data.rel.ro: addr = 0xfffba0a8 size = 0x0000004c.
load section .data.rel.local: addr = 0xfffba0f8 size = 0x00000ec8.
load section .u_boot_cmd: addr = 0xfffbafc0 size = 0x00000540.
load section .bootpg: addr = 0xfffff000 size = 0x000001cc.
load section .resetvec: addr = 0xfffffffc size = 0x00000004.
not load section .bss: addr = 0x00000010 size = 0x000059cc .
not load section .PPC.EMB.apuinfo: addr = 0x00000000 size = 0x00000020 .
not load section .debug_line: addr = 0x00000000 size = 0x0000bac0 .
not load section .debug_info: addr = 0x00000000 size = 0x0003bfcd .
not load section .debug_abbrev: addr = 0x00000000 size = 0x0000c491 .
not load section .debug_aranges: addr = 0x00000000 size = 0x00000d48 .
not load section .debug_ranges: addr = 0x00000000 size = 0x000035d8 .
not load section .debug_frame: addr = 0x00000000 size = 0x00006ab4 .
not load section .debug_loc: addr = 0x00000000 size = 0x00021fa7 .
not load section .debug_pubnames: addr = 0x00000000 size = 0x0000424d .
not load section .debug_str: addr = 0x00000000 size = 0x00009e59 .
not load section .comment: addr = 0x00000000 size = 0x00000762 .
In SIM_start, Set PC to the address 0xfff80000
不明白skyeye为啥需要initrd.img,先不管它,我直接把u-boot改名为initrd.img,然后再运行:
[root@localhost u-boot-2009.11-rc2]# mv u-boot initrd.img
[root@localhost u-boot-2009.11-rc2]# ./skyeye -e initrd.img
SkyEye is an Open Source project under GPL. All rights of different parts or modules are reserved by their author. Any modification or redistributions of SkyEye should note remove or modify the annoucement of SkyEye copyright.
Get more information about it, please visit the homepage http://www.skyeye.org.
Type "help" to get command list.
(skyeye)start
arch: ppc
In do_mach_option, mach info: name mpc8560, mach_init addr 0x539bed0
1 core is initialized.
Load initrd.img to 0x2000000...
exec file "initrd.img"'s format is elf32-i386.
load section .text: addr = 0xfff80000 size = 0x0002c520.
load section .rodata: addr = 0xfffac520 size = 0x00009ec8.
load section .reloc: addr = 0xfffb6400 size = 0x00002434.
load section .data: addr = 0xfffb8834 size = 0x00000d84.
load section .data.rel.ro.local: addr = 0xfffb95b8 size = 0x00000060.
load section .data.rel: addr = 0xfffb9618 size = 0x00000a90.
load section .data.rel.ro: addr = 0xfffba0a8 size = 0x0000004c.
load section .data.rel.local: addr = 0xfffba0f8 size = 0x00000ec8.
load section .u_boot_cmd: addr = 0xfffbafc0 size = 0x00000540.
load section .bootpg: addr = 0xfffff000 size = 0x000001cc.
load section .resetvec: addr = 0xfffffffc size = 0x00000004.
not load section .bss: addr = 0x00000010 size = 0x000059cc .
not load section .PPC.EMB.apuinfo: addr = 0x00000000 size = 0x00000020 .
not load section .debug_line: addr = 0x00000000 size = 0x0000bac0 .
not load section .debug_info: addr = 0x00000000 size = 0x0003bfcd .
not load section .debug_abbrev: addr = 0x00000000 size = 0x0000c491 .
not load section .debug_aranges: addr = 0x00000000 size = 0x00000d48 .
not load section .debug_ranges: addr = 0x00000000 size = 0x000035d8 .
not load section .debug_frame: addr = 0x00000000 size = 0x00006ab4 .
not load section .debug_loc: addr = 0x00000000 size = 0x00021fa7 .
not load section .debug_pubnames: addr = 0x00000000 size = 0x0000424d .
not load section .debug_str: addr = 0x00000000 size = 0x00009e59 .
not load section .comment: addr = 0x00000000 size = 0x00000762 .
In SIM_start, Set PC to the address 0xfff80000
疑问:1.为啥显示的文件格式是elf-i386呢?
2.执行run命令没有任何反应,问题出自哪?是否是配置文件有问题?
第一次使用skyeye,请大家多多帮助,谢谢~ |
|