State Framework and dtb

Sascha Hauer s.hauer at pengutronix.de
Thu Mar 30 23:21:40 PDT 2017


On Thu, Mar 30, 2017 at 01:33:26PM +0300, Çağlar Kilimci wrote:
> Hi,
> 
> >>   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 '<>'
> It's alright. I applied the changes, but still no registered state
> instances there. Similarly, if I free stored device tree and load it
> back again; before probe it, I can observe state like this:

I should have never implemented this freeing of the stored device tree.
There are too many pointers in the code to nodes of this tree. Please
do not use this free/load device tree feature for state. So you edited
the devicetree in the barebox source code, built a new binary with it
and started it. Now when you enter "of_dump /state at 0" you should
see the state node you created. Is that what happens?

> 
> I appended many configs even if I do not need all of them:

The configs seem to have everything necessary

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