Chinaunix首页 | 论坛 | 博客
  • 博客访问: 74660
  • 博文数量: 17
  • 博客积分: 658
  • 博客等级: 上士
  • 技术积分: 235
  • 用 户 组: 普通用户
  • 注册时间: 2009-08-31 19:44
文章分类

全部博文(17)

文章存档

2011年(1)

2010年(13)

2009年(3)

我的朋友

分类: LINUX

2010-01-29 21:05:08

移植linux-2.6.32.2到s3c2410

第一步:  让它跑起来 选用cramfs作为rootfs  编译后:

Read chip id = ec76

Nand flash status = c0

Set boot params = root=/dev/mtdblock2 load_ramdisk=0 init=/linuxrc console=ttySAC0,115200 devfs=mount display=sam320

Uncompressing Linux...................................................................................... done, booting the kernel.

Linux version 2.6.32.2 (arm@arm-desktop) (gcc version 3.4.4) #1 Fri Jan 29 17:41:45 CST 2010

CPU: ARM920T [41129200] revision 0 (ARMv4T), cr=c0007177

CPU: VIVT data cache, VIVT instruction cache

Machine: SMDK2410

ATAG_INITRD is deprecated; please update your bootloader.

Memory policy: ECC disabled, Data cache writeback

CPU S3C2410A (id 0x32410002)

S3C24XX Clocks, (c) 2004 Simtec Electronics

S3C2410: core 200.000 MHz, memory 100.000 MHz, peripheral 50.000 MHz

CLOCK: Slow mode (1.500 MHz), fast, MPLL on, UPLL on

Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 16256

Kernel command line: root=/dev/mtdblock2 load_ramdisk=0 init=/linuxrc console=ttySAC0,115200 devfs=mount display=sam320

PID hash table entries: 256 (order: -2, 1024 bytes)

Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)

Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)

Memory: 64MB = 64MB total

Memory: 62084KB available (2416K code, 259K data, 112K init, 0K highmem)

Hierarchical RCU implementation.

NR_IRQS:85

irq: clearing subpending status 00000093

irq: clearing subpending status 00000092

Console: colour dummy device 80x30

console [ttySAC0] enabled

Calibrating delay loop... 99.53 BogoMIPS (lpj=248832)

Mount-cache hash table entries: 512

CPU: Testing write buffer coherency: ok

S3C Power Management, Copyright 2004 Simtec Electronics

S3C2410: Initialising architecture

S3C24XX DMA Driver, (c) 2003-2004,2006 Simtec Electronics

DMA channel 0 at c4808000, irq 33

DMA channel 1 at c4808040, irq 34

DMA channel 2 at c4808080, irq 35

DMA channel 3 at c48080c0, irq 36

bio: create slab at 0

SCSI subsystem initialized

usbcore: registered new interface driver usbfs

usbcore: registered new interface driver hub

usbcore: registered new device driver usb

NetWinder Floating Point Emulator V0.97 (extended precision)

yaffs Jan 29 2010 17:35:59 Installing.

JFFS2 version 2.2. (NAND) (SUMMARY)  2001-2006 Red Hat, Inc.

ROMFS MTD (C) 2007 Red Hat, Inc.

msgmni has been set to 121

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

Serial: 8250/16550 driver, 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

brd: module loaded

loop: module loaded

Uniform Multi-Platform E-IDE driver

ide-gd driver 1.18

ide-cd driver 5.00

S3C24XX NAND Driver, (c) 2004 Simtec Electronics

s3c24xx-nand s3c2410-nand: Tacls=2, 20ns Twrph0=6 60ns, Twrph1=2 20ns

s3c24xx-nand s3c2410-nand: NAND ECC disabled

NAND device: Manufacturer ID: 0xec, Chip ID: 0x76 (Samsung NAND 64MiB 3,3V 8-bit)

NAND_ECC_NONE selected by board driver. This is not recommended !!

Scanning device for bad blocks

Creating 4 MTD partitions on "NAND 64MiB 3,3V 8-bit":

0x000000000000-0x000000030000 : "boot"

0x000000030000-0x000000200000 : "kernel"

0x000000200000-0x000002000000 : "rootfs"

0x000002000000-0x000004000000 : "ext-fs3"

usbmon: debugfs is not available

ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver

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

usb usb1: configuration #1 chosen from 1 choice

hub 1-0:1.0: USB hub found

hub 1-0:1.0: 2 ports detected

usbcore: registered new interface driver libusual

usbcore: registered new interface driver usbserial

USB Serial support registered for generic

usbcore: registered new interface driver usbserial_generic

usbserial: USB Serial Driver core

USB Serial support registered for FTDI USB Serial Device

usbcore: registered new interface driver ftdi_sio

ftdi_sio: v1.5.0:USB FTDI Serial Converters Driver

USB Serial support registered for pl2303

usbcore: registered new interface driver pl2303

pl2303: Prolific PL2303 USB to serial adaptor driver

mice: PS/2 mouse device common for all mice

VFS: Mounted root (cramfs filesystem) readonly on device 31:2.

Freeing init memory: 112K

Kernel panic - not syncing: Attempted to kill init!

Backtrace:

[] (dump_backtrace+0x0/0x104) from [0028c70>] (dump_stack+0x18/0x1c)

 r7:c381bef0 r6:c029bf4c r5:c3815cc0 r4:c381a000

[0028c58>] (dump_stack+0x0/0x1c) from [004605c>] (panic+0x40/0x11c)

[004601c>] (panic+0x0/0x11c) from [] (do_exit+0x23c/0x59c)

 r3:c028980c r2:c3815cc0 r1:c3815cc0 r0:c0242918

[] (do_exit+0x0/0x59c) from [] (do_group_exit+0xb4/0xbc)

[0048c4c>] (do_group_exit+0x0/0xbc) from [00527f0>] (get_signal_to_deliver+0x33c/0x374)

 r4:00000004

[] (get_signal_to_deliver+0x0/0x374) from [] (do_notify_resume+0x84/0x5a0)

[002779c>] (do_notify_resume+0x0/0x5a0) from [0024f08>] (work_pending+0x1c/0x20)


Read chip id = ec76

Nand flash status = c0

Set boot params = root=/dev/mtdblock2 load_ramdisk=0 init=/linuxrc console=ttySAC0,115200 devfs=mount display=sam320

Uncompressing Linux...................................................................................... done, booting the kernel.

Linux version 2.6.32.2 (arm@arm-desktop) (gcc version 3.4.4) #1 Fri Jan 29 17:41:45 CST 2010

CPU: ARM920T [41129200] revision 0 (ARMv4T), cr=c0007177

CPU: VIVT data cache, VIVT instruction cache

Machine: SMDK2410

ATAG_INITRD is deprecated; please update your bootloader.

Memory policy: ECC disabled, Data cache writeback

CPU S3C2410A (id 0x32410002)

S3C24XX Clocks, (c) 2004 Simtec Electronics

S3C2410: core 200.000 MHz, memory 100.000 MHz, peripheral 50.000 MHz

CLOCK: Slow mode (1.500 MHz), fast, MPLL on, UPLL on

Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 16256

Kernel command line: root=/dev/mtdblock2 load_ramdisk=0 init=/linuxrc console=ttySAC0,115200 devfs=mount display=sam320

PID hash table entries: 256 (order: -2, 1024 bytes)

Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)

Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)

Memory: 64MB = 64MB total

Memory: 62084KB available (2416K code, 259K data, 112K init, 0K highmem)

Hierarchical RCU implementation.

NR_IRQS:85

irq: clearing subpending status 00000093

irq: clearing subpending status 00000092

Console: colour dummy device 80x30

console [ttySAC0] enabled

Calibrating delay loop... 99.53 BogoMIPS (lpj=248832)

Mount-cache hash table entries: 512

CPU: Testing write buffer coherency: ok

S3C Power Management, Copyright 2004 Simtec Electronics

S3C2410: Initialising architecture

S3C24XX DMA Driver, (c) 2003-2004,2006 Simtec Electronics

DMA channel 0 at c4808000, irq 33

DMA channel 1 at c4808040, irq 34

DMA channel 2 at c4808080, irq 35

DMA channel 3 at c48080c0, irq 36

bio: create slab at 0

SCSI subsystem initialized

usbcore: registered new interface driver usbfs

usbcore: registered new interface driver hub

usbcore: registered new device driver usb

NetWinder Floating Point Emulator V0.97 (extended precision)

yaffs Jan 29 2010 17:35:59 Installing.

JFFS2 version 2.2. (NAND) (SUMMARY)  2001-2006 Red Hat, Inc.

