From: Tom Rini <trini@konsulko.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [U-Boot,2/2] ARM: add Raspberry Pi 3 64-bit config
Date: Mon, 11 Apr 2016 22:28:40 -0400 [thread overview]
Message-ID: <20160412022840.GE13577@bill-the-cat> (raw)
In-Reply-To: <1459566855-15100-2-git-send-email-swarren@wwwdotorg.org>
On Fri, Apr 01, 2016 at 09:14:15PM -0600, Stephen Warren wrote:
> On all Pis so far, the VC FW provides a short stub to set up the ARM CPU
> before entering the kernel (a/k/a U-Boot for us). This feature is not
> currently supported by the VC FW when booting in 64-bit mode. However,
> this feature will likely appear in the near future, and this U-Boot port
> assumes that such a feature is in place. Without that feature, or a
> temporary workaround described below, U-Boot will not boot.
>
> Once the VC FW does provide the ARM stub, u-boot.bin built for rpi_3 can
> be used drectly as kernel7.img, in the same way as any other RPi port. The
> following config.txt is required:
>
> # Fix mini UART input frequency, and setup/enable up the UART.
> # Without this option, U-Boot will not boot, even if you don't care
> # about the serial console. This option will always be required for
> # all RPi3 use-cases, unless the PL011 UART is used, which is not
> # yet supported by rpi_3* builds of U-Boot.
> enable_uart=1
> # Boot in AArch64 (64-bit) mode.
> # It is possible that a future VC FW will remove the need for this
> # option, instead auto-setting 32-/64-bit mode based on the "kernel"
> # filename present on the SD card.
> arm_control=0x200
>
> Prior to the VC FW providing the ARM boot stub, you can use the following
> steps to build an equivalent stub into the U-Boot binary:
>
> git clone https://github.com/swarren/rpi-3-aarch64-demo.git \
> ../rpi-3-aarch64-demo
> (cd ../rpi-3-aarch64-demo && ./build.sh)
> Build U-Boot for rpi_3 in the usual way
> cat ../rpi-3-aarch64-demo/armstub64.bin u-boot.bin > u-boot.bin.stubbed
> Use u-boot.bin.stubbed as kernel7.img on the Pi SD card.
>
> In this case, the following additional entries are required in config.txt:
>
> # Tell the FW to load the kernel image at address 0, the reset vector.
> kernel_old=1
>
> Signed-off-by: Stephen Warren <swarren@wwwdotorg.org>
> Reviewed-by: Tom Rini <trini@konsulko.com>
Applied to u-boot/master, thanks!
--
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20160411/ef50ab08/attachment.sig>
next prev parent reply other threads:[~2016-04-12 2:28 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-04-02 3:14 [U-Boot] [PATCH 1/2] ARM: allow CONFIG_GICV* not to be defined Stephen Warren
2016-04-02 3:14 ` [U-Boot] [PATCH 2/2] ARM: add Raspberry Pi 3 64-bit config Stephen Warren
2016-04-02 13:26 ` Tom Rini
2016-04-03 3:33 ` Stephen Warren
2016-04-12 2:28 ` Tom Rini [this message]
2016-04-02 13:25 ` [U-Boot] [PATCH 1/2] ARM: allow CONFIG_GICV* not to be defined Tom Rini
2016-04-12 2:28 ` [U-Boot] [U-Boot, " 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=20160412022840.GE13577@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