LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 4485|回复: 5

标准linux内核移植到skyeye模拟的s3c2410x开发板上,运行成功,发贴庆祝!

[复制链接]
发表于 2008-10-18 21:22:25 | 显示全部楼层 |阅读模式
搞了两天,终于可以将标准的linux内核移植到s3c2410x的开发板下(利用skyeye模拟的),并运行成功,由于是在出差的房间里搞的,没有桌子,就在一个曾经放冰箱的包装箱上将就着做的,就起名叫“BoxLinux"吧,环境:
fc6+arm-linux-gcc+linux-2.6.21.1标准内核+busybox1.1.3+skyeye.1.2.6+s3c2410开发板
有的部分还没有处理好,启动时有错误,如led起动问题。运行如下:
[root@localhost yzflinux]# skyeye -e vmlinux -c skyeye.conf
Your elf file is little endian.
arch: arm
cpu info: armv4, arm920t, 41009200, ff00fff0, 2
mach info: name s3c2410x, mach_init addr 0x806c520
uart_mod:0, desc_in:, desc_out:, converter:
SKYEYE: use arm920t mmu ops
Loaded RAM   ./initrd.img
exec file "vmlinux"'s format is elf32-little.
load section .text.head: addr = 0xc0008000  size = 0x000003a0.
load section .init: addr = 0xc00083a0  size = 0x0001bc60.
load section .text: addr = 0xc0024000  size = 0x002b1f3c.
load section __ksymtab: addr = 0xc02d6000  size = 0x000044d0.
load section __ksymtab_gpl: addr = 0xc02da4d0  size = 0x00001358.
load section __ksymtab_gpl_future: addr = 0xc02db828  size = 0x00000018.
load section __ksymtab_strings: addr = 0xc02db840  size = 0x0000c9f0.
load section __param: addr = 0xc02e8230  size = 0x0000053c.
load section .data: addr = 0xc02ea000  size = 0x0001b31c.
not load section .bss: addr = 0xc0305320  size = 0x0002f514 .
not load section .comment: addr = 0x00000000  size = 0x00002fbe .
not load section .debug_abbrev: addr = 0x00000000  size = 0x000ba1e1 .
not load section .debug_info: addr = 0x00000000  size = 0x014ccc87 .
not load section .debug_line: addr = 0x00000000  size = 0x001411ba .
not load section .debug_pubnames: addr = 0x00000000  size = 0x0001fb0c .
not load section .debug_str: addr = 0x00000000  size = 0x0008de72 .
not load section .debug_aranges: addr = 0x00000000  size = 0x00006568 .
not load section .debug_frame: addr = 0x00000000  size = 0x0005d824 .
not load section .debug_loc: addr = 0x00000000  size = 0x0021309d .
not load section .debug_ranges: addr = 0x00000000  size = 0x000651e8 .
call ARMul_InitSymTable,kernel filename is vmlinux.
start addr is set to 0xc0008000 by exec file.
Linux version 2.6.22.1 (armlinux@localhost.localdomain) (gcc version 4.2.1) #4 Sun Oct 19 01:58:45 CST 2008
CPU: ARM920T [41009200] revision 0 (ARMvundefined/unknown), cr=00003177
Machine: SMDK2410
Warning: bad configuration page, trying to continue
Memory policy: ECC disabled, Data cache writeback
CPU S3C2410 (id 0x32410000)
S3C2410: core 62.400 MHz, memory 62.400 MHz, peripheral 62.400 MHz
S3C24XX Clocks, (c) 2004 Simtec Electronics
CLOCK: Slow mode (1.500 MHz), fast, MPLL on, UPLL on
CPU0: D VIVT write-back cache
CPU0: I cache: 16384 bytes, associativity 64, 32 byte lines, 8 sets
CPU0: D cache: 16384 bytes, associativity 64, 32 byte lines, 8 sets
Built 1 zonelists.  Total pages: 8128
Kernel command line: mem=32M console=ttySAC0 root=/dev/ram initrd=0xc0800000,0x00800000 ramdisk_size=2048 rw
PID hash table entries: 128 (order: 7, 512 bytes)
timer tcon=00000000, tcnt cb1f, tcfg 00000200,00000000, usec 0000189e
Console: colour dummy device 80x30
Dentry cache hash table entries: 4096 (order: 2, 16384 bytes)
Inode-cache hash table entries: 2048 (order: 1, 8192 bytes)
Memory: 32MB = 32MB total
Memory: 21004KB available (2836K code, 298K data, 112K init)
Mount-cache hash table entries: 512
CPU: Testing write buffer coherency: ok
NET: Registered protocol family 16
S3C2410 Power Management, (c) 2004 Simtec Electronics
S3C2410: Initialising architecture
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
NET: Registered protocol family 2
IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
TCP established hash table entries: 1024 (order: 1, 8192 bytes)
TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
TCP: Hash tables configured (established 1024 bind 1024)
TCP reno registered
checking if image is initramfs...it isn't (bad gzip magic numbers); looks like an initrd
Freeing initrd memory: 8192K
NetWinder Floating Point Emulator V0.97 (double precision)
JFFS2 version 2.2. (NAND) © 2001-2006 Red Hat, Inc.
io scheduler noop registered
io scheduler anticipatory registered (default)
io scheduler deadline registered
io scheduler cfq registered
s3c2410-lcd s3c2410-lcd: no platform data for lcd, cannot attach
s3c2410-lcd: probe of s3c2410-lcd failed with error -22
S3C2410 Watchdog Timer, (c) 2004 Simtec Electronics
Serial: 8250/16550 driver $Revision: 1.90 $ 4 ports, IRQ sharing enabled
s3c2410-uart.0: s3c2410_serial0 at MMIO 0x50000000 (irq = 70) is a S3C2410
s3c2410-uart.1: s3c2410_serial1 at MMIO 0x50004000 (irq = 73) is a S3C2410
s3c2410-uart.2: s3c2410_serial2 at MMIO 0x50008000 (irq = 76) is a S3C2410
RAMDISK driver initialized: 16 RAM disks of 2048K size 1024 blocksize
loop: module loaded
Uniform Multi-Platform E-IDE driver Revision: 7.00alpha2
ide: Assuming 50MHz system bus speed for PIO modes; override with idebus=xx
S3C24XX NAND Driver, (c) 2004 Simtec Electronics
s3c2410-nand s3c2410-nand: Tacls=2, 32ns Twrph0=4 64ns, Twrph1=2 32ns
ERROR: s3c2410x_io_write_word(0x4e000000) = 0x00008131
ERROR: s3c2410x_io_write_word(0x4e000000) = 0xfffff7ff
ERROR: s3c2410x_io_write_word(0x4e000004) = 0x00000090
ERROR: s3c2410x_io_write_word(0x4e000008) = 0x00000000
No NAND device found!!!
ERROR: s3c2410x_io_write_word(0x4e000000) = 0xffffffff
usbmon: debugfs is not available
s3c2410-ohci s3c2410-ohci: S3C24XX OHCI
s3c2410-ohci s3c2410-ohci: new USB bus registered, assigned bus number 1
s3c2410-ohci s3c2410-ohci: irq 42, io mem 0x49000000
ERROR: s3c2410x_io_write_word(0x49000010) = 0x40000000
ERROR: s3c2410x_io_write_word(0x49000008) = 0x00000008
s3c2410-ohci s3c2410-ohci: USB HC takeover failed!  (BIOS/SMM bug)
s3c2410-ohci s3c2410-ohci: startup error -16
s3c2410-ohci s3c2410-ohci: USB bus 1 deregistered
s3c2410-ohci: probe of s3c2410-ohci failed with error -16
mice: PS/2 mouse device common for all mice
S3C24XX RTC, (c) 2004,2006 Simtec Electronics
ERROR: s3c2410x_io_write_word(0x54000008) = 0x00000010
s3c2410-i2c s3c2410-i2c: slave address 0x10
s3c2410-i2c s3c2410-i2c: bus frequency set to 390 KHz
ERROR: s3c2410x_io_write_word(0x54000000) = 0x000000a9
s3c2410-i2c s3c2410-i2c: i2c-0: S3C I2C adapter
TCP cubic registered
NET: Registered protocol family 1
NET: Registered protocol family 17
RAMDISK: ext2 filesystem found at block 0
RAMDISK: Loading 2048KiB [1 disk] into ram disk... done.
VFS: Mounted root (ext2 filesystem).
Freeing init memory: 112K
init started:  BusyBox v1.1.3 (2008.10.18-19:01+0000) multi-call binary
Starting pid 705, console /dev/console: '/etc/init.d/rcS'
/etc/init.d/rcS: /etc/init.d/rcS: 3: /bin/mount: not found
/etc/init.d/rcS: /etc/init.d/rcS: 4: /bin/mount: not found


                Welcom to BoxLinux



