All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jagan Teki <jagan@amarulasolutions.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [linux-sunxi] [PATCH 2/3] tools: mkimage: Add Allwinner eGON support
Date: Fri, 11 Jan 2019 21:50:02 +0530	[thread overview]
Message-ID: <CAMty3ZAbwgC0ppK8+r4-DYb3xcvUFLf-0c1BVsc1jvm8z8o-oA@mail.gmail.com> (raw)
In-Reply-To: <20190111122454.GH5463@bill-the-cat>

On Fri, Jan 11, 2019 at 5:54 PM Tom Rini <trini@konsulko.com> wrote:
>
> On Fri, Jan 11, 2019 at 12:46:36PM +0530, Jagan Teki wrote:
> > On Sat, Dec 22, 2018 at 7:06 AM Andre Przywara <andre.przywara@arm.com> wrote:
> > >
> > > So far we used the separate mksunxiboot tool for generating a bootable
> > > image for Allwinner SPLs, probably just for historical reasons.
> > >
> > > Use the mkimage framework to generate a so called eGON image the
> > > Allwinner BROM expects.
> > > The new image type is called "sunxi_egon", to differentiate it
> > > from the (still to be implemented) secure boot TOC0 image.
> > >
> > > Signed-off-by: Andre Przywara <andre.przywara@arm.com>
> > > ---
> > >  common/image.c     |   1 +
> > >  include/image.h    |   1 +
> > >  tools/Makefile     |   1 +
> > >  tools/sunxi_egon.c | 136 +++++++++++++++++++++++++++++++++++++++++++++++++++++
> > >  4 files changed, 139 insertions(+)
> > >  create mode 100644 tools/sunxi_egon.c
> > >
> > > diff --git a/common/image.c b/common/image.c
> > > index 3ff713a521..17150093d6 100644
> > > --- a/common/image.c
> > > +++ b/common/image.c
> > > @@ -169,6 +169,7 @@ static const table_entry_t uimage_type[] = {
> > >         {       IH_TYPE_PMMC,        "pmmc",        "TI Power Management Micro-Controller Firmware",},
> > >         {       IH_TYPE_STM32IMAGE, "stm32image", "STMicroelectronics STM32 Image" },
> > >         {       IH_TYPE_MTKIMAGE,   "mtk_image",   "MediaTek BootROM loadable Image" },
> > > +       {       IH_TYPE_SUNXI_EGON, "sunxi_egon",  "Allwinner eGON Boot Image" },
> > >         {       -1,                 "",           "",                   },
> > >  };
> > >
> > > diff --git a/include/image.h b/include/image.h
> > > index 765ffecee0..35f43b3074 100644
> > > --- a/include/image.h
> > > +++ b/include/image.h
> > > @@ -284,6 +284,7 @@ enum {
> > >         IH_TYPE_MTKIMAGE,               /* MediaTek BootROM loadable Image */
> > >         IH_TYPE_IMX8MIMAGE,             /* Freescale IMX8MBoot Image    */
> > >         IH_TYPE_IMX8IMAGE,              /* Freescale IMX8Boot Image     */
> > > +       IH_TYPE_SUNXI_EGON,             /* Allwinner eGON Boot Image */
> > >
> > >         IH_TYPE_COUNT,                  /* Number of image types */
> > >  };
> > > diff --git a/tools/Makefile b/tools/Makefile
> > > index 2c4d91f199..9f2533f048 100644
> > > --- a/tools/Makefile
> > > +++ b/tools/Makefile
> > > @@ -106,6 +106,7 @@ dumpimage-mkimage-objs := aisimage.o \
> > >                         stm32image.o \
> > >                         $(ROCKCHIP_OBS) \
> > >                         socfpgaimage.o \
> > > +                       sunxi_egon.o \
> > >                         lib/crc16.o \
> > >                         lib/sha1.o \
> > >                         lib/sha256.o \
> > > diff --git a/tools/sunxi_egon.c b/tools/sunxi_egon.c
> > > new file mode 100644
> > > index 0000000000..9b38149280
> > > --- /dev/null
> > > +++ b/tools/sunxi_egon.c
> > > @@ -0,0 +1,136 @@
> > > +// SPDX-License-Identifier: GPL-2.0+
> > > +/*
> > > + * (C) Copyright 2018 Arm Ltd.
> > > + */
> > > +
> > > +#include "imagetool.h"
> > > +#include <image.h>
> > > +
> > > +#include "../arch/arm/include/asm/arch-sunxi/spl.h"
> >
> > This can be done as #include <asm/arch/spl.h>
>
> That would break host tools tho, no?

Didn't It still build the tools.

  reply	other threads:[~2019-01-11 16:20 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-12-22  1:34 [U-Boot] [PATCH 0/3] tools: mkimage: Add Allwinner eGON support Andre Przywara
2018-12-22  1:34 ` [U-Boot] [PATCH 1/3] tools: mkimage: Add missing names for imx8mimage and loadables Andre Przywara
2018-12-29 13:39   ` Simon Glass
2019-01-11  7:04   ` [U-Boot] [linux-sunxi] " Jagan Teki
2018-12-22  1:34 ` [U-Boot] [PATCH 2/3] tools: mkimage: Add Allwinner eGON support Andre Przywara
2018-12-29 13:39   ` Simon Glass
2019-01-11  7:16   ` [U-Boot] [linux-sunxi] " Jagan Teki
2019-01-11 12:24     ` Tom Rini
2019-01-11 16:20       ` Jagan Teki [this message]
2018-12-22  1:34 ` [U-Boot] [PATCH 3/3] sunxi: Use mkimage -T sunxi_egon for SPL boot image generation Andre Przywara
2018-12-29 13:39   ` Simon Glass

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAMty3ZAbwgC0ppK8+r4-DYb3xcvUFLf-0c1BVsc1jvm8z8o-oA@mail.gmail.com \
    --to=jagan@amarulasolutions.com \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.