1.s3c2410.conf
# skyeye config file for S3C2410X arch:arm cpu: arm920t mach: s3c2410x # physical memory mem_bank: map=M, type=RW, addr=0x00000000, size=0x00100000 mem_bank: map=M, type=RW, addr=0x30000000, size=0x04000000 # all peripherals I/O mapping area mem_bank: map=I, type=RW, addr=0x48000000, size=0x20000000 mem_bank: map=I, type=RW, addr=0x19000300, size=0x00000020 uart:mod=term dbct:state=on2.s3c2440.conf
#skyeye config file sample cpu: arm920t mach: s3c2440 #physical memory #mem_bank: map=M, type=RW, addr=0x20000000, size=0x01000000 mem_bank: map=M, type=RW, addr=0x30000000, size=0x00800000 mem_bank: map=M, type=RW, addr=0x30800000, size=0x00800000, file=./initrd.img mem_bank: map=M, type=RW, addr=0x31000000, size=0x01000000 #all peripherals I/O mapping area #mem_bank: map=I, type=RW, addr=0xfefa0000, size=0x00060000 mem_bank: map=I, type=RW, addr=0x48000000, size=0x20000000 mem_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.1 lcd:type=s3c2440,mod=gtk load_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 distclean make smdk2410_config make all三、运行
cp u-boot-2011.12/u-boot ./uboot skyeye -e uboot -c s3c2410.conf报错:
DRAM: 64 MiB WARNING: Caches not enabled Flash: *** 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: arm cpu info: armv4, arm920t, 41009200, ff00fff0, 2 mach info: name s3c2410x, mach_init addr 0x423450 uart_mod:0, desc_in:, desc_out:, converter: dbct info: turn on dbct! SKYEYE: use arm920t mmu ops exec 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) = 0x00ffffff ERROR: s3c2410x_io_write_word(0x4c000008) = 0x00048032 U-Boot 2011.12 (Nov 04 2013 - 16:42:46) DRAM: 64 MiB WARNING: Caches not enabled Flash: 1 MiB NAND: ERROR: s3c2410x_io_write_word(0x4e000000) = 0x00008377 ERROR: s3c2410x_io_write_word(0x4e000000) = 0xfffff7ff ERROR: s3c2410x_io_write_word(0x4e000004) = 0x000000ff ERROR: s3c2410x_io_write_word(0x4e000000) = 0xfffff7ff raise: Signal # 8 caught raise: Signal # 8 caught ERROR: s3c2410x_io_write_word(0x4e000000) = 0xfffff7ff ERROR: s3c2410x_io_write_word(0x4e000004) = 0x00000090 ERROR: s3c2410x_io_write_word(0x4e000000) = 0xfffff7ff ERROR: s3c2410x_io_write_word(0x4e000008) = 0x00000000 ERROR: s3c2410x_io_write_word(0x4e000000) = 0xfffff7ff raise: Signal # 8 caught raise: Signal # 8 caught ERROR: s3c2410x_io_write_word(0x4e000000) = 0xfffff7ff ERROR: s3c2410x_io_write_word(0x4e000004) = 0x00000090 ERROR: s3c2410x_io_write_word(0x4e000000) = 0xfffff7ff ERROR: s3c2410x_io_write_word(0x4e000008) = 0x00000000 ERROR: s3c2410x_io_write_word(0x4e000000) = 0xfffff7ff raise: Signal # 8 caught raise: Signal # 8 caught No NAND device found!!! ERROR: s3c2410x_io_write_word(0x4e000000) = 0xffffffff 0 MiB *** Warning - bad CRC, using default environment In: serial Out: serial Err: serial Net: ERROR: s3c2410x_io_write_word(0x1900030a) = 0x00000000 CS8900-0 Warning: failed to set MAC address SMDK2410 #