problem using jffs2 on DiskOnChip

David Woodhouse dwmw2 at infradead.org
Thu Dec 19 05:14:10 EST 2002


wolff at turnkiek.nl said:
> Short read: 0x10 bytes at 0x000001f0 instead of requested 44 

The DiskOnChip hardware driver hasn't been used much with anything other 
than NFTL. It appears not to do a full read if you ask it to read a range 
of data which crosses a page boundary. Fix it accordingly by putting an 
appropriate loop in instead of...

        /* Don't allow a single read to cross a 512-byte block boundary */
        if (from + len > ((from | 0x1ff) + 1))
                len = ((from | 0x1ff) + 1) - from;

--
dwmw2






More information about the linux-mtd mailing list