Skip to contentSkip to conversation

sunxi: README.sunxi64: Add hint about non-debug ATF

PATCH New Andre Przywara 3 participants 4 messages Feb 22, 2018 Arm/Allwinner sunXi SoC support

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 sunxi: README.sunxi64: Add hint about non-debug ATF

As we are running into issues where the final U-Boot FIT image file is exceeding our size limit, add a hint to the README.sunxi64 file to point out the possibility of building non-debug versions of the ATF binary. This is about 12KB smaller than the standard debug build, and so again allows successful U-Boot builds for many boards with the Allwinner H5 SoC.
Please note that under normal circumstances the debug build is still recommended, as it gives valuable clues in case something goes wrong in the ATF.

---
Hi,

as the level of desperation about Allwinner 64-bit FIT image sizes rises, we are getting more into the slightly cheaty section with our mitigations. However as my previous attempts in fixing this issue were not that warmly welcomed, I now suggest this rather pragmatic solution, which avoids hacking U-Boot badly. This fixes the various H5 builds for me.

Cheers,
Andre.

 board/sunxi/README.sunxi64 | 6 ++++++
 1 file changed, 6 insertions(+)
board/sunxi/README.sunxi64 +6 -0
index c492f749b8..eefa5001a2 100644
@@ -38,6 +38,12 @@ the root of your U-Boot build directory (or create a symbolic link).
 $ export BL31=/src/arm-trusted-firmware/build/sun50iw1p1/debug/bl31.bin
   (adjust the actual path accordingly)
 
+If you run into size issues with the resulting U-Boot image file, it might
+help to use a release build, by using "DEBUG=0" when building bl31.bin.
+As sometimes the ATF build process is a bit picky about the toolchain used,
+or if you can't be bothered with building ATF, there are known working
+binaries in the firmware repository[3], purely for convenience reasons.
+
  SPL/U-Boot
 ------------
 Both U-Boot proper and the SPL are using the 64-bit mode. As the boot ROM
Signature · 1 line
2.14.1
#1 lore raw

PATCH 1/1 sunxi: README.sunxi64: Add hint about non-debug ATF

Quoted 9 lines · Andre Przywara

As we are running into issues where the final U-Boot FIT image file is exceeding our size limit, add a hint to the README.sunxi64 file to point out the possibility of building non-debug versions of the ATF binary. This is about 12KB smaller than the standard debug build, and so again allows successful U-Boot builds for many boards with the Allwinner H5 SoC.
Please note that under normal circumstances the debug build is still recommended, as it gives valuable clues in case something goes wrong in the ATF.

So for H5 we can't able to use debug (:

Quoted 22 lines

---
Hi,

as the level of desperation about Allwinner 64-bit FIT image sizes rises, we are getting more into the slightly cheaty section with our mitigations. However as my previous attempts in fixing this issue were not that warmly welcomed, I now suggest this rather pragmatic solution, which avoids hacking U-Boot badly. This fixes the various H5 builds for me.

Cheers,
Andre.

 board/sunxi/README.sunxi64 | 6 ++++++
 1 file changed, 6 insertions(+)
board/sunxi/README.sunxi64 +0 -0
index c492f749b8..eefa5001a2 100644

board/sunxi/README.sunxi64 the root of your U-Boot build directory (or create a symbolic link). · line 42

Quoted 5 lines
board/sunxi/README.sunxi64 +2 -0
@@ -38,6 +38,12 @@ the root of your U-Boot build directory (or create a symbolic link).
 $ export BL31=/src/arm-trusted-firmware/build/sun50iw1p1/debug/bl31.bin
   (adjust the actual path accordingly)
 
+If you run into size issues with the resulting U-Boot image file, it might
+help to use a release build, by using "DEBUG=0" when building bl31.bin.

This is something like release build even w/o DEBUG=0 it will build same is it? In that case we can say not to use DEBUG=1 just make PLAT=sun50iw1p1 bl31

#2 lore raw

PATCH 1/1 sunxi: README.sunxi64: Add hint about non-debug ATF

Hi,

Quoted 11 lines · Jagan Teki
Quoted 9 lines · Andre Przywara

As we are running into issues where the final U-Boot FIT image file is exceeding our size limit, add a hint to the README.sunxi64 file to point out the possibility of building non-debug versions of the ATF binary. This is about 12KB smaller than the standard debug build, and so again allows successful U-Boot builds for many boards with the Allwinner H5 SoC.
Please note that under normal circumstances the debug build is still recommended, as it gives valuable clues in case something goes wrong in the ATF.

Quoted 1 line

So for H5 we can't able to use debug (:

Only for the ATF and only as long as we have that size limit, which will ideally be lifted with v2018.05-rc1 (or so).
If you have a better idea, I am all ears.

Cheers,
Andre.

Quoted 32 lines
Quoted 22 lines

---
Hi,

as the level of desperation about Allwinner 64-bit FIT image sizes rises, we are getting more into the slightly cheaty section with our mitigations. However as my previous attempts in fixing this issue were not that warmly welcomed, I now suggest this rather pragmatic solution, which avoids hacking U-Boot badly. This fixes the various H5 builds for me.

Cheers,
Andre.

 board/sunxi/README.sunxi64 | 6 ++++++
 1 file changed, 6 insertions(+)
board/sunxi/README.sunxi64 +0 -0
index c492f749b8..eefa5001a2 100644

board/sunxi/README.sunxi64 the root of your U-Boot build directory (or create a symbolic link). · line 42

Quoted 5 lines
board/sunxi/README.sunxi64 +2 -0
@@ -38,6 +38,12 @@ the root of your U-Boot build directory (or create a symbolic link).
 $ export BL31=/src/arm-trusted-firmware/build/sun50iw1p1/debug/bl31.bin
   (adjust the actual path accordingly)
 
+If you run into size issues with the resulting U-Boot image file, it might
+help to use a release build, by using "DEBUG=0" when building bl31.bin.

This is something like release build even w/o DEBUG=0 it will build same is it? In that case we can say not to use DEBUG=1 just make PLAT=sun50iw1p1 bl31

#3 lore raw

PATCH 1/1 sunxi: README.sunxi64: Add hint about non-debug ATF

Quoted 14 lines · Andre Przywara

Hi,

Quoted 11 lines · Jagan Teki
Quoted 9 lines · Andre Przywara

As we are running into issues where the final U-Boot FIT image file is exceeding our size limit, add a hint to the README.sunxi64 file to point out the possibility of building non-debug versions of the ATF binary. This is about 12KB smaller than the standard debug build, and so again allows successful U-Boot builds for many boards with the Allwinner H5 SoC.
Please note that under normal circumstances the debug build is still recommended, as it gives valuable clues in case something goes wrong in the ATF.

Quoted 5 lines
Quoted 1 line

So for H5 we can't able to use debug (:

Only for the ATF and only as long as we have that size limit, which will ideally be lifted with v2018.05-rc1 (or so).
If you have a better idea, I am all ears.

And I'd expect people that want to enable the debug option to also be able to figure out what they can remove in the configuration.

Maxime

Signature · 10 lines
Maxime Ripard, Bootlin (formerly Free Electrons)
Embedded Linux and Kernel engineering
https://bootlin.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20180222/44791319/attachment.sig>