根据linux用户手册4.3节制作的ubi.img不能工作
飞凌工程师,你好。我用linux->bin->rootfs->1G->ubi 镜像文件系统可以运行。
根据linux用户手册4.3节制作的ubi.img不能工作。
超级终端信息如下:
Net: cpsw
Hit any key to stop autoboot:0
Booting from nand ...
NAND read: device 0 offset 0xc00000, 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: 3741600 Bytes = 3.6 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@ubuntu) (gcc version 4.5.3 20110311 (prerelease) (GCC) ) #1 Mon Mar 23 06:29:46 PDT 2015
[ 0.000000] CPU: ARMv7 Processor revision 2 (ARMv7), cr=10c53c7d
[ 0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[ 0.000000] Machine: am335xevm
[ 0.000000] Memory policy: ECC disabled, Data cache writeback
[ 0.000000] AM335X ES2.1 (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,4096 rootfstype=ubifs rootwait=1 screentype=C screensize=800x480-7 calibrate=Y laohua=N
[ 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: 511932k/511932k available, 12356k 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 - 0xc06c1000 (6884 kB)
[ 0.000000] .init : 0xc06c1000 - 0xc06fe000 ( 244 kB)
[ 0.000000] .data : 0xc06fe000 - 0xc076e730 ( 450 kB)
[ 0.000000] .bss : 0xc076e754 - 0xc07a25b8 ( 208 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.000189] Calibrating delay loop... 718.02 BogoMIPS (lpj=3590144)
[ 0.057158] pid_max: default: 32768 minimum: 301
[ 0.057287] Security Framework initialized
[ 0.057391] Mount-cache hash table entries: 512
[ 0.057779] CPU: Testing write buffer coherency: ok
[ 0.058534] devtmpfs: initialized
[ 0.078552] omap_hwmod: pruss: failed to hardreset
[ 0.079660] print_constraints: dummy:
[ 0.080017] NET: Registered protocol family 16
[ 0.082109] OMAP GPIO hardware version 0.1
[ 0.084663] omap_mux_init: Add partition: #1: core, flags: 0
[ 0.086491]omap_i2c.1: alias fck already exists
[ 0.087655]omap_hsmmc.0: alias fck already exists
[ 0.087916]omap_hsmmc.1: alias fck already exists
[ 0.088482]da8xx_lcdc.0: alias fck already exists
[ 0.088754]omap_i2c.2: alias fck already exists
[ 0.090304]d_can.0: alias fck already exists
[ 0.090587]davinci-mcasp.1: alias fck already exists
[ 0.091794]omap2_mcspi.1: alias fck already exists
[ 0.092010]omap2_mcspi.2: alias fck already exists
[ 0.092273]edma.0: alias fck already exists
[ 0.092294]edma.0: alias fck already exists
[ 0.092313]edma.0: alias fck already exists
[ 0.128693] bio: create slab <bio-0> at 0
[ 0.130914] SCSI subsystem initialized
[ 0.132889] usbcore: registered new inte**ce driver usbfs
[ 0.133210] usbcore: registered new inte**ce driver hub
[ 0.133413] usbcore: registered new device driver usb
[ 0.133724] registerd cppi-dma Intr @ IRQ 17
[ 0.133740] Cppi41 Init Done Qmgr-base(e087a000) dma-base(e0878000)
[ 0.133750] Cppi41 Init Done
[ 0.133779] musb-ti81xx musb-ti81xx: musb0, board_mode=0x13, plat_mode=0x3
[ 0.134066] musb-ti81xx musb-ti81xx: musb1, board_mode=0x13, plat_mode=0x1
[ 0.135193] omap_i2c omap_i2c.1: bus 1 rev2.4.0 at 100 kHz
[ 0.136901] tps65217 1-0024: TPS65217 ID 0xe version 1.2
[ 0.138925] print_constraints: DCDC1: 900 <--> 1800 mV at 1500 mV
[ 0.140965] print_constraints: DCDC2: 900 <--> 3300 mV at 1100 mV
[ 0.142955] print_constraints: DCDC3: 900 <--> 1500 mV at 1100 mV
[ 0.144950] print_constraints: LDO1: 1000 <--> 3300 mV at 1800 mV
[ 0.146920] print_constraints: LDO2: 900 <--> 3300 mV at 3300 mV
[ 0.148928] print_constraints: LDO3: 1800 <--> 3300 mV at 1800 mV
[ 0.150905] print_constraints: LDO4: 1800 <--> 3300 mV at 3300 mV
[ 0.151758] omap_i2c omap_i2c.2: bus 2 rev2.4.0 at 100 kHz
[ 0.153531] Advanced Linux Sound Architecture Driver Version 1.0.24.
[ 0.154266] Bluetooth: Core ver 2.16
[ 0.154449] NET: Registered protocol family 31
[ 0.154462] Bluetooth: HCI device and connection manager initialized
[ 0.154479] Bluetooth: HCI socket layer initialized
[ 0.154490] Bluetooth: L2CAP socket layer initialized
[ 0.154519] Bluetooth: SCO socket layer initialized
[ 0.155087] cfg80211: Calling CRDA to update world regulatory domain
[ 0.156273] Switching to clocksource gp timer
[ 0.173979] musb-hdrc: version 6.0, ?dma?, otg (peripheral+host)
[ 0.174197] musb-hdrc musb-hdrc.0: dma type: dma-cppi41
[ 0.174532] MUSB0 controller's USBSS revision = 4ea20800
[ 0.174566] musb0: Enabled SW babble control
[ 0.175515] musb-hdrc musb-hdrc.0: USB OTG mode controller at e083e000 using DMA, IRQ 18
[ 0.175681] musb-hdrc musb-hdrc.1: dma type: dma-cppi41
[ 0.175976] MUSB1 controller's USBSS revision = 4ea20800
[ 0.176003] musb1: Enabled SW babble control
[ 0.176509] musb-hdrc musb-hdrc.1: MUSB HDRC host driver
[ 0.176604] musb-hdrc musb-hdrc.1: new USB bus registered, assigned bus number 1
[ 0.176749] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[ 0.176764] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[ 0.176778] usb usb1: Product: MUSB HDRC host driver
[ 0.176789] usb usb1: Manufacturer: Linux 3.2.0 musb-hcd
[ 0.176799] usb usb1: SerialNumber: musb-hdrc.1
[ 0.177724] hub 1-0:1.0: USB hub found
[ 0.177754] hub 1-0:1.0: 1 port detected
[ 0.178359] musb-hdrc musb-hdrc.1: USB Host mode controller at e084a800 using DMA, IRQ 19
[ 0.178803] NET: Registered protocol family 2
[ 0.178996] IP route cache hash table entries: 4096 (order: 2, 16384 bytes)
[ 0.179311] TCP established hash table entries: 16384 (order: 5, 131072 bytes)
[ 0.179607] TCP bind hash table entries: 16384 (order: 4, 65536 bytes)
[ 0.179781] TCP: Hash tables configured (established 16384 bind 16384)
[ 0.179794] TCP reno registered
[ 0.179807] UDP hash table entries: 256 (order: 0, 4096 bytes)
[ 0.179842] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[ 0.180020] NET: Registered protocol family 1
[ 0.180285] RPC: Registered named UNIX socket transport module.
[ 0.180299] RPC: Registered udp transport module.
[ 0.180308] RPC: Registered tcp transport module.
[ 0.180317] RPC: Registered tcp NFSv4.1 backchannel transport module.
[ 0.180546] NetWinder Floating Point Emulator V0.97 (double precision)
[ 0.180777] omap-gpmc omap-gpmc: GPMC revision 6.0
[ 0.200311] VFS: Disk quotas dquot_6.5.2
[ 0.200388] Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[ 0.200936] msgmni has been set to 999
[ 0.204061] alg: No test for stdrng (krng)
[ 0.204136] io scheduler noop registered
[ 0.204147] io scheduler deadline registered
[ 0.204242] io scheduler cfq registered (default)
[ 0.205807] da8xx_lcdc da8xx_lcdc.0: GLCD: Found NHD-7.0-ATXI#-T-1 panel
[ 0.216241] Console: switching to colour frame buffer device 100x30
[ 0.223460] omap_uart.0: ttyO0 at MMIO 0x44e09000 (irq = 72) is a OMAP UART0
[ 0.950565] console enabled
[ 0.954993] omap_uart.1: ttyO1 at MMIO 0x48022000 (irq = 73) is a OMAP UART1
[ 0.962953] omap_uart.2: ttyO2 at MMIO 0x48024000 (irq = 74) is a OMAP UART2
[ 0.970865] omap_uart.3: ttyO3 at MMIO 0x481a6000 (irq = 44) is a OMAP UART3
[ 0.978760] omap_uart.4: ttyO4 at MMIO 0x481a8000 (irq = 45) is a OMAP UART4
[ 0.986680] omap_uart.5: ttyO5 at MMIO 0x481aa000 (irq = 46) is a OMAP UART5
[ 1.004665] brd: module loaded
[ 1.013091] loop: module loaded
[ 1.016874] i2c-core: driver using legacy suspend method
[ 1.023326] i2c-core: driver using legacy resume method
[ 1.030072] at24 1-0050: 32768 byte 24c256 EEPROM, writable, 1 bytes/write
[ 1.040317] mtdoops: mtd device (mtddev=name/number) must be supplied
[ 1.047996] omap2-nand driver initializing
[ 1.052353] info->phys_base 8000000
[ 1.056059] ONFI flash detected
[ 1.059484] ONFI param page 0 valid
[ 1.063127] NAND device: Manufacturer ID: 0x2c, Chip ID: 0x38 (Micron MT29F8G08ABABAWP)
[ 1.071481] omap2-nand: detected x8 NAND flash
[ 1.076201] Page size 4096 Select ECC BCH16
[ 1.080569] Nand ECC BCH16 HW
[ 1.083880] Creating 8 MTD partitions on "omap2-nand.0":
[ 1.089453] 0x000000000000-0x000000200000 : "SPL"
[ 1.096043] 0x000000200000-0x000000400000 : "SPL.backup1"
[ 1.103143] 0x000000400000-0x000000600000 : "SPL.backup2"
[ 1.110302] 0x000000600000-0x000000800000 : "SPL.backup3"
[ 1.117396] 0x000000800000-0x000000a00000 : "U-Boot"
[ 1.123987] 0x000000a00000-0x000000c00000 : "U-Boot Env"
[ 1.131021] 0x000000c00000-0x000001400000 : "Kernel"
[ 1.137986] 0x000001400000-0x000040000000 : "File System"
[ 1.194274] usb 1-1: new high-speed USB device number 2 using musb-hdrc
[ 1.202849] OneNAND driver initializing
[ 1.207727] UBI: attaching mtd7 to ubi0
[ 1.211742] UBI: physical eraseblock size: 524288 bytes (512 KiB)
[ 1.218302] UBI: logical eraseblock size: 516096 bytes
[ 1.223929] UBI: smallest flash I/O unit: 4096
[ 1.228837] UBI: sub-page size: 1024
[ 1.233737] UBI: VID header offset: 4096 (aligned 4096)
[ 1.240003] UBI: data offset: 8192
[ 1.349317] usb 1-1: New USB device found, idVendor=0424, idProduct=2514
[ 1.356329] usb 1-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[ 1.386913] hub 1-1:1.0: USB hub found
[ 1.390902] hub 1-1:1.0: 4 ports detected
[ 5.074125] UBI: max. sequence number: 9
[ 5.098958] UBI: attached mtd7 to ubi0
[ 5.102880] UBI: MTD device name: "File System"
[ 5.108657] UBI: MTD device size: 1004 MiB
[ 5.113918] UBI: number of good PEBs: 2008
[ 5.118829] UBI: number of bad PEBs: 0
[ 5.123456] UBI: number of corrupted PEBs: 0
[ 5.128091] UBI: max. allowed volumes: 128
[ 5.132900] UBI: wear-leveling threshold: 4096
[ 5.137807] UBI: number of internal volumes: 1
[ 5.142436] UBI: number of user volumes: 1
[ 5.147083] UBI: available PEBs: 0
[ 5.151710] UBI: total number of reserved PEBs: 2008
[ 5.156891] UBI: number of PEBs reserved for bad PEB handling: 20
[ 5.163239] UBI: max/mean erase counter: 1/0
[ 5.167694] UBI: image sequence number:530827853
[ 5.172775] UBI: background thread "ubi_bgt0d" started, PID 661
[ 5.196566] CAN device driver inte**ce
[ 5.200569] CAN bus driver for Bosch D_CAN controller 1.0
[ 5.216674] d_can d_can.0: device registered (irq=52, irq_obj=53)
[ 5.287794] davinci_mdio davinci_mdio.0: davinci mdio revision 1.6
[ 5.294245] davinci_mdio davinci_mdio.0: detected phy mask fffffffe
[ 5.318322] davinci_mdio.0: probed
[ 5.321880] davinci_mdio davinci_mdio.0: phy: device 0:00, driver unknown
[ 5.337941] PPP generic driver version 2.4.2
[ 5.356887] PPP BSD Compression module registered
[ 5.361793] PPP Deflate Compression module registered
[ 5.367071] RTL871X: module init start version:v4.1.7_9024.20130916
[ 5.387621] RTL871X: module init ret=0
[ 5.391729] usbcore: registered new inte**ce driver zd1201
[ 5.409073] usbcore: registered new inte**ce driver cdc_ether
[ 5.428925] usbcore: registered new inte**ce driver cdc_eem
[ 5.434980] usbcore: registered new inte**ce driver dm9601
[ 5.440855] cdc_ncm: 04-Aug-2011
[ 5.458091] usbcore: registered new inte**ce driver cdc_ncm
[ 5.463994] Initializing USB Mass Storage driver...
[ 5.469343] usbcore: registered new inte**ce driver usb-storage
[ 5.475607] USB Mass Storage support registered.
[ 5.497219] usbcore: registered new inte**ce driver usbserial
[ 5.508982] USB Serial support registered for generic
[ 5.528427] usbcore: registered new inte**ce driver usbserial_generic
[ 5.535235] usbserial: USB Serial Driver core
[ 5.539924] USB Serial support registered for GSM modem (1-port)
[ 5.557845] usbcore: registered new inte**ce driver option
[ 5.563657] option: v0.7.2:USB Driver for GSM modems
[ 5.577245] USB Serial support registered for Vizzini USB serial port
[ 5.597788] usbcore: registered new inte**ce driver vizzini
[ 5.603685] USB Driver for Vizzini USB serial port: v.1.1
[ 5.617739]gadget: Mass Storage Function, version: 2009/09/11
[ 5.623917]gadget: Number of LUNs=1
[ 5.627747]lun0: LUN: removable file: (no medium)
[ 5.632861]gadget: Mass Storage Gadget, version: 2009/09/11
[ 5.638865]gadget: userspace failed to provide iSerialNumber
[ 5.644952]gadget: g_mass_storage ready
[ 5.649154] musb-hdrc musb-hdrc.0: MUSB HDRC host driver
[ 5.654745] musb-hdrc musb-hdrc.0: new USB bus registered, assigned bus number 2
[ 5.662575] usb usb2: New USB device found, idVendor=1d6b, idProduct=0002
[ 5.669672] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[ 5.677209] usb usb2: Product: MUSB HDRC host driver
[ 5.682385] usb usb2: Manufacturer: Linux 3.2.0 musb-hcd
[ 5.687927] usb usb2: SerialNumber: musb-hdrc.0
[ 5.707361] hub 2-0:1.0: USB hub found
[ 5.711302] hub 2-0:1.0: 1 port detected
[ 5.727676] mousedev: PS/2 mouse device common for all mice
[ 5.748683] input: ft5x0x_ts as /devices/virtual/input/input0
[ 5.949851] uc_reg_value=20
[ 5.986629] rtc-ds1307 1-0068: rtc core: registered ds1307 as rtc0
[ 5.993097] rtc-ds1307 1-0068: 56 bytes nvram
[ 6.008812] i2c /dev entries driver
[ 6.018861] Linux video capture inte**ce: v2.00
[ 6.037822] usbcore: registered new inte**ce driver uvcvideo
[ 6.043812] USB Video Class driver (1.1.1)
[ 6.057240] OMAP Watchdog Timer Rev 0x01: initial timeout 60 sec
[ 6.063703] Bluetooth: Broadcom Blutonium firmware driver ver 1.2
[ 6.078584] usbcore: registered new inte**ce driver bcm203x
[ 6.084492] Bluetooth: Generic Bluetooth USB driver ver 0.6
[ 6.098778] usbcore: registered new inte**ce driver btusb
[ 6.138266] cpuidle: using governor ladder
[ 6.143033] cpuidle: using governor menu
[ 6.227460] usbcore: registered new inte**ce driver usbhid
[ 6.233286] usbhid: USB HID core driver
[ 6.239258] tiadc tiadc: attached adc driver
[ 6.270606] _regulator_get: 2-001b supply IOVDD not found, using dummy regulator
[ 6.278428] _regulator_get: 2-001b supply DVDD not found, using dummy regulator
[ 6.286108] _regulator_get: 2-001b supply AVDD not found, using dummy regulator
[ 6.293788] _regulator_get: 2-001b supply DRVDD not found, using dummy regulator
[ 6.304372] asoc: tlv320aic3x-hifi <-> davinci-mcasp.1 mapping ok
[ 6.481377] mmc0: host does not support reading read-only switch. assuming write-enable.
[ 6.506427] mmc0: new high speed SDHC card at address b368
[ 6.526709] mmcblk0: mmc0:b368 LEXAR 3.73 GiB
[ 6.551846]mmcblk0: p1
[ 6.797155] ALSA device list:
[ 6.800260] #0: AM335X EVM
[ 6.803257] oprofile: hardware counters not available
[ 6.808540] oprofile: using timer interrupt.
[ 6.813017] nf_conntrack version 0.5.0 (7998 buckets, 31992 max)
[ 6.819868] ip_tables: (C) 2000-2006 Netfilter Core Team
[ 6.825529] TCP cubic registered
[ 6.828927] NET: Registered protocol family 17
[ 6.833572] can: controller area network core (rev 20090105 abi 8)
[ 6.840119] NET: Registered protocol family 29
[ 6.844776] can: raw protocol (rev 20090105)
[ 6.849237] can: broadcast manager protocol (rev 20090105 t)
[ 6.907472] Bluetooth: RFCOMM TTY layer initialized
[ 6.912572] Bluetooth: RFCOMM socket layer initialized
[ 6.917943] Bluetooth: RFCOMM ver 1.11
[ 6.921852] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
[ 6.927394] Bluetooth: BNEP filters: protocol multicast
[ 6.932842] Bluetooth: HIDP (Human Inte**ce Emulation) ver 1.2
[ 6.939480] Registering the dns_resolver key type
[ 6.944470] VFP support v0.3: implementor 41 architecture 3 part 30 variant c rev 3
[ 6.952509] ThumbEE CPU extension supported.
[ 6.957035] mux: Failed to setup hwmod io irq -22
[ 6.962629] Power Management for AM33XX family
[ 6.967507] Trying to load am335x-pm-firmware.bin (60 secs timeout)
[ 6.974165] Copied the M3 firmware to UMEM
[ 6.978539] Cortex M3 Firmware Version = 0x181
[ ? 7.002163] clock: disabling unused clocks to save power
[ 7.029577] Detected MACID=d0:5f:b8:dc:b2:2b
[ 7.035151] cpsw: Detected MACID = d0:5f:b8:dc:b2:2d
[?7.059505] input: gpio-keys as /devices/platform/gpio-keys/input/input1
[ 7.084079] rtc-ds1307 1-0068: setting system clock to 2015-03-24 22:14:30 UTC (1427235270)
[ 7.521329] UBIFS: recovery needed
[ 7.942268] UBIFS: recovery completed
[ 7.946117] UBIFS: mounted UBI device 0, volume 0, name "rootfs"
[ 7.952422] UBIFS: file system size: 1018257408 bytes (994392 KiB, 971 MiB, 1973 LEBs)
[ 7.960874] UBIFS: journal size: 10452992 bytes (10208 KiB, 9 MiB, 21 LEBs)
[ 7.968685] UBIFS: media format: w4/r0 (latest is w4/r0)
[ 7.974762] UBIFS: default compressor: lzo
[ 7.979038] UBIFS: reserved for root:0 bytes (0 KiB)
[ 7.995398] VFS: Mounted root (ubifs filesystem) on device 0:14.
[ 8.001721] devtmpfs: error mounting -2
[ 8.006075] Freeing init memory: 244K
[ 8.009993] Kernel panic - not syncing: No init found.Try passing init= option to kernel. See Linux Documentation/init.txt for guidance.
[ 8.022972] Backtrace:
[ 8.025563] [<c0017d68>] (dump_backtrace+0x0/0x110) from [<c0510fbc>] (dump_stack+0x18/0x1c)
[ 8.034368]r6:c0041770 r5:c06fd7ec r4:c07713d0 r3:c0721088
[ 8.040302] [<c0510fa4>] (dump_stack+0x0/0x1c) from [<c051102c>] (panic+0x6c/0x1a0)
[ 8.048309] [<c0510fc0>] (panic+0x0/0x1a0) from [<c0008700>] (init_post+0xa8/0xd8)
[ 8.056197]r3:df02bc00 r2:00000012 r1:00000080 r0:c0612f18
[ 8.062121]r7:00000013
[ 8.064776] [<c0008658>] (init_post+0x0/0xd8) from [<c06c1910>] (kernel_init+0x128/0x130)
[ 8.073310]r4:c06fd7ec r3:00000026
[ 8.077069] [<c06c17e8>] (kernel_init+0x0/0x130) from [<c0041770>] (do_exit+0x0/0x67c)
一直卡在这个地方,左上角LCD屏上一直是linux的企鹅。
请问这是什么原因?我的资料都是开发板附带光盘中的,开发板是OK333XD
光盘里有制作ubi镜像的脚本 tool/pack-ubi-1g.sh用脚本制作吧
页:
[1]