State Framework and dtb

Sascha Hauer s.hauer at pengutronix.de
Wed Mar 29 23:31:39 PDT 2017


On Wed, Mar 29, 2017 at 04:24:11PM +0300, Çağlar Kilimci wrote:
> Hi all,
> 
> Previously, I ask for a help [1] and thankfully Sascha replied with
> helpful comments then I have tried many dts configurations but I still
> could not run state framework.
> 
> My main goal is to update a system using RAUC [2] so I need state
> framework of barebox. I would like to use EEPROM as a storage device
> for barebox state. Here is an example dts that I think, it should have
> work:
> state: state at 0 {
>   magic = <0x27031977>;
>   compatible = "barebox,state";
>   backend-type = "dtb";
>   backend = &state_partition;

This should be a phandle. Sorry, the example I gave you last time was
wrong. It should be

	backend = <&state_partition>;

Note the '<>'


> barebox at Phytec phyCORE AM335x:/ oftree -p

I'm not sure this works as expected. You should rather modify the
devicetree in the barebox binary.

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