[U-Boot] [PATCH v3 26/26] sunxi: A64: add 32-bit SPL support

Maxime Ripard maxime.ripard at free-electrons.com
Mon Dec 19 11:05:23 CET 2016


On Mon, Dec 19, 2016 at 01:50:16AM +0000, Andre Przywara wrote:
> When compiling the SPL for the Allwinner A64 in AArch64 mode, we can't
> use the more compact Thumb2 encoding, which only exists for AArch32
> code. This makes the SPL rather big, up to a point where any code
> additions or even a different compiler may easily exceed the 32KB limit
> that the Allwinner BROM imposes.
> Introduce a separate, mostly generic sun50i-a64 configuration, which
> defines the CPU_V7 symbol and thus will create a 32-bit binary using
> the memory-saving Thumb2 encoding.
> This should only be used for the SPL, the U-Boot proper should still be
> using the existing 64-bit configuration. The SPL code can switch to
> AArch64 if needed, so a 32-bit SPL can be combined with a 64-bit U-Boot
> proper to eventually launch arm64 kernels.
> 
> Signed-off-by: Andre Przywara <andre.przywara at arm.com>

Like I said in the previous version of those patches, I'd like to
discuss this more and not merge this patch right now.. For context,
this would be better to keep the current discussion on the v2 ongoing.

Maxime

-- 
Maxime Ripard, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 801 bytes
Desc: not available
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20161219/da5bc02d/attachment.sig>


More information about the U-Boot mailing list