TI大神们:
我正在使用AM3354+8G NANDFLASH(Page:2048+128)进行开发,u-boot版本:2011-09,kernel版本:3.2.0;目前遇到一个关于文件系统启动的问题。
在使用SD卡烧写文件系统时使用mmc rescan;fatload mmc 0 0x82000000 rootfs.yaffs2;nand erase 0x780000 0xF880000;nandecc sw; nand write.yaffs 0x82000000 0x780000 ${filesize}指令,即使用软件ecc汉明码校验时,从nandflash启动没有问题。
但由于客户需求全部使用硬件ecc校验方式,当我使用mmc rescan;fatload mmc 0 0x82000000 rootfs.yaffs2;nand erase 0x780000 0xF880000; nand write.yaffs 0x82000000 0x780000 ${filesize},即没有ecc校验时,板子从nandflash启动会出现如下错误:
U-Boot 2011.09-00000-ge6d45fd-dirty (Nov 21 2018 - 14:23:18)
DRAM: 512 MiB
NAND: 1024 MiB
MMC: OMAP SD/MMC: 0
*** Warning - bad CRC, using default environment
Net: cpsw
Hit any key to stop autoboot: 0
Booting from nand ...
HW ECC BCH8 Selected
NAND read: device 0 offset 0x280000, size 0x380000
3670016 bytes read: OK
## Booting kernel from Legacy Image at 80007fc0 ...
Image Name: Linux-3.2.0
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 3044464 Bytes = 2.9 MiB
Load Address: 80008000
Entry Point: 80008000
Verifying Checksum ... OK
XIP Kernel Image ... OK
OK
Starting kernel ...
Uncompressing Linux... done, booting the kernel.
[ 0.000000] Linux version 3.2.0 (wxk@wxk-virtual-machine) (gcc version 4.5.3 20110311 (prerelease) (GCC) ) #1 Tue Nov 20 16:41:19 CST 2018
[ 0.000000] CPU: ARMv7 Processor [413fc082] revision 2 (ARMv7), cr=10c53c7d
[ 0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[ 0.000000] Machine: am335xevm
[ 0.000000] Memory policy: ECC disabled, Data cache writeback
[ 0.000000] AM335X ES2.1 (sgx neon )
[ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 130048
[ 0.000000] Kernel command line: console=ttyO0,115200n8 root=/dev/mtdblock7 rw noinitrd rootfstype=yaffs2 rootwait=1 ip=none
[ 0.000000] PID hash table entries: 2048 (order: 1, 8192 bytes)
[ 0.000000] Dentry cache hash table entries: 65536 (order: 6, 262144 bytes)
[ 0.000000] Inode-cache hash table entries: 32768 (order: 5, 131072 bytes)
[ 0.000000] Memory: 512MB = 512MB total
[ 0.000000] Memory: 513416k/513416k available, 10872k reserved, 0K highmem
[ 0.000000] Virtual kernel memory layout:
[ 0.000000] vector : 0xffff0000 - 0xffff1000 ( 4 kB)
[ 0.000000] fixmap : 0xfff00000 - 0xfffe0000 ( 896 kB)
[ 0.000000] vmalloc : 0xe0800000 - 0xff000000 ( 488 MB)
[ 0.000000] lowmem : 0xc0000000 - 0xe0000000 ( 512 MB)
[ 0.000000] modules : 0xbf000000 - 0xc0000000 ( 16 MB)
[ 0.000000] .text : 0xc0008000 - 0xc0564000 (5488 kB)
[ 0.000000] .init : 0xc0564000 - 0xc05a0000 ( 240 kB)
[ 0.000000] .data : 0xc05a0000 - 0xc0601350 ( 389 kB)
[ 0.000000] .bss : 0xc0601374 - 0xc062f904 ( 186 kB)
[ 0.000000] NR_IRQS:396
[ 0.000000] IRQ: Found an INTC at 0xfa200000 (revision 5.0) with 128 interrupts
[ 0.000000] Total of 128 interrupts on 1 active controller
[ 0.000000] OMAP clockevent source: GPTIMER2 at 24000000 Hz
[ 0.000000] OMAP clocksource: GPTIMER1 at 24000000 Hz
[ 0.000000] sched_clock: 32 bits at 24MHz, resolution 41ns, wraps every 178956ms
[ 0.000000] Console: colour dummy device 80x30
[ 0.000239] Calibrating delay loop... 498.89 BogoMIPS (lpj=2494464)
[ 0.058636] pid_max: default: 32768 minimum: 301
[ 0.058806] Security Framework initialized
[ 0.058932] Mount-cache hash table entries: 512
[ 0.059401] CPU: Testing write buffer coherency: ok
[ 0.081398] omap_hwmod: pruss: failed to hardreset
[ 0.082801] print_constraints: dummy:
[ 0.083266] NET: Registered protocol family 16
[ 0.086093] OMAP GPIO hardware version 0.1
[ 0.089682] omap_mux_init: Add partition: #1: core, flags: 0
[ 0.092058] omap_i2c.1: alias fck already exists
[ 0.092864] ------init am335x_eth_gpio_init
[ 0.094728] da8xx_lcdc.0: alias fck already exists
[ 0.095142] davinci-mcasp.0: alias fck already exists
[ 0.096555] omap_hsmmc.0: alias fck already exists
[ 0.096946] d_can.0: alias fck already exists
[ 0.097244] d_can.1: alias fck already exists
[ 0.097899] _regulator_get: l3_main.0 supply vdd_core not found, using dummy regulator
[ 0.098016] am335x_opp_update: physical regulator not present for core(-22)
[ 0.098528] omap2_mcspi.1: alias fck already exists
[ 0.098918] omap2_mcspi.2: alias fck already exists
[ 0.100224] edma.0: alias fck already exists
[ 0.100259] edma.0: alias fck already exists
[ 0.100287] edma.0: alias fck already exists
[ 0.131925] bio: create slab <bio-0> at 0
[ 0.134559] SCSI subsystem initialized
[ 0.136710] usbcore: registered new interface driver usbfs
[ 0.137128] usbcore: registered new interface driver hub
[ 0.137395] usbcore: registered new device driver usb
[ 0.137778] registerd cppi-dma Intr @ IRQ 17
[ 0.137798] Cppi41 Init Done Qmgr-base(e087a000) dma-base(e0878000)
[ 0.137812] Cppi41 Init Done
[ 0.137847] musb-ti81xx musb-ti81xx: musb0, board_mode=0x13, plat_mode=0x3
[ 0.138240] musb-ti81xx musb-ti81xx: musb1, board_mode=0x13, plat_mode=0x1
[ 0.158694] omap_i2c omap_i2c.1: bus 1 rev2.4.0 at 100 kHz
[ 0.159967] tps65910 1-002d: JTAGREVNUM 0x0
[ 0.162565] print_constraints: VRTC:
[ 0.164124] print_constraints: VIO: at 1800 mV
[ 0.166572] print_constraints: VDD1: 600 <--> 1500 mV at 1100 mV normal
[ 0.169005] print_constraints: VDD2: 600 <--> 1500 mV at 1100 mV normal
[ 0.170134] print_constraints: VDD3: 5000 mV
[ 0.171655] print_constraints: VDIG1: at 1800 mV
[ 0.173213] print_constraints: VDIG2: at 1800 mV
[ 0.174753] print_constraints: VPLL: at 1800 mV
[ 0.176300] print_constraints: VDAC: at 1800 mV
[ 0.177847] print_constraints: VAUX1: at 1800 mV
[ 0.179401] print_constraints: VAUX2: at 3300 mV
[ 0.180954] print_constraints: VAUX33: at 3300 mV
[ 0.182492] print_constraints: VMMC: at 3300 mV
[ 0.183175] tps65910 1-002d: No interrupt support, no core IRQ
[ 0.185019] Advanced Linux Sound Architecture Driver Version 1.0.24.
[ 0.186564] Switching to clocksource gp timer
[ 0.208074] musb-hdrc: version 6.0, ?dma?, otg (peripheral+host)
[ 0.208316] musb-hdrc musb-hdrc.0: dma type: dma-cppi41
[ 0.208735] MUSB0 controller's USBSS revision = 4ea20800
[ 0.208779] musb0: Enabled SW babble control
[ 0.209978] musb-hdrc musb-hdrc.0: USB OTG mode controller at e083c000 using DMA, IRQ 18
[ 0.210185] musb-hdrc musb-hdrc.1: dma type: dma-cppi41
[ 0.210588] MUSB1 controller's USBSS revision = 4ea20800
[ 0.210627] musb1: Enabled SW babble control
[ 0.211191] musb-hdrc musb-hdrc.1: MUSB HDRC host driver
[ 0.211301] musb-hdrc musb-hdrc.1: new USB bus registered, assigned bus number 1
[ 0.211462] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[ 0.211484] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[ 0.211504] usb usb1: Product: MUSB HDRC host driver
[ 0.211519] usb usb1: Manufacturer: Linux 3.2.0 musb-hcd
[ 0.211534] usb usb1: SerialNumber: musb-hdrc.1
[ 0.212610] hub 1-0:1.0: USB hub found
[ 0.212652] hub 1-0:1.0: 1 port detected
[ 0.213386] musb-hdrc musb-hdrc.1: USB Host mode controller at e083e800 using DMA, IRQ 19
[ 0.213927] NET: Registered protocol family 2
[ 0.214161] IP route cache hash table entries: 4096 (order: 2, 16384 bytes)
[ 0.214561] TCP established hash table entries: 16384 (order: 5, 131072 bytes)
[ 0.214984] TCP bind hash table entries: 16384 (order: 4, 65536 bytes)
[ 0.215235] TCP: Hash tables configured (established 16384 bind 16384)
[ 0.215252] TCP reno registered
[ 0.215270] UDP hash table entries: 256 (order: 0, 4096 bytes)
[ 0.215302] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[ 0.215551] NET: Registered protocol family 1
[ 0.215860] RPC: Registered named UNIX socket transport module.
[ 0.215880] RPC: Registered udp transport module.
[ 0.215893] RPC: Registered tcp transport module.
[ 0.215905] RPC: Registered tcp NFSv4.1 backchannel transport module.
[ 0.216221] NetWinder Floating Point Emulator V0.97 (double precision)
[ 0.216484] omap-gpmc omap-gpmc: GPMC revision 6.0
[ 0.216508] Registering NAND on CS0
[ 0.240704] VFS: Disk quotas dquot_6.5.2
[ 0.240792] Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[ 0.241549] msgmni has been set to 1002
[ 0.245622] alg: No test for stdrng (krng)
[ 0.246472] io scheduler noop registered
[ 0.246491] io scheduler deadline registered
[ 0.246572] io scheduler cfq registered (default)
[ 0.247821] da8xx_lcdc da8xx_lcdc.0: GLCD: Found QY_LCD panel
[ 0.262743] Console: switching to colour frame buffer device 100x37
[ 0.272674] omap_uart.0: ttyO0 at MMIO 0x44e09000 (irq = 72) is a OMAP UART0
[ 0.985805] console [ttyO0] enabled
[ 0.990347] omap_uart.1: ttyO1 at MMIO 0x48022000 (irq = 73) is a OMAP UART1
[ 0.998411] omap_uart.2: ttyO2 at MMIO 0x48024000 (irq = 74) is a OMAP UART2
[ 1.006399] omap_uart.3: ttyO3 at MMIO 0x481a6000 (irq = 44) is a OMAP UART3
[ 1.014417] omap_uart.4: ttyO4 at MMIO 0x481a8000 (irq = 45) is a OMAP UART4
[ 1.022415] omap_uart.5: ttyO5 at MMIO 0x481aa000 (irq = 46) is a OMAP UART5
[ 1.031116] omap4_rng omap4_rng: OMAP4 Random Number Generator ver. 2.00
[ 1.038806] am335x buzzer driver
[ 1.055363] brd: module loaded
[ 1.065232] loop: module loaded
[ 1.069431] am335x eth_reset driver
[ 1.076404] mtdoops: mtd device (mtddev=name/number) must be supplied
[ 1.083947] omap2-nand driver initializing
[ 1.088658] ONFI flash detected
[ 1.092094] ONFI param page 0 valid
[ 1.095774] NAND device: Manufacturer ID: 0x01, Chip ID: 0xd3 (AMD S34ML08G2)
[ 1.103585] Creating 8 MTD partitions on "omap2-nand.0":
[ 1.109215] 0x000000000000-0x000000020000 : "SPL"
[ 1.116074] 0x000000020000-0x000000040000 : "SPL.backup1"
[ 1.123599] 0x000000040000-0x000000060000 : "SPL.backup2"
[ 1.131049] 0x000000060000-0x000000080000 : "SPL.backup3"
[ 1.138397] 0x000000080000-0x000000260000 : "U-Boot"
[ 1.146054] 0x000000260000-0x000000280000 : "U-Boot Env"
[ 1.153361] 0x000000280000-0x000000780000 : "Kernel"
[ 1.162357] 0x000000780000-0x000020000000 : "File System"
[ 1.382435] CAN device driver interface
[ 1.386492] CAN bus driver for Bosch D_CAN controller 1.0
[ 1.393359] d_can d_can.0: device registered (irq=52, irq_obj=53)
[ 1.400735] d_can d_can.1: device registered (irq=55, irq_obj=56)
[ 1.456643] davinci_mdio davinci_mdio.0: davinci mdio revision 1.6
[ 1.463160] davinci_mdio davinci_mdio.0: detected phy mask fffffff9
[ 1.471237] davinci_mdio.0: probed
[ 1.474825] davinci_mdio davinci_mdio.0: phy[1]: device 0:01, driver unknown
[ 1.482276] davinci_mdio davinci_mdio.0: phy[2]: device 0:02, driver unknown
[ 1.490215] usbcore: registered new interface driver cdc_ether
[ 1.496521] usbcore: registered new interface driver cdc_eem
[ 1.502668] usbcore: registered new interface driver dm9601
[ 1.508568] cdc_ncm: 04-Aug-2011
[ 1.512151] usbcore: registered new interface driver cdc_ncm
[ 1.518083] Initializing USB Mass Storage driver...
[ 1.523489] usbcore: registered new interface driver usb-storage
[ 1.529787] USB Mass Storage support registered.
[ 1.535293] mousedev: PS/2 mouse device common for all mice
[ 1.542197] input: ti-tsc as /devices/platform/omap/ti_tscadc/tsc/input/input0
[ 1.552223] rtc-ds1307 1-0068: SET TIME!
[ 1.558922] rtc-ds1307 1-0068: rtc core: registered ds1338 as rtc0
[ 1.565449] rtc-ds1307 1-0068: 56 bytes nvram
[ 1.570267] i2c /dev entries driver
[ 1.575381] OMAP Watchdog Timer Rev 0x01: initial timeout 60 sec
[ 1.586895] cpuidle: using governor ladder
[ 1.591753] cpuidle: using governor menu
[ 1.598033] omap4_aes_mod_init: loading AM33X AES driver
[ 1.603729] omap4-aes omap4-aes: AM33X AES hw accel rev: 3.02
[ 1.610389] omap4_aes_probe: probe() done
[ 1.614868] omap4_sham_mod_init: loading AM33X SHA/MD5 driver
[ 1.621054] omap4-sham omap4-sham: AM33X SHA/MD5 hw accel rev: 4.03
[ 1.633322] omap4_sham_probe: probe() done
[ 1.640359] usbcore: registered new interface driver usbhid
[ 1.646185] usbhid: USB HID core driver
[ 1.650954] tiadc tiadc: attached adc driver
[ 1.656233] usbcore: registered new interface driver snd-usb-audio
[ 1.664907] _regulator_get: 1-0018 supply IOVDD not found, using dummy regulator
[ 1.672737] _regulator_get: 1-0018 supply DVDD not found, using dummy regulator
[ 1.680430] _regulator_get: 1-0018 supply AVDD not found, using dummy regulator
[ 1.688111] _regulator_get: 1-0018 supply DRVDD not found, using dummy regulator
[ 1.699050] asoc: tlv320aic3x-hifi <-> davinci-mcasp.0 mapping ok
[ 1.707015] ALSA device list:
[ 1.710116] #0: AM335X EVM
[ 1.713117] oprofile: hardware counters not available
[ 1.718415] oprofile: using timer interrupt.
[ 1.722897] nf_conntrack version 0.5.0 (8022 buckets, 32088 max)
[ 1.729819] ip_tables: (C) 2000-2006 Netfilter Core Team
[ 1.735502] TCP cubic registered
[ 1.738901] NET: Registered protocol family 17
[ 1.743545] can: controller area network core (rev 20090105 abi 8)
[ 1.750109] NET: Registered protocol family 29
[ 1.754792] can: raw protocol (rev 20090105)
[ 1.759262] can: broadcast manager protocol (rev 20090105 t)
[ 1.765221] Registering the dns_resolver key type
[ 1.770245] VFP support v0.3: implementor 41 architecture 3 part 30 variant c rev 3
[ 1.778284] ThumbEE CPU extension supported.
[ 1.782805] mux: Failed to setup hwmod io irq -22
[ 1.788485] Power Management for AM33XX family
[ 1.793359] Trying to load am335x-pm-firmware.bin (60 secs timeout)
[ 1.800060] Copied the M3 firmware to UMEM
[ 1.804415] Cortex M3 Firmware Version = 0x181
[ 1.809744] sr_init: platform driver register failed
[ 1.820107] clock: disabling unused clocks to save power
[ 1.840004] Detected MACID=38:d2:69:47:7e:a
[ 1.845660] cpsw: Detected MACID = 38:d2:69:47:7e:0c
[ 1.852983] rtc-ds1307 1-0068: setting system clock to 2000-01-01 00:00:14 UTC (946684814)
[ 1.862255] yaffs: dev is 32505863 name is "mtdblock7" rw
[ 1.867936] yaffs: passed flags ""
[ 2.733775] uncorrectable error :
[ 2.737167] uncorrectable error :
[ 2.755021] uncorrectable error :
[ 2.758585] uncorrectable error :
[ 2.762133] uncorrectable error :
[ 2.765677] uncorrectable error :
[ 2.776373] uncorrectable error :
......
后来尝试了修改kernel源码arch/arm/mach-omap2/board-am335xevm.c中的evm_nand_init函数,将原本的pdata->ecc_opt=OMAP_ECC_HAMMING_CODE_DEFAULT改为pdata->ecc_opt =OMAP_ECC_BCH8_CODE_HW,在使用SD卡烧写文件系统时使用mmc rescan;fatload mmc 0 0x82000000 rootfs.yaffs2;nand erase 0x780000 0xF880000;nandecc hw 2; nand write.yaffs 0x82000000 0x780000 ${filesize},即使用硬件BCH8校验,板子从nandflash启动时会报如下错误:
U-Boot 2011.09-00000-ge6d45fd-dirty (Nov 21 2018 - 14:23:18)
DRAM: 512 MiB
NAND: 1024 MiB
MMC: OMAP SD/MMC: 0
*** Warning - bad CRC, using default environment
Net: cpsw
Hit any key to stop autoboot: 0
Booting from nand ...
HW ECC BCH8 Selected
NAND read: device 0 offset 0x280000, size 0x380000
3670016 bytes read: OK
## Booting kernel from Legacy Image at 80007fc0 ...
Image Name: Linux-3.2.0
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 3044440 Bytes = 2.9 MiB
Load Address: 80008000
Entry Point: 80008000
Verifying Checksum ... OK
XIP Kernel Image ... OK
OK
Starting kernel ...
Uncompressing Linux... done, booting the kernel.
[ 0.000000] Linux version 3.2.0 (wxk@wxk-virtual-machine) (gcc version 4.5.3 20110311 (prerelease) (GCC) ) #2 Tue Nov 27 10:05:18 CST 2018
[ 0.000000] CPU: ARMv7 Processor [413fc082] revision 2 (ARMv7), cr=10c53c7d
[ 0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[ 0.000000] Machine: am335xevm
[ 0.000000] Memory policy: ECC disabled, Data cache writeback
[ 0.000000] AM335X ES2.1 (sgx neon )
[ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 130048
[ 0.000000] Kernel command line: console=ttyO0,115200n8 root=/dev/mtdblock7 rw noinitrd rootfstype=yaffs2 rootwait=1 ip=none
[ 0.000000] PID hash table entries: 2048 (order: 1, 8192 bytes)
[ 0.000000] Dentry cache hash table entries: 65536 (order: 6, 262144 bytes)
[ 0.000000] Inode-cache hash table entries: 32768 (order: 5, 131072 bytes)
[ 0.000000] Memory: 512MB = 512MB total
[ 0.000000] Memory: 513416k/513416k available, 10872k reserved, 0K highmem
[ 0.000000] Virtual kernel memory layout:
[ 0.000000] vector : 0xffff0000 - 0xffff1000 ( 4 kB)
[ 0.000000] fixmap : 0xfff00000 - 0xfffe0000 ( 896 kB)
[ 0.000000] vmalloc : 0xe0800000 - 0xff000000 ( 488 MB)
[ 0.000000] lowmem : 0xc0000000 - 0xe0000000 ( 512 MB)
[ 0.000000] modules : 0xbf000000 - 0xc0000000 ( 16 MB)
[ 0.000000] .text : 0xc0008000 - 0xc0564000 (5488 kB)
[ 0.000000] .init : 0xc0564000 - 0xc05a0000 ( 240 kB)
[ 0.000000] .data : 0xc05a0000 - 0xc0601350 ( 389 kB)
[ 0.000000] .bss : 0xc0601374 - 0xc062f904 ( 186 kB)
[ 0.000000] NR_IRQS:396
[ 0.000000] IRQ: Found an INTC at 0xfa200000 (revision 5.0) with 128 interrupts
[ 0.000000] Total of 128 interrupts on 1 active controller
[ 0.000000] OMAP clockevent source: GPTIMER2 at 24000000 Hz
[ 0.000000] OMAP clocksource: GPTIMER1 at 24000000 Hz
[ 0.000000] sched_clock: 32 bits at 24MHz, resolution 41ns, wraps every 178956ms
[ 0.000000] Console: colour dummy device 80x30
[ 0.000235] Calibrating delay loop... 498.89 BogoMIPS (lpj=2494464)
[ 0.058641] pid_max: default: 32768 minimum: 301
[ 0.058807] Security Framework initialized
[ 0.058935] Mount-cache hash table entries: 512
[ 0.059406] CPU: Testing write buffer coherency: ok
[ 0.081418] omap_hwmod: pruss: failed to hardreset
[ 0.082839] print_constraints: dummy:
[ 0.083307] NET: Registered protocol family 16
[ 0.086112] OMAP GPIO hardware version 0.1
[ 0.089688] omap_mux_init: Add partition: #1: core, flags: 0
[ 0.092085] omap_i2c.1: alias fck already exists
[ 0.092903] ------init am335x_eth_gpio_init
[ 0.094776] da8xx_lcdc.0: alias fck already exists
[ 0.095194] davinci-mcasp.0: alias fck already exists
[ 0.096616] omap_hsmmc.0: alias fck already exists
[ 0.097001] d_can.0: alias fck already exists
[ 0.097301] d_can.1: alias fck already exists
[ 0.097962] _regulator_get: l3_main.0 supply vdd_core not found, using dummy regulator
[ 0.098077] am335x_opp_update: physical regulator not present for core(-22)
[ 0.098589] omap2_mcspi.1: alias fck already exists
[ 0.098981] omap2_mcspi.2: alias fck already exists
[ 0.100282] edma.0: alias fck already exists
[ 0.100318] edma.0: alias fck already exists
[ 0.100345] edma.0: alias fck already exists
[ 0.132035] bio: create slab <bio-0> at 0
[ 0.134663] SCSI subsystem initialized
[ 0.136819] usbcore: registered new interface driver usbfs
[ 0.137232] usbcore: registered new interface driver hub
[ 0.137500] usbcore: registered new device driver usb
[ 0.137880] registerd cppi-dma Intr @ IRQ 17
[ 0.137901] Cppi41 Init Done Qmgr-base(e087a000) dma-base(e0878000)
[ 0.137915] Cppi41 Init Done
[ 0.137950] musb-ti81xx musb-ti81xx: musb0, board_mode=0x13, plat_mode=0x3
[ 0.138346] musb-ti81xx musb-ti81xx: musb1, board_mode=0x13, plat_mode=0x1
[ 0.158699] omap_i2c omap_i2c.1: bus 1 rev2.4.0 at 100 kHz
[ 0.159971] tps65910 1-002d: JTAGREVNUM 0x0
[ 0.162572] print_constraints: VRTC:
[ 0.164135] print_constraints: VIO: at 1800 mV
[ 0.166587] print_constraints: VDD1: 600 <--> 1500 mV at 1100 mV normal
[ 0.169019] print_constraints: VDD2: 600 <--> 1500 mV at 1100 mV normal
[ 0.170147] print_constraints: VDD3: 5000 mV
[ 0.171667] print_constraints: VDIG1: at 1800 mV
[ 0.173225] print_constraints: VDIG2: at 1800 mV
[ 0.174763] print_constraints: VPLL: at 1800 mV
[ 0.176313] print_constraints: VDAC: at 1800 mV
[ 0.177863] print_constraints: VAUX1: at 1800 mV
[ 0.179422] print_constraints: VAUX2: at 3300 mV
[ 0.180979] print_constraints: VAUX33: at 3300 mV
[ 0.182510] print_constraints: VMMC: at 3300 mV
[ 0.183186] tps65910 1-002d: No interrupt support, no core IRQ
[ 0.185030] Advanced Linux Sound Architecture Driver Version 1.0.24.
[ 0.186572] Switching to clocksource gp timer
[ 0.208076] musb-hdrc: version 6.0, ?dma?, otg (peripheral+host)
[ 0.208316] musb-hdrc musb-hdrc.0: dma type: dma-cppi41
[ 0.208735] MUSB0 controller's USBSS revision = 4ea20800
[ 0.208781] musb0: Enabled SW babble control
[ 0.209978] musb-hdrc musb-hdrc.0: USB OTG mode controller at e083c000 using DMA, IRQ 18
[ 0.210183] musb-hdrc musb-hdrc.1: dma type: dma-cppi41
[ 0.210577] MUSB1 controller's USBSS revision = 4ea20800
[ 0.210615] musb1: Enabled SW babble control
[ 0.211182] musb-hdrc musb-hdrc.1: MUSB HDRC host driver
[ 0.211292] musb-hdrc musb-hdrc.1: new USB bus registered, assigned bus number 1
[ 0.211458] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[ 0.211480] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[ 0.211500] usb usb1: Product: MUSB HDRC host driver
[ 0.211515] usb usb1: Manufacturer: Linux 3.2.0 musb-hcd
[ 0.211530] usb usb1: SerialNumber: musb-hdrc.1
[ 0.212623] hub 1-0:1.0: USB hub found
[ 0.212665] hub 1-0:1.0: 1 port detected
[ 0.213394] musb-hdrc musb-hdrc.1: USB Host mode controller at e083e800 using DMA, IRQ 19
[ 0.213934] NET: Registered protocol family 2
[ 0.214166] IP route cache hash table entries: 4096 (order: 2, 16384 bytes)
[ 0.214579] TCP established hash table entries: 16384 (order: 5, 131072 bytes)
[ 0.215002] TCP bind hash table entries: 16384 (order: 4, 65536 bytes)
[ 0.215254] TCP: Hash tables configured (established 16384 bind 16384)
[ 0.215271] TCP reno registered
[ 0.215287] UDP hash table entries: 256 (order: 0, 4096 bytes)
[ 0.215320] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[ 0.215562] NET: Registered protocol family 1
[ 0.215880] RPC: Registered named UNIX socket transport module.
[ 0.215900] RPC: Registered udp transport module.
[ 0.215912] RPC: Registered tcp transport module.
[ 0.215925] RPC: Registered tcp NFSv4.1 backchannel transport module.
[ 0.216237] NetWinder Floating Point Emulator V0.97 (double precision)
[ 0.216502] omap-gpmc omap-gpmc: GPMC revision 6.0
[ 0.216526] Registering NAND on CS0
[ 0.240698] VFS: Disk quotas dquot_6.5.2
[ 0.240790] Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[ 0.241552] msgmni has been set to 1002
[ 0.245632] alg: No test for stdrng (krng)
[ 0.246482] io scheduler noop registered
[ 0.246502] io scheduler deadline registered
[ 0.246588] io scheduler cfq registered (default)
[ 0.247832] da8xx_lcdc da8xx_lcdc.0: GLCD: Found QY_LCD panel
[ 0.262745] Console: switching to colour frame buffer device 100x37
[ 0.272669] omap_uart.0: ttyO0 at MMIO 0x44e09000 (irq = 72) is a OMAP UART0
[ 0.985789] console [ttyO0] enabled
[ 0.990337] omap_uart.1: ttyO1 at MMIO 0x48022000 (irq = 73) is a OMAP UART1
[ 0.998411] omap_uart.2: ttyO2 at MMIO 0x48024000 (irq = 74) is a OMAP UART2
[ 1.006396] omap_uart.3: ttyO3 at MMIO 0x481a6000 (irq = 44) is a OMAP UART3
[ 1.014405] omap_uart.4: ttyO4 at MMIO 0x481a8000 (irq = 45) is a OMAP UART4
[ 1.022409] omap_uart.5: ttyO5 at MMIO 0x481aa000 (irq = 46) is a OMAP UART5
[ 1.031121] omap4_rng omap4_rng: OMAP4 Random Number Generator ver. 2.00
[ 1.038770] am335x buzzer driver
[ 1.055280] brd: module loaded
[ 1.065148] loop: module loaded
[ 1.069358] am335x eth_reset driver
[ 1.076355] mtdoops: mtd device (mtddev=name/number) must be supplied
[ 1.083876] omap2-nand driver initializing
[ 1.088591] ONFI flash detected
[ 1.092005] ONFI param page 0 valid
[ 1.095660] NAND device: Manufacturer ID: 0x01, Chip ID: 0xd3 (AMD S34ML08G2)
[ 1.103420] Creating 8 MTD partitions on "omap2-nand.0":
[ 1.109016] 0x000000000000-0x000000020000 : "SPL"
[ 1.115817] 0x000000020000-0x000000040000 : "SPL.backup1"
[ 1.123332] 0x000000040000-0x000000060000 : "SPL.backup2"
[ 1.130786] 0x000000060000-0x000000080000 : "SPL.backup3"
[ 1.138144] 0x000000080000-0x000000260000 : "U-Boot"
[ 1.145828] 0x000000260000-0x000000280000 : "U-Boot Env"
[ 1.153141] 0x000000280000-0x000000780000 : "Kernel"
[ 1.162137] 0x000000780000-0x000020000000 : "File System"
[ 1.382210] CAN device driver interface
[ 1.386266] CAN bus driver for Bosch D_CAN controller 1.0
[ 1.393125] d_can d_can.0: device registered (irq=52, irq_obj=53)
[ 1.400510] d_can d_can.1: device registered (irq=55, irq_obj=56)
[ 1.456647] davinci_mdio davinci_mdio.0: davinci mdio revision 1.6
[ 1.463162] davinci_mdio davinci_mdio.0: detected phy mask fffffff9
[ 1.471212] davinci_mdio.0: probed
[ 1.474798] davinci_mdio davinci_mdio.0: phy[1]: device 0:01, driver unknown
[ 1.482246] davinci_mdio davinci_mdio.0: phy[2]: device 0:02, driver unknown
[ 1.490191] usbcore: registered new interface driver cdc_ether
[ 1.496494] usbcore: registered new interface driver cdc_eem
[ 1.502639] usbcore: registered new interface driver dm9601
[ 1.508540] cdc_ncm: 04-Aug-2011
[ 1.512123] usbcore: registered new interface driver cdc_ncm
[ 1.518058] Initializing USB Mass Storage driver...
[ 1.523461] usbcore: registered new interface driver usb-storage
[ 1.529758] USB Mass Storage support registered.
[ 1.535260] mousedev: PS/2 mouse device common for all mice
[ 1.542218] input: ti-tsc as /devices/platform/omap/ti_tscadc/tsc/input/input0
[ 1.552237] rtc-ds1307 1-0068: SET TIME!
[ 1.558952] rtc-ds1307 1-0068: rtc core: registered ds1338 as rtc0
[ 1.565481] rtc-ds1307 1-0068: 56 bytes nvram
[ 1.570305] i2c /dev entries driver
[ 1.575421] OMAP Watchdog Timer Rev 0x01: initial timeout 60 sec
[ 1.586937] cpuidle: using governor ladder
[ 1.591786] cpuidle: using governor menu
[ 1.598061] omap4_aes_mod_init: loading AM33X AES driver
[ 1.603752] omap4-aes omap4-aes: AM33X AES hw accel rev: 3.02
[ 1.610395] omap4_aes_probe: probe() done
[ 1.614861] omap4_sham_mod_init: loading AM33X SHA/MD5 driver
[ 1.621038] omap4-sham omap4-sham: AM33X SHA/MD5 hw accel rev: 4.03
[ 1.633310] omap4_sham_probe: probe() done
[ 1.640326] usbcore: registered new interface driver usbhid
[ 1.646212] usbhid: USB HID core driver
[ 1.651017] tiadc tiadc: attached adc driver
[ 1.656302] usbcore: registered new interface driver snd-usb-audio
[ 1.664994] _regulator_get: 1-0018 supply IOVDD not found, using dummy regulator
[ 1.672819] _regulator_get: 1-0018 supply DVDD not found, using dummy regulator
[ 1.680512] _regulator_get: 1-0018 supply AVDD not found, using dummy regulator
[ 1.688191] _regulator_get: 1-0018 supply DRVDD not found, using dummy regulator
[ 1.699111] asoc: tlv320aic3x-hifi <-> davinci-mcasp.0 mapping ok
[ 1.707077] ALSA device list:
[ 1.710180] #0: AM335X EVM
[ 1.713180] oprofile: hardware counters not available
[ 1.718472] oprofile: using timer interrupt.
[ 1.722951] nf_conntrack version 0.5.0 (8022 buckets, 32088 max)
[ 1.729870] ip_tables: (C) 2000-2006 Netfilter Core Team
[ 1.735550] TCP cubic registered
[ 1.738958] NET: Registered protocol family 17
[ 1.743604] can: controller area network core (rev 20090105 abi 8)
[ 1.750173] NET: Registered protocol family 29
[ 1.754861] can: raw protocol (rev 20090105)
[ 1.759330] can: broadcast manager protocol (rev 20090105 t)
[ 1.765286] Registering the dns_resolver key type
[ 1.770311] VFP support v0.3: implementor 41 architecture 3 part 30 variant c rev 3
[ 1.778348] ThumbEE CPU extension supported.
[ 1.782871] mux: Failed to setup hwmod io irq -22
[ 1.788547] Power Management for AM33XX family
[ 1.793422] Trying to load am335x-pm-firmware.bin (60 secs timeout)
[ 1.800127] Copied the M3 firmware to UMEM
[ 1.804483] Cortex M3 Firmware Version = 0x181
[ 1.809827] sr_init: platform driver register failed
[ 1.820174] clock: disabling unused clocks to save power
[ 1.840061] Detected MACID=38:d2:69:47:7e:a
[ 1.845722] cpsw: Detected MACID = 38:d2:69:47:7e:0c
[ 1.853053] rtc-ds1307 1-0068: setting system clock to 2000-01-01 00:00:14 UTC (946684814)
[ 1.862322] yaffs: dev is 32505863 name is "mtdblock7" rw
[ 1.868003] yaffs: passed flags ""
[ 2.730742] VFS: Mounted root (yaffs2 filesystem) on device 31:7.
[ 2.737555] Freeing init memory: 240K
[ 2.741478] Kernel panic - not syncing: No init found. Try passing init= option to kernel. See Linux Documentation/init.txt for guidance.
[ 2.754499] Backtrace:
[ 2.757112] [<c0017978>] (dump_backtrace+0x0/0x110) from [<c03f8668>] (dump_stack+0x18/0x1c)
[ 2.765928] r6:c0040c90 r5:c059ee14 r4:c0603fc8 r3:c05c2748
[ 2.771889] [<c03f8650>] (dump_stack+0x0/0x1c) from [<c03f86d8>] (panic+0x6c/0x1a0)
[ 2.779923] [<c03f866c>] (panic+0x0/0x1a0) from [<c0008700>] (init_post+0xa8/0xd8)
[ 2.787848] r3:df02bc00 r2:0000000d r1:00000080 r0:c04cd528
[ 2.793777] r7:00000013
[ 2.796441] [<c0008658>] (init_post+0x0/0xd8) from [<c0564910>] (kernel_init+0x128/0x130)
[ 2.804999] r4:c059ee14 r3:00000116
[ 2.808775] [<c05647e8>] (kernel_init+0x0/0x130) from [<c0040c90>] (do_exit+0x0/0x67c)
求大神们解答,需要做什么修改才能使用硬件ecc校验方式使yaffs2文件系统正常使用?