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文件系统烧写问题

Other Parts Discussed in Thread: TPS65910

我使用的是SDK的版本是sitara-linuxsdk-sdg-06.00.00.00,使用该版本的uboot和linux内核、arago-base-tisdk-image-am335x-evm.ubi文件系统(重命名为ubi.img)。使用以下方式烧写镜像:
一、设置为SD卡启动
1、烧写uboot和uImage
mmc rescan
nand erase 0x0 0x780000
fatload mmc 0 0x81000000 MLO
cp.b 0x81000000 0x81020000 20000
cp.b 0x81000000 0x81040000 20000
cp.b 0x81000000 0x81060000 20000
fatload mmc 0 0x81080000 u-boot.img
fatload mmc 0 0x81280000 uImage
nand write 0x81000000 0x0 0x780000
saveenv
2、烧写文件系统
mmc rescan
fatload mmc 0 0x82000000 ubi.img
nand erase 0x780000 0xF880000
nand write 0x82000000 0x780000 0xFC0000
二、设置为nand的启动,上电。出现了以下信息
[   10.632843] Copied the M3 firmware to UMEM
[   10.637207] Cortex M3 Firmware Version = 0x181
[   10.643676] create_regulator: VDD1: Failed to create debugfs directory
[   10.652954] smartreflex smartreflex: am33xx_sr_probe: Driver initialized
[   10.666503] clock: disabling unused clocks to save power
[   10.684722] Detected MACID=0:18:30:b:9:3e
[   10.690093] cpsw: Detected MACID = 00:18:30:0b:09:3f
[   10.696380] omap_rtc am33xx-rtc: setting system clock to 2000-01-01 00:00:09 UTC (946684809)
[   10.705627] VFS: Cannot open root device "ubi0:rootfs" or unknown-block(0,0)
[   10.712982] Please append a correct "root=" boot option; here are the available partitions:
[   10.721771] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
[   10.730407] Backtrace:
[   10.733001] [<c0017dbc>] (dump_backtrace+0x0/0x10c) from [<c04144c0>] (dump_stack+0x18/0x1c)
[   10.741821]  r6:00008000 r5:c04f72d0 r4:c0641308 r3:c05f7f4c
[   10.747741] [<c04144a8>] (dump_stack+0x0/0x1c) from [<c04146fc>] (panic+0x64/0x194)
[   10.755767] [<c0414698>] (panic+0x0/0x194) from [<c0599c88>] (mount_block_root+0x174/0x228)
[   10.764495]  r3:00000000 r2:00000000 r1:cf01df68 r0:c04f72d0
[   10.770416]  r7:c05c7410
[   10.773071] [<c0599b14>] (mount_block_root+0x0/0x228) from [<c0599fa4>] (prepare_namespace+0x94/0x1c0)
[   10.782806] [<c0599f10>] (prepare_namespace+0x0/0x1c0) from [<c05998fc>] (kernel_init+0xf4/0x120)
[   10.792053]  r5:c05d36e8 r4:c05d36e8
[   10.795837] [<c0599808>] (kernel_init+0x0/0x120) from [<c0042174>] (do_exit+0x0/0x65c)
[   10.804077]  r5:c0599808 r4:00000000


