mbox series

[v2,0/4] mkimage: sunxi_egon: add riscv support

Message ID 20210619091838.646779-1-icenowy@aosc.io
Headers show
Series mkimage: sunxi_egon: add riscv support | expand

Message

Icenowy Zheng June 19, 2021, 9:18 a.m. UTC
This patchset tries to make mkimage -T sunxi_egon to be able to generate
an eGON.BT0 image for Allwinner RISC-V SoCs (e.g. D1).

In addition, to keep the compatibility, it will still consider the
architecture to be ARM when no architecture is specified.

Icenowy Zheng (4):
  mkimage: add a flag to describe whether -A is specified
  mkimage: sunxi_egon: refactor for multi-architecture support
  mkimage: sunxi_egon: add support for riscv
  sunxi: specify architecture when generating SPL boot image

 scripts/Makefile.spl |  2 +-
 tools/imagetool.h    |  1 +
 tools/mkimage.c      |  1 +
 tools/sunxi_egon.c   | 86 ++++++++++++++++++++++++++++++++++++++++----
 4 files changed, 82 insertions(+), 8 deletions(-)

Comments

Samuel Holland Aug. 22, 2021, 1:15 a.m. UTC | #1
On 6/19/21 4:18 AM, Icenowy Zheng wrote:
> This patchset tries to make mkimage -T sunxi_egon to be able to generate
> an eGON.BT0 image for Allwinner RISC-V SoCs (e.g. D1).
> 
> In addition, to keep the compatibility, it will still consider the
> architecture to be ARM when no architecture is specified.
> 
> Icenowy Zheng (4):
>   mkimage: add a flag to describe whether -A is specified
>   mkimage: sunxi_egon: refactor for multi-architecture support
>   mkimage: sunxi_egon: add support for riscv
>   sunxi: specify architecture when generating SPL boot image
> 
>  scripts/Makefile.spl |  2 +-
>  tools/imagetool.h    |  1 +
>  tools/mkimage.c      |  1 +
>  tools/sunxi_egon.c   | 86 ++++++++++++++++++++++++++++++++++++++++----
>  4 files changed, 82 insertions(+), 8 deletions(-)

This works great on D1. For the whole series:

Tested-by: Samuel Holland <samuel@sholland.org>
Andre Przywara April 5, 2022, 10:41 p.m. UTC | #2
On Sat, 19 Jun 2021 17:18:34 +0800
Icenowy Zheng <icenowy@aosc.io> wrote:

> This patchset tries to make mkimage -T sunxi_egon to be able to generate
> an eGON.BT0 image for Allwinner RISC-V SoCs (e.g. D1).
> 
> In addition, to keep the compatibility, it will still consider the
> architecture to be ARM when no architecture is specified.

All merged into sunxi/master (which already landed in mainline).

Thanks!
Andre

> 
> Icenowy Zheng (4):
>   mkimage: add a flag to describe whether -A is specified
>   mkimage: sunxi_egon: refactor for multi-architecture support
>   mkimage: sunxi_egon: add support for riscv
>   sunxi: specify architecture when generating SPL boot image
> 
>  scripts/Makefile.spl |  2 +-
>  tools/imagetool.h    |  1 +
>  tools/mkimage.c      |  1 +
>  tools/sunxi_egon.c   | 86 ++++++++++++++++++++++++++++++++++++++++----
>  4 files changed, 82 insertions(+), 8 deletions(-)
>