Skip to contentSkip to conversation

onenand_2x_program: optional or required ?

DISCUSSION David Wagner 1 participant 1 message Apr 27, 2011 Memory technology devices (MTD)

lore
Share & tools
lore
#0 lore raw

Hi,

I have a board with a 2-planes OneNAND chip and, for the purpose of a tutorial, I'm trying to put a squashfs rootfs on it.
I noticed that when the kernel doesn't have the CONFIG_MTD_ONENAND_2X_PROGRAM option, it prints error like:

[    4.946594] SQUASHFS error: squashfs_read_data failed to read block
0x224366
[    4.954437] SQUASHFS error: Unable to read metadata cache entry [224366]
[    4.961791] SQUASHFS error: Unable to read inode 0xbf70504

and fails to mount the squashfs.

Can someone confirm or invalidate that this option really is necessary when dealing with 2-planes onenands or is it merely meant to be an improvement for supported chips ? Will flash-oriented filesystems also have that problem w/o the option ?

I thought this option only affected write-functions but it seems it also has an impact on reads.

Thanks

Signature · 4 lines
David Wagner, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com