[PATCH 0/2] drivers/mtd: add a core

Robert Jarzmik robert.jarzmik at free.fr
Tue Dec 13 05:51:10 EST 2011


Sascha Hauer <s.hauer at pengutronix.de> writes:

> I created the nand_oob device mainly for debugging purposes. It can be
> convenient to be able to see the oob data. As this has no practical
> use besides debugging it can be easily replaced with an interleaved
> data/oob device. The oob device is quite inconvenient to use anyway
> since it requires some calculating to get the oob data for a given
> page.
True. What we would need to make it simple :
 - have arithmetic expressions in hush
 - have a "dd" command with options skip,bs,count
   => that is actually a requirement to flash (as cp uses blocks of 4096, while
   flash with oob wants block of writesize+oobsize which are seldom multiples of
   512).

I was thinking that a "dd" command would be handy. Would you accept it in
barebox ?

Cheers.

-- 
Robert



More information about the barebox mailing list