public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Tom Rini <trini@konsulko.com>
To: u-boot@lists.denx.de
Subject: [PATCH] fvp: Add support for loading Android boot images via semihosting
Date: Tue, 14 Apr 2020 21:19:55 -0400	[thread overview]
Message-ID: <20200415011955.GO27851@bill-the-cat> (raw)
In-Reply-To: <CAMn1gO4qKA_JStVbwnsi1oL3=BJ67jwvnYtwEMz9XophqhZPEg@mail.gmail.com>

On Tue, Apr 14, 2020 at 10:11:06AM -0700, Peter Collingbourne wrote:
> On Mon, Apr 6, 2020 at 11:30 AM Ryan Harkin <ryan.harkin@linaro.org> wrote:
> 
> >
> > On Mon, 6 Apr 2020 at 19:25, Peter Collingbourne <pcc@google.com> wrote:
> >
> >> On Mon, Apr 6, 2020 at 10:40 AM Ryan Harkin <ryan.harkin@linaro.org>
> >> wrote:
> >>
> >>> Hi Peter,
> >>>
> >>> This looks good to me, but I have a quick question below.
> >>>
> >>> On Sat, 4 Apr 2020 at 03:58, Peter Collingbourne <pcc@google.com> wrote:
> >>>
> >>>> FVP now loads an Android boot image named boot.img if available,
> >>>> otherwise it falls back to the existing code path.
> >>>>
> >>>> Signed-off-by: Peter Collingbourne <pcc@google.com>
> >>>> ---
> >>>>  configs/vexpress_aemv8a_semi_defconfig |  2 ++
> >>>>  include/configs/vexpress_aemv8a.h      | 30 +++++++++++++++++---------
> >>>>  2 files changed, 22 insertions(+), 10 deletions(-)
> >>>>
> >>>> diff --git a/configs/vexpress_aemv8a_semi_defconfig
> >>>> b/configs/vexpress_aemv8a_semi_defconfig
> >>>> index f31baab197..b52c761dee 100644
> >>>> --- a/configs/vexpress_aemv8a_semi_defconfig
> >>>> +++ b/configs/vexpress_aemv8a_semi_defconfig
> >>>> @@ -14,6 +14,8 @@ CONFIG_BOOTARGS="console=ttyAMA0
> >>>> earlycon=pl011,0x1c090000 debug user_debug=31 l
> >>>>  # CONFIG_DISPLAY_CPUINFO is not set
> >>>>  # CONFIG_DISPLAY_BOARDINFO is not set
> >>>>  CONFIG_SYS_PROMPT="VExpress64# "
> >>>> +CONFIG_ANDROID_BOOT_IMAGE=y
> >>>> +CONFIG_CMD_ABOOTIMG=y
> >>>>  # CONFIG_CMD_CONSOLE is not set
> >>>>  # CONFIG_CMD_XIMG is not set
> >>>>  # CONFIG_CMD_EDITENV is not set
> >>>> diff --git a/include/configs/vexpress_aemv8a.h
> >>>> b/include/configs/vexpress_aemv8a.h
> >>>> index 9a9cec414c..4f3a792f49 100644
> >>>> --- a/include/configs/vexpress_aemv8a.h
> >>>> +++ b/include/configs/vexpress_aemv8a.h
> >>>> @@ -177,16 +177,26 @@
> >>>>                                 "initrd_addr=0x88000000\0"      \
> >>>>                                 "fdtfile=devtree.dtb\0"         \
> >>>>                                 "fdt_addr=0x83000000\0"         \
> >>>> -                               "fdt_high=0xffffffffffffffff\0" \
> >>>> -                               "initrd_high=0xffffffffffffffff\0"
> >>>>
> >>>
> >>> Why did you move these two inside the 'if' statement below? Is it
> >>> because you explicitly don't want them set when booting Android?
> >>>
> >>
> >> Yes. We can't have these set when loading an Android boot image because
> >> they instruct the bootloader to use the device tree/initrd in place instead
> >> of copying them to another location, and since we're already using the
> >> kernel in place this may result in the kernel overwriting the device tree
> >> or initrd when it initializes its own BSS since they appear right after the
> >> kernel in the boot image format.
> >>
> >
> > Ok, thanks for the clarification. That's fine by me.
> >
> > Reviewed-by: Ryan Harkin <ryan.harkin@linaro.org>
> >
> 
> Thanks for the review! Do you know what is the next step for getting this
> patch landed in master? I read https://www.denx.de/wiki/U-Boot/Patches but
> unfortunately I did not get a clear idea of what the next step is.

It's on me to pick up and I will soon, thanks!

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 659 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20200414/7ce609e4/attachment.sig>

  reply	other threads:[~2020-04-15  1:19 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-04-04  2:58 [PATCH] fvp: Add support for loading Android boot images via semihosting Peter Collingbourne
     [not found] ` <CAD0U-hK1uPsCzkJJ5SybxYNGjStFon1ybHfZ490p8OrHinUz0w@mail.gmail.com>
2020-04-06 18:24   ` Peter Collingbourne
2020-04-06 18:30     ` Ryan Harkin
2020-04-14 17:11       ` Peter Collingbourne
2020-04-15  1:19         ` Tom Rini [this message]
2020-04-16  9:37 ` Linus Walleij
2020-04-24 17:11 ` Tom Rini

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=20200415011955.GO27851@bill-the-cat \
    --to=trini@konsulko.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox