我设了三个分区:
static struct mtd_partition smdk_default_nand_part[] = {
[0] = {
.name = "bootloader",
.offset = 0x00000000,
.size = 0x00060000,
},
[1] = {
.name = "kernel",
.offset = 0x00060000,
.size = 0x00500000,
},
[2] = {
.name = "root",
.offset = 0x00560000,
.size = 0x07a00000,
}
};
运行后出现I/O error,以下是我的启动信息
load Image of Linux...Uncompressing Linux.......................................................................................................................... done, booting the kernel.
<5>Linux version 2.6.29.1 (zhaojie@computer) (gcc version 4.3.2 (Sourcery G++ Lite 2008q3-72) ) #12 Wed Dec 23 19:20:22 CST 2009
CPU: ARM920T [41129200] revision 0 (ARMv4T), cr=c0007177
CPU: VIVT data cache, VIVT instruction cache
Machine: Study-S3C2440
<7>Converting old-style param struct to taglist
<4>ATAG_INITRD is deprecated; please update your bootloader.
Memory policy: ECC disabled, Data cache writeback
<7>On node 0 totalpages: 16384
<7>free_area_init_node: node 0, pgdat c03ba8e8, node_mem_map c03e9000
<7> Normal zone: 128 pages used for memmap
<7> Normal zone: 0 pages reserved
<7> Normal zone: 16256 pages, LIFO batch:3
CPU S3C2440A (id 0x32440001)
<6>S3C24XX Clocks, (c) 2004 Simtec Electronics
S3C244X: core 405.000 MHz, memory 101.250 MHz, peripheral 50.625 MHz
CLOCK: Slow mode (1.500 MHz), fast, MPLL on, UPLL on
Built 1 zonelists in Zone order, mobility grouping on. Total pages: 16256
<5>Kernel command line: noinitrd root=/dev/mtdblock2 init=/linuxrc console=ttySAC0
irq: clearing subpending status 00000002
PID hash table entries: 256 (order: 8, 1024 bytes)
<7>timer tcon=00000000, tcnt a4ca, tcfg 00000200,00000000, usec 00001e57
Console: colour dummy device 80x30
<6>console [ttySAC0] enabled
Linux version 2.6.29.1 (zhaojie@computer) (gcc version 4.3.2 (Sourcery G++ Lite 2008q3-72) ) #12 Wed Dec 23 19:20:22 CST 2009
CPU: ARM920T [41129200] revision 0 (ARMv4T), cr=c0007177
CPU: VIVT data cache, VIVT instruction cache
Machine: Study-S3C2440
ATAG_INITRD is deprecated; please update your bootloader.
Memory policy: ECC disabled, Data cache writeback
CPU S3C2440A (id 0x32440001)
S3C24XX Clocks, (c) 2004 Simtec Electronics
S3C244X: core 405.000 MHz, memory 101.250 MHz, peripheral 50.625 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: noinitrd root=/dev/mtdblock2 init=/linuxrc console=ttySAC0
irq: clearing subpending status 00000002
PID hash table entries: 256 (order: 8, 1024 bytes)
Console: colour dummy device 80x30
<Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
6>Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
<6>Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
Memory:<6>Memory: 64MB 64MB = 64MB total
= 64MB total
Memory: 60876KB available (3508K code, 302K data, 156K init)
<5>Memory: 60876KB available (3508K code, 302K data, 156K init)
Calibrating delay loop... <6>Calibrating delay loop... 201.93 BogoMIPS (lpj=504832)
201.93 BogoMIPS (lpj=504832)
Mount-cache hash table entries: 512
Mount-cache hash table entries: 512
CPU: Testing write buffer coherency: <6>CPU: Testing write buffer coherency: ok
ok
net_namespace: 716 bytes
<6>net_namespace: 716 bytes
NET: Registered protocol family 16
<6>NET: Registered protocol family 16
S3C2410 Power Management, (c) 2004 Simtec Electronics
S3C2410 Power Management, (c) 2004 Simtec Electronics
S3C2440: Initialising architecture
S3C2440: Initialising architecture
S3C2440: IRQ Support
S3C2440: IRQ Support
S3C24XX DMA Driver, (c) 2003-2004,2006 Simtec Electronics
S3C24XX DMA Driver, (c) 2003-2004,2006 Simtec Electronics
DMA channel 0 at c4808000, irq 33
DMA channel 0 at c4808000, irq 33
DMA channel 1 at c4808040, irq 34
DMA channel 1 at c4808040, irq 34
DMA channel 2 at c4808080, irq 35
DMA channel 2 at c4808080, irq 35
DMA channel 3 at c48080c0, irq 36
DMA channel 3 at c48080c0, irq 36
S3C244X: Clock Support, DVS off
S3C244X: Clock Support, DVS off
bio: create slab <bio-0> at 0
bio: create slab <bio-0> at 0
SCSI subsystem initialized
<5>SCSI subsystem initialized
usbcore: registered new interface driver usbfs
<6>usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
<6>usbcore: registered new interface driver hub
usbcore: registered new device driver usb
<6>usbcore: registered new device driver usb
NET: Registered protocol family 2
<6>NET: Registered protocol family 2
IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
<6>IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
TC< established hash table entries: 2048 (order: 2, 16384 bytes)
6>TCP established hash table entries: 2048 (order: 2, 16384 bytes)
TCP bind hash table entries: 2048 (order: 1, 8192 bytes)
<6>TCP bind hash table entries: 2048 (order: 1, 8192 bytes)
TCP: Hash tables configured (established 2048 bind 2048)
<6>TCP: Hash tables configured (established 2048 bind 2048)
TCP reno registered
<6>TCP reno registered
NET: Registered protocol family 1
<6>NET: Registered protocol family 1
J<FS2 version 2.2. (NAND) (SUMMARY) © 2001-2006 Red Hat, Inc.
6>JFFS2 version 2.2. (NAND) (SUMMARY) © 2001-2006 Red Hat, Inc.
yaffs Dec 23 2009 19:15:19 Installing.
yaffs Dec 23 2009 19:15:19 Installing.
msgmni has been set to 119
<6>msgmni has been set to 119
io scheduler noop registered
<6>io scheduler noop registered
io scheduler anticipatory registered (default)
<6>io scheduler anticipatory registered (default)
io scheduler deadline registered
<6>io scheduler deadline registered
io scheduler cfq registered
<6>io scheduler cfq registered
Console: switching to colour frame buffer device 30x40
Console: switching to colour<frame buffer device 30x40
fb0: s3c2410fb frame buffer device
6>fb0: s3c2410fb frame buffer device
lp: driver loaded but no devices found
<6>lp: driver loaded but no devices found
ppdev: user-space parallel port driver
<6>ppdev: user-space parallel port driver
Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled
<6>Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled
s3c2440-uart<0: s3c2410_serial0 at MMIO 0x50000000 (irq = 70) is a S3C2440
6>s3c2440-uart.0: s3c2410_serial0 at MMIO 0x50000000 (irq = 70) is a S3C2440
s3c2440-uart.1: s3c2410_serial1 at MMIO 0x50004000 (irq = 73) is a S3C2440
<6>s3c2440-uart.1: s3c2410_serial1 at MMIO 0x50004000 (irq = 73) is a S3C2440
s3c2440-uart.2: s3c2410_serial2 at MMIO 0x50008000 (irq = 76) is a S3C2440
<6>s3c2440-uart.2: s3c2410_serial2 at MMIO 0x50008000 (irq = 76) is a S3C2440
brd: module loaded
<6>brd: module loaded
loop: module loaded
<6>loop: module loaded
dm9000 Ethernet Driver, V1.31
<6>dm9000 Ethernet Driver, V1.31
Uniform Multi-Platform E-IDE driver
<6>Uniform Multi-Platform E-IDE driver
ide-gd driver 1.18
<6>ide-gd driver 1.18
ide-cd driver 5.00
<6>ide-cd driver 5.00
Driver 'sd' needs updating - please use bus_type methods
<4>Driver 'sd' needs updating - please use bus_type methods
S3C24XX NAND Driver, (c) 2004 Simtec Electronics
S3C24XX NAND Driver, (c) 2004 Simtec Electronics
s3c24<0-nand s3c2440-nand: Tacls=1, 9ns Twrph0=4 39ns, Twrph1=1 9ns
6>s3c2440-nand s3c2440-nand: Tacls=1, 9ns Twrph0=4 39ns, Twrph1=1 9ns
NAND device: Manufac<urer ID: 0xec, Chip ID: 0xf1 (Samsung NAND 128MiB 3,3V 8-bit)
6>NAND device: Manufacturer ID: 0xec, Chip ID: 0xf1 (Samsung NAND 128MiB 3,3V 8-bit)
Scanning device for bad blocks
<6>Scanning device for bad blocks
Creating 3 MTD partitions on "NAND 128MiB 3,3V 8-bit":
<5>Creating 3 MTD partitions on "NAND 128MiB 3,3V 8-bit":
0x000000000000-0x000000060000 : "bootloader"
<5>0x000000000000-0x000000060000 : "bootloader"
0x000000060000-0x000000560000 : "kernel"
<5>0x000000060000-0x000000560000 : "kernel"
0x000000560000-0x000007f60000 : "root"
<5>0x000000560000-0x000007f60000 : "root"
usbmon: debugfs is not available
<5>usbmon: debugfs is not available
ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
<6>ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
s3c2410-ohci s3c2410-ohci: S3C24XX OHCI
<6>s3c2410-ohci s3c2410-ohci: S3C24XX OHCI
s3c2410-oh<i s3c2410-ohci: new USB bus registered, assigned bus number 1
6>s3c2410-ohci s3c2410-ohci: new USB bus registered, assigned bus number 1
s3c2410-ohci s3c2410-ohci: irq 42, io mem 0x49000000
<6>s3c2410-ohci s3c2410-ohci: irq 42, io mem 0x49000000
usb usb1: configuration #1 chosen from 1 choice
<6>usb usb1: configuration #1 chosen from 1 choice
hub 1-0:1.0: USB hub found
<6>hub 1-0:1.0: USB hub found
hub 1-0:1.0: 2 ports detected
<6>hub 1-0:1.0: 2 ports detected
usbcore: registered new interface driver libusual
<6>usbcore: registered new interface driver libusual
usbcore: registered new interface driver usbserial
<6>usbcore: registered new interface driver usbserial
USB Serial support registered for generic
<6>USB Serial support registered for generic
usbcore: registered new interface driver usbserial_generic
<6>usbcore: registered new interface driver usbserial_generic
usbserial: USB Serial Driver core
<6>usbserial: USB Serial Driver core
USB Serial support registered for FTDI USB Serial Device
<6>USB Serial support registered for FTDI USB Serial Device
usbcore: registered new interface driver ftdi_sio
<6>usbcore: registered new interface driver ftdi_sio
ftdi_sio: v1.4.3:USB FTDI Serial Converters Driver
<6>ftdi_sio: v1.4.3:USB FTDI Serial Converters Driver
USB Serial support registered for pl2303
<6>USB Serial support registered for pl2303
usbcore: registered new interface driver pl2303
<6>usbcore: registered new interface driver pl2303
pl2303: Prolific PL2303 USB to serial adaptor driver
<6>pl2303: Prolific PL2303 USB to serial adaptor driver
mice: PS/2 mouse device common for all mice
<6>mice: PS/2 mouse device common for all mice
S3C24XX RTC, (c) 2004,2006 Simtec Electronics
S3C24XX RTC, (c) 2004,2006 Simtec Electronics
s3c2440-i2c s3c2440-i2c: no platform data
<3>s3c2440-i2c s3c2440-i2c: no platform data
s3c2440-i2c: probe of s3c2440-i2c failed with error -22
<4>s3c2440-i2c: probe of s3c2440-i2c failed with error -22
S3C2410 Watchdog Timer, (c) 2004 Simtec Electronics
<6>S3C2410 Watchdog Timer, (c) 2004 Simtec Electronics
s3c2410-w<t s3c2410-wdt: watchdog inactive, reset disabled, irq enabled
6>s3c2410-wdt s3c2410-wdt: watchdog inactive, reset disabled, irq enabled
TCP cubic registered
<6>TCP cubic registered
NET: Registered protocol family 17
<6>NET: Registered protocol family 17
RPC: Registered udp transport module.
<6>RPC: Registered udp transport module.
RPC: Registered tcp transport module.
<6>RPC: Registered tcp transport module.
drivers/rtc/hctosys.c: unable to open rtc device (rtc0)
drivers/rtc/hctosys.c: unable to open rtc device (rtc0)
uncorrectable error : <3>uncorrectable error : <3>end_request: I/O error, dev mtdblock2, sector 0<3>end_request: I/O error, dev mtdblock2, sector 0
Buffer I/O error on device mtdblock2, logical block 0
<3>Buffer I/O error on device mtdblock2, logical block 0
uncorrectable error : <3>uncorrectable error : <3>end_request: I/O error, dev mtdblock2, sector 0
<3>end_request: I/O error, dev mtdblock2, sector 0
Buffer I/O error on device mtdblock2, logical block 0
<3>Buffer I/O error on device mtdblock2, logical block 0
uncorrectable error : <3>uncorrectable error : <3>end_request: I/O error, dev mtdblock2, sector 8
<3>end_request: I/O error, dev mtdblock2, sector 8
Buffer I/O error on device mtdblock2, logical block 1
<3>Buffer I/O error on device mtdblock2, logical block 1
uncorrectable error : <3>uncorrectable error : <3>end_request: I/O error, dev mtdblock2, sector 8
<3>end_request: I/O error, dev mtdblock2, sector 8
Buffer I/O error on device mtdblock2, logical block 1
<3>Buffer I/O error on device mtdblock2, logical block 1
uncorrectable error : <3>uncorrectable error : <3>end_request: I/O error, dev mtdblock2, sector 16
<3>end_request: I/O error, dev mtdblock2, sector 16
Buffer I/O error on device mtdblock2, logical block 2
<3>Buffer I/O error on device mtdblock2, logical block 2
uncorrectable error : <3>uncorrectable error : <3>end_request: I/O error, dev mtdblock2, sector 16
<3>end_request: I/O error, dev mtdblock2, sector 16
Buffer I/O error on device mtdblock2, logical block 2
<3>Buffer I/O error on device mtdblock2, logical block 2
uncorrectable error : <3>uncorrectable error : <3>end_request: I/O error, dev mtdblock2, sector 24
<3>end_request: I/O error, dev mtdblock2, sector 24
Buffer I/O error on device mtdblock2, logical block 3
<3>Buffer I/O error on device mtdblock2, logical block 3
uncorrectable error : <3>uncorrectable error : <3>end_request: I/O error, dev mtdblock2, sector 24
<3>end_request: I/O error, dev mtdblock2, sector 24
Buffer I/O error on device mtdblock2, logical block 3
<3>Buffer I/O error on device mtdblock2, logical block 3
uncorrectable error : <3>uncorrectable error : <3>end_request: I/O error, dev mtdblock2, sector 64
<3>end_request: I/O error, dev mtdblock2, sector 64isofs_fi<l_super: bread failed, dev=mtdblock2, iso_blknum=16, block=32
4>isofs_fill_super: bread failed, dev=mtdblock2, iso_blknum=16, block=32
yaffs: dev is 32505858 name is "mtdblock2"
<6>yaffs: dev is 32505858 name is "mtdblock2"
yaffs: passed flags ""
<6>yaffs: passed flags ""
yaffs: Attempting MTD mount on 31.2, "mtdblock2"
yaffs: Attempting MTD mount on 31.2, "mtdblock2"
yaffs: auto selecting yaffs2
yaffs: auto selecting yaffs2
yaffs_read_super: isCheckpointed 0
yaffs_read_super: isCheckpointed 0
VFS: Mounted root (yaffs filesystem) on device 31:2.
VFS: Mounted root (yaffs filesystem) on device 31:2.
Freeing init memory: 156K
<6>Freeing init memory: 156K
Failed to execute /linuxrc. Attempting defaults...
<4>Failed to execute /linuxrc. Attempting defaults...
Kernel panic - no< syncing: No init found. Try passing init= option to kernel.
0>Kernel panic - not syncing: No init found. Try passing init= option to kernel.