[RESEND PATCH] ppc: P2020RDB: add environment partition support

Renaud Barbier renaud.barbier at ge.com
Wed Apr 2 08:01:43 PDT 2014


On 02/04/2014 15:35, Alexander Aring wrote:
>> -
>> > +	devfs_add_partition("nor0", 0xf60000, 0x8000, DEVFS_PARTITION_FIXED,
>> > +			"env0");
>> > +	devfs_add_partition("nor0", 0xf80000, 0x80000, DEVFS_PARTITION_FIXED,
>> > +			"self0");
> I think this should be:
> 
> 	devfs_add_partition("nor0", 0xf60000, SZ_512K, DEVFS_PARTITION_FIXED,
> 			"self0");
> 	devfs_add_partition("nor0", 0xf60000 + SZ_512K, SZ_32K, DEVFS_PARTITION_FIXED,
> 			"env0");
> 
> or your version is still correct? Or why you placed the env before self0 with a
> little room there?


The reset vector on this PPC architecture is at the top of the memory
range (0xfffffffc) so the barebox area should be at the top of the flash.

The flash sectors are 128KB so I placed the environment at the start of
previous sector. It is indeed a lots of space lost for environment.







More information about the barebox mailing list