Skip to contentSkip to conversation

if flash_size is less than megabyte

DISCUSSION Yong-iL Joh 1 participant 1 message Aug 1, 2000 Memory technology devices (MTD)

lore
Share & tools
lore
#0 lore raw

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]