Skip to contentSkip to conversation

UBIFS mount failure on NOR flash

DISCUSSION Philby John 2 participants 3 messages Jun 15, 2010 Memory technology devices (MTD)

lore
Share & tools
lore
#0 lore raw

Hello,

Platform: Cavium CN5020
Filesystem: UBIFS
Flash Type: NOR
Flash Size: 8MB
Partition Details Kernel Log:
Creating 2 MTD partitions on "phys_mapped_flash":
0x000000000000-0x000000700000 : "Octeon BOOT partition" 0x000000700000-0x000000800000 : "Octeon test partition"

$mount -t ubifs ubi1:test /mnt/nor
UBIFS error (pid 851): init_constants_early: too few LEBs (12), min. is 17
mount: wrong fs type, bad option, bad superblock on ubi1:test,
missing codepage or helper program, or other error
(for several filesystems (e.g. nfs, cifs) you might need a /sbin/mount.<type> helper program)
In some cases useful info is found in syslog - try dmesg | tail or so

But JFFS2 is able to mount the same partition flawlessly. Shouldn't UBIFS be able to do the same? What I would like to know is, is this the expected behavior or a bug? If its a bug I would like to look into it.

Thanks and regards,
Philby

#1 lore raw
Quoted 22 lines · Philby John

Hello,

Platform: Cavium CN5020
Filesystem: UBIFS
Flash Type: NOR
Flash Size: 8MB
Partition Details Kernel Log:
Creating 2 MTD partitions on "phys_mapped_flash":
0x000000000000-0x000000700000 : "Octeon BOOT partition" 0x000000700000-0x000000800000 : "Octeon test partition"

$mount -t ubifs ubi1:test /mnt/nor
UBIFS error (pid 851): init_constants_early: too few LEBs (12), min. is 17
mount: wrong fs type, bad option, bad superblock on ubi1:test,
missing codepage or helper program, or other error
(for several filesystems (e.g. nfs, cifs) you might need a /sbin/mount.<type> helper program)
In some cases useful info is found in syslog - try dmesg | tail or so

Quoted 3 lines

But JFFS2 is able to mount the same partition flawlessly. Shouldn't UBIFS be able to do the same? What I would like to know is, is this the expected behavior or a bug? If its a bug I would like to look into it.

Yes, this is expected. For such a tiny flash partition you should rather use JFFS2. I've just created a FAQ entry for you:

http://www.linux-mtd.infradead.org/faq/ubifs.html#L_few_lebs

Signature · 2 lines
Best Regards,
Artem Bityutskiy (Артём Битюцкий)
#2 lore raw
Quoted 23 lines · Artem Bityutskiy
Quoted 22 lines · Philby John

Hello,

Platform: Cavium CN5020
Filesystem: UBIFS
Flash Type: NOR
Flash Size: 8MB
Partition Details Kernel Log:
Creating 2 MTD partitions on "phys_mapped_flash":
0x000000000000-0x000000700000 : "Octeon BOOT partition" 0x000000700000-0x000000800000 : "Octeon test partition"

$mount -t ubifs ubi1:test /mnt/nor
UBIFS error (pid 851): init_constants_early: too few LEBs (12), min. is 17
mount: wrong fs type, bad option, bad superblock on ubi1:test,
missing codepage or helper program, or other error (for several filesystems (e.g. nfs, cifs) you might need a /sbin/mount.<type> helper program)
In some cases useful info is found in syslog - try dmesg | tail or so

Quoted 9 lines
Quoted 3 lines

But JFFS2 is able to mount the same partition flawlessly. Shouldn't UBIFS be able to do the same? What I would like to know is, is this the expected behavior or a bug? If its a bug I would like to look into it.

Yes, this is expected. For such a tiny flash partition you should rather use JFFS2. I've just created a FAQ entry for you:

http://www.linux-mtd.infradead.org/faq/ubifs.html#L_few_lebs

Okay, thanks for the clarification.

Regards,
Philby