|
楼主 |
发表于 2014-4-21 10:08:26
|
显示全部楼层
好几块都这样,启动uboot后写进去能正常运行,重启后就死了。更换为U0D的旧NAND就可以正常运行。麻烦看看下面的打印。
正常启动打如下:
- AT91Bootstrap loading from nandflash 0x20000...
- U-Boot 2012.10 (Mar 02 2013 - 10:58:05)
- CPU: AT91SAM9260
- Crystal frequency: 18.432 MHz
- CPU clock : 198.656 MHz
- Master clock : 99.328 MHz
- DRAM: 32 MiB
- WARNING: Caches not enabled
- NAND: 128 MiB
- In: serial
- Out: serial
- Err: serial
- Net: macb0
- NAND read: device 0 offset 0x7700000, size 0x2
- 2 bytes read: OK
- NAND read: device 0 offset 0x7700000, size 0x2
- 2 bytes read: OK
- Hit any key to stop autoboot: 0
- NAND read: device 0 offset 0x100000, size 0x400000
- 4194304 bytes read: OK
- ## Booting kernel from Legacy Image at 20008000 ...
- Image Name: Linux-2.6.38.2
- Image Type: ARM Linux Kernel Image (uncompressed)
- Data Size: 1540396 Bytes = 1.5 MiB
- Load Address: 20008000
- Entry Point: 20008040
- Verifying Checksum ... OK
- XIP Kernel Image ... OK
- OK
- Starting kernel ...
- Uncompressing Linux... done, booting the kernel.
- Linux version 2.6.38.2 (zcj@project-manager) (gcc version 4.2.2) #29 Sat Mar 23 16:16:54 CST 2013
- CPU: ARM926EJ-S [41069265] revision 5 (ARMv5TEJ), cr=00053177
- CPU: VIVT data cache, VIVT instruction cache
- Machine: Atmel AT91SAM9260-EK
- Memory policy: ECC disabled, Data cache writeback
- Clocks: CPU 198 MHz, master 99 MHz, main 18.432 MHz
- Built 1 zonelists in Zone order, mobility grouping on. Total pages: 8128
- Kernel command line: console=ttySAC0,115200 mem=32M mtdparts=atmel_nand:128K(BootAgent)ro,896K(Uboot)ro,4M(Kernel1),4M(Kernel2),55M(Root1),55M(Root2),-(data) ubi.mtd=4 root=ubi0:Root rootfstype=ubifs rw
- PID hash table entries: 128 (order: -3, 512 bytes)
- 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: 29328k/29328k available, 3440k reserved, 0K highmem
- Virtual kernel memory layout:
- vector : 0xffff0000 - 0xffff1000 ( 4 kB)
- fixmap : 0xfff00000 - 0xfffe0000 ( 896 kB)
- DMA : 0xffc00000 - 0xffe00000 ( 2 MB)
- vmalloc : 0xc2800000 - 0xfee00000 ( 966 MB)
- lowmem : 0xc0000000 - 0xc2000000 ( 32 MB)
- modules : 0xbf000000 - 0xc0000000 ( 16 MB)
- .init : 0xc0008000 - 0xc0026000 ( 120 kB)
- .text : 0xc0026000 - 0xc02d375c (2742 kB)
- .data : 0xc02d4000 - 0xc02f1900 ( 119 kB)
- NR_IRQS:192
- AT91: 96 gpio irqs in 3 banks
- Console: colour dummy device 80x30
- console [ttyS0] enabled
- Calibrating delay loop... 98.91 BogoMIPS (lpj=494592)
- pid_max: default: 32768 minimum: 301
- Mount-cache hash table entries: 512
- CPU: Testing write buffer coherency: ok
- devtmpfs: initialized
- NET: Registered protocol family 16
- 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
- i2c-gpio i2c-gpio: using pins 55 (SDA) and 56 (SCL)
- Switching to clocksource pit
- 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
- UDP hash table entries: 256 (order: 0, 4096 bytes)
- UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
- NET: Registered protocol family 1
- NetWinder Floating Point Emulator V0.97 (double precision)
- JFFS2 version 2.2. (NAND) © 2001-2006 Red Hat, Inc.
- msgmni has been set to 57
- io scheduler noop registered (default)
- atmel_usart.0: ttyS0 at MMIO 0xfefff200 (irq = 1) is a ATMEL_SERIAL
- atmel_usart.1: ttyS1 at MMIO 0xfffb0000 (irq = 6) is a ATMEL_SERIAL
- atmel_usart.2: ttyS2 at MMIO 0xfffb4000 (irq = 7) is a ATMEL_SERIAL
- atmel_usart.3: ttyS3 at MMIO 0xfffb8000 (irq = 8) is a ATMEL_SERIAL
- brd: module loaded
- NAND device: Manufacturer ID: 0xec, Chip ID: 0xf1 (Samsung NAND 128MiB 3,3V 8-bit)
- Scanning device for bad blocks
- Bad eraseblock 203 at 0x000001960000
- Bad eraseblock 329 at 0x000002920000
- Bad eraseblock 394 at 0x000003140000
- Bad eraseblock 491 at 0x000003d60000
- Bad eraseblock 843 at 0x000006960000
- 7 cmdlinepart partitions found on MTD device atmel_nand
- Creating 7 MTD partitions on "atmel_nand":
- 0x000000000000-0x000000020000 : "BootAgent"
- 0x000000020000-0x000000100000 : "Uboot"
- 0x000000100000-0x000000500000 : "Kernel1"
- 0x000000500000-0x000000900000 : "Kernel2"
- 0x000000900000-0x000004000000 : "Root1"
- 0x000004000000-0x000007700000 : "Root2"
- 0x000007700000-0x000008000000 : "data"
- UBI: attaching mtd4 to ubi0
- UBI: physical eraseblock size: 131072 bytes (128 KiB)
- UBI: logical eraseblock size: 129024 bytes
- UBI: smallest flash I/O unit: 2048
- UBI: sub-page size: 512
- UBI: VID header offset: 512 (aligned 512)
- UBI: data offset: 2048
- UBI: max. sequence number: 215
- UBI: attached mtd4 to ubi0
- UBI: MTD device name: "Root1"
- UBI: MTD device size: 55 MiB
- UBI: number of good PEBs: 436
- UBI: number of bad PEBs: 4
- UBI: number of corrupted PEBs: 0
- UBI: max. allowed volumes: 128
- UBI: wear-leveling threshold: 4096
- UBI: number of internal volumes: 1
- UBI: number of user volumes: 1
- UBI: available PEBs: 0
- UBI: total number of reserved PEBs: 436
- UBI: number of PEBs reserved for bad PEB handling: 4
- UBI: max/mean erase counter: 2/1
- UBI: image sequence number: 219044452
- UBI: background thread "ubi_bgt0d" started, PID 799
- mii init .
- MACB_mii_bus: probed
- eth0: Atmel MACB at 0xfffc4000 irq 21 (00:23:b8:33:45:66)
- eth0: attached PHY driver [Generic PHY] (mii_bus:phy_addr=ffffffff:00, irq=-1)
- usbmon: debugfs is not available
- ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
- at91_ohci at91_ohci: AT91 OHCI
- at91_ohci at91_ohci: new USB bus registered, assigned bus number 1
- at91_ohci at91_ohci: irq 20, io mem 0x00500000
- hub 1-0:1.0: USB hub found
- hub 1-0:1.0: 2 ports detected
- Initializing USB Mass Storage driver...
- usbcore: registered new interface driver usb-storage
- USB Mass Storage support registered.
- udc: at91_udc version 3 May 2006
- mousedev: PS/2 mouse device common for all mice
- rtc-ds1307 0-0068: rtc core: registered ds1307 as rtc0
- rtc-ds1307 0-0068: 56 bytes nvram
- i2c /dev entries driver
- AT91SAM9 Watchdog: sorry, watchdog is disabled
- at91_wdt: probe of at91_wdt failed with error -5
- TCP cubic registered
- NET: Registered protocol family 17
- rtc-ds1307 0-0068: setting system clock to 2000-01-13 18:07:32 UTC (947786852)
- UBIFS: recovery needed
- UBIFS: recovery completed
- UBIFS: mounted UBI device 0, volume 0, name "Root"
- UBIFS: file system size: 50319360 bytes (49140 KiB, 47 MiB, 390 LEBs)
- UBIFS: journal size: 6838272 bytes (6678 KiB, 6 MiB, 53 LEBs)
- UBIFS: media format: w4/r0 (latest is w4/r0)
- UBIFS: default compressor: lzo
- UBIFS: reserved for root: 0 bytes (0 KiB)
- VFS: Mounted root (ubifs filesystem) on device 0:12.
- devtmpfs: mounted
- Freeing init memory: 120K
复制代码
异常启动打印如下:
- [color=DarkRed]AT91Bootstrap loading from nandflash 0x20000...
- U-Boot 2012.10 (Mar 02 2013 - 10:58:05)
- CPU: AT91SAM9260
- Crystal frequency: 18.432 MHz
- CPU clock : 198.656 MHz
- Master clock : 99.328 MHz
- DRAM: 32 MiB
- WARNING: Caches not enabled
- NAND: 128 MiB
- *** Warning - bad CRC, using default environment
- In: serial
- Out: serial
- Err: serial
- Net: macb0
- NAND read: device 0 offset 0x7700000, size 0x2
- 2 bytes read: OK
- NAND read: device 0 offset 0x7700000, size 0x2
- 2 bytes read: OK
- Hit any key to stop autoboot: 0
- NAND read: device 0 offset 0x100000, size 0x400000
- 4194304 bytes read: OK
- ## Booting kernel from Legacy Image at 20008000 ...
- Image Name: Linux-2.6.38.2
- Image Type: ARM Linux Kernel Image (uncompressed)
- Data Size: 1540396 Bytes = 1.5 MiB
- Load Address: 20008000
- Entry Point: 20008040
- Verifying Checksum ... OK
- XIP Kernel Image ... OK
- OK
- Starting kernel ...
- Uncompressing Linux... done, booting the kernel.
- Linux version 2.6.38.2 (zcj@project-manager) (gcc version 4.2.2) #29 Sat Mar 23 16:16:54 CST 2013
- CPU: ARM926EJ-S [41069265] revision 5 (ARMv5TEJ), cr=00053177
- CPU: VIVT data cache, VIVT instruction cache
- Machine: Atmel AT91SAM9260-EK
- Memory policy: ECC disabled, Data cache writeback
- Clocks: CPU 198 MHz, master 99 MHz, main 18.432 MHz
- Built 1 zonelists in Zone order, mobility grouping on. Total pages: 8128
- Kernel command line: console=ttySAC0,115200 mem=32M mtdparts=atmel_nand:128K(BootAgent)ro,896K(Uboot)ro,4M(Kernel1),4M(Kernel2),55M(Root1),55M(Root2),-(data) ubi.mtd=4 root=ubi0:Root rootfstype=ubifs rw
- PID hash table entries: 128 (order: -3, 512 bytes)
- 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: 29328k/29328k available, 3440k reserved, 0K highmem
- Virtual kernel memory layout:
- vector : 0xffff0000 - 0xffff1000 ( 4 kB)
- fixmap : 0xfff00000 - 0xfffe0000 ( 896 kB)
- DMA : 0xffc00000 - 0xffe00000 ( 2 MB)
- vmalloc : 0xc2800000 - 0xfee00000 ( 966 MB)
- lowmem : 0xc0000000 - 0xc2000000 ( 32 MB)
- modules : 0xbf000000 - 0xc0000000 ( 16 MB)
- .init : 0xc0008000 - 0xc0026000 ( 120 kB)
- .text : 0xc0026000 - 0xc02d375c (2742 kB)
- .data : 0xc02d4000 - 0xc02f1900 ( 119 kB)
- NR_IRQS:192
- AT91: 96 gpio irqs in 3 banks
- Console: colour dummy device 80x30
- console [ttyS0] enabled
- Calibrating delay loop... 99.12 BogoMIPS (lpj=495616)
- pid_max: default: 32768 minimum: 301
- Mount-cache hash table entries: 512
- CPU: Testing write buffer coherency: ok
- devtmpfs: initialized
- NET: Registered protocol family 16
- 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
- i2c-gpio i2c-gpio: using pins 55 (SDA) and 56 (SCL)
- Switching to clocksource pit
- 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
- UDP hash table entries: 256 (order: 0, 4096 bytes)
- UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
- NET: Registered protocol family 1
- NetWinder Floating Point Emulator V0.97 (double precision)
- JFFS2 version 2.2. (NAND) © 2001-2006 Red Hat, Inc.
- msgmni has been set to 57
- io scheduler noop registered (default)
- atmel_usart.0: ttyS0 at MMIO 0xfefff200 (irq = 1) is a ATMEL_SERIAL
- atmel_usart.1: ttyS1 at MMIO 0xfffb0000 (irq = 6) is a ATMEL_SERIAL
- atmel_usart.2: ttyS2 at MMIO 0xfffb4000 (irq = 7) is a ATMEL_SERIAL
- atmel_usart.3: ttyS3 at MMIO 0xfffb8000 (irq = 8) is a ATMEL_SERIAL
- brd: module loaded
- NAND device: Manufacturer ID: 0xec, Chip ID: 0xf1 (Samsung NAND 128MiB 3,3V 8-bit)
- Scanning device for bad blocks
- 7 cmdlinepart partitions found on MTD device atmel_nand
- Creating 7 MTD partitions on "atmel_nand":
- 0x000000000000-0x000000020000 : "BootAgent"
- 0x000000020000-0x000000100000 : "Uboot"
- 0x000000100000-0x000000500000 : "Kernel1"
- 0x000000500000-0x000000900000 : "Kernel2"
- 0x000000900000-0x000004000000 : "Root1"
- 0x000004000000-0x000007700000 : "Root2"
- 0x000007700000-0x000008000000 : "data"
- UBI: attaching mtd4 to ubi0
- UBI: physical eraseblock size: 131072 bytes (128 KiB)
- UBI: logical eraseblock size: 129024 bytes
- UBI: smallest flash I/O unit: 2048
- UBI: sub-page size: 512
- UBI: VID header offset: 512 (aligned 512)
- UBI: data offset: 2048
- uncorrectable error :
- UBI error: ubi_io_read: error -74 (ECC error) while reading 64 bytes from PEB 0:0, read 64 bytes
- uncorrectable error :
- UBI error: ubi_io_read: error -74 (ECC error) while reading 512 bytes from PEB 0:512, read 512 bytes
- uncorrectable error :
- UBI error: ubi_io_read: error -74 (ECC error) while reading 64 bytes from PEB 1:0, read 64 bytes
- uncorrectable error :
- UBI error: ubi_io_read: error -74 (ECC error) while reading 512 bytes from PEB 1:512, read 512 bytes
- uncorrectable error :
- UBI error: ubi_io_read: error -74 (ECC error) while reading 64 bytes from PEB 79:0, read 64 bytes
- uncorrectable error :
- uncorrectable error :
- UBI error: ubi_io_read: error -74 (ECC error) while reading 512 bytes from PEB 79:512, read 512 bytes
- uncorrectable error :
- UBI error: ubi_io_read: error -74 (ECC error) while reading 64 bytes from PEB 80:0, read 64 bytes
- uncorrectable error :
- uncorrectable error :
- UBI error: ubi_io_read: error -74 (ECC error) while reading 512 bytes from PEB 80:512, read 512 bytes
- uncorrectable error :
- UBI error: ubi_io_read: error -74 (ECC error) while reading 64 bytes from PEB 152:0, read 64 bytes
- uncorrectable error :
- uncorrectable error :
- UBI error: ubi_io_read: error -74 (ECC error) while reading 512 bytes from PEB 152:512, read 512 bytes
- UBI: max. sequence number: 0
- UBI error: ubi_read_volume_table: the layout volume was not found
- UBI error: ubi_init: cannot attach mtd4
- mii init .
- MACB_mii_bus: probed
- eth0: Atmel MACB at 0xfffc4000 irq 21 (00:23:b8:33:45:66)
- eth0: attached PHY driver [Generic PHY] (mii_bus:phy_addr=ffffffff:00, irq=-1)
- usbmon: debugfs is not available
- ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
- at91_ohci at91_ohci: AT91 OHCI
- at91_ohci at91_ohci: new USB bus registered, assigned bus number 1
- at91_ohci at91_ohci: irq 20, io mem 0x00500000
- hub 1-0:1.0: USB hub found
- hub 1-0:1.0: 2 ports detected
- Initializing USB Mass Storage driver...
- usbcore: registered new interface driver usb-storage
- USB Mass Storage support registered.
- udc: at91_udc version 3 May 2006
- mousedev: PS/2 mouse device common for all mice
- rtc-ds1307 0-0068: rtc core: registered ds1307 as rtc0
- rtc-ds1307 0-0068: 56 bytes nvram
- i2c /dev entries driver
- AT91SAM9 Watchdog: sorry, watchdog is disabled
- at91_wdt: probe of at91_wdt failed with error -5
- TCP cubic registered
- NET: Registered protocol family 17
- rtc-ds1307 0-0068: setting system clock to 2000-01-13 02:42:36 UTC (947731356)
- VFS: Cannot open root device "ubi0:Root" or unknown-block(0,0)
- Please append a correct "root=" boot option; here are the available partitions:
- 1f00 128 mtdblock0 (driver?)
- 1f01 896 mtdblock1 (driver?)
- 1f02 4096 mtdblock2 (driver?)
- 1f03 4096 mtdblock3 (driver?)
- 1f04 56320 mtdblock4 (driver?)
- 1f05 56320 mtdblock5 (driver?)
- 1f06 9216 mtdblock6 (driver?)
- Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
- [<c0031cd8>] (unwind_backtrace+0x0/0xf0) from [<c003d9e0>] (panic+0x54/0x194)
- [<c003d9e0>] (panic+0x54/0x194) from [<c0009064>] (mount_block_root+0x24c/0x2a4)
- [<c0009064>] (mount_block_root+0x24c/0x2a4) from [<c00091b4>] (prepare_namespace+0x8c/0x1d4)
- [<c00091b4>] (prepare_namespace+0x8c/0x1d4) from [<c00088b8>] (kernel_init+0x104/0x148)
- [<c00088b8>] (kernel_init+0x104/0x148) from [<c002d7b8>] (kernel_thread_exit+0x0/0x8)[/color]
复制代码
看的出来时UBI那里开始出现问题。uboot能启动,内核也能解压,但是文件系统这里出了毛病,真是奇怪。 |
|