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.

beaglebone black ubi系统制作和启动问题

Other Parts Discussed in Thread: TPS65910, TPS65217, CC2520

我们公司自己copy了 bblack 的板卡 讲eMMC的flash换成ONFI的nandflash (MT29F2G08ABAEAWP)制作了ubi文件系统通过sd卡烧写到nandfalsh中 内核启动挂载文件系统的时候总是报错 哪位大神给看下哈 小弟感激不尽

启动log如下:

U-Boot SPL 2013.01.01 (Apr 19 2014 - 02:06:25)
gzh*******************
magic = 0xee3355aa,board_name = A335BNLT version = serial = config =
444444444444
000000000000
000000000000
222222222222222222222222
333333333333333333333
444444444444444444444
gzh:i am here 0
gzh:i am here 1
gpmc_init begin
gpmc_init enter
gpmc_init 00
gpmc_init 02
gpmc_init 0
gpmc_init 1
gpmc_init 2
gpmc_init end
am33xx_spl_board_init begin
arch_misc_init begin
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
gzh:i am here 22222222
gzh:i am here 2
gzh boot device - 5
gzh load image begin
spl: nand - using hw ecc
nand_init 1111111111111111
nand_init 2222222222222222
NAND:begin
NAND: cs = 0
NAND:gpmc version 60
NAND:config1 = 800
NAND:config2 = 1e1e00
NAND:config3 = 1e1e00
NAND:config4 = 16051807
NAND:config5 = 151e1e
NAND:config6 = 16000f80
NAND:config7 = 48
nand_init 3333333333333333
nand_init 4444444444444444
nand_init 5555555555555555
Load u-boot begin
Load u-boot end
gzh load image end
spl_image.os = 17
image entry point: 0x80800000


U-Boot 2013.01.01 (Apr 19 2014 - 02:06:25)

