This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

AM335x Nand 启动UBI出错

Other Parts Discussed in Thread: TPS65910, TPS65217, TMP275

在EVM板的NAND上顺利运行的ubi.img,在自己做的板子上启动到ubi的时候报错

[ 4.189462] UBIFS: start fixing up free space
[ 12.806157] UBIFS: free space fixup complete
[ 12.849312] UBIFS: mounted UBI device 0, volume 0, name "rootfs"
[ 12.855597] UBIFS: file system size: 126849024 bytes (123876 KiB, 120 MiB, 999 LEBs)
[ 12.863902] UBIFS: journal size: 9023488 bytes (8812 KiB, 8 MiB, 72 LEBs)
[ 12.871550] UBIFS: media format: w4/r0 (latest is w4/r0)
[ 12.877644] UBIFS: default compressor: lzo
[ 12.881928] UBIFS: reserved for root: 0 bytes (0 KiB)
[ 12.932650] VFS: Mounted root (ubifs filesystem) on device 0:13.
[ 12.939302] Freeing init memory: 248K
INIT: [ 13.451399] UBI: run torture test for PEB 1023
version 2.88 booting
[ 13.569904] UBI error: torture_peb: read problems on freshly erased PEB 1023, must be bad
[ 13.578476] UBI error: erase_worker: failed to erase PEB 1023, error -5
[ 13.585390] UBI: mark PEB 1023 as bad
[ 13.589786] UBI: 9 PEBs left in the reserve
[ 13.640814] UBI: run torture test for PEB 975
[ 13.758902] UBI error: torture_peb: read problems on freshly erased PEB 975, must be bad
[ 13.767369] UBI error: erase_worker: failed to erase PEB 975, error -5
[ 13.774201] UBI: mark PEB 975 as bad
[ 13.778553] UBI: 8 PEBs left in the reserve
[ 13.877933] UBI: run torture test for PEB 1022
[ 13.996207] UBI error: torture_peb: read problems on freshly erased PEB 1022, must be bad
[ 14.004785] UBI error: erase_worker: failed to erase PEB 1022, error -5
[ 14.011707] UBI: mark PEB 1022 as bad
[ 14.016145] UBI: 7 PEBs left in the reserve
[ 14.329447] UBI: run torture test for PEB 1021
[ 14.447663] UBI error: torture_peb: read problems on freshly erased PEB 1021, must be bad
[ 14.456233] UBI error: erase_worker: failed to erase PEB 1021, error -5
[ 14.463156] UBI: mark PEB 1021 as bad
[ 14.467547] UBI: 6 PEBs left in the reserve

唯一的区别是自己的板子上用的Spansion NAND Flash只支持1bit ECC,怀疑错误与ECC有关

SYSBOOT配置时选择了ECC handled by NAND

在board-am335xevm.c中原先配置如下:

static void evm_nand_init(int evm_id, int profile)
{
struct omap_nand_platform_data *pdata;
struct gpmc_devices_info gpmc_device[2] = {
{ NULL, 0 },
{ NULL, 0 },
};

setup_pin_mux(nand_pin_mux);
pdata = omap_nand_init(am335x_nand_partitions,
ARRAY_SIZE(am335x_nand_partitions), 0, 0,
&am335x_nand_timings);
if (!pdata)
return;
pdata->ecc_opt =OMAP_ECC_BCH8_CODE_HW;
pdata->elm_used = true;
gpmc_device[0].pdata = pdata;
gpmc_device[0].flag = GPMC_DEVICE_NAND;

omap_init_gpmc(gpmc_device, sizeof(gpmc_device));
omap_init_elm();
}

不知道对于我这种只支持1bit ECC的NAND,ecc_opt应该选择什么?

BSP版本为linux-3.2.0-psp04.06.00.11

