Skip to contentSkip to conversation

using MEMWRITEOOB problem in NAND flash device

DISCUSSION Paul Wong 2 participants 3 messages Apr 18, 2003 – Apr 19, 2003 Memory technology devices (MTD)

lore
Share & tools
lore

Paul Wong

author
#0 lore raw

Hi All,
I want to restore the oob[5] using ioctl(..,MEMWRITEOOB,..) in NAND
flash device, but it is failure to write anything. Is any protected condition in NAND.C?

Thanks.

Paul

#1 lore raw
Quoted 4 lines · Paul Wong

Hi All,
I want to restore the oob[5] using ioctl(..,MEMWRITEOOB,..) in NAND
flash device, but it is failure to write anything. Is any protected condition in NAND.C?

You _CANNOT_ write a 0 bit to 1 on a FLASH chip. This works the other way round. If you want to restore your block, remove the santity check in erase function of nand.c.

Last answer to this

Signature · 5 lines
Thomas
________________________________________________________________________
linutronix - competence in embedded & realtime linux
http://www.linutronix.de
mail: [email protected]
author
#2 lore raw

Thanks. I got it.

Paul
----- Original Message -----
From: "Thomas Gleixner" <[email protected]>
To: "Paul Wong" <[email protected]>; <[email protected]>; "yaffs list" <[email protected]>
Sent: Saturday, April 19, 2003 12:14 AM
Subject: Re: using MEMWRITEOOB problem in NAND flash device

Quoted 7 lines · Paul Wong
Quoted 4 lines

Hi All,
I want to restore the oob[5] using ioctl(..,MEMWRITEOOB,..) in NAND
flash device, but it is failure to write anything. Is any protected condition in NAND.C?

You _CANNOT_ write a 0 bit to 1 on a FLASH chip. This works the other way round. If you want to restore your block, remove the santity check in

erase

Quoted 12 lines

function of nand.c.

Last answer to this

--
Thomas
________________________________________________________________________
linutronix - competence in embedded & realtime linux
http://www.linutronix.de
mail: [email protected]

Quoted 1 line

--------------------------------------------------------------------------

-------------

Quoted 1 line

This mailing list is hosted by Toby Churchill open software

(www.toby-churchill.org).

Quoted 1 line

If mailing list membership is no longer wanted you can remove yourself

from the list by

Quoted 1 line

sending an email to [email protected] with the text

"unsubscribe"

Quoted 3 lines

(without the quotes) as the subject.