There is a minor bug in yaffs_mtdif2.c when converting from blockNo to mtd offsets. If the offset ends up being > 2^31-1, then it gets converted to a negative number, and then the loff_t gets stuff up. However in general mtd supports up to 4GB (in theory, although I've found a bunch of other things that make this difficult). Anyway, I've attached a pretty trivial patch which adds a simple 2 line conversion function, and calls this when necessary. Andre -- Bluewater Systems Ltd - ARM Technology Solutions Centre Andre Renaud Bluewater Systems Ltd Phone: +64 3 3779127 (Aus 1 800 148 751) Level 17, 119 Armagh St Fax: +64 3 3779135 PO Box 13889 Email: arenaud@bluewatersys.com Christchurch Web: http://www.bluewatersys.com New Zealand