ROMFS MTD (C) 2007 Red Hat, Inc.

msgmni has been set to 121

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

Serial: 8250/16550 driver, 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

brd: module loaded

loop: module loaded

Uniform Multi-Platform E-IDE driver

ide-gd driver 1.18

ide-cd driver 5.00

S3C24XX NAND Driver, (c) 2004 Simtec Electronics

s3c24xx-nand s3c2410-nand: Tacls=2, 20ns Twrph0=6 60ns, Twrph1=2 20ns

s3c24xx-nand s3c2410-nand: NAND ECC disabled

NAND device: Manufacturer ID: 0xec, Chip ID: 0x76 (Samsung NAND 64MiB 3,3V 8-bit)

NAND_ECC_NONE selected by board driver. This is not recommended !!

Scanning device for bad blocks

Creating 4 MTD partitions on "NAND 64MiB 3,3V 8-bit":

0x000000000000-0x000000030000 : "boot"

0x000000030000-0x000000200000 : "kernel"

0x000000200000-0x000002000000 : "rootfs"

0x000002000000-0x000004000000 : "ext-fs3"

usbmon: debugfs is not available

ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver

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

usb usb1: configuration #1 chosen from 1 choice

hub 1-0:1.0: USB hub found

hub 1-0:1.0: 2 ports detected

usbcore: registered new interface driver libusual

usbcore: registered new interface driver usbserial

USB Serial support registered for generic

usbcore: registered new interface driver usbserial_generic

usbserial: USB Serial Driver core

USB Serial support registered for FTDI USB Serial Device

usbcore: registered new interface driver ftdi_sio

ftdi_sio: v1.5.0:USB FTDI Serial Converters Driver

USB Serial support registered for pl2303

usbcore: registered new interface driver pl2303

pl2303: Prolific PL2303 USB to serial adaptor driver

mice: PS/2 mouse device common for all mice

VFS: Mounted root (cramfs filesystem) readonly on device 31:2.

Freeing init memory: 112K

Kernel panic - not syncing: Attempted to kill init!

Backtrace:

[] (dump_backtrace+0x0/0x104) from [0028c70>] (dump_stack+0x18/0x1c)

 r7:c381bef0 r6:c029bf4c r5:c3815cc0 r4:c381a000

[0028c58>] (dump_stack+0x0/0x1c) from [004605c>] (panic+0x40/0x11c)

[004601c>] (panic+0x0/0x11c) from [] (do_exit+0x23c/0x59c)

 r3:c028980c r2:c3815cc0 r1:c3815cc0 r0:c0242918

[] (do_exit+0x0/0x59c) from [] (do_group_exit+0xb4/0xbc)

[0048c4c>] (do_group_exit+0x0/0xbc) from [00527f0>] (get_signal_to_deliver+0x33c/0x374)

 r4:00000004

[] (get_signal_to_deliver+0x0/0x374) from [] (do_notify_resume+0x84/0x5a0)

[002779c>] (do_notify_resume+0x0/0x5a0) from [0024f08>] (work_pending+0x1c/0x20)


从这里:

Read chip id = ec76

Nand flash status = c0

Set boot params = root=/dev/mtdblock2 load_ramdisk=0 init=/linuxrc console=ttySAC0,115200 devfs=mount display=sam320

Uncompressing Linux...................................................................................... done, booting the kernel.

Linux version 2.6.32.2 (arm@arm-desktop) (gcc version 3.4.4) #1 Fri Jan 29 17:41:45 CST 2010

CPU: ARM920T [41129200] revision 0 (ARMv4T), cr=c0007177

CPU: VIVT data cache, VIVT instruction cache

Machine: SMDK2410

ATAG_INITRD is deprecated; please update your bootloader.

Memory policy: ECC disabled, Data cache writeback

CPU S3C2410A (id 0x32410002)

S3C24XX Clocks, (c) 2004 Simtec Electronics

S3C2410: core 200.000 MHz, memory 100.000 MHz, peripheral 50.000 MHz

CLOCK: Slow mode (1.500 MHz), fast, MPLL on, UPLL on

Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 16256

Kernel command line: root=/dev/mtdblock2 load_ramdisk=0 init=/linuxrc console=ttySAC0,115200 devfs=mount display=sam320

PID hash table entries: 256 (order: -2, 1024 bytes)

Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)

Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)

