lkml.org 
[lkml]   [2015]   [May]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    From
    SubjectRe: [PATCH 2/2] arm: boot: store ATAG structure into DT atags field
    Date
    On Friday 15 May 2015 22:16:24 Pali Rohár wrote:
    > On Friday 15 May 2015 22:12:41 Arnd Bergmann wrote:
    > > On Friday 15 May 2015 21:50:07 Pali Rohár wrote:
    > > > }
    > > >
    > > > }
    > > >
    > > > + /* include the terminating ATAG_NONE */
    > > > + atag_size = (char *)atag - (char *)atag_list +
    > > > sizeof(struct tag_header); + setprop(fdt, "/", "atags",
    > > > atag_list, atag_size);
    > > > +
    > > >
    > > > if (memcount) {
    > > >
    > > > setprop(fdt, "/memory", "reg", mem_reg_property,
    > > >
    > > > 4 * memcount * memsize);
    > >
    > > The property should probably have a DT binding, and be named
    > > "linux,atags".
    > >
    > > It may also help to check if the "linux,atags" property already
    > > exists and not create it otherwise. That way we can put it into the
    > > n900 dts file and have it updated by the compat code, but not expose
    > > the atags on other platforms unless they opt in.
    > >
    > > Arnd
    >
    > Maybe what would help: Is there a way to tell decompressor/kernel to not
    > touch atag memory and then after kernel/board-code starts it save copy
    > of atags? I think it is not possible right now, but correct me if I'm
    > wrong...
    >

    I don't think that is possible without an incompatible change to the
    boot protocol.

    Arnd


    \
     
     \ /
      Last update: 2015-05-15 22:41    [W:3.454 / U:0.000 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site