Barebox: Nand flash

Sascha Hauer s.hauer at pengutronix.de
Sat Aug 28 10:13:26 EDT 2010


On Sat, Aug 28, 2010 at 05:45:17PM +0530, Nataraj S Narayan wrote:
> Hi
> 
> on commit a74a26f25477ec65229a57ca15e0f2c56396c69a
> 
> I don't find nand0.rootfs.
> 
> 9263-EK:/  ls /dev/
> 
> /dev/zero           /dev/defaultenv     /dev/mem
> /dev/ram0           /dev/nand0          /dev/nand_oob0
> /dev/phy0           /dev/self_raw       /dev/self0
> /dev/env_raw        /dev/env0

/dev/nand0 is there, so there's only partitioning missing. Try something
like

addpart /dev/nand0 256k(barebox),256k(bareboxenv),2M(kernel),-(rootfs)
nand -a /dev/nand0.*

Normally your environment does this for you.

Note that /dev/nand0.rootfs is not intended for direct use, instead use
/dev/nand0.rootfs.bb. The .bb devices automatically skip bad blocks
while writing on it or reading from it.

Regards,
  Sascha

-- 
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |



More information about the barebox mailing list