公司的项目基于335X平台已经基本开发完成,之前用ramdisk进行调试,现在将ubi.img烧录到nandflash中启动,文件系统貌似加载不了,目前不知道该如何更改,文件系统制作方式如下:
/work/am335x/fs5060/mtd-utils-d37fcc0/mkfs.ubifs/mkfs.ubifs -r /work/am335x/fs5060/fs/newfs/ -F -o ubifs.img -m 2048 -e 126976 -c 1580
/work/am335x/fs5060/mtd-utils-d37fcc0/ubi-utils/ubinize -o ubi.img -m 2048 -p 128KiB -s 2048 -O 2048 ubinize.cfg
使用的nandflash:K9F2G08U0M 256Mib 制作的ubi.img65.7MB
打印的数据如下,请各位帮帮忙,公司催的我好紧,感激不尽:
Starting kernel ...
Uncompressing Linux... done, booting the kernel.
[ 0.000000] Linux version 3.2.0-g8996363-dirty (root@elong) (gcc version 4.7.3 20130226 (prerelease) (crosstool-NG linaro-1.13.1-4.7-2013.03-20130313 - Linaro GCC 2013.03) ) #11 Wed Jan 15 11:02:53 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: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: 512772k/512772k available, 11516k 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 - 0xc060a000 (6152 kB)
[ 0.000000] .init : 0xc060a000 - 0xc0642000 ( 224 kB)
[ 0.000000] .data : 0xc0642000 - 0xc06a2850 ( 387 kB)
[ 0.000000] .bss : 0xc06a2874 - 0xc06d0f84 ( 186 kB)
[ 0.000000] NR_IRQS:396
[ 0.000000] IRQ: Found an INTC at 0xfa200000 (revision 5.0) with 128 interrupts
[ 0.000000] Total of 128 interrupts on 1 active controller
[ 0.000000] OMAP clockevent source: GPTIMER2 at 24000000 Hz
[ 0.000000] omap_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.000254] Calibrating delay loop... 548.86 BogoMIPS (lpj=2744320)
[ 0.046597] pid_max: default: 32768 minimum: 301
[ 0.046750] Security Framework initialized
[ 0.046867] Mount-cache hash table entries: 512
[ 0.047328] CPU: Testing write buffer coherency: ok
[ 0.068897] omap_hwmod: pruss: failed to hardreset
[ 0.070293] print_constraints: dummy:
[ 0.070745] NET: Registered protocol family 16
[ 0.073406] OMAP GPIO hardware version 0.1
[ 0.076808] omap_mux_init: Add partition: #1: core, flags: 0
[ 0.077240] The board is general purpose EVM with DDR3 in profile 0
[ 0.078802] da8xx_lcdc.0: alias fck already exists
[ 0.079743] d_can.0: alias fck already exists
[ 0.080057] d_can.1: alias fck already exists
[ 0.080422] omap_i2c.1: alias fck already exists
[ 0.080751] omap_i2c.2: alias fck already exists
[ 0.084022] omap2_mcspi.1: alias fck already exists
[ 0.084302] omap2_mcspi.2: alias fck already exists
[ 0.085489] edma.0: alias fck already exists
[ 0.085518] edma.0: alias fck already exists
[ 0.085543] edma.0: alias fck already exists
[ 0.117673] bio: create slab <bio-0> at 0
[ 0.120214] SCSI subsystem initialized
[ 0.122637] usbcore: registered new interface driver usbfs
[ 0.123050] usbcore: registered new interface driver hub
[ 0.123313] usbcore: registered new device driver usb
[ 0.123685] registerd cppi-dma Intr @ IRQ 17
[ 0.123703] Cppi41 Init Done Qmgr-base(e083a000) dma-base(e0838000)
[ 0.123715] Cppi41 Init Done
[ 0.123748] musb-ti81xx musb-ti81xx: musb0, board_mode=0x1, plat_mode=0x1
[ 0.124117] musb-ti81xx musb-ti81xx: musb1, board_mode=0x1, plat_mode=0x0
[ 0.136603] omap_i2c omap_i2c.1: bus 1 rev2.4.0 at 100 kHz
[ 0.156593] omap_i2c omap_i2c.2: bus 2 rev2.4.0 at 100 kHz
[ 0.159209] Switching to clocksource gp timer
[ 0.179338] musb-hdrc: version 6.0, ?dma?, otg (peripheral+host)
[ 0.179577] musb-hdrc musb-hdrc.0: dma type: dma-cppi41
[ 0.180011] MUSB0 controller's USBSS revision = 4ea20800
[ 0.180616] musb-hdrc musb-hdrc.0: MUSB HDRC host driver
[ 0.180757] musb-hdrc musb-hdrc.0: new USB bus registered, assigned bus number 1
[ 0.180913] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[ 0.180933] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[ 0.180950] usb usb1: Product: MUSB HDRC host driver
[ 0.180963] usb usb1: Manufacturer: Linux 3.2.0-g8996363-dirty musb-hcd
[ 0.180978] usb usb1: SerialNumber: musb-hdrc.0
[ 0.182055] hub 1-0:1.0: USB hub found
[ 0.182092] hub 1-0:1.0: 1 port detected
[ 0.182864] musb-hdrc musb-hdrc.0: USB Host mode controller at e0834000 using DMA, IRQ 18
[ 0.183076] musb-hdrc musb-hdrc.1: dma type: dma-cppi41
[ 0.183507] MUSB1 controller's USBSS revision = 4ea20800
[ 0.184085] musb-hdrc musb-hdrc.1: MUSB HDRC host driver
[ 0.184148] musb-hdrc musb-hdrc.1: new USB bus registered, assigned bus number 2
[ 0.184271] usb usb2: New USB device found, idVendor=1d6b, idProduct=0002
[ 0.184289] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[ 0.184306] usb usb2: Product: MUSB HDRC host driver
[ 0.184319] usb usb2: Manufacturer: Linux 3.2.0-g8996363-dirty musb-hcd
[ 0.184334] usb usb2: SerialNumber: musb-hdrc.1
[ 0.185256] hub 2-0:1.0: USB hub found
[ 0.185289] hub 2-0:1.0: 1 port detected
[ 0.185943] musb-hdrc musb-hdrc.1: USB OTG mode controller at e0836800 using DMA, IRQ 19
[ 0.186468] NET: Registered protocol family 2
[ 0.186701] IP route cache hash table entries: 4096 (order: 2, 16384 bytes)
[ 0.187079] TCP established hash table entries: 16384 (order: 5, 131072 bytes)
[ 0.187471] TCP bind hash table entries: 16384 (order: 4, 65536 bytes)
[ 0.187698] TCP: Hash tables configured (established 16384 bind 16384)
[ 0.187714] TCP reno registered
[ 0.187741] UDP hash table entries: 256 (order: 0, 4096 bytes)
[ 0.187770] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[ 0.188037] NET: Registered protocol family 1
[ 0.188357] RPC: Registered named UNIX socket transport module.
[ 0.188373] RPC: Registered udp transport module.
[ 0.188384] RPC: Registered tcp transport module.
[ 0.188396] RPC: Registered tcp NFSv4.1 backchannel transport module.
[ 0.188696] NetWinder Floating Point Emulator V0.97 (double precision)
[ 0.188937] omap-gpmc omap-gpmc: GPMC revision 6.0
[ 0.188959] Registering NAND on CS0
[ 0.190084] cpuidle-am33xx cpuidle-am33xx.0: failed to register driver
[ 0.212379] VFS: Disk quotas dquot_6.5.2
[ 0.212466] Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[ 0.213134] msgmni has been set to 1001
[ 0.216986] alg: No test for stdrng (krng)
[ 0.217847] io scheduler noop registered
[ 0.217864] io scheduler deadline registered
[ 0.217944] io scheduler cfq registered (default)
[ 0.219561] fb_probe
[ 0.219722] da8xx_lcdc da8xx_lcdc.0: GLCD: Found SVGA_TFT_AU104 panel
[ 0.223679] lcd_disable_raster:reg:0x0
[ 0.224689] lcd_init
[ 0.224701] lcd_calc_clk_divider:lcd_clk:200000000 pxl_clk:33333333 div:6
[ 0.224723] lcd_cfg_display:reg:0x1000000
[ 0.224737] lcd_cfg_frame_buffer;w800 h:600 bpp:16 raster_order:0
[ 0.224752] lcd_cfg_frame_buffer:reg:0x1000080
[ 0.225660] lcd_disable_raster:reg:0x1000080
[ 0.226670] lcd_init
[ 0.226681] lcd_calc_clk_divider:lcd_clk:200000000 pxl_clk:33333333 div:6
[ 0.226697] lcd_cfg_display:reg:0x1000000
[ 0.226710] lcd_cfg_frame_buffer;w800 h:600 bpp:16 raster_order:0
[ 0.226723] lcd_cfg_frame_buffer:reg:0x1000080
[ 0.226825] lcd_blit;load_mode:2
[ 0.226836] lcd_blit:reg:0x1100080
[ 0.228841] lcd_enable_raster:reg:0x1100081
[ 0.234617] Console: switching to colour frame buffer device 100x37
[ 0.247762] lcd_disable_raster:reg:0x1100080
[ 0.248780] lcd_blit;load_mode:1
[ 0.248791] lcd_blit:reg:0x1200080
[ 0.250800] lcd_enable_raster:reg:0x1200081
[ 0.250911] da8xx_lcdc da8xx_lcdc.0: LCD_CLK_ENABLE=0x5
[ 0.250927] da8xx_lcdc da8xx_lcdc.0: LCD_CTRL_REG=0x601
[ 0.250941] da8xx_lcdc da8xx_lcdc.0: LCD_RASTER_CTRL_REG=0x1200081
[ 0.250956] da8xx_lcdc da8xx_lcdc.0: LCD_RASTER_T0_REG=0x58280310
[ 0.250971] da8xx_lcdc da8xx_lcdc.0: LCD_RASTER_T1_REG=0x18010e57
[ 0.250986] da8xx_lcdc da8xx_lcdc.0: LCD_RASTER_T2_REG=0x1230ff00
[ 0.251001] da8xx_lcdc da8xx_lcdc.0: LCD_RASTER_SUBPAN=0x0
[ 0.251015] da8xx_lcdc da8xx_lcdc.0: LCD_RASTER_SUBPAN2=0x0
[ 0.251029] da8xx_lcdc da8xx_lcdc.0: LCD_DMA_CTRL_REG=0x41
[ 0.251043] da8xx_lcdc da8xx_lcdc.0: LCD_DMA_FRM_BUF_BASE_ADDR_0_REG=0x9f400000
[ 0.251060] da8xx_lcdc da8xx_lcdc.0: LCD_DMA_FRM_BUF_CEILING_ADDR_0_REG=0x9f4ea5fc
[ 0.251077] da8xx_lcdc da8xx_lcdc.0: LCD_DMA_FRM_BUF_BASE_ADDR_1_REG=0x9f400000
[ 0.251093] da8xx_lcdc da8xx_lcdc.0: LCD_DMA_FRM_BUF_CEILING_ADDR_1_REG=0x9f4ea5fc
[ 0.251109] da8xx_lcdc da8xx_lcdc.0: SYSCONFIG=0x14
[ 0.251122] da8xx_lcdc da8xx_lcdc.0: LCD_RAW_STAT_REG=0x0
[ 0.251136] da8xx_lcdc da8xx_lcdc.0: LCD_MASKED_STAT_REG=0x0
[ 0.251150] da8xx_lcdc da8xx_lcdc.0: LCD_END_OF_INT_IND_REG=0x0
[ 0.252577] omap_uart.0: ttyO0 at MMIO 0x44e09000 (irq = 72) is a OMAP UART0
[ 1.136366] console [ttyO0] enabled
[ 1.141046] omap_uart.1: ttyO1 at MMIO 0x48022000 (irq = 73) is a OMAP UART1
[ 1.149042] omap_uart.2: ttyO2 at MMIO 0x48024000 (irq = 74) is a OMAP UART2
[ 1.157033] omap_uart.3: ttyO3 at MMIO 0x481a6000 (irq = 44) is a OMAP UART3
[ 1.164977] omap_uart.4: ttyO4 at MMIO 0x481a8000 (irq = 45) is a OMAP UART4
[ 1.173571] omap4_rng omap4_rng: OMAP4 Random Number Generator ver. 2.00
[ 1.192666] brd: module loaded
[ 1.202301] loop: module loaded
[ 1.205816] i2c-core: driver [tsl2550] using legacy suspend method
[ 1.212351] i2c-core: driver [tsl2550] using legacy resume method
[ 1.218827] at24 2-0050: 32768 byte 24c256 EEPROM, writable, 1 bytes/write
[ 1.229039] mtdoops: mtd device (mtddev=name/number) must be supplied
[ 1.236088] m25p80 spi1.0: found m25p05-nonjedec, expected m25p80
[ 1.242530] m25p80 spi1.0: m25p05-nonjedec (64 Kbytes)
[ 1.250564] omap2-nand driver initializing
[ 1.255307] NAND device: Manufacturer ID: 0xec, Chip ID: 0xda (Samsung NAND 256MiB 3,3V 8-bit)
[ 1.264635] Creating 8 MTD partitions on "omap2-nand.0":
[ 1.270255] 0x000000000000-0x000000020000 : "SPL"
[ 1.276941] 0x000000020000-0x000000040000 : "SPL.backup1"
[ 1.284284] 0x000000040000-0x000000060000 : "SPL.backup2"
[ 1.291643] 0x000000060000-0x000000080000 : "SPL.backup3"
[ 1.298976] 0x000000080000-0x000000260000 : "U-Boot"
[ 1.306557] 0x000000260000-0x000000280000 : "U-Boot Env"
[ 1.313745] 0x000000280000-0x000000780000 : "Kernel"
[ 1.322621] 0x000000780000-0x000010000000 : "File System"
[ 1.434081] OneNAND driver initializing
[ 1.439014] UBI: attaching mtd7 to ubi0
[ 1.443094] UBI: physical eraseblock size: 131072 bytes (128 KiB)
[ 1.449682] UBI: logical eraseblock size: 126976 bytes
[ 1.455350] UBI: smallest flash I/O unit: 2048
[ 1.460294] UBI: VID header offset: 2048 (aligned 2048)
[ 1.466593] UBI: data offset: 4096
[ 1.514892] UBI: max. sequence number: 0
[ 1.519576] UBI error: ubi_read_volume_table: the layout volume was not found
[ 1.527150] UBI error: ubi_init: cannot attach mtd7
[ 1.533306] CAN device driver interface
[ 1.537333] CAN bus driver for Bosch D_CAN controller 1.0
[ 1.544025] d_can d_can.0: device registered (irq=52, irq_obj=53)
[ 1.551321] d_can d_can.1: device registered (irq=55, irq_obj=56)
[ 1.599289] davinci_mdio davinci_mdio.0: davinci mdio revision 1.6
[ 1.605785] davinci_mdio davinci_mdio.0: detected phy mask ffffffde
[ 1.613842] davinci_mdio.0: probed
[ 1.617420] davinci_mdio davinci_mdio.0: phy[0]: device 0:00, driver unknown
[ 1.624847] davinci_mdio davinci_mdio.0: phy[5]: device 0:05, driver unknown
[ 1.632463] Initializing USB Mass Storage driver...
[ 1.637935] usbcore: registered new interface driver usb-storage
[ 1.644266] USB Mass Storage support registered.
[ 1.649733] mousedev: PS/2 mouse device common for all mice
[ 1.656763] input: ti-tsc as /devices/platform/omap/ti_tscadc/tsc/input/input0
[ 1.669044] rtc-rs5c372 1-0032: rs5c372a found, 24hr, driver version 0.6
[ 1.681648] rtc-rs5c372 1-0032: rtc core: registered rtc-rs5c372 as rtc0
[ 1.688913] i2c /dev entries driver
[ 1.693411] Linux video capture interface: v2.00
[ 1.698669] usbcore: registered new interface driver uvcvideo
[ 1.704735] USB Video Class driver (1.1.1)
[ 1.712346] OMAP Watchdog Timer Rev 0x01: initial timeout 60 sec
[ 1.718950] _regulator_get: deviceless supply vdd_mpu not found, using dummy regulator
[ 1.727743] omap4_aes_mod_init: loading AM33X AES driver
[ 1.733506] omap4-aes omap4-aes: AM33X AES hw accel rev: 3.02
[ 1.740177] omap4_aes_probe: probe() done
[ 1.744676] omap4_sham_mod_init: loading AM33X SHA/MD5 driver
[ 1.750913] omap4-sham omap4-sham: AM33X SHA/MD5 hw accel rev: 4.03
[ 1.763785] omap4_sham_probe: probe() done
[ 1.771228] usbcore: registered new interface driver usbhid
[ 1.777080] usbhid: USB HID core driver
[ 1.781911] tiadc tiadc: attached adc driver
[ 1.786576] oprofile: hardware counters not available
[ 1.791918] oprofile: using timer interrupt.
[ 1.796427] nf_conntrack version 0.5.0 (8012 buckets, 32048 max)
[ 1.803416] ip_tables: (C) 2000-2006 Netfilter Core Team
[ 1.809138] TCP cubic registered
[ 1.812576] NET: Registered protocol family 17
[ 1.817254] can: controller area network core (rev 20090105 abi 8)
[ 1.823868] NET: Registered protocol family 29
[ 1.828574] can: raw protocol (rev 20090105)
[ 1.833078] can: broadcast manager protocol (rev 20090105 t)
[ 1.839070] Registering the dns_resolver key type
[ 1.844110] VFP support v0.3: implementor 41 architecture 3 part 30 variant c rev 3
[ 1.852179] ThumbEE CPU extension supported.
[ 1.856734] mux: Failed to setup hwmod io irq -22
[ 1.862600] Power Management for AM33XX family
[ 1.867508] Trying to load am335x-pm-firmware.bin (60 secs timeout)
[ 1.874259] Copied the M3 firmware to UMEM
[ 1.878640] Cortex M3 Firmware Version = 0x181
[ 1.883983] sr_init: platform driver register failed
[ 1.895242] clock: disabling unused clocks to save power
[ 1.916669] Detected MACID=0:18:31:e2:ad:b4
[ 1.922457] cpsw: Detected MACID = 00:18:31:e2:ad:b5
[ 1.930761] rtc-rs5c372 1-0032: setting system clock to 2022-09-18 05:57:12 UTC (1663480632)
[ 1.940150] VFS: Cannot open root device "ubi0:rootfs" or unknown-block(0,0)
[ 1.947551] Please append a correct "root=" boot option; here are the available partitions:
[ 1.956406] 1f00 64 mtdblock0 (driver?)
[ 1.961736] 1f01 128 mtdblock1 (driver?)
[ 1.967044] 1f02 128 mtdblock2 (driver?)
[ 1.972370] 1f03 128 mtdblock3 (driver?)
[ 1.977677] 1f04 128 mtdblock4 (driver?)
[ 1.982998] 1f05 1920 mtdblock5 (driver?)
[ 1.988305] 1f06 128 mtdblock6 (driver?)
[ 1.993629] 1f07 5120 mtdblock7 (driver?)
[ 1.998938] 1f08 254464 mtdblock8 (driver?)
[ 2.004260] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
[ 2.012944] Backtrace:
[ 2.015557] [<c0017da4>] (dump_backtrace+0x0/0x10c) from [<c03bea28>] (dump_stack+0x18/0x1c)
[ 2.024427] r6:00008000 r5:c0575df0 r4:c06a5488 r3:c066388c
[ 2.030415] [<c03bea10>] (dump_stack+0x0/0x1c) from [<c03bec24>] (panic+0x64/0x194)
[ 2.038467] [<c03bebc0>] (panic+0x0/0x194) from [<c060ac88>] (mount_block_root+0x174/0x228)
[ 2.047242] r3:00000004 r2:00000000 r1:df02df68 r0:c0575df0
[ 2.053212] r7:c0635a28
[ 2.055882] [<c060ab14>] (mount_block_root+0x0/0x228) from [<c060afa4>] (prepare_namespace+0x94/0x1c0)
[ 2.065670] [<c060af10>] (prepare_namespace+0x0/0x1c0) from [<c060a8fc>] (kernel_init+0xf4/0x120)
[ 2.074992] r5:c0641a98 r4:c0641a98
[ 2.078773] [<c060a808>] (kernel_init+0x0/0x120) from [<c0040990>] (do_exit+0x0/0x65c)
[ 2.087092] r5:c060a808 r4:00000000