skyeye模拟器使用—模拟s3c2410的uboot启动

来源:互联网 发布:mp8播放器软件下载 编辑:程序博客网 时间:2024/06/13 18:07
一、硬件配置

1.s3c2410.conf

# skyeye config file for S3C2410Xarch:armcpu: arm920tmach: s3c2410x# physical memorymem_bank: map=M, type=RW, addr=0x00000000, size=0x00100000mem_bank: map=M, type=RW, addr=0x30000000, size=0x04000000# all peripherals I/O mapping areamem_bank: map=I, type=RW, addr=0x48000000, size=0x20000000mem_bank: map=I, type=RW, addr=0x19000300, size=0x00000020uart:mod=termdbct:state=on
2.s3c2440.conf
#skyeye config file samplecpu:  arm920tmach: s3c2440#physical memory#mem_bank: map=M, type=RW, addr=0x20000000, size=0x01000000mem_bank: map=M, type=RW, addr=0x30000000, size=0x00800000mem_bank: map=M, type=RW, addr=0x30800000, size=0x00800000, file=./initrd.imgmem_bank: map=M, type=RW, addr=0x31000000, size=0x01000000#all peripherals I/O mapping area#mem_bank: map=I, type=RW, addr=0xfefa0000, size=0x00060000mem_bank: map=I, type=RW, addr=0x48000000, size=0x20000000mem_bank: map=I, type=RW, addr=0x19000300, size=0x00000020#net: type=cs8900a, base=0x19000300, size=0x20,int=9, mac=0:4:3:2:1:f, ethmod=tuntap, hostip=10.0.0.1lcd:type=s3c2440,mod=gtkload_addr:base=0x30000000, mask=0xFFFFFF#dbct:state=on
二、uboot下载编译

1.uboot下载

ftp://ftp.denx.de/pub/u-boot/

2.交叉编译工具链下载

http://ishare.iask.sina.com.cn/f/13836544.html

解压上述交叉编译工具

3.配置环境变量

gedit ~/.bashrc添加如下:

export PATH+=:/home/lianxi/skyeye/opt/FriendlyARM/toolschain/4.4.3/bin/
立即生效:
source ~/.bashrc

2.编译uboot

make distcleanmake smdk2410_configmake all
三、运行
cp u-boot-2011.12/u-boot ./ubootskyeye -e uboot -c s3c2410.conf 
报错:
DRAM:  64 MiBWARNING: Caches not enabledFlash: *** failed ***### ERROR ### Please RESET the board ###

修改:gedit drivers/mtd/cfi_flash.c

unsigned long flash_init (void){  unsigned long size = 0;  int i;

unsigned long flash_init (void){  unsigned long size = 1<<20;  int i;

重新编译uboot后运行:

skyeye -e uboot -c s3c2410.conf 

结果:

Your elf file is little endian.arch: armcpu info: armv4, arm920t, 41009200, ff00fff0, 2 mach info: name s3c2410x, mach_init addr 0x423450uart_mod:0, desc_in:, desc_out:, converter:dbct info: turn on dbct!SKYEYE: use arm920t mmu opsexec file "uboot"'s format is elf32-little.load section .text: addr = 0x00000000  size = 0x00057634.load section .rodata: addr = 0x00057634  size = 0x0001176e.load section .hash: addr = 0x00068da4  size = 0x00000040.load section .ARM.exidx: addr = 0x00068de4  size = 0x00000020.load section .data: addr = 0x00068e04  size = 0x00001fd4.load section .got.plt: addr = 0x0006add8  size = 0x0000000c.load section .u_boot_cmd: addr = 0x0006ade4  size = 0x000007c8.load section .dynsym: addr = 0x00073584  size = 0x000000b0.load section .rel.dyn: addr = 0x0006b5ac  size = 0x00007fd8.not load section .bss: addr = 0x0006b5ac  size = 0x00042f98 .not load section .ARM.attributes: addr = 0x00000000  size = 0x00000026 .not load section .comment: addr = 0x00000000  size = 0x00000018 .not load section .debug_line: addr = 0x00000000  size = 0x00019fda .not load section .debug_info: addr = 0x00000000  size = 0x000a9517 .not load section .debug_abbrev: addr = 0x00000000  size = 0x00016eee .not load section .debug_aranges: addr = 0x00000000  size = 0x00001420 .not load section .debug_pubnames: addr = 0x00000000  size = 0x00005fcb .not load section .debug_frame: addr = 0x00000000  size = 0x0000b458 .not load section .debug_str: addr = 0x00000000  size = 0x00011822 .not load section .debug_loc: addr = 0x00000000  size = 0x0003e4bf .not load section .debug_ranges: addr = 0x00000000  size = 0x000083c0 .call ARMul_InitSymTable,kernel filename is uboot. ERROR: s3c2410x_io_write_word(0x4c000000) = 0x00ffffffERROR: s3c2410x_io_write_word(0x4c000008) = 0x00048032U-Boot 2011.12 (Nov 04 2013 - 16:42:46)DRAM:  64 MiBWARNING: Caches not enabledFlash: 1 MiBNAND:  ERROR: s3c2410x_io_write_word(0x4e000000) = 0x00008377ERROR: s3c2410x_io_write_word(0x4e000000) = 0xfffff7ffERROR: s3c2410x_io_write_word(0x4e000004) = 0x000000ffERROR: s3c2410x_io_write_word(0x4e000000) = 0xfffff7ffraise: Signal # 8 caughtraise: Signal # 8 caughtERROR: s3c2410x_io_write_word(0x4e000000) = 0xfffff7ffERROR: s3c2410x_io_write_word(0x4e000004) = 0x00000090ERROR: s3c2410x_io_write_word(0x4e000000) = 0xfffff7ffERROR: s3c2410x_io_write_word(0x4e000008) = 0x00000000ERROR: s3c2410x_io_write_word(0x4e000000) = 0xfffff7ffraise: Signal # 8 caughtraise: Signal # 8 caughtERROR: s3c2410x_io_write_word(0x4e000000) = 0xfffff7ffERROR: s3c2410x_io_write_word(0x4e000004) = 0x00000090ERROR: s3c2410x_io_write_word(0x4e000000) = 0xfffff7ffERROR: s3c2410x_io_write_word(0x4e000008) = 0x00000000ERROR: s3c2410x_io_write_word(0x4e000000) = 0xfffff7ffraise: Signal # 8 caughtraise: Signal # 8 caughtNo NAND device found!!!ERROR: s3c2410x_io_write_word(0x4e000000) = 0xffffffff0 MiB*** Warning - bad CRC, using default environmentIn:    serialOut:   serialErr:   serialNet:   ERROR: s3c2410x_io_write_word(0x1900030a) = 0x00000000CS8900-0Warning: failed to set MAC addressSMDK2410 # 

原创粉丝点击