我做成ubi镜像烧写到nand之后,启动后报了很多错误,打印信息如下:
[ 1.867998] UBI: attaching mtd7 to ubi0
[ 1.872064] UBI: physical eraseblock size: 131072 bytes (128 KiB)
[ 1.878742] UBI: logical eraseblock size: 126976 bytes
[ 1.884433] UBI: smallest flash I/O unit: 2048
[ 1.889406] UBI: sub-page size: 512
[ 1.894280] UBI: VID header offset: 2048 (aligned 2048)
[ 1.900626] UBI: data offset: 4096
[ 6.458715] UBI: max. sequence number: 0
[ 6.509931] UBI: volume 0 ("rootfs") re-sized from 826 to 8024 LEBs
[ 6.518150] UBI: attached mtd7 to ubi0
[ 6.522118] UBI: MTD device name: "File System"
[ 6.527969] UBI: MTD device size: 1016 MiB
[ 6.533300] UBI: number of good PEBs: 8109
[ 6.538271] UBI: number of bad PEBs: 23
[ 6.543040] UBI: number of corrupted PEBs: 0
[ 6.547737] UBI: max. allowed volumes: 128
[ 6.552605] UBI: wear-leveling threshold: 4096
[ 6.557576] UBI: number of internal volumes: 1
[ 6.562255] UBI: number of user volumes: 1
[ 6.566948] UBI: available PEBs: 0
[ 6.571634] UBI: total number of reserved PEBs: 8109
[ 6.576875] UBI: number of PEBs reserved for bad PEB handling: 81
[ 6.583300] UBI: max/mean erase counter: 1/0
[ 6.587817] UBI: image sequence number: 1722152563
[ 6.593125] UBI: background thread "ubi_bgt0d" started, PID 556
[ 6.616286] CAN device driver interface
[ 6.620337] CAN bus driver for Bosch D_CAN controller 1.0
[ 6.696417] davinci_mdio.0: probed
[ 6.700041] davinci_mdio davinci_mdio.0: phy333333333=[0]: device 0:00, driver Micrel KSZ9021 Gigabit PHY
[ 6.726113] usbcore: registered new interface driver zd1201
[ 6.735930] usbcore: registered new interface driver cdc_ether
[ 6.745919] usbcore: registered new interface driver cdc_eem
[ 6.755953] usbcore: registered new interface driver dm9601
[ 6.761908] cdc_ncm: 04-Aug-2011
[ 6.775910] usbcore: registered new interface driver cdc_ncm
[ 6.781878] Initializing USB Mass Storage driver…
[ 6.806227] usbcore: registered new interface driver usb-storage
[ 6.812569] USB Mass Storage support registered.
[ 6.826252] mousedev: PS/2 mouse device common for all mice
[ 6.847132] input: ti-tsc-adcc as /devices/platform/omap/tsc/input/input0
[ 6.866742] rtc-pcf8563 2-0051: chip found, driver version 0.4.3
[ 6.886032] rtc-pcf8563 2-0051: rtc core: registered rtc-pcf8563 as rtc0
[ 6.893356] i2c /dev entries driver
[ 6.906617] Linux video capture interface: v2.00
[ 6.916223] usbcore: registered new interface driver uvcvideo
[ 6.922291] USB Video Class driver (1.1.1)
[ 6.926791] UBI error: ubi_io_write: error -5 while writing111 512 bytes to PEB 265:0, written 0 bytes
[ 6.936633] UBI error: erase_worker: failed to erase PEB 265, error -5
[ 6.943524] UBI: mark PEB 265 as bad
[ 6.947932] UBI: 80 PEBs left in the reserve
[ 7.036058] OMAP Watchdog Timer Rev 0x01: initial timeout 60 sec
[ 7.056393] cpuidle: using governor ladder
[ 7.075990] cpuidle: using governor menu
[ 7.120171] usbcore: registered new interface driver usbhid
[ 7.126109] usbhid: USB HID core driver
[ 7.146323] usbcore: registered new interface driver snd-usb-audio
[ 7.168223] ALSA device list:
[ 7.171363] No soundcards found.
[ 7.174946] oprofile: hardware counters not available
[ 7.180332] oprofile: using timer interrupt.
[ 7.184873] nf_conntrack version 0.5.0 (3952 buckets, 15808 max)
[ 7.192004] ip_tables: (C) 2000-2006 Netfilter Core Team
[ 7.197850] TCP cubic registered
[ 7.201262] NET: Registered protocol family 17
[ 7.205991] can: controller area network core (rev 20090105 abi 8)
[ 7.212639] NET: Registered protocol family 29
[ 7.217362] can: raw protocol (rev 20090105)
[ 7.221864] can: broadcast manager protocol (rev 20090105 t)
[ 7.227899] Registering the dns_resolver key type
[ 7.232984] VFP support v0.3: implementor 41 architecture 3 part 30 variant c rev 3
[ 7.241097] ThumbEE CPU extension supported.
[ 7.245680] mux: Failed to setup hwmod io irq -22
[ 7.251693] Power Management for AM33XX family
[ 7.256730] Trying to load am335x-pm-firmware.bin (60 secs timeout)
[ 7.263454] Copied the M3 firmware to UMEM
[ 7.267871] omap_hwmod: wkup_m3: wkup_m3: hwmod data error: OMAP4 does not support st_shift
[ 7.282564] clock: disabling unused clocks to save power
[ 7.289203] UBI error: ubi_io_write: error -5 while writing111 512 bytes to PEB 412:0, written 0 bytes
[ 7.299129] UBI error: erase_worker: failed to erase PEB 412, error -5
[ 7.306038] UBI: mark PEB 412 as bad
[ 7.310869] UBI: 79 PEBs left in the reserve
[ 7.318109] Detected MACID=bc:6a:29:ea:da:22
[ 7.338244] rtc-pcf8563 2-0051: setting system clock to 2012-07-27 13:07:04 UTC (1343394424)
[ 7.498733] UBIFS: start fixing up free space
[ 7.580882] mmc0: host does not support reading read-onlyjhf777 switch. assuming write-enable.
[ 7.635881] mmc0: new SDHC card at addressjhf7777 e624
[ 7.655928] mmcblk0: mmc0:e624 SD16G 14.8 GiB[ 7.666490] mmcblk0: p1 p2
[ 9.476219] UBIFS: free space fixup complete
[ 9.483334] UBIFS: mounted UBI device 0, volume 0, name "rootfs"
[ 9.489753] UBIFS: file system size: 101707776 bytes (99324 KiB, 96 MiB, 801 LEBs)
[ 9.497942] UBIFS: journal size: 9023488 bytes (8812 KiB, 8 MiB, 72 LEBs)
[ 9.505649] UBIFS: media format: w4/r0 (latest is w4/r0)
[ 9.511820] UBIFS: default compressor: lzo
[ 9.516153] UBIFS: reserved for root: 0 bytes (0 KiB)
[ 9.524853] VFS: Mounted root (ubifs filesystem) on device 0:13.
[ 9.532611] Freeing init memory: 612K
INIT: version 2.86 booting
Please wait: booting…
Starting udev
[ 11.141234] UBI error: ubi_io_write: error -5 while writing111 512 bytes to PEB 1475:0, written 0 bytes
[ 11.151281] UBI error: erase_worker: failed to erase PEB 1475, error -5
[ 11.158275] UBI: mark PEB 1475 as bad
[ 11.162767] UBI: 78 PEBs left in the reserve
[ 11.865978] UBI error: ubi_io_write: error -5 while writing111 512 bytes to PEB 1904:0, written 0 bytes
[ 11.875969] UBI error: erase_worker: failed to erase PEB 1904, error -5
[ 11.882949] UBI: mark PEB 1904 as bad
[ 11.899572] UBI: 77 PEBs left in the reserve
[ 11.997640] UBI error: ubi_io_write: error -5 while writing111 512 bytes to PEB 1917:0, written 0 bytes
[ 12.007658] UBI error: erase_worker: failed to erase PEB 1917, error -5
[ 12.014628] UBI: mark PEB 1917 as bad
[ 12.019145] UBI: 76 PEBs left in the reserve
[ 12.068531] UBI error: ubi_io_write: error -5 while writing111 512 bytes to PEB 1920:0, written 0 bytes
[ 12.078556] UBI error: erase_worker: failed to erase PEB 1920, error -5
[ 12.085532] UBI: mark PEB 1920 as bad
[ 12.221069] UBI error: ubi_io_mark_bad: cannot mark PEB 1920 bad, error -5
[ 12.228438] UBI warning: ubi_ro_mode: switch to read-only mode
[ 12.234588] UBI error: do_work: work failed with error code -5
[ 12.240757] UBI error: ubi_thread: ubi_bgt0d: work failed with error code -5
[ 13.565725] alignment: ignoring faults is unsafe on this CPU. Defaulting to fixup mode.
Root filesystem already rw, not remounting
Caching udev devnodes
[ 13.764162] Disabling lock debugging due to kernel taint
[ 13.771029] leddev_init11111111111
ALSA: Restoring mixer settings…
Configuring network interfaces… /usr/sbin/alsactl: load_state:1625: No soundcards found…
[ 14.613333][ 14.613351] CPSW phy found : id is : 0x221611
[ 14.620351] PHY 0:01 not found
udhcpc (v1.13.2) started
Sending discover…
[ 14.969949] UBIFS error (pid 635): ubifs_leb_write: writing 2048 bytes to LEB 142:26624 failed, error -30
[ 14.980113] UBIFS warning (pid 635): ubifs_ro_mode: switched to read-only mode, error -30
[ 14.988752] Backtrace:[ 14.991409] [<c0018a54>] (dump_backtrace+0x0/0x108) from [<c042a7e8>] (dump_stack+0x18/0x1c)
[ 15.000332] r6:00006800 r5:cf123000 r4:ffffffe2
[ 15.005233] [<c042a7d0>] (dump_stack+0x0/0x1c) from [<c017f624>] (ubifs_ro_mode+0x6c/0x78)
[ 15.013972] [<c017f5b8>] (ubifs_ro_mode+0x0/0x78) from [<c0180588>] (ubifs_leb_write+0xf8/0x13c)
[ 15.023253] r4:ffffffe2
[ 15.025954] [<c0180490>] (ubifs_leb_write+0x0/0x13c) from [<c0181174>] (ubifs_wbuf_sync_nolock+0x128/0x33c)
[ 15.036241] r7:0000008e r6:00000728 r5:cf01a298 r4:00000800
[ 15.042237] [<c018104c>] (ubifs_wbuf_sync_nolock+0x0/0x33c) from [<c01815fc>] (ubifs_bg_wbufs_sync+0x134/0x1c0)
[ 15.052923] [<c01814c8>] (ubifs_bg_wbufs_sync+0x0/0x1c0) from [<c018cf34>] (ubifs_bg_thread+0xc8/0x188)
[ 15.062867] [<c018ce6c>] (ubifs_bg_thread+0x0/0x188) from [<c0057e50>] (kthread+0x88/0x90)
[ 15.071625] [<c0057dc8>] (kthread+0x0/0x90) from [<c00417f8>] (do_exit+0x0/0x6b8)
[ 15.079523] r6:c00417f8 r5:c0057dc8 r4:cf81dd3c
[ 15.084403] Backtrace:[ 15.087016] [<c0018a54>] (dump_backtrace+0x0/0x108) from [<c042a7e8>] (dump_stack+0x18/0x1c)
[ 15.095926] r6:00006800 r5:cf123000 r4:ffffffe2
[ 15.100820] [<c042a7d0>] (dump_stack+0x0/0x1c) from [<c018058c>] (ubifs_leb_write+0xfc/0x13c)
[ 15.109838] [<c0180490>] (ubifs_leb_write+0x0/0x13c) from [<c0181174>] (ubifs_wbuf_sync_nolock+0x128/0x33c)
[ 15.120118] r7:0000008e r6:00000728 r5:cf01a298 r4:00000800
[ 15.126143] [<c018104c>] (ubifs_wbuf_sync_nolock+0x0/0x33c) from [<c01815fc>] (ubifs_bg_wbufs_sync+0x134/0x1c0)
[ 15.136807] [<c01814c8>] (ubifs_bg_wbufs_sync+0x0/0x1c0) from [<c018cf34>] (ubifs_bg_thread+0xc8/0x188)
[ 15.146741] [<c018ce6c>] (ubifs_bg_thread+0x0/0x188) from [<c0057e50>] (kthread+0x88/0x90)
[ 15.155465] [<c0057dc8>] (kthread+0x0/0x90) from [<c00417f8>] (do_exit+0x0/0x6b8)
[ 15.163372] r6:c00417f8 r5:c0057dc8 r4:cf81dd3c
[ 15.168271] UBIFS error (pid 635): ubifs_bg_wbufs_sync: cannot sync write-buffer, error -30
[ 15.177471] UBIFS error (pid 905): make_reservation: cannot reserve 160 bytes in jhead 1, error -30
[ 15.187064] UBIFS error (pid 905): ubifs_write_inode: can't write inode 88, error -30
[ 17.606760] PHY: 0:00 – Link is Up – 100/Full
Sending discover…
Sending discover…
求救啊!!!!!!!!!!!!!
lw wu:
全块擦除NAND FLASH后 重新烧写 试试看!
Jian Feng1:
[ 9.489753] UBIFS: file system size: 101707776 bytes (99324 KiB, 96 MiB, 801 LEBs)[ 9.497942] UBIFS: journal size: 9023488 bytes (8812 KiB, 8 MiB, 72 LEBs)[ 9.505649] UBIFS: media format: w4/r0 (latest is w4/r0)
这里貌似有点不对 是不是做镜像的时候参数不对哦
jack king1:
回复 lw wu:
擦出了也是不行的
jack king1:
回复 Jian Feng1:
我按照TI官方的又做了一个,参数是这样的:
mkfs.ubifs -r rootfs/ -F -o ubifs.img -m 2048 -e 126976 -c 1580
ubinize -o ubi.img -m 2048 -p 128KiB -s 512 -O 2048 ubinize.cfg
[ubifs]<== Section headermode=ubi<== Volume mode (other option is static)image=ubifs.img<== Source imagevol_id=0<== Volume ID in UBI imagevol_size=192MiB<== Volume sizevol_type=dynamic<== Allow for dynamic resizevol_name=rootfs<== Volume namevol_flags=autoresize<== Autoresize volume at first mount错误是这样的:
[ 1.749359] UBI: attaching mtd7 to ubi0[ 1.753448] UBI: physical eraseblock size: 131072 bytes (128 KiB)[ 1.760040] UBI: logical eraseblock size: 126976 bytes[ 1.765777] UBI: smallest flash I/O unit: 2048[ 1.770721] UBI: sub-page size: 512[ 1.775604] UBI: VID header offset: 2048 (aligned 2048)[ 1.781921] UBI: data offset: 4096[ 3.165618] UBI: max. sequence number: 0[ 3.211639] UBI: volume 0 ("rootfs") re-sized from 1586 to 8047 LEBs[ 3.219635] UBI: attached mtd7 to ubi0[ 3.223632] UBI: MTD device name: "File System"[ 3.229400] UBI: MTD device size: 1016 MiB[ 3.234741] UBI: number of good PEBs: 8132[ 3.239685] UBI: number of bad PEBs: 0[ 3.244384] UBI: number of corrupted PEBs: 0[ 3.249053] UBI: max. allowed volumes: 128[ 3.253936] UBI: wear-leveling threshold: 4096[ 3.258880] UBI: number of internal volumes: 1[ 3.263580] UBI: number of user volumes: 1[ 3.268249] UBI: available PEBs: 0[ 3.272918] UBI: total number of reserved PEBs: 8132[ 3.278167] UBI: number of PEBs reserved for bad PEB handling: 81[ 3.284576] UBI: max/mean erase counter: 1/0[ 3.289062] UBI: image sequence number: 677226525[ 3.294281] UBI: background thread "ubi_bgt0d" started, PID 556[ 3.313812] CAN device driver interface[ 3.317871] CAN bus driver for Bosch D_CAN controller 1.0[ 3.393890] davinci_mdio.0: probed[ 3.397491] davinci_mdio davinci_mdio.0: phy333333333=[0]: device 0:00, driver Micrel KSZ9021 Gigabit PHY[ 3.423828] usbcore: registered new interface driver zd1201[ 3.429992] usbcore: registered new interface driver cdc_ether[ 3.443786] usbcore: registered new interface driver cdc_eem[ 3.453460] usbcore: registered new interface driver dm9601[ 3.459381] cdc_ncm: 04-Aug-2011[ 3.473632] usbcore: registered new interface driver cdc_ncm[ 3.479583] Initializing USB Mass Storage driver…[ 3.503356] usbcore: registered new interface driver usb-storage[ 3.509674] USB Mass Storage support registered.[ 3.523742] mousedev: PS/2 mouse device common for all mice[ 3.544433] input: ti-tsc-adcc as /devices/platform/omap/tsc/input/input0[ 3.564147] rtc-pcf8563 2-0051: chip found, driver version 0.4.3[ 3.570709] rtc-pcf8563 2-0051: pcf8563_get_datetime: read error[ 3.583496] rtc-pcf8563 2-0051: rtc core: registered rtc-pcf8563 as rtc0[ 3.603424] i2c /dev entries driver[ 3.613800] Linux video capture interface: v2.00[ 3.623840] usbcore: registered new interface driver uvcvideo[ 3.629913] USB Video Class driver (1.1.1)[ 3.673461] OMAP Watchdog Timer Rev 0x01: initial timeout 60 sec[ 3.694152] cpuidle: using governor ladder[ 3.713439] cpuidle: using governor menu[ 3.754150] usbcore: registered new interface driver usbhid[ 3.760040] usbhid: USB HID core driver[ 3.774047] usbcore: registered new interface driver snd-usb-audio[ 3.803527] ALSA device list:[ 3.806640] No soundcards found.[ 3.810211] oprofile: hardware counters not available[ 3.815582] oprofile: using timer interrupt.[ 3.820098] nf_conntrack version 0.5.0 (3952 buckets, 15808 max)[ 3.827056] ip_tables: (C) 2000-2006 Netfilter Core Team[ 3.832794] TCP cubic registered[ 3.836242] NET: Registered protocol family 17[ 3.840942] can: controller area network core (rev 20090105 abi 8)[ 3.847564] NET: Registered protocol family 29[ 3.852264] can: raw protocol (rev 20090105)[ 3.856781] can: broadcast manager protocol (rev 20090105 t)[ 3.862762] Registering the dns_resolver key type[ 3.867858] VFP support v0.3: implementor 41 architecture 3 part 30 variant c rev 3[ 3.875946] ThumbEE CPU extension supported.[ 3.880523] mux: Failed to setup hwmod io irq -22[ 3.886322] Power Management for AM33XX family[ 3.891235] Trying to load am335x-pm-firmware.bin (60 secs timeout)[ 3.898010] Copied the M3 firmware to UMEM[ 3.902343] omap_hwmod: wkup_m3: wkup_m3: hwmod data error: OMAP4 does not support st_shift[ 3.915924] clock: disabling unused clocks to save power[ 3.922149] UBI error: ubi_io_write: error -5 while writing111 512 bytes to PEB 540:0, written 0 bytes[ 3.932037] UBI error: erase_worker: failed to erase PEB 540, error -5[ 3.938934] UBI: mark PEB 540 as bad[ 3.943359] UBI: 80 PEBs left in the reserve[ 4.044799] Detected MACID=0:18:31:93:cb:23[ 4.064422] rtc-pcf8563 2-0051: pcf8563_get_datetime: read error[ 4.070739] rtc-pcf8563 2-0051: hctosys: unable to read the hardware clock[ 4.234375] UBIFS: start fixing up free space[ 5.738861] UBIFS: free space fixup complete[ 5.794647] UBIFS: mounted UBI device 0, volume 0, name "rootfs"[ 5.800994] UBIFS: file system size: 199225344 bytes (194556 KiB, 189 MiB, 1569 LEBs)[ 5.809478] UBIFS: journal size: 9023488 bytes (8812 KiB, 8 MiB, 72 LEBs)[ 5.817199] UBIFS: media format: w4/r0 (latest is w4/r0)[ 5.823364] UBIFS: default compressor: lzo[ 5.827667] UBIFS: reserved for root: 0 bytes (0 KiB)[ 5.874511] VFS: Mounted root (ubifs filesystem) on device 0:13.[ 5.882019] Freeing init memory: 612KINIT: version 2.86 bootingPlease wait: booting…Starting udevWARNING: -e needs -E or -F[ 7.579711] UBI error: ubi_io_write: error -5 while writing111 512 bytes to PEB 1815:0, written 0 bytes[ 7.589721] UBI error: erase_worker: failed to erase PEB 1815, error -5[ 7.596710] UBI: mark PEB 1815 as bad[ 7.601135] UBI: 79 PEBs left in the reserve[ 7.670867] UBI error: ubi_io_write: error -5 while writing111 512 bytes to PEB 1821:0, written 0 bytes[ 7.680847] UBI error: erase_worker: failed to erase PEB 1821, error -5[ 7.687866] UBI: mark PEB 1821 as bad[ 7.824279] UBI error: ubi_io_mark_bad: cannot mark PEB 1821 bad, error -5[ 7.831542] UBI warning: ubi_ro_mode: switch to read-only mode[ 7.837738] UBI error: do_work: work failed with error code -5[ 7.843902] UBI error: ubi_thread: ubi_bgt0d: work failed with error code -5[ 8.785949] alignment: ignoring faults is unsafe on this CPU. Defaulting to fixup mode.Root filesystem already rw, not remountingCaching udev devnodesALSA: Restoring mixer settings…/usr/sbin/alsactl: load_state:1625: No soundcards found…[ 9.872833] UBIFS error (pid 979): ubifs_leb_write: writing 2048 bytes to LEB 139:14336 failed, error -30[ 9.882995] UBIFS warning (pid 979): ubifs_ro_mode: switched to read-only mode, error -30[ 9.891632] Backtrace: [ 9.894287] [<c0018a54>] (dump_backtrace+0x0/0x108) from [<c042a808>] (dump_stack+0x18/0x1c)[ 9.903167] r6:00003800 r5:cf121000 r4:ffffffe2[ 9.908081] [<c042a7f0>] (dump_stack+0x0/0x1c) from [<c017f634>] (ubifs_ro_mode+0x6c/0x78)[ 9.916809] [<c017f5c8>] (ubifs_ro_mode+0x0/0x78) from [<c0180598>] (ubifs_leb_write+0xf8/0x13c)[ 9.926086] r4:ffffffe2[ 9.928771] [<c01804a0>] (ubifs_leb_write+0x0/0x13c) from [<c0180bfc>] (ubifs_wbuf_write_nolock+0x448/0x8a8)[ 9.939147] r7:00000190 r6:00000190 r5:00003800 r4:00000002[ 9.945159] [<c01807b4>] (ubifs_wbuf_write_nolock+0x0/0x8a8) from [<c01723d8>] (write_head+0x90/0x138)[ 9.954986] [<c0172348>] (write_head+0x0/0x138) from [<c0174084>] (ubifs_jnl_update+0x30c/0x67c)[ 9.964294] [<c0173d78>] (ubifs_jnl_update+0x0/0x67c) from [<c0179188>] (ubifs_mkdir+0x140/0x200)[ 9.973663] [<c0179048>] (ubifs_mkdir+0x0/0x200) from [<c00b84fc>] (vfs_mkdir+0xa4/0xd4)[ 9.982177] [<c00b8458>] (vfs_mkdir+0x0/0xd4) from [<c00b85c8>] (sys_mkdirat+0x9c/0xcc)[ 9.990631] r7:ce007f70 r6:000001c0 r5:cf562918 r4:00000000[ 9.996643] [<c00b852c>] (sys_mkdirat+0x0/0xcc) from [<c00b8614>] (sys_mkdir+0x1c/0x20)[ 10.005065] r7:00000027 r6:4024d480 r5:00035b72 r4:00035b71[ 10.011077] [<c00b85f8>] (sys_mkdir+0x0/0x20) from [<c0015100>] (ret_fast_syscall+0x0/0x30)[ 10.019897] Backtrace: [ 10.022491] [<c0018a54>] (dump_backtrace+0x0/0x108) from [<c042a808>] (dump_stack+0x18/0x1c)[ 10.031372] r6:00003800 r5:cf121000 r4:ffffffe2[ 10.036285] [<c042a7f0>] (dump_stack+0x0/0x1c) from [<c018059c>] (ubifs_leb_write+0xfc/0x13c)[ 10.045318] [<c01804a0>] (ubifs_leb_write+0x0/0x13c) from [<c0180bfc>] (ubifs_wbuf_write_nolock+0x448/0x8a8)[ 10.055694] r7:00000190 r6:00000190 r5:00003800 r4:00000002[ 10.061676] [<c01807b4>] (ubifs_wbuf_write_nolock+0x0/0x8a8) from [<c01723d8>] (write_head+0x90/0x138)[ 10.071502] [<c0172348>] (write_head+0x0/0x138) from [<c0174084>] (ubifs_jnl_update+0x30c/0x67c)[ 10.080780] [<c0173d78>] (ubifs_jnl_update+0x0/0x67c) from [<c0179188>] (ubifs_mkdir+0x140/0x200)[ 10.090179] [<c0179048>] (ubifs_mkdir+0x0/0x200) from [<c00b84fc>] (vfs_mkdir+0xa4/0xd4)[ 10.098724] [<c00b8458>] (vfs_mkdir+0x0/0xd4) from [<c00b85c8>] (sys_mkdirat+0x9c/0xcc)[ 10.107177] r7:ce007f70 r6:000001c0 r5:cf562918 r4:00000000[ 10.113159] [<c00b852c>] (sys_mkdirat+0x0/0xcc) from [<c00b8614>] (sys_mkdir+0x1c/0x20)[ 10.121612] r7:00000027 r6:4024d480 r5:00035b72 r4:00035b71[ 10.127624] [<c00b85f8>] (sys_mkdir+0x0/0x20) from [<c0015100>] (ret_fast_syscall+0x0/0x30)[ 10.136444] UBIFS error (pid 979): ubifs_wbuf_write_nolock: cannot write 400 bytes to LEB 139:14336, error -30[ 10.147186] Backtrace: [ 10.149780] [<c0018a54>] (dump_backtrace+0x0/0x108) from [<c042a808>] (dump_stack+0x18/0x1c)[ 10.158660] r6:00000190 r5:00003800 r4:ffffffe2[ 10.163574] [<c042a7f0>] (dump_stack+0x0/0x1c) from [<c01809dc>] (ubifs_wbuf_write_nolock+0x228/0x8a8)[ 10.173400] [<c01807b4>] (ubifs_wbuf_write_nolock+0x0/0x8a8) from [<c01723d8>] (write_head+0x90/0x138)[ 10.183227] [<c0172348>] (write_head+0x0/0x138) from [<c0174084>] (ubifs_jnl_update+0x30c/0x67c)[ 10.192535] [<c0173d78>] (ubifs_jnl_update+0x0/0x67c) from [<c0179188>] (ubifs_mkdir+0x140/0x200)[ 10.201904] [<c0179048>] (ubifs_mkdir+0x0/0x200) from [<c00b84fc>] (vfs_mkdir+0xa4/0xd4)[ 10.210449] [<c00b8458>] (vfs_mkdir+0x0/0xd4) from [<c00b85c8>] (sys_mkdirat+0x9c/0xcc)[ 10.218902] r7:ce007f70 r6:000001c0 r5:cf562918 r4:00000000[ 10.224914] [<c00b852c>] (sys_mkdirat+0x0/0xcc) from [<c00b8614>] (sys_mkdir+0x1c/0x20)[ 10.233367] r7:00000027 r6:4024d480 r5:00035b72 r4:00035b71[ 10.239349] [<c00b85f8>] (sys_mkdir+0x0/0x20) from [<c0015100>] (ret_fast_syscall+0x0/0x30)[ 10.279418] UBIFS error (pid 979): ubifs_check_node: bad CRC: calculated 0xa1a30cf2, read 0xde1183f7[ 10.289093] UBIFS error (pid 979): ubifs_check_node: bad node at LEB 139:14248[ 10.296997] Backtrace: [ 10.299621] [<c0018a54>] (dump_backtrace+0x0/0x108) from [<c042a808>] (dump_stack+0x18/0x1c)[ 10.308532] r6:cf121000 r5:d09967a8 r4:ffffff8b[ 10.313446] [<c042a7f0>] (dump_stack+0x0/0x1c) from [<c017fdc8>] (ubifs_check_node+0x1b8/0x2d8)[ 10.322601] [<c017fc10>] (ubifs_check_node+0x0/0x2d8) from [<c018860c>] (ubifs_scan_a_node+0x11c/0x2b0)[ 10.332519] [<c01884f0>] (ubifs_scan_a_node+0x0/0x2b0) from [<c0188818>] (ubifs_scan+0x78/0x334)[ 10.341796] r7:000037a8 r6:d09967a8 r5:0001b858 r4:000037a8[ 10.347808] [<c01887a0>] (ubifs_scan+0x0/0x334) from [<c01a7d6c>] (dbg_dump_leb+0x94/0x180)[ 10.356628] [<c01a7cd8>] (dbg_dump_leb+0x0/0x180) from [<c01809e8>] (ubifs_wbuf_write_nolock+0x234/0x8a8)[ 10.366729] [<c01807b4>] (ubifs_wbuf_write_nolock+0x0/0x8a8) from [<c01723d8>] (write_head+0x90/0x138)[ 10.376586] [<c0172348>] (write_head+0x0/0x138) from [<c0174084>] (ubifs_jnl_update+0x30c/0x67c)[ 10.385864] [<c0173d78>] (ubifs_jnl_update+0x0/0x67c) from [<c0179188>] (ubifs_mkdir+0x140/0x200)[ 10.395233] [<c0179048>] (ubifs_mkdir+0x0/0x200) from [<c00b84fc>] (vfs_mkdir+0xa4/0xd4)[ 10.403778] [<c00b8458>] (vfs_mkdir+0x0/0xd4) from [<c00b85c8>] (sys_mkdirat+0x9c/0xcc)[ 10.412200] r7:ce007f70 r6:000001c0 r5:cf562918 r4:00000000[ 10.418212] [<c00b852c>] (sys_mkdirat+0x0/0xcc) from [<c00b8614>] (sys_mkdir+0x1c/0x20)[ 10.426666] r7:00000027 r6:4024d480 r5:00035b72 r4:00035b71[ 10.432647] [<c00b85f8>] (sys_mkdir+0x0/0x20) from [<c0015100>] (ret_fast_syscall+0x0/0x30)[ 10.441467] UBIFS error (pid 979): ubifs_scan: bad node[ 10.446990] UBIFS error (pid 979): ubifs_scanned_corruption: corruption at LEB 139:14248[ 10.455535] UBIFS error (pid 979): ubifs_scanned_corruption: first 8192 bytes from LEB 139:14248[ 10.475402] UBIFS error (pid 979): ubifs_scan: LEB 139 scanning failed[ 10.482330] UBIFS error (pid 979): dbg_dump_leb: scan error -117[ 10.488739] UBIFS error (pid 979): ubifs_mkdir: cannot create directory, error -30Collected errors: * opkg_prep_intercepts: Failed to make temp dir /var/lib/opkg/tmp/opkg-iHdtC7/opkg-intercept-Ypy6N7: Read-only file system. * rm_r: Failed to remove dir /var/lib/opkg/tmp/opkg-iHdtC7: Read-only file system. * opkg_conf_deinit: Couldn't unlink /usr/lib/opkg/lock: Read-only file system.rm: cannot remove '/etc/rcS.d/S40configure': Read-only file systemConfiguring network interfaces… [ 10.895996] [ 10.896026] CPSW phy found : id is : 0x221611[ 10.902954] PHY 0:01 not foundudhcpc (v1.13.2) startedSending discover…[ 11.253601] UBIFS error (pid 1015): make_reservation: cannot reserve 160 bytes in jhead 1, error -30[ 11.263275] UBIFS error (pid 1015): ubifs_write_inode: can't write inode 4959, error -30[ 11.271881] UBIFS error (pid 1015): make_reservation: cannot reserve 160 bytes in jhead 1, error -30[ 11.281524] UBIFS error (pid 1015): ubifs_write_inode: can't write inode 4960, error -30[ 11.290069] UBIFS error (pid 1015): make_reservation: cannot reserve 160 bytes in jhead 1, error -30[ 11.299713] UBIFS error (pid 1015): ubifs_write_inode: can't write inode 4961, error -30[ 11.308258] UBIFS error (pid 1015): make_reservation: cannot reserve 160 bytes in jhead 1, error -30[ 11.317901] UBIFS error (pid 1015): ubifs_write_inode: can't write inode 4962, error -30[ 11.326477] UBIFS error (pid 1015): make_reservation: cannot reserve 160 bytes in jhead 1, error -30[ 11.336120] UBIFS error (pid 1015): ubifs_write_inode: can't write inode 4963, error -30[ 11.344665] UBIFS error (pid 1015): make_reservation: cannot reserve 160 bytes in jhead 1, error -30[ 11.354309] UBIFS error (pid 1015): ubifs_write_inode: can't write inode 4964, error -30[ 11.362854] UBIFS error (pid 1015): make_reservation: cannot reserve 160 bytes in jhead 1, error -30[ 11.372497] UBIFS error (pid 1015): ubifs_write_inode: can't write inode 4965, error -30[ 11.381042] UBIFS error (pid 1015): make_reservation: cannot reserve 160 bytes in jhead 1, error -30[ 11.390686] UBIFS error (pid 1015): ubifs_write_inode: can't write inode 4966, error -30[ 11.399261] UBIFS error (pid 1015): make_reservation: cannot reserve 160 bytes in jhead 1, error -30[ 11.408874] UBIFS error (pid 1015): ubifs_write_inode: can't write inode 4967, error -30[ 11.417449] UBIFS error (pid 1015): make_reservation: cannot reserve 160 bytes in jhead 1, error -30[ 11.427093] UBIFS error (pid 1015): ubifs_write_inode: can't write inode 4968, error -30[ 11.435638] UBIFS error (pid 1015): make_reservation: cannot reserve 160 bytes in jhead 1, error -30[ 11.445281] UBIFS error (pid 1015): ubifs_write_inode: can't write inode 4969, error -30[ 11.453826] UBIFS error (pid 1015): make_reservation: cannot reserve 160 bytes in jhead 1, error -30[ 11.463470] UBIFS error (pid 1015): ubifs_write_inode: can't write inode 4970, error -30[ 11.472015] UBIFS error (pid 1015): make_reservation: cannot reserve 160 bytes in jhead 1, error -30[ 11.481658] UBIFS error (pid 1015): ubifs_write_inode: can't write inode 4971, error -30[ 11.490203] UBIFS error (pid 1015): make_reservation: cannot reserve 160 bytes in jhead 1, error -30[ 11.499847] UBIFS error (pid 1015): ubifs_write_inode: can't write inode 4972, error -30[ 11.508422] UBIFS error (pid 1015): make_reservation: cannot reserve 160 bytes in jhead 1, error -30[ 11.518035] UBIFS error (pid 1015): ubifs_write_inode: can't write inode 4973, error -30[ 11.526611] UBIFS error (pid 1015): make_reservation: cannot reserve 160 bytes in jhead 1, error -30[ 11.536254] UBIFS error (pid 1015): ubifs_write_inode: can't write inode 4974, error -30[ 11.544799] UBIFS error (pid 1015): make_reservation: cannot reserve 160 bytes in jhead 1, error -30[ 11.554473] UBIFS error (pid 1015): ubifs_write_inode: can't write inode 4976, error -30[ 11.562988] UBIFS error (pid 1015): make_reservation: cannot reserve 160 bytes in jhead 1, error -30[ 11.572631] UBIFS error (pid 1015): ubifs_write_inode: can't write inode 4977, error -30[ 13.894195] PHY: 0:00 – Link is Up – 100/FullSending discover…Sending discover…No lease, forking to backgrounddone.Setting up IP spoofing protection: rp_filter.rm: cannot remove '/tmp': Read-only file systemln: /tmp/tmp: Read-only file system[ 20.121582] rtc-pcf8563 2-0051: pcf8563_get_datetime: read errorhwclock: RTC_RD_TIME: Input/output errorFri Jul 27 10:30:00 UTC 2012[ 20.187530] rtc-pcf8563 2-0051: pcf8563_set_datetime: err=-121 addr=02, data=00hwclock: RTC_SET_TIME: Input/output errorINIT: Entering runlevel: 5/S99finish.sh: line 5: can't create /eStarting telnet daemon.Starting syslogd/klogd: doneStarting thttpd.
Jian Feng1:
回复 jack king1:
mkfs.ubifs -r rootfs/ -F -o ubifs.img -m 2048 -e 126976 -c 1580
vol_size=192MiB <== Volume size
后面这个1580 和192MiB你不要用这个参数,根据自己的flash容量算一下
试下是不是这里的问题
jack king1:
回复 Jian Feng1:
不行啊,还是报那些错误
lin2:
请参考如下链接内容:
http://www.linux-mtd.infradead.org/faq/ubi.html#L_subpage_verify_fail
可以尝试在boot和内核中找到CONFIG_MTD_NAND_VERIFY_WRITE 宏定义,注释后重新编译进行尝试。
I get "ubi_io_write: error -5 while writing 512 bytes to PEB 5:512"
If you have a 2048 bytes per NAND page device, and haveCONFIG_MTD_NAND_VERIFY_WRITE enabled in your kernel, you will need to turn it off. The code does not currently (as of 2.6.26) perform verification of sub-page writes correctly. As UBI is one of the few users of sub-page writes, not much else seems to be affected by this bug.
zhihua wang:
回复 lin2:
试下修改-O参数或者-e参数,对于我的板子,跟文件系统用-e 124KIB -O 2048,但增加一个UBI分区时参数变为-e 126KIB -O 512,希望对你有帮助
TI中文支持网