mount ubi volume fails: No such device
Lars Michael
lh_post at yahoo.com
Mon Feb 14 07:47:36 EST 2011
--- On Mon, 14/2/11, Artem Bityutskiy <dedekind1 at gmail.com> wrote:
> From: Artem Bityutskiy <dedekind1 at gmail.com>
> Subject: Re: mount ubi volume fails: No such device
> To: "Lars Michael" <lh_post at yahoo.com>
> Cc: linux-mtd at lists.infradead.org
> Date: Monday, 14 February, 2011, 12:01
> On Mon, 2011-02-14 at 00:49 -0800,
> Lars Michael wrote:
> > Here is how i made the UBI image:
> > ./mkfs.ubifs -m 2048 -e 126976 -c 874 -v -Q -r
> ./rootfs rootfs.img
> > ./mkfs.ubifs -m 2048 -e 126976 -c 36 -v -Q -r ./progfs
> progfs.img
> > ./mkfs.ubifs -m 2048 -e 126976 -c 49 -v -Q -r ./datafs
> datafs.img
> > ubinize -o ubi.img -p 128KiB -m 2048 -v
> ubi-config.ini
>
> You also need to give this parameter to UBI:
> vid_hdr_offs=2048
>
> I.e., modprobe ubi mtd=1 vid_hdr_offs=2048
>
> Or if UBI is compiled-in, boot with the following kernel
> argument:
>
> ubi.vid_hdr_offs=2048
>
> With this option UBI will not use sub-pages at all. I think
> it makes
> sense for you to try how it works this way.
>
I believe this is the correct syntax:
[root at M54418TWR /]# insmod ubi mtd=1,2048
UBI error: ubi_init: UBI error: cannot initialize UBI, error -19
insmod: cannot insert '/lib/modules/2.6.29/kernel/drivers/mtd/ubi/ubi.ko': No such device
Unfortunately, booting Linux the NAND flash is now detected bad, so I do not have an mtd1! what is the best way to try to recover? I do not understand how the flash can suddenly become bad!
NAND device: Manufacturer ID: 0x2c, Chip ID: 0xca (Micron NAND 256MiB 3,3V 16-bit)
Bad block table not found for chip 0
Bad block table not found for chip 0
Scanning device for bad blocks
Bad eraseblock 0 at 0x000000000000
Bad eraseblock 1 at 0x000000020000
Bad eraseblock 2 at 0x000000040000
Bad eraseblock 3 at 0x000000060000
Bad eraseblock 4 at 0x000000080000
Bad eraseblock 5 at 0x0000000a0000
Bad eraseblock 6 at 0x0000000c0000
<cut>
Bad eraseblock 2046 at 0x00000ffc0000
Bad eraseblock 2047 at 0x00000ffe0000
No space left to write bad block table
fsl_nfc: NAND Flash not found !
m25p80 spi1.1: at26df081a (1024 Kbytes)
Creating 1 MTD partitions on "Atmel at26df081a SPI Flash chip":
0x000000000000-0x000000100000 : "at26df081a"
DSPI: Coldfire master initialized
ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
Thanks and regards,
- Lars
More information about the linux-mtd
mailing list