Memory: 64MB = 64MB total

Memory: 62084KB available (2416K code, 259K data, 112K init, 0K highmem)

Hierarchical RCU implementation.

NR_IRQS:85

irq: clearing subpending status 00000093

irq: clearing subpending status 00000092

Console: colour dummy device 80x30

console [ttySAC0] enabled

Calibrating delay loop... 99.53 BogoMIPS (lpj=248832)

Mount-cache hash table entries: 512

CPU: Testing write buffer coherency: ok

S3C Power Management, Copyright 2004 Simtec Electronics

S3C2410: Initialising architecture

S3C24XX DMA Driver, (c) 2003-2004,2006 Simtec Electronics

DMA channel 0 at c4808000, irq 33

DMA channel 1 at c4808040, irq 34

DMA channel 2 at c4808080, irq 35

DMA channel 3 at c48080c0, irq 36

bio: create slab at 0

SCSI subsystem initialized

usbcore: registered new interface driver usbfs

usbcore: registered new interface driver hub

usbcore: registered new device driver usb

NetWinder Floating Point Emulator V0.97 (extended precision)

yaffs Jan 29 2010 17:35:59 Installing.

JFFS2 version 2.2. (NAND) (SUMMARY)  2001-2006 Red Hat, Inc.

ROMFS MTD (C) 2007 Red Hat, Inc.

msgmni has been set to 121

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

Serial: 8250/16550 driver, 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

brd: module loaded

loop: module loaded

Uniform Multi-Platform E-IDE driver

ide-gd driver 1.18

ide-cd driver 5.00

S3C24XX NAND Driver, (c) 2004 Simtec Electronics

s3c24xx-nand s3c2410-nand: Tacls=2, 20ns Twrph0=6 60ns, Twrph1=2 20ns

s3c24xx-nand s3c2410-nand: NAND ECC disabled

NAND device: Manufacturer ID: 0xec, Chip ID: 0x76 (Samsung NAND 64MiB 3,3V 8-bit)

NAND_ECC_NONE selected by board driver. This is not recommended !!

Scanning device for bad blocks

Creating 4 MTD partitions on "NAND 64MiB 3,3V 8-bit":

0x000000000000-0x000000030000 : "boot"

0x000000030000-0x000000200000 : "kernel"

0x000000200000-0x000002000000 : "rootfs"

0x000002000000-0x000004000000 : "ext-fs3"

usbmon: debugfs is not available

ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver

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

usb usb1: configuration #1 chosen from 1 choice

hub 1-0:1.0: USB hub found

hub 1-0:1.0: 2 ports detected

usbcore: registered new interface driver libusual

usbcore: registered new interface driver usbserial

USB Serial support registered for generic

usbcore: registered new interface driver usbserial_generic

usbserial: USB Serial Driver core

USB Serial support registered for FTDI USB Serial Device

usbcore: registered new interface driver ftdi_sio

ftdi_sio: v1.5.0:USB FTDI Serial Converters Driver

USB Serial support registered for pl2303

usbcore: registered new interface driver pl2303

pl2303: Prolific PL2303 USB to serial adaptor driver

mice: PS/2 mouse device common for all mice

VFS: Mounted root (cramfs filesystem) readonly on device 31:2.

Freeing init memory: 112K

Kernel panic - not syncing: Attempted to kill init!

Backtrace:

[] (dump_backtrace+0x0/0x104) from [0028c70>] (dump_stack+0x18/0x1c)

 r7:c381bef0 r6:c029bf4c r5:c3815cc0 r4:c381a000

[0028c58>] (dump_stack+0x0/0x1c) from [004605c>] (panic+0x40/0x11c)

[004601c>] (panic+0x0/0x11c) from [] (do_exit+0x23c/0x59c)

 r3:c028980c r2:c3815cc0 r1:c3815cc0 r0:c0242918

[] (do_exit+0x0/0x59c) from [] (do_group_exit+0xb4/0xbc)

[0048c4c>] (do_group_exit+0x0/0xbc) from [00527f0>] (get_signal_to_deliver+0x33c/0x374)

 r4:00000004

[] (get_signal_to_deliver+0x0/0x374) from [] (do_notify_resume+0x84/0x5a0)

[002779c>] (do_notify_resume+0x0/0x5a0) from [0024f08>] (work_pending+0x1c/0x20)




阅读(1113) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~