2.6.37, NAND mtd/UBI problem
Gennady Kupava
gb at bsdmn.com
Sun Jan 16 20:28:45 CET 2011
Hi, Lars-Peter & list.
В Срд, 05/01/2011 в 20:26 +0100, Lars-Peter Clausen пишет:
> I've just pushed the 2.6.37 trees for the GTA02 to the openmoko git kernel repo[1].
First of all, thanks for your work!
Here i have quite big problem with this kernel -> ubi doesn't want to
work. It even can't mount rootfs (which is UBIfs), because 'UBI is
read-only". It worked well with same options with 2.6.34.
Booted from sd and attempting to mount it manually in following way:
#ubiattach -m 6 -O 2048
UBI device number 0, total 1973 LEBs (250523648 bytes, 238.9 MiB),
available 3 LEBs (380928 bytes, 372.0 KiB), LEB size 126976 bytes (124.0
KiB)
#mount -t ubifs ubi0:om-gta02-rootfs /mnt/flash/ -o
compr=zlib,no_chk_data_crc
mount: block device ubi0:om-gta02-rootfs is write-protected, mounting
read-only
I am getting following kernel errors:
92.660000] UBI: attaching mtd6 to ubi0
[ 92.670000] UBI: physical eraseblock size: 131072 bytes (128 KiB)
[ 92.680000] UBI: logical eraseblock size: 126976 bytes
[ 92.690000] UBI: smallest flash I/O unit: 2048
[ 92.700000] UBI: sub-page size: 512
[ 92.710000] UBI: VID header offset: 2048 (aligned 2048)
[ 92.720000] UBI: data offset: 4096
[ 92.770000] uncorrectable error :
[ 92.780000] UBI error: ubi_io_read: error -74 (ECC error) while
reading 64 bytes from PEB 255:0, read 64 bytes
[ 92.790000] uncorrectable error :
[ 92.790000] uncorrectable error :
[ 92.800000] UBI error: ubi_io_read: error -74 (ECC error) while
reading 512 bytes from PEB 255:2048, read 512 bytes
[ 92.860000] uncorrectable error :
[ 92.860000] UBI error: ubi_io_read: error -74 (ECC error) while
reading 64 bytes from PEB 534:0, read 64 bytes
[ 92.870000] uncorrectable error :
[ 92.870000] uncorrectable error :
[ 92.890000] UBI error: ubi_io_read: error -74 (ECC error) while
reading 512 bytes from PEB 534:2048, read 512 bytes
[ 93.180000] uncorrectable error :
[ 93.180000] UBI error: ubi_io_read: error -74 (ECC error) while
reading 64 bytes from PEB 1553:0, read 64 bytes
[ 93.190000] uncorrectable error :
[ 93.190000] uncorrectable error :
[ 93.200000] UBI error: ubi_io_read: error -74 (ECC error) while
reading 512 bytes from PEB 1553:2048, read 512 bytes
[ 93.320000] UBI: max. sequence number: 3382
[ 93.370000] UBI: attached mtd6 to ubi0
[ 93.380000] UBI: MTD device name: "rootfs"
[ 93.390000] UBI: MTD device size: 246 MiB
[ 93.400000] UBI: number of good PEBs: 1973
[ 93.410000] UBI: number of bad PEBs: 0
[ 93.420000] UBI: number of corrupted PEBs: 0
[ 93.430000] UBI: max. allowed volumes: 128
[ 93.440000] UBI: wear-leveling threshold: 4096
And so on (see full log in attachment)
Same partition working well with .34 kernel
My /proc/cmdline:
console=tty0 loglevel=8 regular_boot glamo_mci.sd_max_clk=15000000
mem=127M panic=20 root=/dev/mmcblk0p2 rootwait
mtdparts=physmap-flash:-(nor);neo1973-nand:0x00040000(u-boot),0x00040000(u-boot_env),0x00800000(kernel),0x000a0000(splash),0x00040000(factory),0x0f6a0000(rootfs) ro
.config is in attachment. i tried radek's config too - same story.
This is quite grave, as i can't boot or mount nand. From sd it is
working pretty well.
> So it would be good if the patches could get some more testing before.
I'll try to test it as soon as it will be working here.
Best regards,
Gennady
-------------- next part --------------
A non-text attachment was scrubbed...
Name: config.gz
Type: application/x-gzip
Size: 13726 bytes
Desc: not available
URL: <http://lists.openmoko.org/pipermail/openmoko-kernel/attachments/20110116/a68ed24b/attachment-0002.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: dmesg.gz
Type: application/x-gzip
Size: 32181 bytes
Desc: not available
URL: <http://lists.openmoko.org/pipermail/openmoko-kernel/attachments/20110116/a68ed24b/attachment-0003.bin>
More information about the openmoko-kernel
mailing list