本帖最后由 nbzwt 于 2012-4-29 09:37 编辑
已解决,手册上说256MBNAND要开Hardware ECC,不开就可以了
说明一下,我在移植linux3.3.4到TQ2440上,卡在Failed to execute /linuxrc这一步了,用出厂的2.6.30内核可启动。
完整启动信息
- Start Linux ...
- Copy linux kernel from 0x00200000 to 0x30008000, size = 0x00300000 ... Copy Kernel to SDRAM done,NOW, Booting Linux......
- Uncompressing Linux... done, booting the kernel.
- Booting Linux on physical CPU 0
- Linux version 3.3.4-nbzwt (root@nbzwt-x61t) (gcc version 4.4.3 (ctng-1.6.1) ) #6 Sun Apr 29 08:57:55 CST 2012
- CPU: ARM920T [41129200] revision 0 (ARMv4T), cr=c0007177
- CPU: VIVT data cache, VIVT instruction cache
- Machine: SMDK2440
- ATAG_INITRD is deprecated; please update your bootloader.
- Memory policy: ECC disabled, Data cache writeback
- CPU S3C2440A (id 0x32440001)
- S3C24XX Clocks, Copyright 2004 Simtec Electronics
- S3C244X: core 400.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: noinitrd root=/dev/mtdblock2 init=/linuxrc console=ttySAC0,115200
- 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: 60228k/60228k available, 5308k reserved, 0K highmem
- Virtual kernel memory layout:
- vector : 0xffff0000 - 0xffff1000 ( 4 kB)
- fixmap : 0xfff00000 - 0xfffe0000 ( 896 kB)
- vmalloc : 0xc4800000 - 0xff000000 ( 936 MB)
- lowmem : 0xc0000000 - 0xc4000000 ( 64 MB)
- modules : 0xbf000000 - 0xc0000000 ( 16 MB)
- .text : 0xc0008000 - 0xc0423700 (4206 kB)
- .init : 0xc0424000 - 0xc0442000 ( 120 kB)
- .data : 0xc0442000 - 0xc04694c0 ( 158 kB)
- .bss : 0xc04694e4 - 0xc0491914 ( 162 kB)
- NR_IRQS:85
- irq: clearing pending ext status 00080000
- irq: clearing subpending status 00000003
- irq: clearing subpending status 00000002
- Console: colour dummy device 80x30
- Calibrating delay loop... 199.47 BogoMIPS (lpj=498688)
- pid_max: default: 32768 minimum: 301
- Mount-cache hash table entries: 512
- CPU: Testing write buffer coherency: ok
- Setting up static identity map for 0x303245d8 - 0x30324630
- gpiochip_add: registered GPIOs 0 to 23 on device: GPIOA
- gpiochip_add: registered GPIOs 32 to 47 on device: GPIOB
- gpiochip_add: registered GPIOs 64 to 79 on device: GPIOC
- gpiochip_add: registered GPIOs 96 to 111 on device: GPIOD
- gpiochip_add: registered GPIOs 128 to 143 on device: GPIOE
- gpiochip_add: registered GPIOs 160 to 167 on device: GPIOF
- gpiochip_add: registered GPIOs 192 to 207 on device: GPIOG
- gpiochip_add: registered GPIOs 224 to 234 on device: GPIOH
- gpiochip_add: registered GPIOs 256 to 271 on device: GPIOJ
- NET: Registered protocol family 16
- S3C Power Management, Copyright 2004 Simtec Electronics
- S3C2440: Initialising architecture
- S3C2440: IRQ Support
- S3C244X: Clock Support, DVS off
- bio: create slab <bio-0> at 0
- SCSI subsystem initialized
- usbcore: registered new interface driver usbfs
- usbcore: registered new interface driver hub
- usbcore: registered new device driver usb
- Advanced Linux Sound Architecture Driver Version 1.0.24.
- NET: Registered protocol family 2
- IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
- TCP established hash table entries: 2048 (order: 2, 16384 bytes)
- TCP bind hash table entries: 2048 (order: 1, 8192 bytes)
- TCP: Hash tables configured (established 2048 bind 2048)
- TCP reno registered
- UDP hash table entries: 256 (order: 0, 4096 bytes)
- UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
- NET: Registered protocol family 1
- RPC: Registered named UNIX socket transport module.
- RPC: Registered udp transport module.
- RPC: Registered tcp transport module.
- RPC: Registered tcp NFSv4.1 backchannel transport module.
- NetWinder Floating Point Emulator V0.97 (extended precision)
- JFFS2 version 2.2. (NAND) (SUMMARY) 漏 2001-2006 Red Hat, Inc.
- ROMFS MTD (C) 2007 Red Hat, Inc.
- msgmni has been set to 117
- io scheduler noop registered
- io scheduler deadline registered
- io scheduler cfq registered (default)
- Console: switching to colour frame buffer device 30x40
- fb0: s3c2410fb frame buffer device
- Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled
- s3c2440-uart.0: ttySAC0 at MMIO 0x50000000 (irq = 70) is a S3C2440
- console [ttySAC0] enabled
- s3c2440-uart.1: ttySAC1 at MMIO 0x50004000 (irq = 73) is a S3C2440
- s3c2440-uart.2: ttySAC2 at MMIO 0x50008000 (irq = 76) is a S3C2440
- lp: driver loaded but no devices found
- ppdev: user-space parallel port driver
- brd: module loaded
- loop: module loaded
- S3C24XX NAND Driver, (c) 2004 Simtec Electronics
- s3c24xx-nand s3c2440-nand: Tacls=1, 10ns Twrph0=3 30ns, Twrph1=1 10ns
- s3c24xx-nand s3c2440-nand: NAND hardware ECC
- NAND device: Manufacturer ID: 0xec, Chip ID: 0xda (Samsung NAND 256MiB 3,3V 8-bit)
- Scanning device for bad blocks
- Bad eraseblock 1111 at 0x000008ae0000
- Bad eraseblock 1274 at 0x000009f40000
- Bad eraseblock 1361 at 0x00000aa20000
- Bad eraseblock 1988 at 0x00000f880000
- Creating 3 MTD partitions on "NAND":
- 0x000000000000-0x000000040000 : "UBoot"
- 0x000000200000-0x000000500000 : "Kernel"
- 0x000000500000-0x000010000000 : "Yaffs2"
- dm9000 Ethernet Driver, V1.31
- 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
- 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.6.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
- mousedev: PS/2 mouse device common for all mice
- S3C2410 Watchdog Timer, (c) 2004 Simtec Electronics
- s3c2410-wdt s3c2410-wdt: watchdog inactive, reset disabled, irq disabled
- ALSA device list:
- No soundcards found.
- TCP cubic registered
- NET: Registered protocol family 17
- drivers/rtc/hctosys.c: unable to open rtc device (rtc0)
- end_request: I/O error, dev mtdblock2, sector 256
- isofs_fill_super: bread failed, dev=mtdblock2, iso_blknum=64, block=128
- yaffs: dev is 32505858 name is "mtdblock2" rw
- yaffs: passed flags ""
- VFS: Mounted root (yaffs filesystem) on device 31:2.
- Freeing init memory: 120K
- Failed to execute /linuxrc. Attempting defaults...
- Kernel panic - not syncing: No init found. Try passing init= option to kernel. See Linux Documentation/init.txt for guidance.
- [<c001a33c>] (unwind_backtrace+0x0/0xf4) from [<c0322188>] (panic+0x70/0x1b8)
- [<c0322188>] (panic+0x70/0x1b8) from [<c0008724>] (init_post+0x7c/0xcc)
- [<c0008724>] (init_post+0x7c/0xcc) from [<c0424288>] (kernel_init+0xe8/0x118)
复制代码
|