Skip to contentSkip to conversation

block device for 2.0

DISCUSSION Erwin Authried 3 participants 4 messages Nov 16, 2000 – Nov 17, 2000 Memory technology devices (MTD)

lore
Share & tools
lore
#0 lore raw

I have now got all important modules running to support ROM, CFI and RAM with uClinux. I have
used an old version of mtdblk.c (1.14) for block access, for several reasons:
*The current driver uses kernel_thread. I don't know
if/how that could be used in 2.0
* Caching is used. In uClinux, where RAM is valuable, RAM with the size of one erase sector would be wasted. With flashes that have 64KB or 128KB erase sectors, thats a lot of wasted memory.
* When the block driver is used as replacement for the blkmem.c ROM driver, caching isn't of any use at all. I think that will be the main (or the only?) purpose of the blockdriver in uClinux.

I thought it might be best to have the choice between the old, uncached block block driver (for uClinux) or the new driver as a configuration option. Are there any better ideas?

Regards,

Erwin

To unsubscribe, send "unsubscribe mtd" to [email protected]

#1 lore raw
Quoted 3 lines · Erwin Authried

I thought it might be best to have the choice between the old, uncached block block driver (for uClinux) or the new driver as a configuration option. Are there any better ideas?

Makes sense. How about having CONFIG_MTD_BLOCK and CONFIG_MTD_BLOCK_RW just like we currently have for NFTL?

Signature · 6 lines
dwmw2




To unsubscribe, send "unsubscribe mtd" to [email protected]
#2 lore raw
Quoted 8 lines · David Woodhouse
Quoted 3 lines · Erwin Authried

I thought it might be best to have the choice between the old, uncached block block driver (for uClinux) or the new driver as a configuration option. Are there any better ideas?

Makes sense. How about having CONFIG_MTD_BLOCK and CONFIG_MTD_BLOCK_RW just like we currently have for NFTL?

Why not the other way around, i.e. CONFIG_MTD_BLOCK and CONFIG_MTD_BLOCK_RO? The read-only one is more the "special case" than the read-write one...

Nicolas

To unsubscribe, send "unsubscribe mtd" to [email protected]

#3 lore raw
Quoted 2 lines · Nicolas Pitre

Why not the other way around, i.e. CONFIG_MTD_BLOCK and CONFIG_MTD_BLOCK_RO? The read-only one is more the "special case" than the read-write one...

Yep, fine. Erwin, feel free to commit this change if you want to.

Signature · 6 lines
dwmw2




To unsubscribe, send "unsubscribe mtd" to [email protected]