Skip to contentSkip to conversation

Is mtdblock_ro to be used only with 512byte page size flash only?

DISCUSSION Max Stirling 1 participant 2 messages Feb 8, 2008 Memory technology devices (MTD)

lore
Share & tools
lore
#0 lore raw

In mtdblock_ro code, mtdblock_readsect function calls mtd->read passing a hard coded parameter of 512 (the third parameter).

Is this refering to 512 bytes data which is like one page in case of the flash I am using? If that is the case then can this block RO code be used only with flash which has a 512 data size?

M.S

begin:vcard
fn:M S
n:S;M
version:2.1
end:vcard

#1 lore raw
Quoted 5 lines · Max Stirling

In mtdblock_ro code, mtdblock_readsect function calls mtd->read passing a hard coded parameter of 512 (the third parameter).

Is this refering to 512 bytes data which is like one page in case of the flash I am using? If that is the case then can this block RO code be used only with flash which has a 512 data size?

M.S

Ok this is the sector size.

begin:vcard
fn:M S
n:S;M
version:2.1
end:vcard