several bugfixes/workarounds in mtd snapshot of 20041226 && 2.4.28

David Woodhouse dwmw2 at infradead.org
Wed Jan 5 12:36:12 EST 2005


On Wed, 2004-12-29 at 15:10 +0100, Frantisek Rysanek wrote:
> 1) if you flush the partition table and issue a BLKRRPART 
> (i.e., you re-partition the diskonchip), the reported device 
> size shrinks to one half of the original. If you do this again 
> before a reboot, the size shrinks again (now one quarter).
> Seems like the driver would re-init device size to a size denominated in 1k blocks,
> rather than sectors (512B).

Committed. Thanks.

> 2) in my DiskOnChip-only setup, CONFIG_MTD_MAP_BANK_WIDTH_1 
> is missing in the .config. I've added that straight to $LINUX/include/linux/map.h

I think that's a Config.in bug -- it shouldn't happen on 2.6.

> 3) two #includes seem to be missing in $MTD/nand/diskonchip.c

rslib.h was already there; I've added moduleparam.h which was not.

> 4) the Reed-Solomon library hooks are messed up in $LINUX/lib/Config.in

Committed; thanks.

-- 
dwmw2





More information about the linux-mtd mailing list