Re: JFFS2 and INFTL compatibility

Dan Brown
2006-02-09T14:50:46Z

Braden Simpson wrote:
> What do I need to do to stop the INFTL driver from corrupting the JFFS2
> partition?

Here's the deal. Basically, the INFTL driver was written assuming it's
the only driver using the device. However, I believe you can work
around this.

When the INFTL driver is loaded (or when your kernel boots, if it's
compiled in), it searches through each MTD device. It rejects anything
that isn't a DiskOnChip. For each DiskOnChip, it scans for the *first*
BDTL partition, and mounts it as an INFTL volume. It can't distinguish
between a corrupted INFTL volume and something that isn't INFTL at all
(such as JFFS2).

So, make sure your INFTL partition is FIRST, then your jffs2. If this
was already the case for you, I'll have to give this some more thought.

The relevant code is find_boot_record() in inftlmount.c.

You mentioned that you had to patch fill_autooob_layout(). If you think
this is relevant to other users, please consider posting your changes
and the reason for them on this list.

Good luck!

-Dan