Skip to content

sunxi: Pine64 fixes

Tom Rini u-boot 1 version New

Get series with b4
b4 am 20160907161258.GI4990@bill-the-cat

Versions newest first

  1. v1 Latest0 of 4 patches 0 repliesNew

Patches in v1 No applies recorded yet

None of the 4 patches the cover letter announces are in this archive.

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [U-Boot] [PATCH 0/4] sunxi: Pine64 fixes
Quoted 45 lines · Andre Przywara

Hi,

Quoted 32 lines · Hans de Goede

Hi,

Quoted 29 lines · Andre Przywara

Hi,

Quoted 15 lines · Hans de Goede

Hi,

Quoted 12 lines · Andre Przywara

Some patches to fix the Pine64 support:
The first two patches revert two patches that actually broke booting Pine64 via the boot0 blob, already in 2016.07.
This has been discussed on IRC before, the commit messages contain some details on the reasons for the revert. As the intent of those original fixes was to help the (not yet upstream) SPL support, we don't loose anything as the Pine64 uses the U-Boot proper only at the moment.

Patch 3/4 removes the usage of a non-existing config symbol. Patch 4/4 fixes a compiler warning when compiling sunxi's board.c with a 64-bit compiler.

Quoted 5 lines
Quoted 2 lines

Please apply for the 2016.09 release to allow booting Pine64s with a recent U-Boot.

I've send out a pull-req with patches 1, 3 and 4 yesterday and this has been merged.

Thanks a lot! That's very helpful.

Cheers,
Andre.

Quoted 6 lines
Quoted 3 lines

P.S. I have the SPL support with proper sunxi DRAM init mostly working, I am fighting with some bugs still (FIT loading related), but I am confident that this will be ready for the upcoming merge window.

Cool, so do we then still need some closed firmware bits, or is everything open then ?

Everything is proper FOSS, thanks to Jens, who took the existing U-Boot H3 DRAM init bits and ported them to support the A64 as well.

Quoted 9 lines

Also we don't need any boot0img anymore, mksunxiboot works as expected. Appending the U-Boot proper directly to the SPL image works already, but leaves out the ATF and thus SMP :-(
So I have improved SPL FIT support to load multiple images: load both U-Boot and ATF, but jump to ATF, which in turn drops to U-Boot. I chose the have the SPL in AArch64 (with a handful of AArch32 instructions in the beginning), which greatly simplifies the build process. The drawback is increased code size, but I think we can cope with that.

Nice! Will it all also work with FEL mode? That's how I'm integrating sunxi boards into my test farm. Thanks!

Signature · 8 lines
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/20160907/0c6d7ff3/attachment.sig>