Skip to contentSkip to conversation

how could block device read OOB?

DISCUSSION Bily 2 participants 2 messages Aug 18, 2008 Memory technology devices (MTD)

lore
Share & tools
lore

Bily

author
#0 lore raw

hi,all,
Maybe this question is easy,but I just confused. I use my nand chip as a mtd block device.now I open mtdblock by using the "open()" function. and I want to read the OOB part by use the mtdblock device.now I want to know if I could read the OOB by operating an mtd block device or only I use the mtd char device could I solve this problem .Thanks!~

Bily
2008-08-18

#1 lore raw
Quoted 2 lines · Bily

Maybe this question is easy,but I just confused. I use my nand chip
as a mtd block device.now I open mtdblock by using the "open()" function. and I want to read the OOB part by use the mtdblock device.now I want to know if I could read the OOB by operating an mtd block device or only I use the mtd char device could I solve this problem .Thanks!~

Use the char device to read and write the OOB.

/Ricard
--
Ricard Wolf Wanderlöf ricardw(at)axis.com
Axis Communications AB, Lund, Sweden www.axis.com
Phone +46 46 272 2016 Fax +46 46 13 61 30