if flash_size is less than megabyte
I'm working on Intel BootBlock Flash.
if mtd->size is less than a megabyte, kernel panic. :(
in ftl.c, here is a tiny patch.
===================================================================
RCS file: /exports/misc/embedded/cvs/linux/drivers/mtd/ftl.c,v retrieving revision 1.3
diff -r1.3 ftl.c
266c266
< loff_t offset;
---
Quoted 1 line
loff_t offset, max_offset;
268a269
Quoted 1 line
max_offset = (0x100000<part->mtd->size)?0x100000:part->mtd->size;
271c272
< offset < 0x100000;
---
Quoted 1 line
offset < max_offset;
283c284
< if (offset == 0x100000) {
---
Quoted 1 line
if (offset == max_offset) {Signature · 5 lines
Joh, Yong-iL E-mail: [email protected] [email protected] To unsubscribe, send "unsubscribe mtd" to [email protected]