请问这是怎么回事?

  • nand write 0x82000000 0x780000 0xFC0000

    长度对吗?

    不行把完整的启动信息贴上来一下

  • 把printenv打印信息发上来啊

    确认一下分区是不是对的

  • printenv打印信息:
    U-Boot# printenv
    arch=arm
    baudrate=115200
    board=am335x
    bootargs_defaults=setenv bootargs console=${console} ${optargs}
    bootcmd=mmc dev ${mmcdev}; if mmc rescan; then echo SD/MMC found on device ${mmcdev};if run loadbootenv; then echo Loaded environment from ${bootenv};run importbootenv;fi;if test -n $uenvcmd; then echo Running uenvcmd ...;run uenvcmd;fi;if run loaduimagefat; then run mmcboot;elif run loaduimage; then run mmcboot;else echo Could not find ${bootfile} ;fi;else run nandboot;fi;
    bootdelay=1
    bootenv=uEnv.txt
    bootfile=uImage
    console=ttyO0,115200n8
    cpu=armv7
    dfu_alt_info_emmc=rawemmc mmc 0 3751936
    dfu_alt_info_mmc=boot part 0 1;rootfs part 0 2;MLO fat 0 1;MLO.raw mmc 100 100;u-boot.img.raw mmc 300 3C0;u-boot.img fat 0 1;uEnv.txt fat 0 1
    dfu_alt_info_nand=SPL part 0 1;SPL.backup1 part 0 2;SPL.backup2 part 0 3;SPL.backup3 part 0 4;u-boot part 0 5;kernel part 0 7;rootfs part 0 8
    ethact=cpsw
    ethaddr=00:18:30:0b:09:3e
    fdt_high=0xffffffff
    fdtaddr=0x80F80000
    filesize=0x1960000
    findfdt=if test $board_name = A335BONE; then setenv fdtfile am335x-bone.dtb; fi; if test $board_name = A33515BB; then setenv fdtfile am335x-evm.dtb; fi; if test $board_name = A335X_SK; then setenv fdtfile am335x-evmsk.dtb; fi
    importbootenv=echo Importing environment from mmc ...; env import -t $loadaddr $filesize
    ip_method=none
    kloadaddr=0x80007fc0
    loadaddr=0x80200000
    loadbootenv=fatload mmc ${mmcdev} ${loadaddr} ${bootenv}
    loadramdisk=fatload mmc ${mmcdev} ${rdaddr} ramdisk.gz
    loaduimage=ext2load mmc ${mmcdev}:2 ${kloadaddr} /boot/${bootfile}
    loaduimagefat=fatload mmc ${mmcdev} ${kloadaddr} ${bootfile}
    mmcargs=run bootargs_defaults;setenv bootargs ${bootargs} root=${mmcroot} rootfstype=${mmcrootfstype} ip=${ip_method}
    mmcboot=echo Booting from mmc ...; run mmcargs; bootm ${kloadaddr}
    mmcdev=0
    mmcroot=/dev/mmcblk0p2 ro
    mmcrootfstype=ext3 rootwait
    mtdids=nand0=omap2-nand.0
    mtdparts=mtdparts=omap2-nand.0:128k(SPL),128k(SPL.backup1),128k(SPL.backup2),128k(SPL.backup3),1920k(u-boot),128k(u-boot-env),5m(kernel),-(rootfs)
    nandargs=setenv bootargs console=${console} ${optargs} root=${nandroot} rootfstype=${nandrootfstype}
    nandboot=echo Booting from nand ...; run nandargs; nand read ${loadaddr} ${nandsrcaddr} ${nandimgsize}; bootm ${loadaddr}
    nandimgsize=0x500000
    nandroot=ubi0:rootfs rw ubi.mtd=7,2048
    nandrootfstype=ubifs rootwait=1
    nandsrcaddr=0x280000
    netargs=setenv bootargs console=${console} ${optargs} root=/dev/nfs nfsroot=${serverip}:${rootpath},${nfsopts} rw ip=dhcp
    netboot=echo Booting from network ...; setenv autoload no; dhcp; tftp ${loadaddr} ${bootfile}; run netargs; bootm ${loadaddr}
    nfsopts=nolock
    ramargs=setenv bootargs console=${console} ${optargs} root=${ramroot} rootfstype=${ramrootfstype}
    ramboot=echo Booting from ramdisk ...; run ramargs; bootm ${loadaddr}
    ramroot=/dev/ram0 rw ramdisk_size=65536 initrd=${rdaddr},64M
    ramrootfstype=ext2
    rdaddr=0x81000000
    rootpath=/export/rootfs
    soc=am33xx
    spiargs=setenv bootargs console=${console} ${optargs} root=${spiroot} rootfstype=${spirootfstype}
    spiboot=echo Booting from spi ...; run spiargs; sf probe ${spibusno}:0; sf read ${loadaddr} ${spisrcaddr} ${spiimgsize}; bootm ${loadaddr}
    spibusno=0
    spiimgsize=0x362000
    spiroot=/dev/mtdblock4 rw
    spirootfstype=jffs2
    spisrcaddr=0xe0000
    static_ip=${ipaddr}:${serverip}:${gatewayip}:${netmask}:${hostname}::off
    stderr=serial
    stdin=serial
    stdout=serial
    usbnet_devaddr=00:18:30:0b:09:3e
    vendor=ti
    ver=U-Boot 2013.01.01 (Nov 11 2013 - 11:41:57)

    Environment size: 3575/131068 bytes

    内核启动信息:
    --header.name : A33515BB1.6
    --header.config : SKU#02
    --header.version : 1.6
    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 (Nov 11 2013 - 11:41:57)

    I2C:   ready
    DRAM:  256 MiB
    WARNING: Caches not enabled
    Could not probe the EEPROM; something fundamentally wrong on the I2C bus.
    Could not get board ID.
    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
       Image Type:   ARM Linux Kernel Image (uncompressed)
       Data Size:    3194968 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 (root@ubuntuser) (gcc version 4.7.3 20130226 (prerelease) (crosstool-NG linaro-1.13.1-4.7-2013.03-20130313 - Linaro GCC 2013.03) ) #5 Thu Dec 5 11:32:11 CST 2013
    [    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 (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 rootfstype=ubifs rootwait=1
    [    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: 253272k/253272k available, 8872k 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 - 0xc0599000   (5700 kB)
    [    0.000000]       .init : 0xc0599000 - 0xc05d4000   ( 236 kB)
    [    0.000000]       .data : 0xc05d4000 - 0xc063e5f0   ( 426 kB)
    [    0.000000]        .bss : 0xc063e614 - 0xc066d3a4   ( 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.059173] Mount-cache hash table entries: 512
    [    0.059539] CPU: Testing write buffer coherency: ok
    [    0.080017] omap_hwmod: gfx: failed to hardreset
    [    0.096313] omap_hwmod: pruss: failed to hardreset
    [    0.097442] print_constraints: dummy:
    [    0.097778] NET: Registered protocol family 16
    [    0.099975] OMAP GPIO hardware version 0.1
    [    0.102508] omap_mux_init: Add partition: #1: core, flags: 0
    [    0.104400]  omap_i2c.1: alias fck already exists
    [    0.105255]  omap2_mcspi.1: alias fck already exists
    [    0.105499]  omap2_mcspi.2: alias fck already exists
    [    0.106414]  edma.0: alias fck already exists
    [    0.106414]  edma.0: alias fck already exists
    [    0.106445]  edma.0: alias fck already exists
    [    0.132995] bio: create slab <bio-0> at 0
    [    0.135192] SCSI subsystem initialized
    [    0.136810] usbcore: registered new interface driver usbfs
    [    0.137084] usbcore: registered new interface driver hub
    [    0.137298] usbcore: registered new device driver usb
    [    0.137603] registerd cppi-dma Intr @ IRQ 17
    [    0.137603] Cppi41 Init Done Qmgr-base(d087a000) dma-base(d0878000)
    [    0.137603] Cppi41 Init Done
    [    0.137634] musb-ti81xx musb-ti81xx: musb0, board_mode=0x13, plat_mode=0x3
    [    0.137939] musb-ti81xx musb-ti81xx: musb1, board_mode=0x13, plat_mode=0x1
    [    0.139099] omap_i2c omap_i2c.1: bus 1 rev2.4.0 at 100 kHz
    [    0.140960] tps65910 1-002d: JTAGREVNUM 0x0
    [    0.143371] print_constraints: VRTC:
    [    0.144805] print_constraints: VIO: at 1500 mV
    [    0.147125] print_constraints: VDD1: 600 <--> 1500 mV at 1262 mV normal
    [    0.149444] print_constraints: VDD2: 600 <--> 1500 mV at 1137 mV normal
    [    0.150451] print_constraints: VDD3: 5000 mV
    [    0.151855] print_constraints: VDIG1: at 1800 mV
    [    0.153289] print_constraints: VDIG2: at 1800 mV
    [    0.154693] print_constraints: VPLL: at 1800 mV
    [    0.156127] print_constraints: VDAC: at 1800 mV
    [    0.157531] print_constraints: VAUX1: at 1800 mV
    [    0.158966] print_constraints: VAUX2: at 3300 mV
    [    0.160400] print_constraints: VAUX33: at 3300 mV
    [    0.161834] print_constraints: VMMC: at 3300 mV
    [    0.162322] tps65910 1-002d: No interrupt support, no core IRQ
    [    0.163696] Advanced Linux Sound Architecture Driver Version 1.0.24.
    [    0.164825] Switching to clocksource gp timer
    [    0.180175] musb-hdrc: version 6.0, ?dma?, otg (peripheral+host)
    [    0.180389] musb-hdrc musb-hdrc.0: dma type: dma-cppi41
    [    0.180694] MUSB0 controller's USBSS revision = 4ea20800
    [    0.181640] musb-hdrc musb-hdrc.0: USB OTG mode controller at d083c000 using DMA, IRQ 18
    [    0.181793] musb-hdrc musb-hdrc.1: dma type: dma-cppi41
    [    0.182098] MUSB1 controller's USBSS revision = 4ea20800
    [    0.182525] musb-hdrc musb-hdrc.1: MUSB HDRC host driver
    [    0.182617] musb-hdrc musb-hdrc.1: new USB bus registered, assigned bus number 1
    [    0.182769] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
    [    0.182769] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
    [    0.182769] usb usb1: Product: MUSB HDRC host driver
    [    0.182800] usb usb1: Manufacturer: Linux 3.2.0 musb-hcd
    [    0.182800] usb usb1: SerialNumber: musb-hdrc.1
    [    0.183593] hub 1-0:1.0: USB hub found
    [    0.183624] hub 1-0:1.0: 1 port detected
    [    0.184173] musb-hdrc musb-hdrc.1: USB Host mode controller at d083e800 using DMA, IRQ 19
    [    0.184570] NET: Registered protocol family 2
    [    0.184753] IP route cache hash table entries: 2048 (order: 1, 8192 bytes)
    [    0.185150] TCP established hash table entries: 8192 (order: 4, 65536 bytes)
    [    0.185302] TCP bind hash table entries: 8192 (order: 3, 32768 bytes)
    [    0.185394] TCP: Hash tables configured (established 8192 bind 8192)
    [    0.185424] TCP reno registered
    [    0.185424] UDP hash table entries: 256 (order: 0, 4096 bytes)
    [    0.185455] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
    [    0.185668] NET: Registered protocol family 1
    [    0.185913] RPC: Registered named UNIX socket transport module.
    [    0.185943] RPC: Registered udp transport module.
    [    0.185943] RPC: Registered tcp transport module.
    [    0.185943] RPC: Registered tcp NFSv4.1 backchannel transport module.
    [    0.186187] NetWinder Floating Point Emulator V0.97 (double precision)
    [    0.197509] VFS: Disk quotas dquot_6.5.2
    [    0.197601] Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
    [    0.198120] msgmni has been set to 494
    [    0.201263] alg: No test for stdrng (krng)
    [    0.201934] io scheduler noop registered
    [    0.201965] io scheduler deadline registered
    [    0.202026] io scheduler cfq registered (default)
    [    0.203216] Could not set LED4 to fully on
    [    0.215972] omap_uart.0: ttyO0 at MMIO 0x44e09000 (irq = 72) is a OMAP UART0
    [    0.861816] console [ttyO0] enabled
    [    0.866088] omap_uart.1: ttyO1 at MMIO 0x48022000 (irq = 73) is a OMAP UART1
    [    0.873901] omap_uart.2: ttyO2 at MMIO 0x48024000 (irq = 74) is a OMAP UART2
    [    0.881713] omap_uart.3: ttyO3 at MMIO 0x481a6000 (irq = 44) is a OMAP UART3
    [    0.889495] omap_uart.4: ttyO4 at MMIO 0x481a8000 (irq = 45) is a OMAP UART4
    [    0.897277] omap_uart.5: ttyO5 at MMIO 0x481aa000 (irq = 46) is a OMAP UART5
    [    0.905548] omap4_rng omap4_rng: OMAP4 Random Number Generator ver. 2.00
    [    0.921813] brd: module loaded
    [    0.929840] loop: module loaded
    [    0.933288] i2c-core: driver [tsl2550] using legacy suspend method
    [    0.939788] i2c-core: driver [tsl2550] using legacy resume method
    [    0.946228] at24 1-0051: 32768 byte 24c256 EEPROM, writable, 64 bytes/write
    [    1.005462] No daughter card found
    [    1.009063] at24 1-0050: 32768 byte 24c256 EEPROM, writable, 64 bytes/write
    [    1.016326] -------------------------------------->hou
    [    1.021697] Board name: A33515BB
    [    1.025054] Board version: 1.6
    [    1.028259] SKU: SKU#02
    [    1.030944] arch/arm/mach-omap2/board-am335xevm.c setup_ind_auto_motor_ctrl_evm 2423
    [    1.039031] The board is an industrial automation EVM in profile 0
    [    1.046569] ---------------->hou
    [    1.050445] omap-gpmc omap-gpmc: GPMC revision 6.0
    [    1.055511] Registering NAND on CS0
    [    1.059936]  omap_i2c.2: alias fck already exists
    [    1.065185] omap_i2c omap_i2c.2: bus 2 rev2.4.0 at 100 kHz
    [    1.071685] tsl2550 2-0039: standard operating mode
    [    2.075531] omap_i2c omap_i2c.2: controller timed out
    [    2.080810] tsl2550: probe of 2-0039 failed with error -110
    [    2.087066]  omap_hsmmc.0: alias fck already exists
    [    2.093048] arch/arm/mach-omap2/board-am335xevm.c setup_ind_auto_motor_ctrl_evm 2438
    [    2.102935] registered am33xx_sr device
    [    2.108856] mtdoops: mtd device (mtddev=name/number) must be supplied
    [    2.116119] omap2-nand driver initializing
    [    2.120788] NAND device: Manufacturer ID: 0xec, Chip ID: 0xda (Samsung NAND 256MiB 3,3V 8-bit)
    [    2.130035] Creating 8 MTD partitions on "omap2-nand.0":
    [    2.135589] 0x000000000000-0x000000020000 : "SPL"
    [    2.141998] 0x000000020000-0x000000040000 : "SPL.backup1"
    [    2.149017] 0x000000040000-0x000000060000 : "SPL.backup2"
    [    2.155914] 0x000000060000-0x000000080000 : "SPL.backup3"
    [    2.162750] 0x000000080000-0x000000260000 : "U-Boot"
    [    2.169921] 0x000000260000-0x000000280000 : "U-Boot Env"
    [    2.176727] 0x000000280000-0x000000780000 : "Kernel"
    [    2.185150] 0x000000780000-0x000010000000 : "File System"
    [    2.295318] OneNAND driver initializing
    [    2.300079] UBI: attaching mtd7 to ubi0
    [    2.304107] UBI: physical eraseblock size:   131072 bytes (128 KiB)
    [    2.310668] UBI: logical eraseblock size:    126976 bytes
    [    2.316314] UBI: smallest flash I/O unit:    2048
    [    2.321228] UBI: VID header offset:          2048 (aligned 2048)
    [    2.327484] UBI: data offset:                4096
    [    3.506530] UBI: max. sequence number:       0
    [    3.544067] UBI: volume 0 ("am335x-evm-rootfs") re-sized from 201 to 1964 LEBs
    [    3.552581] UBI: attached mtd7 to ubi0
    [    3.556549] UBI: MTD device name:            "File System"
    [    3.562255] UBI: MTD device size:            248 MiB
    [    3.567443] UBI: number of good PEBs:        1987
    [    3.572357] UBI: number of bad PEBs:         1
    [    3.576995] UBI: number of corrupted PEBs:   0
    [    3.581634] UBI: max. allowed volumes:       128
    [    3.586456] UBI: wear-leveling threshold:    4096
    [    3.591369] UBI: number of internal volumes: 1
    [    3.596008] UBI: number of user volumes:     1
    [    3.600616] UBI: available PEBs:             0
    [    3.605255] UBI: total number of reserved PEBs: 1987
    [    3.610443] UBI: number of PEBs reserved for bad PEB handling: 19
    [    3.616821] UBI: max/mean erase counter: 1/0
    [    3.621246] UBI: image sequence number:  472156732
    [    3.626373] UBI: background thread "ubi_bgt0d" started, PID 593
    [    3.636535] CAN device driver interface
    [    3.640533] CAN bus driver for Bosch D_CAN controller 1.0
    [    3.715515] davinci_mdio davinci_mdio.0: davinci mdio revision 1.6
    [    3.721954] davinci_mdio davinci_mdio.0: detected phy mask fffffffe
    [    3.745758] davinci_mdio.0: probed
    [    3.749298] davinci_mdio davinci_mdio.0: phy[0]: device 0:00, driver Davicom DM9161A
    [    3.765777] usbcore: registered new interface driver zd1201
    [    3.775573] usbcore: registered new interface driver cdc_ether
    [    3.795532] usbcore: registered new interface driver cdc_eem
    [    3.805572] usbcore: registered new interface driver dm9601
    [    3.811431] cdc_ncm: 04-Aug-2011
    [    3.826019] usbcore: registered new interface driver cdc_ncm
    [    3.831939] Initializing USB Mass Storage driver...
    [    3.845611] usbcore: registered new interface driver usb-storage
    [    3.851867] USB Mass Storage support registered.
    [    3.875854] mousedev: PS/2 mouse device common for all mice
    [    3.882812] omap_rtc am33xx-rtc: rtc core: registered am33xx-rtc as rtc0
    [    3.895568] i2c /dev entries driver
    [    3.906066] Linux video capture interface: v2.00
    [    3.915924] usbcore: registered new interface driver uvcvideo
    [    3.921905] USB Video Class driver (1.1.1)
    [    4.925506] omap_i2c omap_i2c.2: controller timed out
    [    4.930816] lm75: probe of 2-0048 failed with error -110
    [    6.045837] omap_i2c omap_i2c.2: controller timed out
    [    7.065521] omap_i2c omap_i2c.2: controller timed out
    [    8.065521] omap_i2c omap_i2c.2: controller timed out
    [    9.065643] omap_i2c omap_i2c.2: controller timed out
    [   10.085571] omap_i2c omap_i2c.2: controller timed out
    [   11.105590] omap_i2c omap_i2c.2: controller timed out
    [   12.125488] omap_i2c omap_i2c.2: controller timed out
    [   12.146636] OMAP Watchdog Timer Rev 0x01: initial timeout 60 sec
    [   12.155212] cpuidle: using governor ladder
    [   12.160003] cpuidle: using governor menu
    [   12.166534] omap4_aes_mod_init: loading AM33X AES driver
    [   12.172210] omap4-aes omap4-aes: AM33X AES hw accel rev: 3.02
    [   12.178741] omap4_aes_probe: probe() done
    [   12.183166] omap4_sham_mod_init: loading AM33X SHA/MD5 driver
    [   12.189331] omap4-sham omap4-sham: AM33X SHA/MD5 hw accel rev: 4.03
    [   12.201019] omap4_sham_probe: probe() done
    [   12.207733] usbcore: registered new interface driver usbhid
    [   12.213531] usbhid: USB HID core driver
    [   12.219543] usbcore: registered new interface driver snd-usb-audio
    [   12.229858] ALSA device list:
    [   12.232971]   No soundcards found.
    [   12.236541] oprofile: hardware counters not available
    [   12.241821] oprofile: using timer interrupt.
    [   12.246307] nf_conntrack version 0.5.0 (3957 buckets, 15828 max)
    [   12.253082] ip_tables: (C) 2000-2006 Netfilter Core Team
    [   12.258758] TCP cubic registered
    [   12.262145] NET: Registered protocol family 17
    [   12.266815] can: controller area network core (rev 20090105 abi 8)
    [   12.273345] NET: Registered protocol family 29
    [   12.277984] can: raw protocol (rev 20090105)
    [   12.282440] can: broadcast manager protocol (rev 20090105 t)
    [   12.288391] Registering the dns_resolver key type
    [   12.293395] VFP support v0.3: implementor 41 architecture 3 part 30 variant c rev 3
    [   12.301391] ThumbEE CPU extension supported.
    [   12.305938] mux: Failed to setup hwmod io irq -22
    [   12.311492] Power Management for AM33XX family
    [   12.316375] Trying to load am335x-pm-firmware.bin (60 secs timeout)
    [   12.323059] Copied the M3 firmware to UMEM
    [   12.327423] Cortex M3 Firmware Version = 0x181
    [   12.333862] create_regulator: VDD1: Failed to create debugfs directory
    [   12.343139] smartreflex smartreflex: am33xx_sr_probe: Driver initialized
    [   12.356689] clock: disabling unused clocks to save power
    [   12.374816] Detected MACID=0:18:30:b:9:3e
    [   12.380187] cpsw: Detected MACID = 00:18:30:0b:09:3f
    [   12.386505] omap_rtc am33xx-rtc: setting system clock to 2000-01-01 00:00:08 UTC (946684808)
    [   12.395782] VFS: Cannot open root device "ubi0:rootfs" or unknown-block(0,0)
    [   12.403137] Please append a correct "root=" boot option; here are the available partitions:
    [   12.411926] 1f00             128 mtdblock0  (driver?)
    [   12.417205] 1f01             128 mtdblock1  (driver?)
    [   12.422485] 1f02             128 mtdblock2  (driver?)
    [   12.427764] 1f03             128 mtdblock3  (driver?)
    [   12.433044] 1f04            1920 mtdblock4  (driver?)
    [   12.438354] 1f05             128 mtdblock5  (driver?)
    [   12.443634] 1f06            5120 mtdblock6  (driver?)
    [   12.448913] 1f07          254464 mtdblock7  (driver?)
    [   12.454193] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
    [   12.462829] Backtrace:
    [   12.465393] [<c0017dbc>] (dump_backtrace+0x0/0x10c) from [<c04144c0>] (dump_stack+0x18/0x1c)
    [   12.474212]  r6:00008000 r5:c04f72d0 r4:c0641308 r3:c05f7f4c
    [   12.480163] [<c04144a8>] (dump_stack+0x0/0x1c) from [<c04146fc>] (panic+0x64/0x194)
    [   12.488189] [<c0414698>] (panic+0x0/0x194) from [<c0599c88>] (mount_block_root+0x174/0x228)
    [   12.496917]  r3:00000004 r2:00000000 r1:cf01df68 r0:c04f72d0
    [   12.502838]  r7:c05c7410
    [   12.505462] [<c0599b14>] (mount_block_root+0x0/0x228) from [<c0599fa4>] (prepare_namespace+0x94/0x1c0)
    [   12.515197] [<c0599f10>] (prepare_namespace+0x0/0x1c0) from [<c05998fc>] (kernel_init+0xf4/0x120)
    [   12.524475]  r5:c05d36e8 r4:c05d36e8
    [   12.528228] [<c0599808>] (kernel_init+0x0/0x120) from [<c0042178>] (do_exit+0x0/0x65c)
    [   12.536499]  r5:c0599808 r4:00000000


    我使用nand erase.chip;nand scrub 0 10000000;mmc rescan;nand erase 0x0 0x780000;fatload mmc 0 0x81000000 MLO;cp.b 0x81000000 0x81020000 20000;cp.b 0x81000000 0x81040000 20000;cp.b 0x81000000 0x81060000 20000;fatload mmc 0 0x81080000 u-boot.img;fatload mmc 0 0x81280000 uImage;nand write 0x81000000 0x0 0x780000;saveenv;mmc rescan;fatload mmc 0 0x82000000 ubi.img;nand erase 0x780000 0xF880000;nand write 0x82000000 0x780000 0xFC0000;saveenv下载镜像。

    nandflash启动,uboot和内核可以正常启动,但是内核不可以。

    我使用SD卡启动,在内核下使用以下命令:
    1、ubiformat /dev/mtd7 -f /media/mmcblk0p1/arago-base-tisdk-image-am335x-evm.ubi -s 2048 -O 2048
    2、sync
    nandflash启动,在uboot下输出以下命令:
    1、set nandroot 'ubi0:am335x-evm-rootfs rw ubi.mtd=7,2048
    2、boot
    这样内核就可以启动,为什么不使用ubiformat就不行呢?

  • 1) 我使用nand erase.chip;nand scrub 0 10000000;mmc rescan;nand erase 0x0 0x780000;fatload mmc 0 0x81000000 MLO;cp.b 0x81000000 0x81020000 20000;cp.b 0x81000000 0x81040000 20000;cp.b 0x81000000 0x81060000 20000;fatload mmc 0 0x81080000 u-boot.img;fatload mmc 0 0x81280000 uImage;nand write 0x81000000 0x0 0x780000;saveenv;mmc rescan;fatload mmc 0 0x82000000 ubi.img;nand erase 0x780000 0xF880000;nand write 0x82000000 0x780000 0xFC0000;saveenv下载镜像。

    这里最后一步nand write 0x82000000 0x780000 0xFC0000,长度必须严格的等于ubi.img的长度

    2)arago-base-tisdk-image-am335x-evm.ubi 这个镜像在制作时卷的名字(vol_name)可能设置的是335x-evm-rootfs,所以环境变量要改一下

  • 我碰到过同样的问题,不知道跟你的原因是否一样!我最后发现NAND-FLASH选型不对:NAND-FLAHS分为ONFI接口(Intel公司标准)和非ONFI接口(三星标准),后来将NAND-FLASH更改为ONFI接口的就可以了!可以尝试一下啊!