ubifs/NAND problem?
Boudewijn
wankelwankel at yahoo.com
Sun Jan 15 18:10:11 CET 2012
Hi List,
I have problems with NAND, it seems, but I don't know how to troubleshoot it.
For a while I have been unable to boot SHR from NAND, but since I had another
install on uSD, it didn't really matter. Lately I wanted to move to NAND
anyway, to free up the relatively fast uSD for my Phoenux.
The Freerunner still won't boot from NAND though. I reflashed with SHR-core
(and SHR's ubi-qi), to no avail. After that I flashed QtMoko v35 (and QtMoko's
qi v35). No better result either. (For a moment I thought the MD5 sum was
incorrect, downloaded again and flashed, but it turned out Sourceforge hid
part of the sum when there's no mouseover).
I used to be able to mount jffs2-partitions, but mounting ubifs seems a bit
different (or broken otherwise in my installation)
I have tried:
- using the mtdblock6-device
- using the ubi-device (not available) [1]
- using the device-less method [1]
- using ubiattach (might create a dev node, but segfaults on mtd6 and hangs on
mtd6ro
I guess ubifs is in the kernel; there's no such thing as ubi in lsmod, and
modprobe ubifs returns an error. I added the modules from SHR-core, but they
do not include UBI.
dmesg gives some info, see attached text for a bit more:
[ 1274.330000] UBI: attaching mtd6 to ubi0
[ 1274.330000] UBI: physical eraseblock size: 131072 bytes (128 KiB)
[ 1274.330000] UBI: logical eraseblock size: 129024 bytes
[ 1274.330000] UBI: smallest flash I/O unit: 2048
[ 1274.330000] UBI: sub-page size: 512
[ 1274.330000] UBI: VID header offset: 512 (aligned 512)
[ 1274.330000] UBI: data offset: 2048
[ 1274.330000] UBI error: validate_ec_hdr: bad VID header offset 2048,
expected 512
[ 1274.330000] UBI error: validate_ec_hdr: bad EC header
[ 1274.330000] UBI error: ubi_io_read_ec_hdr: validation failed for PEB 0
[ 1274.330000] Unable to handle kernel paging request at virtual address
00100104
What does it try tell me? What can I do about it?
Boudewijn
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openmoko.org/pipermail/community/attachments/20120115/01e6f380/attachment.htm>
-------------- next part --------------
[ 1274.330000] UBI: attaching mtd6 to ubi0
[ 1274.330000] UBI: physical eraseblock size: 131072 bytes (128 KiB)
[ 1274.330000] UBI: logical eraseblock size: 129024 bytes
[ 1274.330000] UBI: smallest flash I/O unit: 2048
[ 1274.330000] UBI: sub-page size: 512
[ 1274.330000] UBI: VID header offset: 512 (aligned 512)
[ 1274.330000] UBI: data offset: 2048
[ 1274.330000] UBI error: validate_ec_hdr: bad VID header offset 2048, expected 512
[ 1274.330000] UBI error: validate_ec_hdr: bad EC header
[ 1274.330000] UBI error: ubi_io_read_ec_hdr: validation failed for PEB 0
[ 1274.330000] Unable to handle kernel paging request at virtual address 00100104
[ 1274.330000] pgd = c6ff0000
[ 1274.330000] [00100104] *pgd=36ed6831, *pte=00000000, *ppte=00000000
[ 1274.330000] Internal error: Oops: 817 [#1]
[ 1274.330000] last sysfs file: /sys/class/ubi/version
[ 1274.330000] Modules linked in: snd_soc_wm8753 snd_soc_s3c24xx snd_soc_neo1973_wm8753 snd_soc_s3c24xx_i2s snd_soc_dfbmcs320 snd_soc_core snd_pcm snd_timer snd soundcore snd_page_alloc rfcomm ppp_generic slhc ohci_hcd usbcore ipv6 hidp g_ether s3c2410_udc bnep bluetooth ar6000
[ 1274.330000] CPU: 0 Not tainted (2.6.39.4 #1)
[ 1274.330000] PC is at kmem_cache_destroy+0x40/0xfc
[ 1274.330000] LR is at kmem_cache_destroy+0x34/0xfc
[ 1274.330000] pc : [<c0098a50>] lr : [<c0098a44>] psr: 60000013
[ 1274.330000] sp : c6f77e30 ip : 00000004 fp : 00000200
[ 1274.330000] r10: c6f2dcb4 r9 : c6f2dcb4 r8 : c03f2528
[ 1274.330000] r7 : ffffffea r6 : c6f2dcac r5 : c6f2dca0 r4 : c78bf4e0
[ 1274.330000] r3 : 00200200 r2 : 00100100 r1 : c78bf4e0 r0 : c78bf4e0
[ 1274.330000] Flags: nZCv IRQs on FIQs on Mode SVC_32 ISA ARM Segment user
[ 1274.330000] Control: c000717f Table: 36ff0000 DAC: 00000015
[ 1274.330000] Process ubiattach (pid: 787, stack limit = 0xc6f76270)
[ 1274.330000] Stack: (0xc6f77e30 to 0xc6f78000)
[ 1274.330000] 7e20: c6f2dca0 c01fc0c4 00000000 c6f2dca0
[ 1274.330000] 7e40: c6f51800 ffffffea c03f2528 c01fc3e8 00000000 000000d2 c01f40d0 00000000
[ 1274.330000] 7e60: 000000d0 c6f2dcac 333337d3 c7973800 c6f2dcbc c6f51800 c6f2dca4 c0092a40
[ 1274.330000] 7e80: 000000d2 333337d3 c7973800 00000000 c6f51800 c7973800 00000800 00000000
[ 1274.330000] 7ea0: 00000200 c01f40e4 c6f77ec4 000007ff 00000068 c7810260 c7409834 bef07ae8
[ 1274.330000] 7ec0: c7973800 40186f40 00000003 c0026fe4 c6f76000 00000000 0000b858 c01f49b0
[ 1274.330000] 7ee0: ffffffff 00000006 00000000 00000000 00000000 00000000 c797cb94 bef07ae8
[ 1274.330000] 7f00: 40186f40 c00a9194 c6fe8005 00000000 c740bdd4 c797cb94 00000101 00000004
[ 1274.330000] 7f20: 00000000 00000000 00000000 c6e8a228 0000bf54 00014a3c c6f75560 00000000
[ 1274.330000] 7f40: 00000000 00000000 00000003 c6fe8000 c6e8a220 00000003 c6e8a228 00000020
[ 1274.330000] 7f60: c6fe8000 c6e8a220 bef07ae8 40186f40 00000003 c0026fe4 c6f76000 00000000
[ 1274.330000] 7f80: 0000b858 c00a96a0 00000000 00000000 0000bf54 00000003 0000bf54 bef07ae8
[ 1274.330000] 7fa0: 00000036 c0026e60 00000003 0000bf54 00000003 40186f40 bef07ae8 00000004
[ 1274.330000] 7fc0: 00000003 0000bf54 bef07ae8 00000036 bef07d14 0000be7c 00014a5c 0000b858
[ 1274.330000] 7fe0: 4038c590 bef07ac4 00009739 4038c59c 60000010 00000003 00000000 00000000
[ 1274.330000] [<c0098a50>] (kmem_cache_destroy+0x40/0xfc) from [<c01fc0c4>] (ubi_scan_destroy_si+0x240/0x254)
[ 1274.330000] [<c01fc0c4>] (ubi_scan_destroy_si+0x240/0x254) from [<c01fc3e8>] (ubi_scan+0x310/0xa0c)
[ 1274.330000] [<c01fc3e8>] (ubi_scan+0x310/0xa0c) from [<c01f40e4>] (ubi_attach_mtd_dev+0x3fc/0xa48)
[ 1274.330000] [<c01f40e4>] (ubi_attach_mtd_dev+0x3fc/0xa48) from [<c01f49b0>] (ctrl_cdev_ioctl+0xcc/0x164)
[ 1274.330000] [<c01f49b0>] (ctrl_cdev_ioctl+0xcc/0x164) from [<c00a9194>] (do_vfs_ioctl+0x80/0x554)
[ 1274.330000] [<c00a9194>] (do_vfs_ioctl+0x80/0x554) from [<c00a96a0>] (sys_ioctl+0x38/0x58)
[ 1274.330000] [<c00a96a0>] (sys_ioctl+0x38/0x58) from [<c0026e60>] (ret_fast_syscall+0x0/0x2c)
[ 1274.330000] Code: eb08712d e5943048 e5942044 e1a00004 (e5823004)
[ 1274.335000] ---[ end trace db9da4f5c3ce4a20 ]---
[ 1279.860000] AR6000 disconnected
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 1967 bytes
Desc: not available
URL: <http://lists.openmoko.org/pipermail/community/attachments/20120115/01e6f380/attachment.bin>
More information about the community
mailing list