Please press Enter to activate this console.
Starting pid 713, console /dev/console: '/bin/sh'


BusyBox v1.1.3 (2008.10.18-19:01+0000) Built-in shell (ash)
Enter 'help' for a list of built-in commands.

/bin/sh: can't access tty; job control turned off
# ls
bin         etc         linuxrc     mnt         sbin        var
dev         lib         lost+found  proc        tmp
#

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有帐号?注册

x
发表于 2008-12-22 21:34:33 | 显示全部楼层
LZ能否详细说一下移植到skyeye(2410)平台的步骤和需要的软件?
我很想知道,谢谢!
回复 支持 反对

使用道具 举报

发表于 2009-1-16 19:18:18 | 显示全部楼层
請說一下步驟,謝謝
回复 支持 反对

使用道具 举报

发表于 2009-2-9 00:01:58 | 显示全部楼层
现在友善之臂的 arm板2440,带触摸屏幕 才500块。。。。。直接买个来玩算了。
回复 支持 反对

使用道具 举报

发表于 2009-2-16 12:41:13 | 显示全部楼层
"No NAND device found!!!
哥们你这不行的,现在是在模拟器中运行,根文件系统从内存加载,所以OK。一旦上到真正的板子上,从flash加载就会失败。
回复 支持 反对

使用道具 举报

发表于 2009-8-22 18:18:25 | 显示全部楼层
佩服!!!!!!!!!!!!!!!!1
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表