Failing to load Barebox Environment

Juergen Beisert jbe at pengutronix.de
Wed Sep 29 05:23:19 EDT 2010


Juergen Beisert wrote:
> Just a note:
>
> You configure:
> > >> devfs_add_partition("nand0", 0x00000, 0x200000, PARTITION_FIXED,
> > >> "self_raw"); dev_add_bb_dev("self_raw", "self0");
> > >> devfs_add_partition("nand0", 0x200000, 0x200000, PARTITION_FIXED,
> > >> "env_raw"); dev_add_bb_dev("env_raw", "env0");
>
> And then:
> > EVB2065> addpart /dev/nand0 4M(barebox)ro,2M(kernel)ro,-(root)
>
> Both must match!
>
> Try instead:
>
> EVB2065> addpart /dev/nand0 256k(barebox)ro,256k(env),2M(kernel)ro,-(root)
>
> jbe

Ups, sorry: 0x200000 != 256k (didn't count the '0' right...)

EVB2065> addpart /dev/nand0 2M(barebox)ro,2M(env),2M(kernel)ro,-(root)

jbe

-- 
Pengutronix e.K.                              | Juergen Beisert             |
Linux Solutions for Science and Industry      | Phone: +49-8766-939 228     |
Vertretung Sued/Muenchen, Germany             | Fax:   +49-5121-206917-5555 |
Amtsgericht Hildesheim, HRA 2686              | http://www.pengutronix.de/  |



More information about the barebox mailing list