I2C: ready
DRAM: 512 MiB
WARNING: Caches not enabled
Could not probe the EEPROM; something fundamentally wrong on the I2C bus.
Could not get board ID.
gpmc_init enter
gpmc_init 00
gpmc_init 02
gpmc_init 0
gpmc_init 1
gpmc_init 2
gpmc_init end
NAND: board_init_r:nand_init()
nand_init 3333333333333333
NAND:begin
NAND: cs = 0
NAND:gpmc version 60
NAND:config1 = 800
NAND:config2 = 1e1e00
NAND:config3 = 1e1e00
NAND:config4 = 16051807
NAND:config5 = 151e1e
NAND:config6 = 16000f80
NAND:config7 = 48
In nand_get_flash_type,*maf_id is 0x2c,dev_idis 0xda.
nand_init 4444444444444444
256 MiB
MMC: OMAP SD/MMC: 0, OMAP SD/MMC: 1
)j= 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
Card did not respond to voltage select!
靴節 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: 3200976 Bytes = 3.1 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 (zyt@ubuntu) (gcc version 4.7.3 20130226 (prerelease) (crosstool-NG linaro-1.13.1-4.7-2013.03-20130313 - Linaro GCC 2013.03) ) #78 Thu Apr 17 06:36:43 PDT 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] On node 0 totalpages: 131072
[ 0.000000] free_area_init_node: node 0, pgdat c0636d90, node_mem_map c0670000
[ 0.000000] Normal zone: 1024 pages used for memmap
[ 0.000000] Normal zone: 0 pages reserved
[ 0.000000] Normal zone: 130048 pages, LIFO batch:31
[ 0.000000] ############am33xx_init_early 0000
[ 0.000000] ############am33xx_init_early 1111
[ 0.000000] ############am33xx_init_early 2222
[ 0.000000] AM335X ES2.1 (sgx neon )
[ 0.000000] ############am33xx_init_early 3333
[ 0.000000] ############am33xx_init_early 4444
[ 0.000000] ############am33xx_init_early 5555
[ 0.000000] ############am33xx_init_early 6666
[ 0.000000] ############am33xx_init_early 7777
[ 0.000000] ############am33xx_init_early 8888
[ 0.000000] ############am33xx_init_early 9999
[ 0.000000] ############am33xx_init_early aaaa
[ 0.000000] ############am33xx_init_early bbbb
[ 0.000000] ############omap3xxx_clk_init 0000
[ 0.000000] ############am33xx_clk_init 0000
[ 0.000000] ############am33xx_init_early cccc
[ 0.000000] pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768
[ 0.000000] pcpu-alloc: [0] 0
[ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 130048
[ 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: 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: 513160k/513160k available, 11128k 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 - 0xc059b000 (5708 kB)
[ 0.000000] .init : 0xc059b000 - 0xc05d6000 ( 236 kB)
[ 0.000000] .data : 0xc05d6000 - 0xc0640430 ( 426 kB)
[ 0.000000] .bss : 0xc0640454 - 0xc066f2e4 ( 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_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.000372] Calibrating delay loop... 298.59 BogoMIPS (lpj=1492992)
[ 0.063992] pid_max: default: 32768 minimum: 301
[ 0.064261] Security Framework initialized
[ 0.064445] Mount-cache hash table entries: 512
[ 0.065156] CPU: Testing write buffer coherency: ok
[ 0.092804] omap_hwmod: pruss: failed to hardreset
[ 0.095043] print_constraints: dummy:
[ 0.095795] NET: Registered protocol family 16
[ 0.100415] OMAP GPIO hardware version 0.1
[ 0.106357] omap_mux_init: Add partition: #1: core, flags: 0
[ 0.110519] omap_i2c.1: alias fck already exists
[ 0.112393] omap2_mcspi.1: alias fck already exists
[ 0.112904] omap2_mcspi.2: alias fck already exists
[ 0.115130] edma.0: alias fck already exists
[ 0.115178] edma.0: alias fck already exists
[ 0.115221] edma.0: alias fck already exists
[ 0.178335] bio: create slab <bio-0> at 0
[ 0.183172] SCSI subsystem initialized
[ 0.186721] usbcore: registered new interface driver usbfs
[ 0.187402] usbcore: registered new interface driver hub
[ 0.187841] usbcore: registered new device driver usb
[ 0.188462] registerd cppi-dma Intr @ IRQ 17
[ 0.188491] Cppi41 Init Done Qmgr-base(e087a000) dma-base(e0878000)
[ 0.188513] Cppi41 Init Done
[ 0.188568] musb-ti81xx musb-ti81xx: musb0, board_mode=0x13, plat_mode=0x3
[ 0.189199] musb-ti81xx musb-ti81xx: musb1, board_mode=0x13, plat_mode=0x1
[ 0.204109] omap_i2c omap_i2c.1: bus 1 rev2.4.0 at 100 kHz
[ 0.207150] tps65910 1-002d: could not be detected
[ 0.210128] Advanced Linux Sound Architecture Driver Version 1.0.24.
[ 0.212488] Switching to clocksource gp timer
[ 0.248560] musb-hdrc: version 6.0, ?dma?, otg (peripheral+host)
[ 0.248891] musb-hdrc musb-hdrc.0: dma type: dma-cppi41
[ 0.249569] MUSB0 controller's USBSS revision = 4ea20800
[ 0.249615] TxFifo Empty intr disabled
[ 0.249637] musb0: Enabled SW babble control
[ 0.250257] musb-hdrc: ConfigData=0xde (UTMI-8, dyn FIFOs, bulk combine, bulk split, HB-ISO Rx, HB-ISO Tx, SoftConn)
[ 0.250299] musb-hdrc: MHDRC RTL version 2.0
[ 0.250322] musb-hdrc: setup fifo_mode 4
[ 0.250385] musb-hdrc: 28/31 max ep, 16384/16384 memory
[ 0.250417] musb-hdrc.0: bulk split disabled
[ 0.250437] musb-hdrc.0: bulk combine disabled
[ 0.251667] musb-hdrc musb-hdrc.0: USB OTG mode controller at e083c000 using DMA, IRQ 18
[ 0.251987] musb-hdrc musb-hdrc.1: dma type: dma-cppi41
[ 0.252759] MUSB1 controller's USBSS revision = 4ea20800
[ 0.252799] TxFifo Empty intr disabled
[ 0.252820] musb1: Enabled SW babble control
[ 0.253423] musb-hdrc: ConfigData=0xde (UTMI-8, dyn FIFOs, bulk combine, bulk split, HB-ISO Rx, HB-ISO Tx, SoftConn)
[ 0.253465] musb-hdrc: MHDRC RTL version 2.0
[ 0.253487] musb-hdrc: setup fifo_mode 4
[ 0.253545] musb-hdrc: 28/31 max ep, 16384/16384 memory
[ 0.253575] musb-hdrc.1: bulk split disabled
[ 0.253595] musb-hdrc.1: bulk combine disabled
[ 0.253760] musb-hdrc musb-hdrc.1: MUSB HDRC host driver
[ 0.253932] musb-hdrc musb-hdrc.1: new USB bus registered, assigned bus number 1
[ 0.254191] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[ 0.254225] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[ 0.254255] usb usb1: Product: MUSB HDRC host driver
[ 0.254279] usb usb1: Manufacturer: Linux 3.2.0 musb-hcd
[ 0.254304] usb usb1: SerialNumber: musb-hdrc.1
[ 0.256102] hub 1-0:1.0: USB hub found
[ 0.256162] hub 1-0:1.0: 1 port detected
[ 0.257365] musb-hdrc musb-hdrc.1: USB Host mode controller at e083e800 using DMA, IRQ 19
[ 0.258208] NET: Registered protocol family 2
[ 0.258553] IP route cache hash table entries: 4096 (order: 2, 16384 bytes)
[ 0.259131] TCP established hash table entries: 16384 (order: 5, 131072 bytes)
[ 0.259844] TCP bind hash table entries: 16384 (order: 4, 65536 bytes)
[ 0.260258] TCP: Hash tables configured (established 16384 bind 16384)
[ 0.260285] TCP reno registered
[ 0.260312] UDP hash table entries: 256 (order: 0, 4096 bytes)
[ 0.260365] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[ 0.260812] NET: Registered protocol family 1
[ 0.261333] RPC: Registered named UNIX socket transport module.
[ 0.261360] RPC: Registered udp transport module.
[ 0.261380] RPC: Registered tcp transport module.
[ 0.261400] RPC: Registered tcp NFSv4.1 backchannel transport module.
[ 0.261856] NetWinder Floating Point Emulator V0.97 (double precision)
[ 0.292989] VFS: Disk quotas dquot_6.5.2
[ 0.293116] Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[ 0.294199] msgmni has been set to 1002
[ 0.300688] alg: No test for stdrng (krng)
[ 0.301945] io scheduler noop registered
[ 0.301975] io scheduler deadline registered
[ 0.302107] io scheduler cfq registered (default)
[ 0.304428] Could not set LED4 to fully on
[ 0.307650] omap_uart.0: ttyO0 at MMIO 0x44e09000 (irq = 72) is a OMAP UART0
[ 1.092989] console [ttyO0] enabled
[ 1.098082] omap_uart.1: ttyO1 at MMIO 0x48022000 (irq = 73) is a OMAP UART1
[ 1.106589] omap_uart.2: ttyO2 at MMIO 0x48024000 (irq = 74) is a OMAP UART2
[ 1.115024] omap_uart.3: ttyO3 at MMIO 0x481a6000 (irq = 44) is a OMAP UART3
[ 1.123423] omap_uart.4: ttyO4 at MMIO 0x481a8000 (irq = 45) is a OMAP UART4
[ 1.131770] omap_uart.5: ttyO5 at MMIO 0x481aa000 (irq = 46) is a OMAP UART5
[ 1.141168] omap4_rng omap4_rng: OMAP4 Random Number Generator ver. 2.00
[ 1.169542] brd: module loaded
[ 1.184186] loop: module loaded
[ 1.187913] i2c-core: driver [tsl2550] using legacy suspend method
[ 1.194525] i2c-core: driver [tsl2550] using legacy resume method
[ 1.201128] at24 1-0051: 32768 byte 24c256 EEPROM, writable, 64 bytes/write
[ 1.262570] No daughter card found
[ 1.266266] at24 1-0050: 32768 byte 24c256 EEPROM, writable, 64 bytes/write
[ 1.273684] Board name: A335BNLT
[ 1.277110] Board version:
[ 1.280074] The board is a AM335x Beaglebone Black.
[ 1.288442] tps65217 1-0024: TPS65217 ID 0xe version 1.2
[ 1.296969] print_constraints: DCDC1: 900 <--> 1800 mV at 1500 mV
[ 1.306499] print_constraints: DCDC2: 900 <--> 3300 mV at 1100 mV
[ 1.315954] print_constraints: DCDC3: 900 <--> 1500 mV at 1100 mV
[ 1.325353] print_constraints: LDO1: 1000 <--> 3300 mV at 1800 mV
[ 1.334874] print_constraints: LDO2: 900 <--> 3300 mV at 3300 mV
[ 1.344254] print_constraints: LDO3: 1800 <--> 3300 mV at 1800 mV
[ 1.353732] print_constraints: LDO4: 1800 <--> 3300 mV at 3300 mV
[ 1.361574] omap_hsmmc.0: alias fck already exists
[ 1.367496] evm_nand_init
[ 1.371575] omap-gpmc omap-gpmc: GPMC revision 6.0
[ 1.376734] Registering NAND on CS0
[ 1.381871] omap_i2c.3: alias fck already exists
[ 1.402681] omap_i2c omap_i2c.3: bus 3 rev2.4.0 at 100 kHz
[ 1.414259] registered am33xx_sr device
[ 1.422341] mtdoops: mtd device (mtddev=name/number) must be supplied
[ 1.430380] omap2-nand driver initializing
[ 1.435132] nand_get_flash_type: second ID read did not match 2c,da against 28,b7
[ 1.443222] ONFI flash detected
[ 1.446752] ONFI param page 0 valid
[ 1.450463] NAND device: Manufacturer ID: 0x2c, Chip ID: 0xda (Micron MT29F2G08ABAEAWP)
[ 1.459415] Creating 8 MTD partitions on "omap2-nand.0":
[ 1.465126] 0x000000000000-0x000000020000 : "SPL"
[ 1.473264] 0x000000020000-0x000000040000 : "SPL.backup1"
[ 1.481841] 0x000000040000-0x000000060000 : "SPL.backup2"
[ 1.490410] 0x000000060000-0x000000080000 : "SPL.backup3"
[ 1.498866] 0x000000080000-0x000000260000 : "U-Boot"
[ 1.507577] 0x000000260000-0x000000280000 : "U-Boot Env"
[ 1.515960] 0x000000280000-0x000000780000 : "Kernel"
[ 1.526121] 0x000000780000-0x000010000000 : "File System"
[ 1.642704] OneNAND driver initializing
[ 1.648251] UBI: attaching mtd7 to ubi0
[ 1.652344] UBI: physical eraseblock size: 131072 bytes (128 KiB)
[ 1.659056] UBI: logical eraseblock size: 126976 bytes
[ 1.664806] UBI: smallest flash I/O unit: 2048
[ 1.669800] UBI: VID header offset: 2048 (aligned 2048)
[ 1.676195] UBI: data offset: 4096
[ 4.989124] UBI: max. sequence number: 0
[ 5.021853] UBI: attached mtd7 to ubi0
[ 5.025941] UBI: MTD device name: "File System"
[ 5.031767] UBI: MTD device size: 248 MiB
[ 5.037057] UBI: number of good PEBs: 1987
[ 5.042039] UBI: number of bad PEBs: 1
[ 5.046783] UBI: number of corrupted PEBs: 0
[ 5.051499] UBI: max. allowed volumes: 128
[ 5.056414] UBI: wear-leveling threshold: 4096
[ 5.061393] UBI: number of internal volumes: 1
[ 5.066127] UBI: number of user volumes: 1
[ 5.070847] UBI: available PEBs: 312
[ 5.075761] UBI: total number of reserved PEBs: 1675
[ 5.081021] UBI: number of PEBs reserved for bad PEB handling: 19
[ 5.087507] UBI: max/mean erase counter: 1/0
[ 5.092040] UBI: image sequence number: 0
[ 5.096415] spidev: hello spidev
[ 5.100200] UBI: background thread "ubi_bgt0d" started, PID 594
[ 5.113339] cc2520_irq = 226 #############
[ 5.118094] io_base = 0xfa04a000 fclk = 0xc05ecf38 func_base = 0xfa04a014 id = 0x7,irq = 0x5f revision = 0x2
[ 5.213985] CAN device driver interface
[ 5.218053] CAN bus driver for Bosch D_CAN controller 1.0
[ 5.282589] davinci_mdio davinci_mdio.0: davinci mdio revision 1.6
[ 5.289154] davinci_mdio davinci_mdio.0: detected phy mask fffffffe
[ 5.313668] davinci_mdio.0: probed
[ 5.317297] davinci_mdio davinci_mdio.0: phy[0]: device 0:00, driver SMSC LAN8710/LAN8720
[ 5.342754] usbcore: registered new interface driver zd1201
[ 5.349114] usbcore: registered new interface driver cdc_ether
[ 5.362745] usbcore: registered new interface driver cdc_eem
[ 5.372876] usbcore: registered new interface driver dm9601
[ 5.378854] cdc_ncm: 04-Aug-2011
[ 5.392743] usbcore: registered new interface driver cdc_ncm
[ 5.398746] Initializing USB Mass Storage driver...
[ 5.423021] usbcore: registered new interface driver usb-storage
[ 5.429402] USB Mass Storage support registered.
[ 5.443924] mousedev: PS/2 mouse device common for all mice
[ 5.465141] omap_rtc am33xx-rtc: rtc core: registered am33xx-rtc as rtc0
[ 5.482869] i2c /dev entries driver
[ 5.492767] Linux video capture interface: v2.00
[ 5.503614] usbcore: registered new interface driver uvcvideo
[ 5.509711] USB Video Class driver (1.1.1)
[ 5.532798] OMAP Watchdog Timer Rev 0x01: initial timeout 60 sec
[ 5.553985] cpuidle: using governor ladder
[ 5.573773] cpuidle: using governor menu
[ 5.592859] omap4_aes_mod_init: loading AM33X AES driver
[ 5.598715] omap4-aes omap4-aes: AM33X AES hw accel rev: 3.02
[ 5.622975] omap4_aes_probe: probe() done
[ 5.627735] omap4_sham_mod_init: loading AM33X SHA/MD5 driver
[ 5.634144] omap4-sham omap4-sham: AM33X SHA/MD5 hw accel rev: 4.03
[ 5.764037] omap4_sham_probe: probe() done
[ 5.812981] usbcore: registered new interface driver usbhid
[ 5.818900] usbhid: USB HID core driver
[ 5.834665] usbcore: registered new interface driver snd-usb-audio
[ 5.863419] ALSA device list:
[ 5.866587] No soundcards found.
[ 5.870195] oprofile: hardware counters not available
[ 5.875592] oprofile: using timer interrupt.
[ 5.880168] nf_conntrack version 0.5.0 (8018 buckets, 32072 max)
[ 5.887584] ip_tables: (C) 2000-2006 Netfilter Core Team
[ 5.893536] TCP cubic registered
[ 5.896981] NET: Registered protocol family 17
[ 5.901714] can: controller area network core (rev 20090105 abi 8)
[ 5.908503] NET: Registered protocol family 29
[ 5.913264] can: raw protocol (rev 20090105)
[ 5.917800] can: broadcast manager protocol (rev 20090105 t)
[ 5.923897] Registering the dns_resolver key type
[ 5.929004] VFP support v0.3: implementor 41 architecture 3 part 30 variant c rev 3
[ 5.937193] ThumbEE CPU extension supported.
[ 5.941836] mux: Failed to setup hwmod io irq -22
[ 5.948166] Power Management for AM33XX family
[ 5.953288] Trying to load am335x-pm-firmware.bin (60 secs timeout)
[ 5.960182] Copied the M3 firmware to UMEM
[ 5.964732] Cortex M3 Firmware Version = 0x181
[ 5.969596] DIEID: 1201002a 0163b34d 00000000 12320002
[ 5.975091] EFUSE SMA register val = 00013e2f
[ 5.979745] Compensating OPP0: Orig nvalue:0x99beac New nvalue:0x99beac
[ 5.986791] Compensating OPP1: Orig nvalue:0x9a8bf9 New nvalue:0x9a8bf9
[ 6.022163] Compensating OPP0: Orig nvalue:0x99b9a7 New nvalue:0x99b9a7
[ 6.029245] Compensating OPP1: Orig nvalue:0x999684 New nvalue:0x999684
[ 6.036301] Compensating OPP2: Orig nvalue:0xaae4ca New nvalue:0xaae4ca
[ 6.043347] Compensating OPP3: Orig nvalue:0xaacab3 New nvalue:0xaacab3
[ 6.050380] Compensating OPP4: Orig nvalue:0xaacab3 New nvalue:0xaa9a8b
[ 6.057530] create_regulator: DCDC2: Failed to create debugfs directory
[ 6.065573] smartreflex smartreflex: am33xx_sr_probe: Driver initialized
[ 6.081165] clock: disabling unused clocks to save power
[ 6.115215] Detected MACID=88:33:14:f6:66:e3
[ 6.121860] cpsw: Detected MACID = 88:33:14:f6:66:e5
[ 6.129413] omap_rtc am33xx-rtc: setting system clock to 2000-01-01 00:00:00 UTC (946684800)
[ 6.139185] VFS: Cannot open root device "ubi0:rootfs" or unknown-block(0,0)
[ 6.146718] Please append a correct "root=" boot option; here are the available partitions:
[ 6.155664] 1f00 128 mtdblock0 (driver?)
[ 6.161034] 1f01 128 mtdblock1 (driver?)
[ 6.166435] 1f02 128 mtdblock2 (driver?)
[ 6.171813] 1f03 128 mtdblock3 (driver?)
[ 6.177218] 1f04 1920 mtdblock4 (driver?)
[ 6.182618] 1f05 128 mtdblock5 (driver?)
[ 6.187995] 1f06 5120 mtdblock6 (driver?)
[ 6.193392] 1f07 254464 mtdblock7 (driver?)
[ 6.198764] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
[ 6.207563] Backtrace:
[ 6.210236] [<c0017dbc>] (dump_backtrace+0x0/0x10c) from [<c04167fc>] (dump_stack+0x18/0x1c)
[ 6.219209] r6:00008000 r5:c04f92a0 r4:c0643188 r3:c05f9e8c
[ 6.225305] [<c04167e4>] (dump_stack+0x0/0x1c) from [<c0416a38>] (panic+0x64/0x194)
[ 6.233493] [<c04169d4>] (panic+0x0/0x194) from [<c059bc88>] (mount_block_root+0x174/0x228)
[ 6.242365] r3:00000004 r2:00000000 r1:df02df68 r0:c04f92a0
[ 6.248412] r7:c05c9588
[ 6.251134] [<c059bb14>] (mount_block_root+0x0/0x228) from [<c059bfa4>] (prepare_namespace+0x94/0x1c0)
[ 6.261071] [<c059bf10>] (prepare_namespace+0x0/0x1c0) from [<c059b8fc>] (kernel_init+0xf4/0x120)
[ 6.270515] r5:c05d5868 r4:c05d5868
[ 6.274387] [<c059b808>] (kernel_init+0x0/0x120) from [<c0041f98>] (do_exit+0x0/0x65c)
[ 6.282803] r5:c059b808 r4:00000000

制作文件系统命令如下:

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

2  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

烧写命令如下:

u-boot# mw.b 0x82000000 0xFF
u-boot# mmc rescan
u-boot# fatload mmc 0 0x82000000 ubi.img
u-boot# nand erase 0x00780000 0xF880000
u-boot# nand write 0x82000000 0x00780000 0x20A0000

启动参数如下:

#setenv bootargs 'console=ttyO0,115200n8 noinitrd ip=off mem=256M
rootwait=1 rw ubi.mtd=7,2048 rootfstype=ubifs root=ubi0:rootfs
init=/init'

  • 我写过一篇针对NAND的UBI文件系统制作文档,不知对您有没有帮助:http://www.deyisupport.com/question_answer/dsp_arm/sitara_arm/f/25/t/59921.aspx

    对于OneNAND,是不是和NAND有些不同,可能需要加入subpage参数,网上有个oneNAND例程:http://www.linux-mtd.infradead.org/faq/ubifs.html#L_mkfubifs

  • 您好:您那篇文章我有看过 我也是按照你的步骤和参数来的 因为我的nandflash 用的也是MT29F2G08ABAEAWP型号,但是还是会出问题

  • 感觉是没找到ubi0下面的rootfs,没啥好主意了

    你把vol_name=rootfs改一个其它名字试一下看看

  • [ 1.648251] UBI: attaching mtd7 to ubi0
    [ 1.652344] UBI: physical eraseblock size: 131072 bytes (128 KiB)
    [ 1.659056] UBI: logical eraseblock size: 126976 bytes
    [ 1.664806] UBI: smallest flash I/O unit: 2048
    [ 1.669800] UBI: VID header offset: 2048 (aligned 2048)
    [ 1.676195] UBI: data offset: 4096
    [ 4.989124] UBI: max. sequence number: 0
    [ 5.021853] UBI: attached mtd7 to ubi0
    [ 5.025941] UBI: MTD device name: "File System"
    [ 5.031767] UBI: MTD device size: 248 MiB
    [ 5.037057] UBI: number of good PEBs: 1987
    [ 5.042039] UBI: number of bad PEBs: 1
    [ 5.046783] UBI: number of corrupted PEBs: 0
    [ 5.051499] UBI: max. allowed volumes: 128
    [ 5.056414] UBI: wear-leveling threshold: 4096
    [ 5.061393] UBI: number of internal volumes: 1
    [ 5.066127] UBI: number of user volumes: 1
    [ 5.070847] UBI: available PEBs: 312
    [ 5.075761] UBI: total number of reserved PEBs: 1675
    [ 5.081021] UBI: number of PEBs reserved for bad PEB handling: 19
    [ 5.087507] UBI: max/mean erase counter: 1/0
    [ 5.092040] UBI: image sequence number: 0



    你看下这些参数是否正常?

    UBI: image sequence number: 0 这个是0对么 因为我不知道这东西啥意思

  • 感觉你的打印信息和我总结的文档里的打印信息有点区别,你有没有在烧写之前把NAND全擦一遍?

  • 还有一点是,你的mtd utilites是按照文档的步骤做的吗?

  • 确定烧写之前将mtd7擦除了 昨天我把sdk6.00版本自带的ubi文件烧写进去 是同样的问题 我开始怀疑是不是启动参数没有设置好 晚上我会把启动 参数贴出来帮忙看下

  • 我uboot的启动参数如下:请看是否有问题

    arch=arm
    baudrate=115200
    board=am335x
    bootargs=console=ttyO0,115200n8 noinitrd ip=off mem=512M rootwait=1 rw ubi.mtd=7,2048 rootfstype=ubifs root=ubi0:rootfs init=/init
    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=88:33:14:f6:66:e3
    fdt_high=0xffffffff
    fdtaddr=0x80F80000
    filesize=0x20a0000
    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
    mtddevname=SPL
    mtddevnum=0
    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)
    nand_erasesize=20000
    nand_oobsize=40
    nand_writesize=800
    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
    partition=nand0,0
    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=88:33:14:f6:66:e3
    vendor=ti
    ver=U-Boot 2013.01.01 (Apr 19 2014 - 02:06:25)

  • SDK06里面带的.ubi文件是不能用的,要自己用MTD工具生成一个。

    setenv bootargs 'console=ttyO0,115200n8 noinitrd ip=off mem=256M
    rootwait=1 rw ubi.mtd=7,2048 rootfstype=ubifs root=ubi0:rootfs
    init=/init'

    这个参数我刚在一块板子上试过了,没有问题可以启动。附件是我制作的ubi.img,解压一下试试

    另外在将ubi.img文件load到内存里之前,有没有执行

    u-boot# mw.b 0x82000000 0xFF

    ubi.7z
  • 我刚试过你给我的ubi 可以启动 但是我完全按照你的教程来的  还是启动不了 是不是跟环境有关系 我用的ubuntu 10.04  这样 你可以把你生成的mkfs工具发给我么 我在试试 谢谢

  • 我就是在ubuntu10.04上做的。我用的MTD ulities也是在git上下载的最新的。

    我明天会把工具上传

  • Hi Yutao,

    附件是我做的ubi工具,你试试看。

    ubitools.7z
  • 您好!前段时间被借去做别的项目,我这几天又开始弄ubi的事情 我用你给我的ubi工具 生成的ubi文件依然不能完整启动,错误跟原来一样

    我的命令如下:

    mkfs.ubifs  -r /home/usr/fs -m 2048 -e 126976 -c 2047 -o ubifs.img

    因为你写的文档增加了 -F 和 - q 选项但是你给我的mkfs.ubifs不支持-F和-q选项 

    请问 这个原因会导致我的ubi不能正常启动么

  • 我在我的PC上的ubuntu10.04上做的,没发现不能支持的-F和-q选项问题啊。

    一般来讲每个参数都是有用的,少参数或者参数不对都会出问题

  • The name of prebuilt rootfile image(arago-base-tisdk-image-am335x-evm.ubi) in EZSDK6 has changed.

    You may refer the bootargs below:

    console=ttyO0,115200n8 noinitrd ip=off mem=256M rootwait=5 rw ubi.mtd=7,2048 rootfstype=ubifs root=ubi0:am335x-evm-rootfs init=/init

  • 您好 我的打印信息如下:加上-F -r 就不支持 mkfs.ubifs是用的你上传的工具

    root@ubuntu:/home/work/beagboneblackwritefile# mkfs.ubifs -F -q -r /home/work/itad_sdk/filesystem/rootfs -m 2048 -e 126976 -c 2047 -o ubifs.img
    mkfs.ubifs: invalid option -- 'F'
    Usage: mkfs.ubifs [OPTIONS] target
    Make a UBIFS file system image from an existing directory tree

    Examples:
    Build file system from directory /opt/img, writting the result in the ubifs.img file
    mkfs.ubifs -m 512 -e 128KiB -c 100 -r /opt/img ubifs.img
    The same, but writting directly to an UBI volume
    mkfs.ubifs -r /opt/img /dev/ubi0_0
    Creating an empty UBIFS filesystem on an UBI volume
    mkfs.ubifs /dev/ubi0_0

    Options:
    -r, -d, --root=DIR build file system from directory DIR
    -m, --min-io-size=SIZE minimum I/O unit size
    -e, --leb-size=SIZE logical erase block size
    -c, --max-leb-cnt=COUNT maximum logical erase block count
    -o, --output=FILE output to FILE
    -j, --jrn-size=SIZE journal size
    -R, --reserved=SIZE how much space should be reserved for the super-user
    -x, --compr=TYPE compression type - "lzo", "favor_lzo", "zlib" or
    "none" (default: "lzo")
    -X, --favor-percent may only be used with favor LZO compression and defines
    how many percent better zlib should compress to make
    mkfs.ubifs use zlib instead of LZO (default 20%)
    -f, --fanout=NUM fanout NUM (default: 8)
    -k, --keyhash=TYPE key hash type - "r5" or "test" (default: "r5")
    -p, --orph-lebs=COUNT count of erase blocks for orphans (default: 1)
    -D, --devtable=FILE use device table FILE
    -U, --squash-uids squash owners making all files owned by root
    -l, --log-lebs=COUNT count of erase blocks for the log (used only for
    debugging)
    -v, --verbose verbose operation
    -V, --version display version information
    -g, --debug=LEVEL display debug information (0 - none, 1 - statistics,
    2 - files, 3 - more details)
    -h, --help display this help text

    Note, SIZE is specified in bytes, but it may also be specified in Kilobytes,
    Megabytes, and Gigabytes if a KiB, MiB, or GiB suffix is used.

    If you specify "lzo" or "zlib" compressors, mkfs.ubifs will use this compressor
    for all data. The "none" disables any data compression. The "favor_lzo" is not
    really a separate compressor. It is just a method of combining "lzo" and "zlib"
    compressors. Namely, mkfs.ubifs tries to compress data with both "lzo" and "zlib"
    compressors, then it compares which compressor is better. If "zlib" compresses 20
    or more percent better than "lzo", mkfs.ubifs chooses "lzo", otherwise it chooses
    "zlib". The "--favor-percent" may specify arbitrary threshold instead of the
    default 20%.

    The -R parameter specifies amount of bytes reserved for the super-user.

  • 请问后来UBI文件系统可以正常挂载了么?

  • 使用debian服务器的mkfs就可以了, 把那些不能用的mkfs.ubifs删掉,执行apt-get install mtd-utils

    root@abc:/home/work/kernel/linux-4.2.1# mkfs.ubifs --help
    Usage: mkfs.ubifs [OPTIONS] target
    Make a UBIFS file system image from an existing directory tree

    Examples:
    Build file system from directory /opt/img, writting the result in the ubifs.img file
        mkfs.ubifs -m 512 -e 128KiB -c 100 -r /opt/img ubifs.img
    The same, but writting directly to an UBI volume
        mkfs.ubifs -r /opt/img /dev/ubi0_0
    Creating an empty UBIFS filesystem on an UBI volume
        mkfs.ubifs /dev/ubi0_0

    Options:
    -r, -d, --root=DIR       build file system from directory DIR
    -m, --min-io-size=SIZE   minimum I/O unit size
    -e, --leb-size=SIZE      logical erase block size
    -c, --max-leb-cnt=COUNT  maximum logical erase block count
    -o, --output=FILE        output to FILE
    -j, --jrn-size=SIZE      journal size
    -R, --reserved=SIZE      how much space should be reserved for the super-user
    -x, --compr=TYPE         compression type - "lzo", "favor_lzo", "zlib" or
                             "none" (default: "lzo")
    -X, --favor-percent      may only be used with favor LZO compression and defines
                             how many percent better zlib should compress to make
                             mkfs.ubifs use zlib instead of LZO (default 20%)
    -f, --fanout=NUM         fanout NUM (default: 8)
    -F, --space-fixup        file-system free space has to be fixed up on first mount
                             (requires kernel version 3.0 or greater)
    -k, --keyhash=TYPE       key hash type - "r5" or "test" (default: "r5")
    -p, --orph-lebs=COUNT    count of erase blocks for orphans (default: 1)
    -D, --devtable=FILE      use device table FILE
    -U, --squash-uids        squash owners making all files owned by root
    -l, --log-lebs=COUNT     count of erase blocks for the log (used only for
                             debugging)
    -v, --verbose            verbose operation
    -V, --version            display version information
    -g, --debug=LEVEL        display debug information (0 - none, 1 - statistics,
                             2 - files, 3 - more details)
    -h, --help               display this help text

  • 你好,请问你的ECC是如何确定?我从内核启动后,ECC错误,然后就卡住了。如果是3.14版本的内核,dts配置如下:

    &gpmc {
    status = "okay";
    pinctrl-names = "default";
    pinctrl-0 = <&nandflash_pins_default>;
    ranges = <0 0 0x01000000 0x10000000>; /* CS0: NAND */
    nand@0,0 {
    reg = <0 0 0>; /* CS0, offset 0 */
    ti,nand-ecc-opt = "bch8";
    ti,elm-id = <&elm>;
    nand-bus-width = <8>;
    gpmc,device-width = <1>;
    gpmc,sync-clk-ps = <0>;
    gpmc,cs-on-ns = <0>;
    gpmc,cs-rd-off-ns = <44>;
    gpmc,cs-wr-off-ns = <44>;
    gpmc,adv-on-ns = <6>;
    gpmc,adv-rd-off-ns = <34>;
    gpmc,adv-wr-off-ns = <44>;
    gpmc,we-on-ns = <0>;
    gpmc,we-off-ns = <40>;
    gpmc,oe-on-ns = <0>;
    gpmc,oe-off-ns = <54>;
    gpmc,access-ns = <64>;
    gpmc,rd-cycle-ns = <82>;
    gpmc,wr-cycle-ns = <82>;
    gpmc,wait-on-read = "true";
    gpmc,wait-on-write = "true";
    gpmc,bus-turnaround-ns = <0>;
    gpmc,cycle2cycle-delay-ns = <0>;
    gpmc,clk-activation-ns = <0>;
    gpmc,wait-monitoring-ns = <0>;
    gpmc,wr-access-ns = <40>;
    gpmc,wr-data-mux-bus-ns = <0>;
    /* MTD partition table */
    /* All SPL-* partitions are sized to minimal length
    * which can be independently programmable. For
    * NAND flash this is equal to size of erase-block */
    #address-cells = <1>;
    #size-cells = <1>;
    partition@0 {
    label = "NAND.rootfs1";
    reg = <0x00000000 0x80000000>;
    };
    partition@1 {
    label = "NAND.rootfs1";
    reg = <0x80000000 0x80000000>;
    };
    };
    };

    内核启动后就penic了:

    [ 4.101433] pinctrl core: add 1 pinmux maps
    [ 4.105683] pinctrl-single 44e10800.pinmux: found group selector 6 for nandflash_pins_default
    [ 4.114295] pinctrl core: pinmux_enable_setting devname=50000000.gpmc
    [ 4.120792] pinmux core: >>> pinmux_enable_setting devname=44e10800.0 >>>
    [ 4.127621] pinmux core: >>> pinmux_enable_setting devname=44e10804.0 >>>
    [ 4.134436] pinmux core: >>> pinmux_enable_setting devname=44e10808.0 >>>
    [ 4.141263] pinmux core: >>> pinmux_enable_setting devname=44e1080c.0 >>>
    [ 4.148091] pinmux core: >>> pinmux_enable_setting devname=44e10810.0 >>>
    [ 4.154905] pinmux core: >>> pinmux_enable_setting devname=44e10814.0 >>>
    [ 4.161731] pinmux core: >>> pinmux_enable_setting devname=44e10818.0 >>>
    [ 4.168558] pinmux core: >>> pinmux_enable_setting devname=44e1081c.0 >>>
    [ 4.175373] pinmux core: >>> pinmux_enable_setting devname=44e10870.0 >>>
    [ 4.182200] pinmux core: >>> pinmux_enable_setting devname=44e10874.0 >>>
    [ 4.189027] pinmux core: >>> pinmux_enable_setting devname=44e1087c.0 >>>
    [ 4.195842] pinmux core: >>> pinmux_enable_setting devname=44e10890.0 >>>
    [ 4.202667] pinmux core: >>> pinmux_enable_setting devname=44e10894.0 >>>
    [ 4.209493] pinmux core: >>> pinmux_enable_setting devname=44e10898.0 >>>
    [ 4.216309] pinmux core: >>> pinmux_enable_setting devname=44e1089c.0 >>>
    [ 4.223143] pinctrl-single 44e10800.pinmux: enabling nandflash_pins_default function6
    [ 4.231159] omap-gpmc 50000000.gpmc: GPMC revision 6.0
    [ 4.236326] gpmc_mem_init: disabling cs 0 mapped at 0x0-0x1000000
    [ 4.243654] omap2-nand omap2-nand.0: no of_node; not parsing pinctrl DT
    [ 4.250939] nand: Failed to detect ONFI extended param page
    [ 4.256547] nand: device found, Manufacturer ID: 0x2c, Chip ID: 0x44
    [ 4.262952] nand: Micron MT29F32G08CBADAWP
    [ 4.267081] nand: 4096MiB, MLC, page size: 8192, OOB size: 744
    [ 4.272938] nand: using OMAP_ECC_BCH4_CODE_HW ECC scheme
    [ 4.278334] nand: >>>> nand_scan_tail >>> chip->subpagesize=8192 options=0x10000
    [ 4.285883] 2 ofpart partitions found on MTD device omap2-nand.0
    [ 4.291932] Creating 2 MTD partitions on "omap2-nand.0":
    [ 4.297301] 0x000000000000-0x000080000000 : "NAND.rootfs1"
    [ 4.357954] 0x000080000000-0x000100000000 : "NAND.rootfs1"
    [ 4.418477] pinctrl core: add 1 pinmux maps
    [ 4.422735] pinctrl-single 44e10800.pinmux: found group selector 7 for pinmux_i2c0_pins
    [ 4.430829] pinctrl core: pinmux_enable_setting devname=44e0b000.i2c
    [ 4.437233] pinmux core: >>> pinmux_enable_setting devname=44e10988.0 >>>
    [ 4.444049] pinmux core: >>> pinmux_enable_setting devname=44e1098c.0 >>>
    [ 4.450885] pinctrl-single 44e10800.pinmux: enabling pinmux_i2c0_pins function7
    [ 4.472487] input_polldev: disagrees about version of symbol module_layout
    [ 4.487187] snd_soc_tlv320aic3x: disagrees about version of symbol module_layout
    [ 4.496226] omap_i2c 44e0b000.i2c: bus 0 rev0.11 at 400 kHz
    [ 4.502324] platform 44d00000.wkup_m3: Driver wkup_m3 requests probe deferral
    [ 4.510487] UBI: attaching mtd1 to ubi0
    [ 4.530078] UBI warning: ubi_io_read: error -74 (ECC error) while reading 64 bytes from PEB 2:0, read only 64 bytes, retry
    [ 4.554152] Unable to handle kernel paging request at virtual address 000014aa
    [ 4.561429] pgd = c0004000
    [ 4.564147] [000014aa] *pgd=00000000
    [ 4.567768] Internal error: Oops: 17 [#1] ARM
    [ 4.572144] Modules linked in:
    [ 4.575223] CPU: 0 PID: 1 Comm: swapper Not tainted 3.14.43-g875c69b #306
    [ 4.582041] task: ec866ac0 ti: ec8be000 task.ti: ec8be000
    [ 4.587484] PC is at omap_read_page_bch+0xf4/0x108
    [ 4.592306] LR is at __schedule+0x284/0x528
    [ 4.596508] pc : [<c03d7864>] lr : [<c057f184>] psr: a0000013
    [ 4.596508] sp : ec8bfba0 ip : 00000010 fp : ec8bfbcc
    [ 4.608036] r10: c209ed98 r9 : eca165d2 r8 : 000013d6
    [ 4.613281] r7 : 000013d6 r6 : 000013d6 r5 : 000013d6 r4 : 000013d6
    [ 4.619835] r3 : ffffffea r2 : 00000010 r1 : 00000008 r0 : ffffffea
    [ 4.626391] Flags: NzCv IRQs on FIQs on Mode SVC_32 ISA ARM Segment kernel
    [ 4.633731] Control: 10c5387d Table: acb88019 DAC: 00000015
    [ 4.639501] Process swapper (pid: 1, stack limit = 0xec8be238)
    [ 4.645357] Stack: (0xec8bfba0 to 0xec8c0000)
    [ 4.649738] fba0: 00000000 ecb10260 ecb10020 00000200 00000000 00000000 ec8bfc58 00000001
    [ 4.657955] fbc0: ec8bfc4c ec8bfbd0 c03d0e6c c03d777c 00000200 c0065b4c 00000400 00000001
    [ 4.666170] fbe0: 00000000 00000006 000002e8 00000000 00000000 00000000 00000000 00000040
    [ 4.674386] fc00: 00000200 000005d0 ecb14000 00000040 00000000 eca145d0 00000000 00000006
    [ 4.682602] fc20: 00000000 00400000 00000000 ecb10020 ec8bfd4c ecb14000 ecb14000 00000040
    [ 4.690818] fc40: ec8bfc9c ec8bfc50 c03d15ec c03d0c68 ec8bfc58 ec8bfc60 00000000 00000040
    [ 4.699035] fc60: 000000fc 00000000 c1fec9d0 c1fec9d0 ecb14000 00000000 00000000 00000000
    [ 4.707251] fc80: 00400000 00000000 ecb62c00 ec8bfcc0 ec8bfcec ec8bfca0 c03b1604 c03d1594
    [ 4.715466] fca0: 00000040 ec8bfd4c ecb14000 00000000 00000000 00000001 00000000 00000000
    [ 4.723682] fcc0: ec8bfcec 7fc00000 00000000 ecb14000 00000000 80000000 00000000 ecb62c00
    [ 4.731898] fce0: ec8bfd2c ec8bfcf0 c03aea54 c03b15a4 00000040 ec8bfd4c ecb14000 c057ef0c
    [ 4.740113] fd00: ec8bfd1c ffffffb6 00000040 ecb0e000 00000003 00000002 ecb14000 00000000
    [ 4.748330] fd20: ec8bfd7c ec8bfd30 c03e3678 c03ae9cc 00000040 ec8bfd4c ecb14000 00000040
    [ 4.756545] fd40: 00400000 00000000 c03cdf98 00000000 00000001 c203ce78 00000002 ecb14000
    [ 4.764761] fd60: c203c9f8 00000000 ecb0e000 c209f9d4 ec8bfdbc ec8bfd80 c03e3b6c c03e35c0
    [ 4.772976] fd80: 00000040 00000002 ecb62c00 ecb0e000 ec8bfdbc c203ce78 ecb62c00 00000002
    [ 4.781191] fda0: ecb0e000 ecb60500 00000000 c209f9d4 ec8bfe2c ec8bfdc0 c03e92bc c03e3b10
    [ 4.789407] fdc0: 00000000 ecb77000 00000000 ffffffff ecb62c00 00000000 ecb0e000 00002000
    [ 4.797623] fde0: ec8bfe14 ec8bfdf0 ecb6051c ecb6050c ecb60504 ecb60514 ffffffff c03dd690
    [ 4.805839] fe00: ecb62c00 00002000 ecb62c00 00000000 ecb0e000 00002000 c203c500 ecb62c00
    [ 4.814054] fe20: ec8bfe7c ec8bfe30 c03dd6a8 c03e9158 00000000 ecb62c00 c0810718 c0810714
    [ 4.822270] fe40: 00000800 00000028 c03ae120 c0086408 ecb62c00 00000000 00000000 c0810714
    [ 4.830486] fe60: 0000004c c0810718 c0810718 ecb62c00 ec8bfecc ec8bfe80 c07f8224 c03dce3c
    [ 4.838701] fe80: 00000000 00000000 c209d714 c2041e80 000000a5 c0810718 c03580e8 00000000
    [ 4.846917] fea0: ec8bfecc c082a864 00000007 c2041e80 000000a5 ec8be000 c07f8030 00000000
    [ 4.855134] fec0: ec8bff4c ec8bfed0 c00089e4 c07f803c ec8bfefc ec8bfee0 c07c44ec c02dc34c
    [ 4.863349] fee0: c07c4400 edfff496 c05cd9c4 000000a5 ec8bff4c ec8bff00 c0055d74 c07c44dc
    [ 4.871565] ff00: c07c2d4c 00000000 00000000 00000007 00000007 edfff4a0 c07c22fc c06f8350
    [ 4.879781] ff20: ec8bff4c c082a864 00000007 c2041e80 000000a5 c07c44d0 c0809018 c0809020
    [ 4.887997] ff40: ec8bff94 ec8bff50 c07c4bf4 c000891c 00000007 00000007 c07c44d0 10610654
    [ 4.896212] ff60: d50d01d1 460f5501 900a08c0 00000000 c0578690 00000000 00000000 00000000
    [ 4.904427] ff80: 00000000 00000000 ec8bffac ec8bff98 c05786a8 c07c4b10 ec8be000 00000000
    [ 4.912642] ffa0: 00000000 ec8bffb0 c000f618 c057869c 00000000 00000000 00000000 00000000
    [ 4.920856] ffc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
    [ 4.929073] ffe0: 00000000 00000000 00000000 00000000 00000013 00000000 0f280b38 39284e92
    [ 4.937280] Backtrace:
    [ 4.939755] [<c03d7770>] (omap_read_page_bch) from [<c03d0e6c>] (nand_do_read_ops+0x210/0x500)

    在u-boot下我们nand flash芯片设置的ecc是8,ecc硬件支持,可以读写/擦除,但是到kernel中就不行了了。

    请帮忙看看,谢了。