lkml.org 
[lkml]   [2019]   [Jun]   [28]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: [PATCH v4] RISC-V: Add an Image header that boot loader can parse.
Date
On Fri, 2019-06-28 at 12:09 -0700, Paul Walmsley wrote:
> On Thu, 6 Jun 2019, Atish Patra wrote:
>
> > Currently, the last stage boot loaders such as U-Boot can accept
> > only
> > uImage which is an unnecessary additional step in automating boot
> > process.
> >
> > Add an image header that boot loader understands and boot Linux
> > from
> > flat Image directly.
>
> ...
>
>
> > +#if __riscv_xlen == 64
> > + /* Image load offset(2MB) from start of RAM */
> > + .dword 0x200000
> > +#else
> > + /* Image load offset(4MB) from start of RAM */
> > + .dword 0x400000
> > +#endif
>
> Is there a rationale behind these load offset values?
>

2MB/4MB alignment requirement is mandatory for current RISC-V kernel.
Anup had a patch that tried to remove that but not accepted yet.

https://patchwork.kernel.org/patch/10868465/


>
> - Paul
>
> _______________________________________________
> linux-riscv mailing list
> linux-riscv@lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/linux-riscv
--
Regards,
Atish
\
 
 \ /
  Last update: 2019-06-28 21:44    [W:0.043 / U:23.820 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site