请TI高手帮忙,非常感谢!

  • 1BIT是说Nand要求CPU至少有1BIT ECC的能力,比1bIT多当然没问题

    看你的打印信息Nand已经正常挂载了,只是后面的操作老是出错导致坏块增加

    把完整的信息贴出来看一下

  • U-Boot SPL 2013.01.01 (Apr 17 2014 - 13:47:10)
    Configure pinmux for JK2-2 board...
    Config DDR3 for JK2-2 board...
    musb-hdrc: ConfigData=0xde (UTMI-8, dyn FIFOs, bulk combine, bulk split, HB-ISO Rx, HB-ISO Tx, SoftConn)
    musb-hdrc: MHDRC RTL version 2.0
    musb-hdrc: setup fifo_mode 4
    musb-hdrc: 28/31 max ep, 16384/16384 memory
    USB Peripheral mode controller at 47401000 using PIO, IRQ 0
    musb-hdrc: ConfigData=0xde (UTMI-8, dyn FIFOs, bulk combine, bulk split, HB-ISO Rx, HB-ISO Tx, SoftConn)
    musb-hdrc: MHDRC RTL version 2.0
    musb-hdrc: setup fifo_mode 4
    musb-hdrc: 28/31 max ep, 16384/16384 memory
    USB Host mode controller at 47401800 using PIO, IRQ 0


    U-Boot 2013.01.01 (Apr 17 2014 - 13:47:10)

    I2C: ready
    DRAM: 256 MiB
    WARNING: Caches not enabled
    NAND: 256 MiB
    MMC: OMAP SD/MMC: 0, OMAP SD/MMC: 1
    musb-hdrc: ConfigData=0xde (UTMI-8, dyn FIFOs, bulk combine, bulk split, HB-ISO Rx, HB-ISO Tx, SoftConn)
    musb-hdrc: MHDRC RTL version 2.0
    musb-hdrc: setup fifo_mode 4
    musb-hdrc: 28/31 max ep, 16384/16384 memory
    USB Peripheral mode controller at 47401000 using PIO, IRQ 0
    musb-hdrc: ConfigData=0xde (UTMI-8, dyn FIFOs, bulk combine, bulk split, HB-ISO Rx, HB-ISO Tx, SoftConn)
    musb-hdrc: MHDRC RTL version 2.0
    musb-hdrc: setup fifo_mode 4
    musb-hdrc: 28/31 max ep, 16384/16384 memory
    USB Host mode controller at 47401800 using PIO, IRQ 0
    Net: cpsw, usb_ether
    Hit any key to stop autoboot: 0
    Booting from nand ...

    NAND read: device 0 offset 0x280000, size 0x500000
    5242880 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: 3455680 Bytes = 3.3 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 (root@localhost) (gcc version 4.7.3 20130226 (prerelease) (crosstool-NG linaro-1.13.1-4.7-2013.03-20130313 - Linaro GCC 2013.03) ) #4 Tue Apr 22 17:00:19 CST 2014
    [ 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 (neon )
    [ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 65024
    [ 0.000000] Kernel command line: console=ttyO0,115200n8 root=ubi0:rootfs rw ubi.mtd=7,2048 noinitrd rootfstype=ubifs rootwait=1 ip=none
    [ 0.000000] PID hash table entries: 1024 (order: 0, 4096 bytes)
    [ 0.000000] Dentry cache hash table entries: 32768 (order: 5, 131072 bytes)
    [ 0.000000] Inode-cache hash table entries: 16384 (order: 4, 65536 bytes)
    [ 0.000000] Memory: 256MB = 256MB total
    [ 0.000000] Memory: 252776k/252776k available, 9368k 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 : 0xd0800000 - 0xff000000 ( 744 MB)
    [ 0.000000] lowmem : 0xc0000000 - 0xd0000000 ( 256 MB)
    [ 0.000000] modules : 0xbf000000 - 0xc0000000 ( 16 MB)
    [ 0.000000] .text : 0xc0008000 - 0xc0610000 (6176 kB)
    [ 0.000000] .init : 0xc0610000 - 0xc064e000 ( 248 kB)
    [ 0.000000] .data : 0xc064e000 - 0xc06b9ab0 ( 431 kB)
    [ 0.000000] .bss : 0xc06b9ad4 - 0xc06e9b8c ( 193 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_dm_timer_switch_src: Switching to HW default clocksource(sys_clkin_ck) for timer1, this may impact timekeeping in low power state
    [ 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.000149] Calibrating delay loop... 996.14 BogoMIPS (lpj=4980736)
    [ 0.087775] pid_max: default: 32768 minimum: 301
    [ 0.087867] Security Framework initialized
    [ 0.087943] Mount-cache hash table entries: 512
    [ 0.088238] CPU: Testing write buffer coherency: ok
    [ 0.107495] omap_hwmod: gfx: failed to hardreset
    [ 0.123258] omap_hwmod: pruss: failed to hardreset
    [ 0.124151] print_constraints: dummy:
    [ 0.124446] NET: Registered protocol family 16
    [ 0.126075] OMAP GPIO hardware version 0.1
    [ 0.128085] omap_mux_init: Add partition: #1: core, flags: 0
    [ 0.129561] omap_i2c.1: alias fck already exists
    [ 0.130234] omap2_mcspi.1: alias fck already exists
    [ 0.130413] omap2_mcspi.2: alias fck already exists
    [ 0.130788] edma.0: alias fck already exists
    [ 0.130803] edma.0: alias fck already exists
    [ 0.130816] edma.0: alias fck already exists
    [ 0.151332] bio: create slab <bio-0> at 0
    [ 0.153665] usbcore: registered new interface driver usbfs
    [ 0.153899] usbcore: registered new interface driver hub
    [ 0.154047] usbcore: registered new device driver usb
    [ 0.154279] registerd cppi-dma Intr @ IRQ 17
    [ 0.154289] Cppi41 Init Done Qmgr-base(d087a000) dma-base(d0878000)
    [ 0.154295] Cppi41 Init Done
    [ 0.154316] musb-ti81xx musb-ti81xx: musb0, board_mode=0x13, plat_mode=0x3
    [ 0.154533] musb-ti81xx musb-ti81xx: musb1, board_mode=0x13, plat_mode=0x1
    [ 0.155371] omap_i2c omap_i2c.1: bus 1 rev2.4.0 at 100 kHz
    [ 0.156428] tps65910 1-002d: could not be detected
    [ 0.157410] Advanced Linux Sound Architecture Driver Version 1.0.24.
    [ 0.158261] Switching to clocksource gp timer
    [ 0.169824] musb-hdrc: version 6.0, ?dma?, otg (peripheral+host)
    [ 0.169937] musb-hdrc musb-hdrc.0: dma type: dma-cppi41
    [ 0.170172] MUSB0 controller's USBSS revision = 4ea20800
    [ 0.170196] musb0: Enabled SW babble control
    [ 0.170919] musb-hdrc musb-hdrc.0: USB OTG mode controller at d083c000 using DMA, IRQ 18
    [ 0.171044] musb-hdrc musb-hdrc.1: dma type: dma-cppi41
    [ 0.171281] MUSB1 controller's USBSS revision = 4ea20800
    [ 0.171302] musb1: Enabled SW babble control
    [ 0.171627] musb-hdrc musb-hdrc.1: MUSB HDRC host driver
    [ 0.171698] musb-hdrc musb-hdrc.1: new USB bus registered, assigned bus number 1
    [ 0.171799] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
    [ 0.171809] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
    [ 0.171819] usb usb1: Product: MUSB HDRC host driver
    [ 0.171826] usb usb1: Manufacturer: Linux 3.2.0 musb-hcd
    [ 0.171834] usb usb1: SerialNumber: musb-hdrc.1
    [ 0.172453] hub 1-0:1.0: USB hub found
    [ 0.172477] hub 1-0:1.0: 1 port detected
    [ 0.172912] musb-hdrc musb-hdrc.1: USB Host mode controller at d083e800 using DMA, IRQ 19
    [ 0.173231] NET: Registered protocol family 2
    [ 0.173382] IP route cache hash table entries: 2048 (order: 1, 8192 bytes)
    [ 0.173649] TCP established hash table entries: 8192 (order: 4, 65536 bytes)
    [ 0.173763] TCP bind hash table entries: 8192 (order: 3, 32768 bytes)
    [ 0.173830] TCP: Hash tables configured (established 8192 bind 8192)
    [ 0.173840] TCP reno registered
    [ 0.173849] UDP hash table entries: 256 (order: 0, 4096 bytes)
    [ 0.173865] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
    [ 0.174043] NET: Registered protocol family 1
    [ 0.174243] RPC: Registered named UNIX socket transport module.
    [ 0.174252] RPC: Registered udp transport module.
    [ 0.174259] RPC: Registered tcp transport module.
    [ 0.174266] RPC: Registered tcp NFSv4.1 backchannel transport module.
    [ 0.174440] NetWinder Floating Point Emulator V0.97 (double precision)
    [ 0.183827] VFS: Disk quotas dquot_6.5.2
    [ 0.183876] Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
    [ 0.184290] msgmni has been set to 493
    [ 0.184511] alg: No test for cipher_null (cipher_null-generic)
    [ 0.184634] alg: No test for ecb(cipher_null) (ecb-cipher_null)
    [ 0.184694] alg: No test for digest_null (digest_null-generic)
    [ 0.184751] alg: No test for compress_null (compress_null-generic)
    [ 0.186845] alg: No test for stdrng (krng)
    [ 0.210709] NET: Registered protocol family 38
    [ 0.211243] io scheduler noop registered
    [ 0.211253] io scheduler deadline registered
    [ 0.211308] io scheduler cfq registered (default)
    [ 0.212205] Could not set LED4 to fully on
    [ 0.249084] omap_uart.0: ttyO0 at MMIO 0x44e09000 (irq = 72) is a OMAP UART0
    [ 0.874168] console [ttyO0] enabled
    [ 0.878305] omap_uart.1: ttyO1 at MMIO 0x48022000 (irq = 73) is a OMAP UART1
    [ 0.886015] omap_uart.2: ttyO2 at MMIO 0x48024000 (irq = 74) is a OMAP UART2
    [ 0.893716] omap_uart.3: ttyO3 at MMIO 0x481a6000 (irq = 44) is a OMAP UART3
    [ 0.901407] omap_uart.4: ttyO4 at MMIO 0x481a8000 (irq = 45) is a OMAP UART4
    [ 0.909098] omap_uart.5: ttyO5 at MMIO 0x481aa000 (irq = 46) is a OMAP UART5
    [ 0.917120] omap4_rng omap4_rng: OMAP4 Random Number Generator ver. 2.00
    [ 0.930950] brd: module loaded
    [ 0.937837] loop: module loaded
    [ 0.941318] i2c-core: driver [tsl2550] using legacy suspend method
    [ 0.947778] i2c-core: driver [tsl2550] using legacy resume method
    [ 0.954209] at24 1-0051: 32768 byte 24c256 EEPROM, writable, 64 bytes/write
    [ 1.058295] No daughter card found
    [ 1.061884] at24 1-0050: 32768 byte 24c256 EEPROM, writable, 64 bytes/write
    [ 1.069169] JK2-2 am335x_evm_setup...
    [ 1.072994] Board name: A335BNLT
    [ 1.076361] Board version: 00A6
    [ 1.079645] The board is a JK2-2 board.
    [ 1.085546] tps65217 1-0024: TPS65217 ID 0xe version 1.2
    [ 1.093045] print_constraints: DCDC1: 900 <--> 1800 mV at 1500 mV
    [ 1.101454] print_constraints: DCDC2: 900 <--> 3300 mV at 1325 mV
    [ 1.109847] print_constraints: DCDC3: 900 <--> 1500 mV at 1125 mV
    [ 1.118199] print_constraints: LDO1: 1000 <--> 3300 mV at 1800 mV
    [ 1.126551] print_constraints: LDO2: 900 <--> 3300 mV at 3300 mV
    [ 1.134830] print_constraints: LDO3: 1800 <--> 3300 mV at 1800 mV
    [ 1.143205] print_constraints: LDO4: 1800 <--> 3300 mV at 3300 mV
    [ 1.150152] Setup rmii1 pinmux for JK2-2 board.
    [ 1.155008] Setup rmii2 pinmux for JK2-2 board.
    [ 1.160386] omap-gpmc omap-gpmc: GPMC revision 6.0
    [ 1.165400] Registering NAND on CS0
    [ 1.169546] Setup mmc0 pinmux for JK2-2 board.
    [ 1.174297] omap_hsmmc.0: alias fck already exists
    [ 1.179604] Setup uart1 pinmux for JK2-2 board.
    [ 1.184393] Setup uart2 pinmux for JK2-2 board.
    [ 1.189152] Setup uart3 pinmux for JK2-2 board.
    [ 1.193894] Setup uart4 pinmux for JK2-2 board.
    [ 1.198645] Setup uart5 pinmux for JK2-2 board.
    [ 1.203575] Setup GPIO for JK2-2 board.
    [ 1.208922] registered am33xx_sr device
    [ 1.214047] mtdoops: mtd device (mtddev=name/number) must be supplied
    [ 1.221200] omap2-nand driver initializing
    [ 1.225769] ONFI flash detected
    [ 1.229189] ONFI param page 0 valid
    [ 1.232837] NAND device: Manufacturer ID: 0x01, Chip ID: 0xda (AMD S34ML02G1)
    [ 1.240463] Creating 9 MTD partitions on "omap2-nand.0":
    [ 1.246023] 0x000000000000-0x000000020000 : "SPL"
    [ 1.252056] 0x000000020000-0x000000040000 : "SPL.backup1"
    [ 1.258721] 0x000000040000-0x000000060000 : "SPL.backup2"
    [ 1.265346] 0x000000060000-0x000000080000 : "SPL.backup3"
    [ 1.271952] 0x000000080000-0x000000260000 : "U-Boot"
    [ 1.278812] 0x000000260000-0x000000280000 : "U-Boot Env"
    [ 1.285283] 0x000000280000-0x000000780000 : "Kernel"
    [ 1.293417] 0x000000780000-0x000008780000 : "File System"
    [ 1.352501] 0x000008780000-0x000010000000 : "User Flash"
    [ 1.408562] OneNAND driver initializing
    [ 1.413130] UBI: attaching mtd7 to ubi0
    [ 1.417145] UBI: physical eraseblock size: 131072 bytes (128 KiB)
    [ 1.423716] UBI: logical eraseblock size: 126976 bytes
    [ 1.429362] UBI: smallest flash I/O unit: 2048
    [ 1.434275] UBI: VID header offset: 2048 (aligned 2048)
    [ 1.440556] UBI: data offset: 4096
    [ 2.278578] UBI: max. sequence number: 0
    [ 2.317093] UBI: volume 0 ("rootfs") re-sized from 892 to 1010 LEBs
    [ 2.324348] UBI: attached mtd7 to ubi0
    [ 2.328268] UBI: MTD device name: "File System"
    [ 2.334023] UBI: MTD device size: 128 MiB
    [ 2.339214] UBI: number of good PEBs: 1024
    [ 2.344126] UBI: number of bad PEBs: 0
    [ 2.348770] UBI: number of corrupted PEBs: 0
    [ 2.353409] UBI: max. allowed volumes: 128
    [ 2.358230] UBI: wear-leveling threshold: 4096
    [ 2.363148] UBI: number of internal volumes: 1
    [ 2.367788] UBI: number of user volumes: 1
    [ 2.372432] UBI: available PEBs: 0
    [ 2.377071] UBI: total number of reserved PEBs: 1024
    [ 2.382262] UBI: number of PEBs reserved for bad PEB handling: 10
    [ 2.388634] UBI: max/mean erase counter: 1/0
    [ 2.393091] UBI: image sequence number: 882922771
    [ 2.398152] UBI: background thread "ubi_bgt0d" started, PID 601
    [ 2.418610] CAN device driver interface
    [ 2.422618] CAN bus driver for Bosch D_CAN controller 1.0
    [ 2.498296] davinci_mdio davinci_mdio.0: davinci mdio revision 1.6
    [ 2.504761] davinci_mdio davinci_mdio.0: detected phy mask fffffffc
    [ 2.538361] davinci_mdio.0: probed
    [ 2.541918] davinci_mdio davinci_mdio.0: phy[0]: device 0:00, driver SMSC LAN8710/LAN8720
    [ 2.550478] davinci_mdio davinci_mdio.0: phy[1]: device 0:01, driver SMSC LAN8710/LAN8720
    [ 2.578547] PPP generic driver version 2.4.2
    [ 2.583298] PPP BSD Compression module registered
    [ 2.588214] PPP Deflate Compression module registered
    [ 2.608806] PPP MPPE Compression module registered
    [ 2.613815] NET: Registered protocol family 24
    [ 2.628370] usbcore: registered new interface driver zd1201
    [ 2.638623] usbcore: registered new interface driver cdc_ether
    [ 2.658300] usbcore: registered new interface driver cdc_eem
    [ 2.664344] usbcore: registered new interface driver dm9601
    [ 2.670215] cdc_ncm: 04-Aug-2011
    [ 2.688300] usbcore: registered new interface driver cdc_ncm
    [ 2.694215] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
    [ 2.708351] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
    [ 2.728819] usbcore: registered new interface driver usbserial
    [ 2.738592] USB Serial support registered for generic
    [ 2.748340] usbcore: registered new interface driver usbserial_generic
    [ 2.755162] usbserial: USB Serial Driver core
    [ 2.768333] USB Serial support registered for GSM modem (1-port)
    [ 2.788442] usbcore: registered new interface driver option
    [ 2.794267] option: v0.7.2:USB Driver for GSM modems
    [ 2.799537] gadget: using random self ethernet address
    [ 2.805002] gadget: using random host ethernet address
    [ 2.828417] usb0: MAC 4e:48:93:2c:95:b4
    [ 2.832428] usb0: HOST MAC e6:c5:bf:1b:18:7f
    [ 2.836945] gadget: Ethernet Gadget, version: Memorial Day 2008
    [ 2.843251] gadget: g_ether ready
    [ 2.846816] musb-hdrc musb-hdrc.0: MUSB HDRC host driver
    [ 2.852423] musb-hdrc musb-hdrc.0: new USB bus registered, assigned bus number 2
    [ 2.860248] usb usb2: New USB device found, idVendor=1d6b, idProduct=0002
    [ 2.867345] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
    [ 2.874907] usb usb2: Product: MUSB HDRC host driver
    [ 2.880101] usb usb2: Manufacturer: Linux 3.2.0 musb-hcd
    [ 2.885650] usb usb2: SerialNumber: musb-hdrc.0
    [ 2.958565] hub 2-0:1.0: USB hub found
    [ 2.962498] hub 2-0:1.0: 1 port detected
    [ 2.979196] mousedev: PS/2 mouse device common for all mice
    [ 2.999004] omap_rtc am33xx-rtc: rtc core: registered am33xx-rtc as rtc0
    [ 3.006034] am33xx-rtc: already running
    [ 3.018361] i2c /dev entries driver
    [ 3.028536] Linux video capture interface: v2.00
    [ 3.038647] usbcore: registered new interface driver uvcvideo
    [ 3.044653] USB Video Class driver (1.1.1)
    [ 3.208389] OMAP Watchdog Timer Rev 0x01: initial timeout 60 sec
    [ 3.228984] cpuidle: using governor ladder
    [ 3.238436] cpuidle: using governor menu
    [ 3.288911] usbcore: registered new interface driver usbhid
    [ 3.294771] usbhid: USB HID core driver
    [ 3.310825] usbcore: registered new interface driver snd-usb-audio
    [ 3.338732] ALSA device list:
    [ 3.341836] No soundcards found.
    [ 3.345385] oprofile: hardware counters not available
    [ 3.350680] oprofile: using timer interrupt.
    [ 3.355269] nf_conntrack version 0.5.0 (3949 buckets, 15796 max)
    [ 3.361773] IPv4 over IPv4 tunneling driver
    [ 3.388536] ip_tables: (C) 2000-2006 Netfilter Core Team
    [ 3.394235] TCP cubic registered
    [ 3.397605] Initializing XFRM netlink socket
    [ 3.402219] NET: Registered protocol family 10
    [ 3.407576] IPv6 over IPv4 tunneling driver
    [ 3.438528] NET: Registered protocol family 17
    [ 3.443208] NET: Registered protocol family 15
    [ 3.447848] can: controller area network core (rev 20090105 abi 8)
    [ 3.454430] NET: Registered protocol family 29
    [ 3.459088] can: raw protocol (rev 20090105)
    [ 3.463547] can: broadcast manager protocol (rev 20090105 t)
    [ 3.469504] Registering the dns_resolver key type
    [ 3.474474] VFP support v0.3: implementor 41 architecture 3 part 30 variant c rev 3
    [ 3.482500] ThumbEE CPU extension supported.
    [ 3.487015] mux: Failed to setup hwmod io irq -22
    [ 3.492464] Power Management for AM33XX family
    [ 3.497288] Trying to load am335x-pm-firmware.bin (60 secs timeout)
    [ 3.503989] Copied the M3 firmware to UMEM
    [ 3.508352] Cortex M3 Firmware Version = 0x181
    [ 3.588639] create_regulator: DCDC2: Failed to create debugfs directory
    [ 3.608715] smartreflex smartreflex: am33xx_sr_probe: Driver initialized
    [ 3.641104] clock: disabling unused clocks to save power
    [ 4.038701] Detected MACID=1c:ba:8c:ef:91:f4
    [ 4.044262] cpsw: Detected MACID = 1c:ba:8c:ef:91:f6
    [ 4.068415] omap_rtc am33xx-rtc: setting system clock to 2000-01-01 00:00:00 UTC (946684800)
    [ 4.189462] UBIFS: start fixing up free space
    [ 12.806157] UBIFS: free space fixup complete
    [ 12.849312] UBIFS: mounted UBI device 0, volume 0, name "rootfs"
    [ 12.855597] UBIFS: file system size: 126849024 bytes (123876 KiB, 120 MiB, 999 LEBs)
    [ 12.863902] UBIFS: journal size: 9023488 bytes (8812 KiB, 8 MiB, 72 LEBs)
    [ 12.871550] UBIFS: media format: w4/r0 (latest is w4/r0)
    [ 12.877644] UBIFS: default compressor: lzo
    [ 12.881928] UBIFS: reserved for root: 0 bytes (0 KiB)
    [ 12.932650] VFS: Mounted root (ubifs filesystem) on device 0:13.
    [ 12.939302] Freeing init memory: 248K
    INIT: [ 13.451399] UBI: run torture test for PEB 1023
    version 2.88 booting
    [ 13.569904] UBI error: torture_peb: read problems on freshly erased PEB 1023, must be bad
    [ 13.578476] UBI error: erase_worker: failed to erase PEB 1023, error -5
    [ 13.585390] UBI: mark PEB 1023 as bad
    [ 13.589786] UBI: 9 PEBs left in the reserve
    [ 13.640814] UBI: run torture test for PEB 975
    [ 13.758902] UBI error: torture_peb: read problems on freshly erased PEB 975, must be bad
    [ 13.767369] UBI error: erase_worker: failed to erase PEB 975, error -5
    [ 13.774201] UBI: mark PEB 975 as bad
    [ 13.778553] UBI: 8 PEBs left in the reserve
    [ 13.877933] UBI: run torture test for PEB 1022
    [ 13.996207] UBI error: torture_peb: read problems on freshly erased PEB 1022, must be bad
    [ 14.004785] UBI error: erase_worker: failed to erase PEB 1022, error -5
    [ 14.011707] UBI: mark PEB 1022 as bad
    [ 14.016145] UBI: 7 PEBs left in the reserve
    [ 14.329447] UBI: run torture test for PEB 1021
    [ 14.447663] UBI error: torture_peb: read problems on freshly erased PEB 1021, must be bad
    [ 14.456233] UBI error: erase_worker: failed to erase PEB 1021, error -5
    [ 14.463156] UBI: mark PEB 1021 as bad
    [ 14.467547] UBI: 6 PEBs left in the reserve
    Starting udev
    [ 14.939414] UBI: run torture test for PEB 1020
    [ 15.057705] UBI error: torture_peb: read problems on freshly erased PEB 1020, must be bad
    [ 15.066275] UBI error: erase_worker: failed to erase PEB 1020, error -5
    [ 15.073197] UBI: mark PEB 1020 as bad
    [ 15.077587] UBI: 5 PEBs left in the reserve
    [ 15.770221] UBI: run torture test for PEB 1019
    [ 15.992588] UBI error: torture_peb: read problems on freshly erased PEB 1019, must be bad
    [ 16.001167] UBI error: erase_worker: failed to erase PEB 1019, error -5
    [ 16.008082] UBI: mark PEB 1019 as bad
    [ 16.012485] UBI: 4 PEBs left in the reserve
    [ 17.661141] UBI: run torture test for PEB 511
    [ 17.779569] UBI error: torture_peb: read problems on freshly erased PEB 511, must be bad
    [ 17.788040] UBI error: erase_worker: failed to erase PEB 511, error -5
    [ 17.794874] UBI: mark PEB 511 as bad
    [ 17.799231] UBI: 3 PEBs left in the reserve
    [ 17.924611] UBI: run torture test for PEB 1018
    [ 18.043019] UBI error: torture_peb: read problems on freshly erased PEB 1018, must be bad
    [ 18.051592] UBI error: erase_worker: failed to erase PEB 1018, error -5
    [ 18.058521] UBI: mark PEB 1018 as bad
    [ 18.062959] UBI: 2 PEBs left in the reserve
    [ 18.129883] UBI: run torture test for PEB 1017
    [ 18.250442] UBI error: torture_peb: read problems on freshly erased PEB 1017, must be bad
    [ 18.259021] UBI error: erase_worker: failed to erase PEB 1017, error -5
    [ 18.265935] UBI: mark PEB 1017 as bad
    [ 18.270383] UBI: 1 PEBs left in the reserve
    Undefined users:
    Skipping /etc/default/volatiles/99_dbus
    [ 18.806401] UBI: run torture test for PEB 1
    [ 18.924577] UBI error: torture_peb: read problems on freshly erased PEB 1, must be bad
    [ 18.932878] UBI error: erase_worker: failed to erase PEB 1, error -5
    [ 18.939528] UBI: mark PEB 1 as bad
    [ 18.943694] UBI warning: erase_worker: last PEB from the reserved pool was used
    [ 19.000967] UBI: run torture test for PEB 1016
    [ 19.119340] UBI error: torture_peb: read problems on freshly erased PEB 1016, must be bad
    [ 19.127904] UBI error: erase_worker: failed to erase PEB 1016, error -5
    [ 19.134830] UBI error: erase_worker: no reserved physical eraseblocks
    [ 19.141568] UBI warning: ubi_ro_mode: switch to read-only mode
    [ 19.147663] UBI error: do_work: work failed with error code -5
    [ 19.153766] UBI error: ubi_thread: ubi_bgt0d: work failed with error code -5
    [ 19.295131] UBIFS error (pid 1461): ubifs_leb_write: writing 2048 bytes to LEB 370:14336 failed, error -30
    [ 19.305283] UBIFS warning (pid 1461): ubifs_ro_mode: switched to read-only mode, error -30
    [ 19.313930] Backtrace:
    [ 19.316520] [<c0017dbc>] (dump_backtrace+0x0/0x10c) from [<c047b8a8>] (dump_stack+0x18/0x1c)
    [ 19.325360] r6:00003800 r5:00000010 r4:cf365400 r3:c0672ccc
    [ 19.331316] [<c047b890>] (dump_stack+0x0/0x1c) from [<c016e444>] (ubifs_ro_mode+0x68/0x74)
    [ 19.339970] [<c016e3dc>] (ubifs_ro_mode+0x0/0x74) from [<c016e634>] (ubifs_leb_write+0x98/0xa4)
    [ 19.349069] r5:ffffffe2 r4:cf370000
    [ 19.352816] [<c016e59c>] (ubifs_leb_write+0x0/0xa4) from [<c016f0cc>] (ubifs_wbuf_write_nolock+0x1b0/0x354)
    [ 19.363005] r7:00000180 r6:cf370000 r5:00000180 r4:cf365098
    [ 19.368945] [<c016ef1c>] (ubifs_wbuf_write_nolock+0x0/0x354) from [<c0165594>] (write_head.constprop.12+0x40/0x60)
    [ 19.379778] [<c0165554>] (write_head.constprop.12+0x0/0x60) from [<c0165820>] (ubifs_jnl_update+0x26c/0x484)
    [ 19.390058] r5:cf370000 r4:cf6d8600
    [ 19.393803] [<c01655b4>] (ubifs_jnl_update+0x0/0x484) from [<c01696ec>] (ubifs_unlink+0x144/0x1d0)
    [ 19.403188] [<c01695a8>] (ubifs_unlink+0x0/0x1d0) from [<c00b23c4>] (vfs_unlink+0x94/0xf0)
    [ 19.411840] [<c00b2330>] (vfs_unlink+0x0/0xf0) from [<c00b2c08>] (do_unlinkat+0x138/0x164)
    [ 19.420484] r6:ce979818 r5:ce883698 r4:00000000
    [ 19.425324] [<c00b2ad0>] (do_unlinkat+0x0/0x164) from [<c00b3d18>] (sys_unlink+0x18/0x1c)
    [ 19.433878] r6:00012b64 r5:4022ed18 r4:4022ecd8
    [ 19.438733] [<c00b3d00>] (sys_unlink+0x0/0x1c) from [<c0014740>] (ret_fast_syscall+0x0/0x30)
    [ 19.447556] UBIFS error (pid 1461): ubifs_wbuf_write_nolock: cannot write 384 bytes to LEB 370:14336, error -30
    Collected errors:
    INIT: Entering runlevel: 3n't unlink /var/lib/opkg/lock: Read-only file syste
    Starting telnet daemon.
    Starting syslogd/klogd: done
    ========== mount mtdblock8 ==========
    [ 19.709974] UBI: attaching mtd8 to ubi1
    [ 19.713999] UBI: physical eraseblock size: 131072 bytes (128 KiB)
    [ 19.720573] UBI: logical eraseblock size: 126976 bytes
    [ 19.726213] UBI: smallest flash I/O unit: 2048
    [ 19.731135] UBI: VID header offset: 2048 (aligned 2048)
    [ 19.737411] UBI: data offset: 4096
    [ 20.276935] UBI: empty MTD device detected
    [ 20.281317] UBI: max. sequence number: 0
    [ 20.286025] UBI: create volume table (copy #1)
    [ 20.300437] UBI: create volume table (copy #2)
    [ 20.317430] UBI: attached mtd8 to ubi1
    [ 20.321407] UBI: MTD device name: "User Flash"
    [ 20.327049] UBI: MTD device size: 120 MiB
    [ 20.332243] UBI: number of good PEBs: 964
    [ 20.337064] UBI: number of bad PEBs: 0
    [ 20.341712] UBI: number of corrupted PEBs: 0
    [ 20.346352] UBI: max. allowed volumes: 128
    [ 20.351188] UBI: wear-leveling threshold: 4096
    [ 20.356101] UBI: number of internal volumes: 1
    [ 20.360746] UBI: number of user volumes: 0
    [ 20.365386] UBI: available PEBs: 951
    [ 20.370213] UBI: total number of reserved PEBs: 13
    [ 20.375216] UBI: number of PEBs reserved for bad PEB handling: 9
    [ 20.381498] UBI: max/mean erase counter: 0/0
    [ 20.385956] UBI: image sequence number: 1387631970
    [ 20.391308] UBI: background thread "ubi_bgt1d" started, PID 1478
    UBI device number 1, total 964 LEBs (122404864 bytes, 116.7 MiB), available 951 LEBs (120754176 bytes, 115.2 MiB), LEB size 126976 bytes (124.0 KiB)
    mount: mounting ubi1:userspace on /home failed: No such device
    ubi1
    Volumes count: 0
    Logical eraseblock size: 126976 bytes, 124.0 KiB
    Total amount of logical eraseblocks: 964 (122404864 bytes, 116.7 MiB)
    Amount of available logical eraseblocks: 951 (120754176 bytes, 115.2 MiB)
    Maximum count of volumes 128
    Count of bad physical eraseblocks: 0
    Count of reserved physical eraseblocks: 9
    Current maximum erase counter value: 1
    Minimum input/output unit size: 2048 bytes
    Character device major/minor: 250:0
    ubirmvol: error!: cannot UBI remove volume
    error 19 (No such device)
    [ 20.550369] UBI: mtd8 is detached from ubi1
    flash_eraseall has been replaced by `flash_erase <mtddev> 0 0`; please use it
    Erasing 128 Kibyte @ 7860000 -- 100 % complete
    [ 25.242702] UBI: attaching mtd8 to ubi1
    [ 25.246729] UBI: physical eraseblock size: 131072 bytes (128 KiB)
    [ 25.253350] UBI: logical eraseblock size: 126976 bytes
    [ 25.259000] UBI: smallest flash I/O unit: 2048
    [ 25.263914] UBI: VID header offset: 2048 (aligned 2048)
    [ 25.270196] UBI: data offset: 4096
    [ 25.809829] UBI: empty MTD device detected
    [ 25.814195] UBI: max. sequence number: 0
    [ 25.818928] UBI: create volume table (copy #1)
    [ 25.833313] UBI: create volume table (copy #2)
    [ 25.850319] UBI: attached mtd8 to ubi1
    [ 25.854248] UBI: MTD device name: "User Flash"
    [ 25.859932] UBI: MTD device size: 120 MiB
    [ 25.865118] UBI: number of good PEBs: 964
    [ 25.869948] UBI: number of bad PEBs: 0
    [ 25.874587] UBI: number of corrupted PEBs: 0
    [ 25.879233] UBI: max. allowed volumes: 128
    [ 25.884054] UBI: wear-leveling threshold: 4096
    [ 25.888972] UBI: number of internal volumes: 1
    [ 25.893611] UBI: number of user volumes: 0
    [ 25.898251] UBI: available PEBs: 951
    [ 25.903078] UBI: total number of reserved PEBs: 13
    [ 25.908081] UBI: number of PEBs reserved for bad PEB handling: 9
    [ 25.914362] UBI: max/mean erase counter: 0/0
    [ 25.918826] UBI: image sequence number: 1224321142
    [ 25.924169] UBI: background thread "ubi_bgt1d" started, PID 1486
    UBI device number 1, total 964 LEBs (122404864 bytes, 116.7 MiB), available 951 LEBs (120754176 bytes, 115.2 MiB), LEB size 126976 bytes (124.0 KiB)
    Volume ID 1, size 950 LEBs (120627200 bytes, 115.0 MiB), LEB size 126976 bytes (124.0 KiB), dynamic, name "userspace", alignment 1
    [ 27.814008] UBIFS: default file-system created
    [ 27.886132] UBI: run torture test for PEB 0
    [ 28.004150] UBI error: torture_peb: read problems on freshly erased PEB 0, must be bad
    [ 28.012455] UBI error: erase_worker: failed to erase PEB 0, error -5
    [ 28.019104] UBI: reserve more 1 PEBs
    [ 28.022836] UBI: mark PEB 0 as bad
    [ 28.027106] UBI: 9 PEBs left in the reserve
    [ 28.099940] UBI: run torture test for PEB 961
    [ 28.172178] UBIFS: mounted UBI device 1, volume 1, name "userspace"
    [ 28.178784] UBIFS: file system size: 119357440 bytes (116560 KiB, 113 MiB, 940 LEBs)
    [ 28.187062] UBIFS: journal size: 5967872 bytes (5828 KiB, 5 MiB, 47 LEBs)
    [ 28.194708] UBIFS: media format: w4/r0 (latest is w4/r0)
    [ 28.200810] UBIFS: default compressor: lzo
    [ 28.205087] UBIFS: reserved for root: 4952683 bytes (4836 KiB)
    [ 28.290735] UBI error: torture_peb: read problems on freshly erased PEB 961, must be bad
    [ 28.299219] UBI error: erase_worker: failed to erase PEB 961, error -5
    [ 28.306042] UBI: mark PEB 961 as bad
    [ 28.310473] UBI: 8 PEBs left in the reserve
    [ 28.348563] UBI: run torture test for PEB 960
    [ 28.466648] UBI error: torture_peb: read problems on freshly erased PEB 960, must be bad
    [ 28.475137] UBI error: erase_worker: failed to erase PEB 960, error -5
    [ 28.481969] UBI: mark PEB 960 as bad
    [ 28.486362] UBI: 7 PEBs left in the reserve
    ========== Set system time ==========
    [ 28.530209] UBI: run torture test for PEB 959
    [ 28.648723] UBI error: torture_peb: read problems on freshly erased PEB 959, must be bad
    [ 28.657197] UBI error: erase_worker: failed to erase PEB 959, error -5
    [ 28.664031] UBI: mark PEB 959 as bad
    [ 28.668455] UBI: 6 PEBs left in the reserve
    Tue Nov 30 00:00:00 UTC 1999
    rtc: 2000-00-00, 00:00:00
    ln: /etc/my.cnf: Read-only file system
    chmod: /etc/my.cnf: No such file or directory
    ========== start mysql server ==========
    dosfsck 2.11, 12 Mar 2005, FAT32, LFN
    open /dev/mmcblk0p1:No such file or directory
    mount TF-Card failed,will exit!
    ========== start AIServer ==========
    ========== config network ==========
    can't open device: No such file or directory
    [ 28.839277] net eth0: CPSW phy found : id is : 0x7c0f1
    [ 28.851946] ADDRCONF(NETDEV_UP): eth0: link is not ready
    /etc/rc3.d/S30dapservices: line 48: 1508 Aborted /usr/sbin/AIServer
    [ 28.889260] net eth1: CPSW phy found : id is : 0x7c0f1
    [ 28.901503] ADDRCONF(NETDEV_UP): eth1: link is not ready
    ========== config forward and DDOS ==========
    ========== start system services ==========
    ========== check DAP directory ==========
    ========== check DAP firmware update ==========
    Starting httpd[ 30.889298] PHY: 0:01 - Link is Up - 100/Full
    [ 30.893995] ADDRCONF(NETDEV_CHANGE): eth1: link becomes ready
    (30)Read-only file system: AH00091: httpd: could not open error log file /var/www/logs/error_log.
    AH00015: Unable to open logs
    .

    DAPHix version 1.5 build 2013-09-17
    Linux 3.2.0 on a armv7l

    DAPHix login: root

  • 你用的是SDK06的U-boot吗?我认为和ECC没关系的

    你的NAND的具体型号是什么?

  • 是SDK 6.0的uboot

    NAND型号为Spansion的S34ML02G100TFI000

    uboot烧写命令如下:

    mmc rescan
    fatload mmc 0 0x82000000 MLO
    nand erase 0 0x20000
    nand write 0x82000000 0x0 0x20000

    fatload mmc 0 0x82000000 u-boot.img
    nand erase 0x80000 0x60000
    nand write 0x82000000 0x80000 0x60000

    fatload mmc 0 0x82000000 uImage
    nand erase 0x00280000 0x00500000
    nand write 0x82000000 0x00280000 0x500000

    mw.b 0x82000000 0xFF 0x5120000
    fatload mmc 0 0x82000000 ubi.img
    nand erase 0x780000 0xF880000
    nand write 0x82000000 0x780000 0x5120000

  • nand write 0x82000000 0x780000 0x5120000

    你的UBI镜像有这么大吗?

    貌似要求写入的长度就是等于镜像的长度

  • UBI镜像大小是58MB

    使用uEnv nand write 0x82000000 0x780000 {filesize}

    也不对

  • 我也觉的你nand write的image size有点大,你把0x5120000改成0x3C00000试试。

    如果还不行,把你的mkfs.ubifs和ubinize两条命令详细参数发出来看看。

    我调试过S34ML01G100TFI00,是可以启动的

  • mkfs.ubifs -r base-rootfs -F -o ubifs.img -m 2048 -e 126976 -c 1580

    ubinize -o ubi.img -m 2048 -p 128KiB -s 512 -O 2048 ubinize.cfg

    ubinize.cfg

    [ubifs]
    mode=ubi
    image=ubifs.img
    vol_id=0
    vol_size=108MiB
    vol_type=dynamic
    vol_name=rootfs
    vol_flags=autoresize

  • mkfs.ubifs -F -q -r base-rootfs  -m 2048 -e 126976 -c 2047 -o ubifs.img

    ubinize -o ubi.img -m 2048 -p 128KiB ubinize.cfg

    ubinize.cfg

    [ubifs]
    mode=ubi
    image=ubifs.img
    vol_id=0
    vol_size=200MiB
    vol_type=dynamic
    vol_name=rootfs
    vol_flags=autoresize

  • 改成上面的参数试试

  • Hi:

    我在使用AM335x EVM时遇到了挂载UBI文件系统的问题,系统启动日志如下:

    U-Boot SPL 2013.01.01 (Jun 25 2013 - 16:42:52)
    musb-hdrc: ConfigData=0xde (UTMI-8, dyn FIFOs, bulk combine, bulk split, HB-ISO Rx, HB-ISO Tx, SoftConn)
    musb-hdrc: MHDRC RTL version 2.0
    musb-hdrc: setup fifo_mode 4
    musb-hdrc: 28/31 max ep, 16384/16384 memory
    USB Peripheral mode controller at 47401000 using PIO, IRQ 0
    musb-hdrc: ConfigData=0xde (UTMI-8, dyn FIFOs, bulk combine, bulk split, HB-ISO Rx, HB-ISO Tx, SoftConn)
    musb-hdrc: MHDRC RTL version 2.0
    musb-hdrc: setup fifo_mode 4
    musb-hdrc: 28/31 max ep, 16384/16384 memory
    USB Host mode controller at 47401800 using PIO, IRQ 0


    U-Boot 2013.01.01 (Jun 25 2013 - 16:42:52)

    I2C:   ready
    DRAM:  512 MiB
    WARNING: Caches not enabled
    NAND:  256 MiB
    MMC:   OMAP SD/MMC: 0, OMAP SD/MMC: 1
    musb-hdrc: ConfigData=0xde (UTMI-8, dyn FIFOs, bulk combine, bulk split, HB-ISO Rx, HB-ISO Tx, SoftConn)
    musb-hdrc: MHDRC RTL version 2.0
    musb-hdrc: setup fifo_mode 4
    musb-hdrc: 28/31 max ep, 16384/16384 memory
    USB Peripheral mode controller at 47401000 using PIO, IRQ 0
    musb-hdrc: ConfigData=0xde (UTMI-8, dyn FIFOs, bulk combine, bulk split, HB-ISO Rx, HB-ISO Tx, SoftConn)
    musb-hdrc: MHDRC RTL version 2.0
    musb-hdrc: setup fifo_mode 4
    musb-hdrc: 28/31 max ep, 16384/16384 memory
    USB Host mode controller at 47401800 using PIO, IRQ 0
    Net:   cpsw, usb_ether
    Hit any key to stop autoboot:  0
    Card did not respond to voltage select!
    mmc0(part 0) is current device
    mmc_send_cmd : timeout: No status update
    Card did not respond to voltage select!
    Booting from nand ...

    NAND read: device 0 offset 0x280000, size 0x500000
     5242880 bytes read: OK
    ## Booting kernel from Legacy Image at 80200000 ...
       Image Name:   Linux-3.2.0-svn20
       Image Type:   ARM Linux Kernel Image (uncompressed)
       Data Size:    3193976 Bytes = 3 MiB
       Load Address: 80008000
       Entry Point:  80008000
       Verifying Checksum ... OK
       Loading Kernel Image ... OK
    OK

    Starting kernel ...

    Uncompressing Linux... done, booting the kernel.
    [    0.000000] Linux version 3.2.0-svn20 (liushihao@localhost.localdomain) (gcc version 4.7.3 20130226 (prerelease) (crosstool-NG linaro-1.13.1-4.7-2013.03-20130313 - Linaro GCC 2013.03) ) #6 Wed Jul 9 15:12:17 CST 2014
    [    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 ES1.0 (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=ubi0:am335x-evm-rootfs rw ubi.mtd=7,2048 rootfstype=ubifs rootwait=1
    [    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: 513168k/513168k available, 11120k 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 - 0xc0598000   (5696 kB)
    [    0.000000]       .init : 0xc0598000 - 0xc05d3000   ( 236 kB)
    [    0.000000]       .data : 0xc05d4000 - 0xc063e430   ( 426 kB)
    [    0.000000]        .bss : 0xc063e454 - 0xc066d224   ( 188 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 32768 Hz
    [    0.000000] sched_clock: 32 bits at 32kHz, resolution 30517ns, wraps every 131071999ms
    [    0.000000] Console: colour dummy device 80x30
    [    0.000091] Calibrating delay loop... 718.02 BogoMIPS (lpj=3590144)
    [    0.058929] pid_max: default: 32768 minimum: 301
    [    0.059051] Security Framework initialized
    [    0.059143] Mount-cache hash table entries: 512
    [    0.059539] CPU: Testing write buffer coherency: ok
    [    0.080047] omap_hwmod: pruss: failed to hardreset
    [    0.081176] print_constraints: dummy:
    [    0.081573] NET: Registered protocol family 16
    [    0.083709] OMAP GPIO hardware version 0.1
    [    0.086303] omap_mux_init: Add partition: #1: core, flags: 0
    [    0.088226]  omap_i2c.1: alias fck already exists
    [    0.089172]  omap2_mcspi.1: alias fck already exists
    [    0.089416]  omap2_mcspi.2: alias fck already exists
    [    0.090332]  edma.0: alias fck already exists
    [    0.090362]  edma.0: alias fck already exists
    [    0.090362]  edma.0: alias fck already exists
    [    0.117004] bio: create slab <bio-0> at 0
    [    0.119262] SCSI subsystem initialized
    [    0.120910] usbcore: registered new interface driver usbfs
    [    0.121215] usbcore: registered new interface driver hub
    [    0.121398] usbcore: registered new device driver usb
    [    0.121704] registerd cppi-dma Intr @ IRQ 17
    [    0.121734] Cppi41 Init Done Qmgr-base(e087a000) dma-base(e0878000)
    [    0.121734] Cppi41 Init Done
    [    0.121765] musb-ti81xx musb-ti81xx: musb0, board_mode=0x13, plat_mode=0x3
    [    0.122070] musb-ti81xx musb-ti81xx: musb1, board_mode=0x13, plat_mode=0x1
    [    0.123199] omap_i2c omap_i2c.1: bus 1 rev2.4.0 at 100 kHz
    [    0.125061] tps65910 1-002d: JTAGREVNUM 0x0
    [    0.127471] print_constraints: VRTC:
    [    0.128936] print_constraints: VIO: at 1800 mV
    [    0.131256] print_constraints: VDD1: 600 <--> 1500 mV at 1262 mV normal
    [    0.133575] print_constraints: VDD2: 600 <--> 1500 mV at 1137 mV normal
    [    0.134582] print_constraints: VDD3: 5000 mV
    [    0.135986] print_constraints: VDIG1: at 1800 mV
    [    0.137390] print_constraints: VDIG2: at 1800 mV
    [    0.138824] print_constraints: VPLL: at 1800 mV
    [    0.140289] print_constraints: VDAC: at 1800 mV
    [    0.141723] print_constraints: VAUX1: at 1800 mV
    [    0.143157] print_constraints: VAUX2: at 3300 mV
    [    0.144561] print_constraints: VAUX33: at 3300 mV
    [    0.145965] print_constraints: VMMC: at 3300 mV
    [    0.146484] tps65910 1-002d: No interrupt support, no core IRQ
    [    0.147857] Advanced Linux Sound Architecture Driver Version 1.0.24.
    [    0.149078] Switching to clocksource gp timer
    [    0.164428] musb-hdrc: version 6.0, ?dma?, otg (peripheral+host)
    [    0.164611] musb-hdrc musb-hdrc.0: dma type: dma-cppi41
    [    0.164947] MUSB0 controller's USBSS revision = 4ea20800
    [    0.165893] musb-hdrc musb-hdrc.0: USB OTG mode controller at e083c000 using DMA, IRQ 18
    [    0.166076] musb-hdrc musb-hdrc.1: dma type: dma-cppi41
    [    0.166351] MUSB1 controller's USBSS revision = 4ea20800
    [    0.166839] musb-hdrc musb-hdrc.1: MUSB HDRC host driver
    [    0.166900] musb-hdrc musb-hdrc.1: new USB bus registered, assigned bus number 1
    [    0.167053] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
    [    0.167053] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
    [    0.167083] usb usb1: Product: MUSB HDRC host driver
    [    0.167083] usb usb1: Manufacturer: Linux 3.2.0-svn20 musb-hcd
    [    0.167083] usb usb1: SerialNumber: musb-hdrc.1
    [    0.167907] hub 1-0:1.0: USB hub found
    [    0.167938] hub 1-0:1.0: 1 port detected
    [    0.168518] musb-hdrc musb-hdrc.1: USB Host mode controller at e083e800 using DMA, IRQ 19
    [    0.168945] NET: Registered protocol family 2
    [    0.169219] IP route cache hash table entries: 4096 (order: 2, 16384 bytes)
    [    0.169525] TCP established hash table entries: 16384 (order: 5, 131072 bytes)
    [    0.169830] TCP bind hash table entries: 16384 (order: 4, 65536 bytes)
    [    0.170013] TCP: Hash tables configured (established 16384 bind 16384)
    [    0.170013] TCP reno registered
    [    0.170013] UDP hash table entries: 256 (order: 0, 4096 bytes)
    [    0.170043] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
    [    0.170257] NET: Registered protocol family 1
    [    0.170501] RPC: Registered named UNIX socket transport module.
    [    0.170532] RPC: Registered udp transport module.
    [    0.170532] RPC: Registered tcp transport module.
    [    0.170532] RPC: Registered tcp NFSv4.1 backchannel transport module.
    [    0.170806] NetWinder Floating Point Emulator V0.97 (double precision)
    [    0.191925] VFS: Disk quotas dquot_6.5.2
    [    0.191986] Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
    [    0.192535] msgmni has been set to 1002
    [    0.195739] alg: No test for stdrng (krng)
    [    0.196441] io scheduler noop registered
    [    0.196441] io scheduler deadline registered
    [    0.196502] io scheduler cfq registered (default)
    [    0.197692] Could not set LED4 to fully on
    [    0.210205] omap_uart.0: ttyO0 at MMIO 0x44e09000 (irq = 72) is a OMAP UART0
    [    0.855682] console [ttyO0] enabled
    [    0.859985] omap_uart.1: ttyO1 at MMIO 0x48022000 (irq = 73) is a OMAP UART1
    [    0.867797] omap_uart.2: ttyO2 at MMIO 0x48024000 (irq = 74) is a OMAP UART2
    [    0.875579] omap_uart.3: ttyO3 at MMIO 0x481a6000 (irq = 44) is a OMAP UART3
    [    0.883361] omap_uart.4: ttyO4 at MMIO 0x481a8000 (irq = 45) is a OMAP UART4
    [    0.891143] omap_uart.5: ttyO5 at MMIO 0x481aa000 (irq = 46) is a OMAP UART5
    [    0.899383] omap4_rng omap4_rng: OMAP4 Random Number Generator ver. 2.00
    [    0.915771] brd: module loaded
    [    0.923858] loop: module loaded
    [    0.927276] i2c-core: driver [tsl2550] using legacy suspend method
    [    0.933776] i2c-core: driver [tsl2550] using legacy resume method
    [    0.940216] at24 1-0051: 32768 byte 24c256 EEPROM, writable, 64 bytes/write
    [    0.954101] Detected a daughter card on AM335x EVM..
    [    0.959106] Unknown CPLD version found
    [    0.963256] at24 1-0050: 32768 byte 24c256 EEPROM, writable, 64 bytes/write
    [    0.978424] Board name: A33515BB
    [    0.981781] Board version: 1.0D
    [    0.985046] SKU: SKU#01
    [    0.987731] The board is general purpose EVM in profile 0
    [    0.994445]  da8xx_lcdc.0: alias fck already exists
    [    1.000000] da8xx_lcdc da8xx_lcdc.0: GLCD: Found TFC_S9700RTWV35TR_01B panel
    [    1.024047] Console: switching to colour frame buffer device 100x30
    [    1.040496] omap-gpmc omap-gpmc: GPMC revision 6.0
    [    1.045501] Registering NAND on CS0
    [    1.049957]  omap_i2c.2: alias fck already exists
    [    1.055236] omap_i2c omap_i2c.2: bus 2 rev2.4.0 at 100 kHz
    [    1.061706] tsl2550 2-0039: standard operating mode
    [    1.067932]  davinci-mcasp.1: alias fck already exists
    [    1.073822]  omap_hsmmc.0: alias fck already exists
    [    1.079193]  omap_hsmmc.2: alias fck already exists
    [    1.084625] Configure Bluetooth Enable pin...
    [    1.092468] registered am33xx_sr device
    [    1.096710] _regulator_get: 2-0018 supply Vdd not found, using dummy regulator
    [    1.104339] _regulator_get: 2-0018 supply Vdd_IO not found, using dummy regulator
    [    1.132751] lis3lv02d: 8 bits 3DLH sensor found
    [    1.230133] input: ST LIS3LV02DL Accelerometer as /devices/platform/lis3lv02d/input/input0
    [    1.241973] mtdoops: mtd device (mtddev=name/number) must be supplied
    [    1.249267] omap2-nand driver initializing
    [    1.253936] ONFI flash detected
    [    1.257324] ONFI param page 0 valid
    [    1.260986] NAND device: Manufacturer ID: 0x2c, Chip ID: 0xda (Micron MT29F2G08ABAEAWP)
    [    1.269561] Creating 8 MTD partitions on "omap2-nand.0":
    [    1.275177] 0x000000000000-0x000000020000 : "SPL"
    [    1.281494] 0x000000020000-0x000000040000 : "SPL.backup1"
    [    1.288391] 0x000000040000-0x000000060000 : "SPL.backup2"
    [    1.295318] 0x000000060000-0x000000080000 : "SPL.backup3"
    [    1.302215] 0x000000080000-0x000000260000 : "U-Boot"
    [    1.309417] 0x000000260000-0x000000280000 : "U-Boot Env"
    [    1.316253] 0x000000280000-0x000000780000 : "Kernel"
    [    1.324768] 0x000000780000-0x000010000000 : "File System"
    [    1.434875] OneNAND driver initializing
    [    1.439636] UBI: attaching mtd7 to ubi0
    [    1.443695] UBI: physical eraseblock size:   131072 bytes (128 KiB)
    [    1.450225] UBI: logical eraseblock size:    126976 bytes
    [    1.455871] UBI: smallest flash I/O unit:    2048
    [    1.460784] UBI: VID header offset:          2048 (aligned 2048)
    [    1.467041] UBI: data offset:                4096
    [    2.685607] UBI: max. sequence number:       0
    [    2.721557] UBI: volume 0 ("am335x-evm-rootfs") re-sized from 1949 to 1965 LEBs
    [    2.730224] UBI: attached mtd7 to ubi0
    [    2.734130] UBI: MTD device name:            "File System"
    [    2.739868] UBI: MTD device size:            248 MiB
    [    2.745056] UBI: number of good PEBs:        1988
    [    2.749969] UBI: number of bad PEBs:         0
    [    2.754577] UBI: number of corrupted PEBs:   0
    [    2.759216] UBI: max. allowed volumes:       128
    [    2.764038] UBI: wear-leveling threshold:    4096
    [    2.768951] UBI: number of internal volumes: 1
    [    2.773590] UBI: number of user volumes:     1
    [    2.778198] UBI: available PEBs:             0
    [    2.782836] UBI: total number of reserved PEBs: 1988
    [    2.788024] UBI: number of PEBs reserved for bad PEB handling: 19
    [    2.794372] UBI: max/mean erase counter: 1/0
    [    2.798828] UBI: image sequence number:  484974591
    [    2.803955] UBI: background thread "ubi_bgt0d" started, PID 608
    [    2.820495] CAN device driver interface
    [    2.824523] CAN bus driver for Bosch D_CAN controller 1.0
    [    2.889770] davinci_mdio davinci_mdio.0: davinci mdio revision 1.6
    [    2.896209] davinci_mdio davinci_mdio.0: detected phy mask fffffffe
    [    2.920257] davinci_mdio.0: probed
    [    2.923797] davinci_mdio davinci_mdio.0: phy[0]: device 0:00, driver unknown
    [    2.940032] usbcore: registered new interface driver zd1201
    [    2.949829] usbcore: registered new interface driver cdc_ether
    [    2.970062] usbcore: registered new interface driver cdc_eem
    [    2.976104] usbcore: registered new interface driver dm9601
    [    2.981994] cdc_ncm: 04-Aug-2011
    [    2.999755] usbcore: registered new interface driver cdc_ncm
    [    3.005645] Initializing USB Mass Storage driver...
    [    3.020202] usbcore: registered new interface driver usb-storage
    [    3.026458] USB Mass Storage support registered.
    [    3.040496] mousedev: PS/2 mouse device common for all mice
    [    3.060211] input: matrix-keypad as /devices/platform/matrix-keypad/input/input1
    [    3.081024] input: ti-tsc as /devices/platform/omap/ti_tscadc/tsc/input/input2
    [    3.100646] omap_rtc am33xx-rtc: rtc core: registered am33xx-rtc as rtc0
    [    3.120269] i2c /dev entries driver
    [    3.124572] Linux video capture interface: v2.00
    [    3.140441] usbcore: registered new interface driver uvcvideo
    [    3.146453] USB Video Class driver (1.1.1)
    [    3.169860] lm75 2-0048: hwmon0: sensor 'tmp275'
    [    3.419891] OMAP Watchdog Timer Rev 0x01: initial timeout 60 sec
    [    3.440582] cpuidle: using governor ladder
    [    3.450103] cpuidle: using governor menu
    [    3.540344] omap4_aes_mod_init: loading AM33X AES driver
    [    3.546020] omap4-aes omap4-aes: AM33X AES hw accel rev: 3.02
    [    3.560180] omap4_aes_probe: probe() done
    [    3.569885] omap4_sham_mod_init: loading AM33X SHA/MD5 driver
    [    3.576019] omap4-sham omap4-sham: AM33X SHA/MD5 hw accel rev: 4.03
    [    3.670379] omap4_sham_probe: probe() done
    [    3.710601] usbcore: registered new interface driver usbhid
    [    3.716400] usbhid: USB HID core driver
    [    3.729949] tiadc tiadc: attached adc driver
    [    3.749877] usbcore: registered new interface driver snd-usb-audio
    [    3.770812] _regulator_get: 2-001b supply IOVDD not found, using dummy regulator
    [    3.778625] _regulator_get: 2-001b supply DVDD not found, using dummy regulator
    [    3.786315] _regulator_get: 2-001b supply AVDD not found, using dummy regulator
    [    3.794006] _regulator_get: 2-001b supply DRVDD not found, using dummy regulator
    [    3.830535] asoc: tlv320aic3x-hifi <-> davinci-mcasp.1 mapping ok
    [    3.851196] ALSA device list:
    [    3.854309]   #0: AM335X EVM
    [    3.857299] oprofile: hardware counters not available
    [    3.862609] oprofile: using timer interrupt.
    [    3.867095] nf_conntrack version 0.5.0 (8018 buckets, 32072 max)
    [    3.873962] ip_tables: (C) 2000-2006 Netfilter Core Team
    [    3.879608] TCP cubic registered
    [    3.883026] NET: Registered protocol family 17
    [    3.887664] can: controller area network core (rev 20090105 abi 8)
    [    3.894226] NET: Registered protocol family 29
    [    3.898864] can: raw protocol (rev 20090105)
    [    3.903320] can: broadcast manager protocol (rev 20090105 t)
    [    3.909271] Registering the dns_resolver key type
    [    3.914276] VFP support v0.3: implementor 41 architecture 3 part 30 variant c rev 3
    [    3.922271] ThumbEE CPU extension supported.
    [    3.926788] mux: Failed to setup hwmod io irq -22
    [    3.932434] Power Management for AM33XX family
    [    3.937286] Trying to load am335x-pm-firmware.bin (60 secs timeout)
    [    3.943969] Copied the M3 firmware to UMEM
    [    3.948333] Cortex M3 Firmware Version = 0x181
    [    3.953155] smartreflex smartreflex: am33xx_sr_probe: Zero NValue read from EFUSE
    [    3.960998] smartreflex: probe of smartreflex failed with error -22
    [    4.089965] sr_init: platform driver register failed
    [    4.113891] clock: disabling unused clocks to save power
    [    4.370422] Detected MACID=40:5f:c2:8b:d6:c8
    [    4.380157] cpsw: Detected MACID = 40:5f:c2:8b:d6:c9
    [    4.400726] input: gpio-keys as /devices/platform/gpio-keys/input/input3
    [    4.408355] omap_rtc am33xx-rtc: setting system clock to 2000-01-01 00:00:02 UTC (946684802)
    [    4.571105] UBIFS: start fixing up free space
    [    9.094421] UBIFS: free space fixup complete
    [    9.171569] UBIFS: mounted UBI device 0, volume 0, name "am335x-evm-rootfs"
    [    9.178833] UBIFS: file system size:   246333440 bytes (240560 KiB, 234 MiB, 1940 LEBs)
    [    9.187225] UBIFS: journal size:       9023488 bytes (8812 KiB, 8 MiB, 72 LEBs)
    [    9.194854] UBIFS: media format:       w4/r0 (latest is w4/r0)
    [    9.200958] UBIFS: default compressor: lzo
    [    9.205230] UBIFS: reserved for root:  0 bytes (0 KiB)
    [    9.254089] VFS: Mounted root (ubifs filesystem) on device 0:13.
    [    9.260833] Freeing init memory: 236K
    INIT: version 2.88 booting
    [   10.826385] UBI: run torture test for PEB 1987
    [   11.148406] UBI: PEB 1987 passed torture test, do not mark it as bad
    [   11.320098] UBI: run torture test for PEB 1987
    [   11.672454] UBI: PEB 1987 passed torture test, do not mark it as bad
    [   11.804351] UBI: run torture test for PEB 1987
    Starting udev
    [   12.149230] UBI: PEB 1987 passed torture test, do not mark it as bad
    [   12.287384] UBI: run torture test for PEB 1987
    [   12.616699] UBI: PEB 1987 passed torture test, do not mark it as bad
    [   12.754058] UBI: run torture test for PEB 1987
    [   13.099517] UBI: PEB 1987 passed torture test, do not mark it as bad
    [   13.242462] UBI: run torture test for PEB 1987
    [   13.573364] UBI: PEB 1987 passed torture test, do not mark it as bad
    [   13.710632] UBI: run torture test for PEB 1987
    [   14.037322] UBI: PEB 1987 passed torture test, do not mark it as bad
    [   14.163513] UBI: run torture test for PEB 1987
    [   14.502166] UBI: PEB 1987 passed torture test, do not mark it as bad
    [   14.640441] UBI: run torture test for PEB 1987
    [   14.968811] UBI: PEB 1987 passed torture test, do not mark it as bad
    [   15.105560] UBI: run torture test for PEB 1987
    [   15.442016] UBI: PEB 1987 passed torture test, do not mark it as bad
    [   15.557952] UBI: run torture test for PEB 1987
    [   15.891998] UBI: PEB 1987 passed torture test, do not mark it as bad
    [   16.024627] UBI: run torture test for PEB 1987
    [   16.351867] UBI: PEB 1987 passed torture test, do not mark it as bad
    [   16.486572] UBI: run torture test for PEB 1987
    [   16.823272] UBI: PEB 1987 passed torture test, do not mark it as bad
    [   17.232482] UBI: run torture test for PEB 1987
    [   18.151062] UBI: PEB 1987 passed torture test, do not mark it as bad
    [   19.577911] UBI: run torture test for PEB 1987

    之后系统可正常启动并登录,但是不停打印上述标红的部分。

    我目前使用的是SDK-06里的u-boot和uImage,文件系统是SDK里自带的arago-base-tisdk-image-am335x-evm.ubi, 通过如下命令将romfs烧写至NAND Flash上:

    # mw.b 0x82000000 0xFF 0x1960000

    # tftp 0x82000000 arago-base-tisdk-image-am335x-evm.ubi

    # nand erase 0x780000 0xf880000

    # nand write 0x82000000 0x780000 0x1960000

    请问这个是什么问题呢?

  • Hi:

    我在使用AM335x EVM时遇到了挂载UBI文件系统的问题,系统启动日志如下:

    U-Boot SPL 2013.01.01 (Jun 25 2013 - 16:42:52)
    musb-hdrc: ConfigData=0xde (UTMI-8, dyn FIFOs, bulk combine, bulk split, HB-ISO Rx, HB-ISO Tx, SoftConn)
    musb-hdrc: MHDRC RTL version 2.0
    musb-hdrc: setup fifo_mode 4
    musb-hdrc: 28/31 max ep, 16384/16384 memory
    USB Peripheral mode controller at 47401000 using PIO, IRQ 0
    musb-hdrc: ConfigData=0xde (UTMI-8, dyn FIFOs, bulk combine, bulk split, HB-ISO Rx, HB-ISO Tx, SoftConn)
    musb-hdrc: MHDRC RTL version 2.0
    musb-hdrc: setup fifo_mode 4
    musb-hdrc: 28/31 max ep, 16384/16384 memory
    USB Host mode controller at 47401800 using PIO, IRQ 0


    U-Boot 2013.01.01 (Jun 25 2013 - 16:42:52)

    I2C:   ready
    DRAM:  512 MiB
    WARNING: Caches not enabled
    NAND:  256 MiB
    MMC:   OMAP SD/MMC: 0, OMAP SD/MMC: 1
    musb-hdrc: ConfigData=0xde (UTMI-8, dyn FIFOs, bulk combine, bulk split, HB-ISO Rx, HB-ISO Tx, SoftConn)
    musb-hdrc: MHDRC RTL version 2.0
    musb-hdrc: setup fifo_mode 4
    musb-hdrc: 28/31 max ep, 16384/16384 memory
    USB Peripheral mode controller at 47401000 using PIO, IRQ 0
    musb-hdrc: ConfigData=0xde (UTMI-8, dyn FIFOs, bulk combine, bulk split, HB-ISO Rx, HB-ISO Tx, SoftConn)
    musb-hdrc: MHDRC RTL version 2.0
    musb-hdrc: setup fifo_mode 4
    musb-hdrc: 28/31 max ep, 16384/16384 memory
    USB Host mode controller at 47401800 using PIO, IRQ 0
    Net:   cpsw, usb_ether
    Hit any key to stop autoboot:  0
    Card did not respond to voltage select!
    mmc0(part 0) is current device
    mmc_send_cmd : timeout: No status update
    Card did not respond to voltage select!
    Booting from nand ...

    NAND read: device 0 offset 0x280000, size 0x500000
     5242880 bytes read: OK
    ## Booting kernel from Legacy Image at 80200000 ...
       Image Name:   Linux-3.2.0-svn20
       Image Type:   ARM Linux Kernel Image (uncompressed)
       Data Size:    3193976 Bytes = 3 MiB
       Load Address: 80008000
       Entry Point:  80008000
       Verifying Checksum ... OK
       Loading Kernel Image ... OK
    OK

    Starting kernel ...

    Uncompressing Linux... done, booting the kernel.
    [    0.000000] Linux version 3.2.0-svn20 (liushihao@localhost.localdomain) (gcc version 4.7.3 20130226 (prerelease) (crosstool-NG linaro-1.13.1-4.7-2013.03-20130313 - Linaro GCC 2013.03) ) #6 Wed Jul 9 15:12:17 CST 2014
    [    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 ES1.0 (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=ubi0:am335x-evm-rootfs rw ubi.mtd=7,2048 rootfstype=ubifs rootwait=1
    [    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: 513168k/513168k available, 11120k 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 - 0xc0598000   (5696 kB)
    [    0.000000]       .init : 0xc0598000 - 0xc05d3000   ( 236 kB)
    [    0.000000]       .data : 0xc05d4000 - 0xc063e430   ( 426 kB)
    [    0.000000]        .bss : 0xc063e454 - 0xc066d224   ( 188 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 32768 Hz
    [    0.000000] sched_clock: 32 bits at 32kHz, resolution 30517ns, wraps every 131071999ms
    [    0.000000] Console: colour dummy device 80x30
    [    0.000091] Calibrating delay loop... 718.02 BogoMIPS (lpj=3590144)
    [    0.058929] pid_max: default: 32768 minimum: 301
    [    0.059051] Security Framework initialized
    [    0.059143] Mount-cache hash table entries: 512
    [    0.059539] CPU: Testing write buffer coherency: ok
    [    0.080047] omap_hwmod: pruss: failed to hardreset
    [    0.081176] print_constraints: dummy:
    [    0.081573] NET: Registered protocol family 16
    [    0.083709] OMAP GPIO hardware version 0.1
    [    0.086303] omap_mux_init: Add partition: #1: core, flags: 0
    [    0.088226]  omap_i2c.1: alias fck already exists
    [    0.089172]  omap2_mcspi.1: alias fck already exists
    [    0.089416]  omap2_mcspi.2: alias fck already exists
    [    0.090332]  edma.0: alias fck already exists
    [    0.090362]  edma.0: alias fck already exists
    [    0.090362]  edma.0: alias fck already exists
    [    0.117004] bio: create slab <bio-0> at 0
    [    0.119262] SCSI subsystem initialized
    [    0.120910] usbcore: registered new interface driver usbfs
    [    0.121215] usbcore: registered new interface driver hub
    [    0.121398] usbcore: registered new device driver usb
    [    0.121704] registerd cppi-dma Intr @ IRQ 17
    [    0.121734] Cppi41 Init Done Qmgr-base(e087a000) dma-base(e0878000)
    [    0.121734] Cppi41 Init Done
    [    0.121765] musb-ti81xx musb-ti81xx: musb0, board_mode=0x13, plat_mode=0x3
    [    0.122070] musb-ti81xx musb-ti81xx: musb1, board_mode=0x13, plat_mode=0x1
    [    0.123199] omap_i2c omap_i2c.1: bus 1 rev2.4.0 at 100 kHz
    [    0.125061] tps65910 1-002d: JTAGREVNUM 0x0
    [    0.127471] print_constraints: VRTC:
    [    0.128936] print_constraints: VIO: at 1800 mV
    [    0.131256] print_constraints: VDD1: 600 <--> 1500 mV at 1262 mV normal
    [    0.133575] print_constraints: VDD2: 600 <--> 1500 mV at 1137 mV normal
    [    0.134582] print_constraints: VDD3: 5000 mV
    [    0.135986] print_constraints: VDIG1: at 1800 mV
    [    0.137390] print_constraints: VDIG2: at 1800 mV
    [    0.138824] print_constraints: VPLL: at 1800 mV
    [    0.140289] print_constraints: VDAC: at 1800 mV
    [    0.141723] print_constraints: VAUX1: at 1800 mV
    [    0.143157] print_constraints: VAUX2: at 3300 mV
    [    0.144561] print_constraints: VAUX33: at 3300 mV
    [    0.145965] print_constraints: VMMC: at 3300 mV
    [    0.146484] tps65910 1-002d: No interrupt support, no core IRQ
    [    0.147857] Advanced Linux Sound Architecture Driver Version 1.0.24.
    [    0.149078] Switching to clocksource gp timer
    [    0.164428] musb-hdrc: version 6.0, ?dma?, otg (peripheral+host)
    [    0.164611] musb-hdrc musb-hdrc.0: dma type: dma-cppi41
    [    0.164947] MUSB0 controller's USBSS revision = 4ea20800
    [    0.165893] musb-hdrc musb-hdrc.0: USB OTG mode controller at e083c000 using DMA, IRQ 18
    [    0.166076] musb-hdrc musb-hdrc.1: dma type: dma-cppi41
    [    0.166351] MUSB1 controller's USBSS revision = 4ea20800
    [    0.166839] musb-hdrc musb-hdrc.1: MUSB HDRC host driver
    [    0.166900] musb-hdrc musb-hdrc.1: new USB bus registered, assigned bus number 1
    [    0.167053] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
    [    0.167053] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
    [    0.167083] usb usb1: Product: MUSB HDRC host driver
    [    0.167083] usb usb1: Manufacturer: Linux 3.2.0-svn20 musb-hcd
    [    0.167083] usb usb1: SerialNumber: musb-hdrc.1
    [    0.167907] hub 1-0:1.0: USB hub found
    [    0.167938] hub 1-0:1.0: 1 port detected
    [    0.168518] musb-hdrc musb-hdrc.1: USB Host mode controller at e083e800 using DMA, IRQ 19
    [    0.168945] NET: Registered protocol family 2
    [    0.169219] IP route cache hash table entries: 4096 (order: 2, 16384 bytes)
    [    0.169525] TCP established hash table entries: 16384 (order: 5, 131072 bytes)
    [    0.169830] TCP bind hash table entries: 16384 (order: 4, 65536 bytes)
    [    0.170013] TCP: Hash tables configured (established 16384 bind 16384)
    [    0.170013] TCP reno registered
    [    0.170013] UDP hash table entries: 256 (order: 0, 4096 bytes)
    [    0.170043] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
    [    0.170257] NET: Registered protocol family 1
    [    0.170501] RPC: Registered named UNIX socket transport module.
    [    0.170532] RPC: Registered udp transport module.
    [    0.170532] RPC: Registered tcp transport module.
    [    0.170532] RPC: Registered tcp NFSv4.1 backchannel transport module.
    [    0.170806] NetWinder Floating Point Emulator V0.97 (double precision)
    [    0.191925] VFS: Disk quotas dquot_6.5.2
    [    0.191986] Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
    [    0.192535] msgmni has been set to 1002
    [    0.195739] alg: No test for stdrng (krng)
    [    0.196441] io scheduler noop registered
    [    0.196441] io scheduler deadline registered
    [    0.196502] io scheduler cfq registered (default)
    [    0.197692] Could not set LED4 to fully on
    [    0.210205] omap_uart.0: ttyO0 at MMIO 0x44e09000 (irq = 72) is a OMAP UART0
    [    0.855682] console [ttyO0] enabled
    [    0.859985] omap_uart.1: ttyO1 at MMIO 0x48022000 (irq = 73) is a OMAP UART1
    [    0.867797] omap_uart.2: ttyO2 at MMIO 0x48024000 (irq = 74) is a OMAP UART2
    [    0.875579] omap_uart.3: ttyO3 at MMIO 0x481a6000 (irq = 44) is a OMAP UART3
    [    0.883361] omap_uart.4: ttyO4 at MMIO 0x481a8000 (irq = 45) is a OMAP UART4
    [    0.891143] omap_uart.5: ttyO5 at MMIO 0x481aa000 (irq = 46) is a OMAP UART5
    [    0.899383] omap4_rng omap4_rng: OMAP4 Random Number Generator ver. 2.00
    [    0.915771] brd: module loaded
    [    0.923858] loop: module loaded
    [    0.927276] i2c-core: driver [tsl2550] using legacy suspend method
    [    0.933776] i2c-core: driver [tsl2550] using legacy resume method
    [    0.940216] at24 1-0051: 32768 byte 24c256 EEPROM, writable, 64 bytes/write
    [    0.954101] Detected a daughter card on AM335x EVM..
    [    0.959106] Unknown CPLD version found
    [    0.963256] at24 1-0050: 32768 byte 24c256 EEPROM, writable, 64 bytes/write
    [    0.978424] Board name: A33515BB
    [    0.981781] Board version: 1.0D
    [    0.985046] SKU: SKU#01
    [    0.987731] The board is general purpose EVM in profile 0
    [    0.994445]  da8xx_lcdc.0: alias fck already exists
    [    1.000000] da8xx_lcdc da8xx_lcdc.0: GLCD: Found TFC_S9700RTWV35TR_01B panel
    [    1.024047] Console: switching to colour frame buffer device 100x30
    [    1.040496] omap-gpmc omap-gpmc: GPMC revision 6.0
    [    1.045501] Registering NAND on CS0
    [    1.049957]  omap_i2c.2: alias fck already exists
    [    1.055236] omap_i2c omap_i2c.2: bus 2 rev2.4.0 at 100 kHz
    [    1.061706] tsl2550 2-0039: standard operating mode
    [    1.067932]  davinci-mcasp.1: alias fck already exists
    [    1.073822]  omap_hsmmc.0: alias fck already exists
    [    1.079193]  omap_hsmmc.2: alias fck already exists
    [    1.084625] Configure Bluetooth Enable pin...
    [    1.092468] registered am33xx_sr device
    [    1.096710] _regulator_get: 2-0018 supply Vdd not found, using dummy regulator
    [    1.104339] _regulator_get: 2-0018 supply Vdd_IO not found, using dummy regulator
    [    1.132751] lis3lv02d: 8 bits 3DLH sensor found
    [    1.230133] input: ST LIS3LV02DL Accelerometer as /devices/platform/lis3lv02d/input/input0
    [    1.241973] mtdoops: mtd device (mtddev=name/number) must be supplied
    [    1.249267] omap2-nand driver initializing
    [    1.253936] ONFI flash detected
    [    1.257324] ONFI param page 0 valid
    [    1.260986] NAND device: Manufacturer ID: 0x2c, Chip ID: 0xda (Micron MT29F2G08ABAEAWP)
    [    1.269561] Creating 8 MTD partitions on "omap2-nand.0":
    [    1.275177] 0x000000000000-0x000000020000 : "SPL"
    [    1.281494] 0x000000020000-0x000000040000 : "SPL.backup1"
    [    1.288391] 0x000000040000-0x000000060000 : "SPL.backup2"
    [    1.295318] 0x000000060000-0x000000080000 : "SPL.backup3"
    [    1.302215] 0x000000080000-0x000000260000 : "U-Boot"
    [    1.309417] 0x000000260000-0x000000280000 : "U-Boot Env"
    [    1.316253] 0x000000280000-0x000000780000 : "Kernel"
    [    1.324768] 0x000000780000-0x000010000000 : "File System"
    [    1.434875] OneNAND driver initializing
    [    1.439636] UBI: attaching mtd7 to ubi0
    [    1.443695] UBI: physical eraseblock size:   131072 bytes (128 KiB)
    [    1.450225] UBI: logical eraseblock size:    126976 bytes
    [    1.455871] UBI: smallest flash I/O unit:    2048
    [    1.460784] UBI: VID header offset:          2048 (aligned 2048)
    [    1.467041] UBI: data offset:                4096
    [    2.685607] UBI: max. sequence number:       0
    [    2.721557] UBI: volume 0 ("am335x-evm-rootfs") re-sized from 1949 to 1965 LEBs
    [    2.730224] UBI: attached mtd7 to ubi0
    [    2.734130] UBI: MTD device name:            "File System"
    [    2.739868] UBI: MTD device size:            248 MiB
    [    2.745056] UBI: number of good PEBs:        1988
    [    2.749969] UBI: number of bad PEBs:         0
    [    2.754577] UBI: number of corrupted PEBs:   0
    [    2.759216] UBI: max. allowed volumes:       128
    [    2.764038] UBI: wear-leveling threshold:    4096
    [    2.768951] UBI: number of internal volumes: 1
    [    2.773590] UBI: number of user volumes:     1
    [    2.778198] UBI: available PEBs:             0
    [    2.782836] UBI: total number of reserved PEBs: 1988
    [    2.788024] UBI: number of PEBs reserved for bad PEB handling: 19
    [    2.794372] UBI: max/mean erase counter: 1/0
    [    2.798828] UBI: image sequence number:  484974591
    [    2.803955] UBI: background thread "ubi_bgt0d" started, PID 608
    [    2.820495] CAN device driver interface
    [    2.824523] CAN bus driver for Bosch D_CAN controller 1.0
    [    2.889770] davinci_mdio davinci_mdio.0: davinci mdio revision 1.6
    [    2.896209] davinci_mdio davinci_mdio.0: detected phy mask fffffffe
    [    2.920257] davinci_mdio.0: probed
    [    2.923797] davinci_mdio davinci_mdio.0: phy[0]: device 0:00, driver unknown
    [    2.940032] usbcore: registered new interface driver zd1201
    [    2.949829] usbcore: registered new interface driver cdc_ether
    [    2.970062] usbcore: registered new interface driver cdc_eem
    [    2.976104] usbcore: registered new interface driver dm9601
    [    2.981994] cdc_ncm: 04-Aug-2011
    [    2.999755] usbcore: registered new interface driver cdc_ncm
    [    3.005645] Initializing USB Mass Storage driver...
    [    3.020202] usbcore: registered new interface driver usb-storage
    [    3.026458] USB Mass Storage support registered.
    [    3.040496] mousedev: PS/2 mouse device common for all mice
    [    3.060211] input: matrix-keypad as /devices/platform/matrix-keypad/input/input1
    [    3.081024] input: ti-tsc as /devices/platform/omap/ti_tscadc/tsc/input/input2
    [    3.100646] omap_rtc am33xx-rtc: rtc core: registered am33xx-rtc as rtc0
    [    3.120269] i2c /dev entries driver
    [    3.124572] Linux video capture interface: v2.00
    [    3.140441] usbcore: registered new interface driver uvcvideo
    [    3.146453] USB Video Class driver (1.1.1)
    [    3.169860] lm75 2-0048: hwmon0: sensor 'tmp275'
    [    3.419891] OMAP Watchdog Timer Rev 0x01: initial timeout 60 sec
    [    3.440582] cpuidle: using governor ladder
    [    3.450103] cpuidle: using governor menu
    [    3.540344] omap4_aes_mod_init: loading AM33X AES driver
    [    3.546020] omap4-aes omap4-aes: AM33X AES hw accel rev: 3.02
    [    3.560180] omap4_aes_probe: probe() done
    [    3.569885] omap4_sham_mod_init: loading AM33X SHA/MD5 driver
    [    3.576019] omap4-sham omap4-sham: AM33X SHA/MD5 hw accel rev: 4.03
    [    3.670379] omap4_sham_probe: probe() done
    [    3.710601] usbcore: registered new interface driver usbhid
    [    3.716400] usbhid: USB HID core driver
    [    3.729949] tiadc tiadc: attached adc driver
    [    3.749877] usbcore: registered new interface driver snd-usb-audio
    [    3.770812] _regulator_get: 2-001b supply IOVDD not found, using dummy regulator
    [    3.778625] _regulator_get: 2-001b supply DVDD not found, using dummy regulator
    [    3.786315] _regulator_get: 2-001b supply AVDD not found, using dummy regulator
    [    3.794006] _regulator_get: 2-001b supply DRVDD not found, using dummy regulator
    [    3.830535] asoc: tlv320aic3x-hifi <-> davinci-mcasp.1 mapping ok
    [    3.851196] ALSA device list:
    [    3.854309]   #0: AM335X EVM
    [    3.857299] oprofile: hardware counters not available
    [    3.862609] oprofile: using timer interrupt.
    [    3.867095] nf_conntrack version 0.5.0 (8018 buckets, 32072 max)
    [    3.873962] ip_tables: (C) 2000-2006 Netfilter Core Team
    [    3.879608] TCP cubic registered
    [    3.883026] NET: Registered protocol family 17
    [    3.887664] can: controller area network core (rev 20090105 abi 8)
    [    3.894226] NET: Registered protocol family 29
    [    3.898864] can: raw protocol (rev 20090105)
    [    3.903320] can: broadcast manager protocol (rev 20090105 t)
    [    3.909271] Registering the dns_resolver key type
    [    3.914276] VFP support v0.3: implementor 41 architecture 3 part 30 variant c rev 3
    [    3.922271] ThumbEE CPU extension supported.
    [    3.926788] mux: Failed to setup hwmod io irq -22
    [    3.932434] Power Management for AM33XX family
    [    3.937286] Trying to load am335x-pm-firmware.bin (60 secs timeout)
    [    3.943969] Copied the M3 firmware to UMEM
    [    3.948333] Cortex M3 Firmware Version = 0x181
    [    3.953155] smartreflex smartreflex: am33xx_sr_probe: Zero NValue read from EFUSE
    [    3.960998] smartreflex: probe of smartreflex failed with error -22
    [    4.089965] sr_init: platform driver register failed
    [    4.113891] clock: disabling unused clocks to save power
    [    4.370422] Detected MACID=40:5f:c2:8b:d6:c8
    [    4.380157] cpsw: Detected MACID = 40:5f:c2:8b:d6:c9
    [    4.400726] input: gpio-keys as /devices/platform/gpio-keys/input/input3
    [    4.408355] omap_rtc am33xx-rtc: setting system clock to 2000-01-01 00:00:02 UTC (946684802)
    [    4.571105] UBIFS: start fixing up free space
    [    9.094421] UBIFS: free space fixup complete
    [    9.171569] UBIFS: mounted UBI device 0, volume 0, name "am335x-evm-rootfs"
    [    9.178833] UBIFS: file system size:   246333440 bytes (240560 KiB, 234 MiB, 1940 LEBs)
    [    9.187225] UBIFS: journal size:       9023488 bytes (8812 KiB, 8 MiB, 72 LEBs)
    [    9.194854] UBIFS: media format:       w4/r0 (latest is w4/r0)
    [    9.200958] UBIFS: default compressor: lzo
    [    9.205230] UBIFS: reserved for root:  0 bytes (0 KiB)
    [    9.254089] VFS: Mounted root (ubifs filesystem) on device 0:13.
    [    9.260833] Freeing init memory: 236K
    INIT: version 2.88 booting
    [   10.826385] UBI: run torture test for PEB 1987
    [   11.148406] UBI: PEB 1987 passed torture test, do not mark it as bad
    [   11.320098] UBI: run torture test for PEB 1987
    [   11.672454] UBI: PEB 1987 passed torture test, do not mark it as bad
    [   11.804351] UBI: run torture test for PEB 1987
    Starting udev
    [   12.149230] UBI: PEB 1987 passed torture test, do not mark it as bad
    [   12.287384] UBI: run torture test for PEB 1987
    [   12.616699] UBI: PEB 1987 passed torture test, do not mark it as bad
    [   12.754058] UBI: run torture test for PEB 1987
    [   13.099517] UBI: PEB 1987 passed torture test, do not mark it as bad
    [   13.242462] UBI: run torture test for PEB 1987
    [   13.573364] UBI: PEB 1987 passed torture test, do not mark it as bad
    [   13.710632] UBI: run torture test for PEB 1987
    [   14.037322] UBI: PEB 1987 passed torture test, do not mark it as bad
    [   14.163513] UBI: run torture test for PEB 1987
    [   14.502166] UBI: PEB 1987 passed torture test, do not mark it as bad
    [   14.640441] UBI: run torture test for PEB 1987
    [   14.968811] UBI: PEB 1987 passed torture test, do not mark it as bad
    [   15.105560] UBI: run torture test for PEB 1987
    [   15.442016] UBI: PEB 1987 passed torture test, do not mark it as bad
    [   15.557952] UBI: run torture test for PEB 1987
    [   15.891998] UBI: PEB 1987 passed torture test, do not mark it as bad
    [   16.024627] UBI: run torture test for PEB 1987
    [   16.351867] UBI: PEB 1987 passed torture test, do not mark it as bad
    [   16.486572] UBI: run torture test for PEB 1987
    [   16.823272] UBI: PEB 1987 passed torture test, do not mark it as bad
    [   17.232482] UBI: run torture test for PEB 1987
    [   18.151062] UBI: PEB 1987 passed torture test, do not mark it as bad
    [   19.577911] UBI: run torture test for PEB 1987

    之后系统可正常启动并登录,但是不停打印上述标红的部分。

    我目前使用的是SDK-06里的u-boot和uImage,文件系统是SDK里自带的arago-base-tisdk-image-am335x-evm.ubi, 通过如下命令将romfs烧写至NAND Flash上:

    # mw.b 0x82000000 0xFF 0x1960000

    # tftp 0x82000000 arago-base-tisdk-image-am335x-evm.ubi

    # nand erase 0x780000 0xf880000

    # nand write 0x82000000 0x780000 0x1960000

    请问这个是什么问题呢?

  • Hi Jian Zhou:

    我也试过将SDK6里面的arago-base-tisdk-image-am335x-evm.tar.gz重新解压,并按照你上面提到的文档制作了新的UBIFS文件系统,烧写至Nand Flash上后在系统启动过过程中也出现了同样的问题,只是启动时对不同的PEB块进行不断的重复测试。

     

  • 你只在一块板子上测的?有没有在其他板子上试过?

    我感觉还是做image的时候参数设的不对

  • 请您在uboot和kernel中,按照下面的方式修改看看

    #if 0 /* Fixed - Spansion */

                  chip->cmdfunc(mtd, NAND_CMD_RNDOUT, data_pos, page);

    #else

                  chip->cmdfunc(mtd, NAND_CMD_RNDOUT, data_pos, -1);

    #endif

  • 好像把oob_pos的最后一个参数改成-1可以,不知道这样改是什么原理,能否解释下?

    chip->cmdfunc(mtd, NAND_CMD_RNDOUT, oob_pos, -1);