Re: barebox state alias with same name as node doesn't work

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 17/01/2019 21:10, Andrey Smirnov wrote:
On Thu, Jan 17, 2019 at 8:16 AM Ian Abbott <abbotti@xxxxxxxxx> wrote:

Hi,

All the examples of "barebox,state" compatible nodes I can find in
Barebox seem to follow this basic pattern:

/ {
    /* ... */
    aliases {
      /* ... */
      state = &state;
    };
    /* ... */
    state: state {
      magic = <0xdeadbeef>; /* or whatever */
      compatible = "barebox,state";
      /* ... */
    };
    /* ... */
};

Note that the alias name is the same as the node name in the above example.

However, when I try to follow that pattern for my own board, I get an
error (-EINVAL):

ERROR: register_device: already registered state
[snip]
I'm currently using Barebox 2018.12.0, but I don't see any relevant
changes in Barebox 2019.01.0 or barebox-next.


This should be fixed by:
http://lists.infradead.org/pipermail/barebox/2018-November/035432.html
I don't think it is a part of 2018.12.0, though

That explains it! I've now updated to 2019.01.0 to pick up the change and it seems to work now. Thanks for the help.

--
-=( Ian Abbott <abbotti@xxxxxxxxx> || Web: www.mev.co.uk )=-
-=( MEV Ltd. is a company registered in England & Wales. )=-
-=( Registered number: 02862268.  Registered address:    )=-
-=( 15 West Park Road, Bramhall, STOCKPORT, SK7 3JZ, UK. )=-

_______________________________________________
barebox mailing list
barebox@xxxxxxxxxxxxxxxxxxx
http://lists.infradead.org/mailman/listinfo/barebox



[Index of Archives]     [Linux Embedded]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux