lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:   Mon, 27 May 2019 14:14:03 +0200
From:   Loys Ollivier <lollivier@...libre.com>
To:     Atish Patra <atish.patra@....com>, linux-kernel@...r.kernel.org
Cc:     mark.rutland@....com, Jonathan Corbet <corbet@....net>,
        Albert Ou <aou@...s.berkeley.edu>, linux-doc@...r.kernel.org,
        ard.biesheuvel@...aro.org, catalin.marinas@....com,
        Anup Patel <Anup.Patel@....com>, Zong Li <zong@...estech.com>,
        Atish Patra <atish.patra@....com>,
        Nick Kossifidis <mick@....forth.gr>,
        Palmer Dabbelt <palmer@...ive.com>,
        "paul.walmsley\@sifive.com" <paul.walmsley@...ive.com>,
        Karsten Merker <merker@...ian.org>,
        linux-riscv@...ts.infradead.org,
        "marek.vasut\@gmail.com" <marek.vasut@...il.com>,
        linux-arm-kernel <linux-arm-kernel@...ts.infradead.org>
Subject: Re: [v4 PATCH] RISC-V: Add an Image header that boot loader can parse.

On Thu 23 May 2019 at 21:18, Atish Patra <atish.patra@....com> 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.
>
> This header is based on ARM64 boot image header and provides an
> opportunity to combine both ARM64 & RISC-V image headers in future.
>
> Also make sure that PE/COFF header can co-exist in the same image so
> that EFI stub can be supported for RISC-V in future. EFI specification
> needs PE/COFF image header in the beginning of the kernel image in order
> to load it as an EFI application. In order to support EFI stub, code0
> should be replaced with "MZ" magic string and res4(at offset 0x3c)
> should point to the rest of the PE/COFF header (which will be added
> during EFI support).
>
> Tested on both QEMU and HiFive Unleashed using OpenSBI + U-Boot + Linux.

Thanks Atish, happy to have this support that makes the boot process
more straightforward.
Tested on HiFive Unleashed using OpenSBI + U-Boot v2019.07-rc2 + Linux.

>
> Signed-off-by: Atish Patra <atish.patra@....com>
> Reviewed-by: Karsten Merker <merker@...ian.org>
> Tested-by: Karsten Merker <merker@...ian.org> (QEMU+OpenSBI+U-Boot)
Tested-by: Loys Ollivier <lollivier@...libre.com>

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