UBI attach and mounting problem after rebooting
Yang, Xiaopeng
xiaopeng.yang at windriver.com
Thu Feb 19 17:14:54 EST 2009
I had the same problem before, but seems works fine when not using "auto
resize" flag.
Xiaopeng
Subramani Venkatesh 写道:
> Hi,
> I am currently using UBIFS on NAND which has 128KiB Erase black, 2048
> Pages, 512 Sub-Page. Linux Kernel-2.6.27.
> I followed instructions from mtd-infradead to create UBIFS image...
> I am facing attaching and mounting issues on UBIFS images which is
> "Dynamic" and "auto resize". Though I am successful in mounting for
> the first time (after ubiformat), but I am failing after rebooting.
> Please find below log for more details.
>
> First time after flashing Successfull in attaching and mouting filesystem
> ---------------------------------------------------------------------------
>
> UBI: attaching mtd4 to ubi0
> UBI: physical eraseblock size: 131072 bytes (128 KiB)
> UBI: logical eraseblock size: 129024 bytes
> UBI: smallest flash I/O unit: 2048
> UBI: sub-page size: 512
> UBI: VID header offset: 512 (aligned 512)
> UBI: data offset: 2048
> UBI: volume 0 ("rootfs") re-sized from 732 to 787 LEBs
> UBI: attached mtd4 to ubi0
> UBI: MTD device name: "System-NAND"
> UBI: MTD device size: 100 MiB
> UBI: number of good PEBs: 798
> UBI: number of bad PEBs: 2
> UBI: max. allowed volumes: 128
> UBI: wear-leveling threshold: 4096
> UBI: number of internal volumes: 1
> UBI: number of user volumes: 1
> UBI: available PEBs: 0
> UBI: total number of reserved PEBs: 798
> UBI: number of PEBs reserved for bad PEB handling: 7
> UBI: max/mean erase counter: 0/0
> UBI: background thread "ubi_bgt0d" started, PID 351
>
> UBIFS: mounted UBI device 0, volume 0, name "rootfs"
> UBIFS: file system size: 84510720 bytes (82530 KiB, 80 MiB, 655 LEBs)
> UBIFS: journal size: 9033728 bytes (8822 KiB, 8 MiB, 71 LEBs)
> UBIFS: default compressor: LZO
> UBIFS: media format 4, latest format 4
> VFS: Mounted root (ubifs filesystem).
> Freeing init memory: 152K
> UBIFS: background thread "ubifs_bgt0_0" started, PID 402
>
>
> BusyBox v1.6.1 (2008-07-17 12:54:29 CDT) Built-in shell (ash)
> Enter 'help' for a list of built-in commands.
>
> /bin/sh: can't access tty; job control turned off
> # hotplug used greatest stack depth: 5828 bytes left
> hotplug used greatest stack depth: 5720 bytes left
>
> #
> #
> #
>
>
> After rebooting, ubiattachment fails...
> --------------------------------------------------------------------
> 0x06940000-0x20000000 : "File System-NAND"
> UBI: attaching mtd4 to ubi0
> UBI: physical eraseblock size: 131072 bytes (128 KiB)
> UBI: logical eraseblock size: 129024 bytes
> UBI: smallest flash I/O unit: 2048
> UBI: sub-page size: 512
> UBI: VID header offset: 512 (aligned 512)
> UBI: data offset: 2048
> UBI error: ubi_io_read: error -74 while reading 64 bytes from PEB
> 798:0, read 64 bytes
> UBI error: ubi_io_read: error -74 while reading 64 bytes from PEB
> 799:0, read 64 bytes
> UBI error: ubi_read_volume_table: the layout volume was not found
> UBI error: ubi_init: cannot attach mtd4
> UBI error: ubi_init: UBI error: cannot initialize UBI, error -22
> input: omap_twl4030keypad as /class/input/input0
> twl4030_rtc twl4030_rtc: rtc core: registered twl4030_rtc as rtc0
> Driver for 1-wire Dallas network protocol.
> omap_hdq omap_hdq.0: OMAP HDQ Hardware Rev 0.5. Driver in Interrupt mode
>
> Can someone suggest me what might be going wrong...
>
>
> Thanks,
> Subbu
>
> ______________________________________________________
> Linux MTD discussion mailing list
> http://lists.infradead.org/mailman/listinfo/linux-mtd/
>
More information about the linux-mtd
mailing list