我们公司自己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'