ubiattach error

C J ccs_dba at hotmail.com
Thu Jan 9 12:54:57 EST 2014


I have a small 'ARMv7 Processor rev 2 (v7l)' powered box running Ubuntu 10.04 LTS with kernel 2.6.37  The environment is a squashfs rootfs with a small RW config area:

# df
Filesystem       1K-blocks      Used Available Use% Mounted on
/dev/mtdblock11     246664    246664         0 100% /
ubi1_0                6648       100      6548   2% /.profile

The box boots and operates without problems, however I am trying to access some of the /dev/mtd devices but receive errors when trying to attach:

# /usr/sbin/ubiattach /dev/ubi_ctrl -m 3

[2335587.812500] UBI: attaching mtd3 to ubi2
[2335587.812500] UBI: physical eraseblock size:   131072 bytes (128 KiB)
[2335587.812500] UBI: logical eraseblock size:    129024 bytes
[2335587.812500] UBI: smallest flash I/O unit:    2048
[2335587.812500] UBI: sub-page size:              512
[2335587.812500] UBI: VID header offset:          512 (aligned 512)
[2335587.812500] UBI: data offset:                2048
[2335587.820312] UBI: max. sequence number:       0
[2335587.820312] UBI error: ubi_read_volume_table: the layout volume was not found

Some devices I can access, but most I cannot.  Example: /dev/mtd10 I can attach to but not /dev/mtd5

# /usr/sbin/mtdinfo /dev/mtd10 -u
mtd10
Name:                           backup
Type:                           nand
Eraseblock size:                131072 bytes, 128.0 KiB
Amount of eraseblocks:          320 (41943040 bytes, 40.0 MiB)
Minimum input/output unit size: 2048 bytes
Sub-page size:                  512 bytes
OOB size:                       64 bytes
Character device major/minor:   90:20
Bad blocks are allowed:         true
Device is writable:             true
Default UBI VID header offset:  512
Default UBI data offset:        2048
Default UBI LEB size:           129024 bytes, 126.0 KiB
Maximum UBI volumes count:      128

# /usr/sbin/mtdinfo /dev/mtd5 -u
mtd5
Name:                           initrd
Type:                           nand
Eraseblock size:                131072 bytes, 128.0 KiB
Amount of eraseblocks:          96 (12582912 bytes, 12.0 MiB)
Minimum input/output unit size: 2048 bytes
Sub-page size:                  512 bytes
OOB size:                       64 bytes
Character device major/minor:   90:10
Bad blocks are allowed:         true
Device is writable:             true
Default UBI VID header offset:  512
Default UBI data offset:        2048
Default UBI LEB size:           129024 bytes, 126.0 KiB
Maximum UBI volumes count:      128

Installed utilities are version 1.4.5

Looking for help to find out why I can't attach..

Thanks,

-Craig 		 	   		  


More information about the linux-mtd mailing list