mksunxi_fit_atf.sh: Allow for this to complete when bl31.bin is missing
PATCH 1/1 mksunxi_fit_atf.sh: Allow for this to complete when bl31.bin is missing
In situations like an autobuilder we are likely to not have bl31.bin present and thus would fail to build and propagate the error upwards. Instead, print a big warning to stderr so that human will see that something is wrong but complete the build.
--- board/sunxi/mksunxi_fit_atf.sh | 5 +++++ 1 file changed, 5 insertions(+)
board/sunxi/mksunxi_fit_atf.sh +5 -0
@@ -7,6 +7,11 @@ [ -z "$BL31" ] && BL31="bl31.bin" +if [ ! -f $BL31 ]; then + echo "WARNING: BL31 file $BL31 NOT found, resulting binary is non-functional" >&2 + BL31=/dev/null +fi + cat << __HEADER_EOF /dts-v1/;
Signature · 1 line
1.9.1
PATCH 1/1 mksunxi_fit_atf.sh: Allow for this to complete when bl31.bin is missing
Hi Tom.,
Quoted 19 lines · Tom Rini
In situations like an autobuilder we are likely to not have bl31.bin present and thus would fail to build and propagate the error upwards. Instead, print a big warning to stderr so that human will see that something is wrong but complete the build.
Cc Andre Przywara <[email protected]>Cc Simon Glass <[email protected]>Cc Maxime Ripard <[email protected]>Signed-off-by Tom Rini <[email protected]>--- board/sunxi/mksunxi_fit_atf.sh | 5 +++++ 1 file changed, 5 insertions(+)board/sunxi/mksunxi_fit_atf.sh +0
-0
board/sunxi/mksunxi_fit_atf.sh line 14
Quoted 8 lines
board/sunxi/mksunxi_fit_atf.sh +5
-0@@ -7,6 +7,11 @@ [ -z "$BL31" ] && BL31="bl31.bin" +if [ ! -f $BL31 ]; then + echo "WARNING: BL31 file $BL31 NOT found, resulting binary is non-functional" >&2 + BL31=/dev/null +fi +
On x86 we use BUILD_ROM to enable building of something that requires binary blobs. Maybe we should have a standard build flag which tells the build to use binary blobs (or perhaps to not use them?).
Quoted 6 lines
board/sunxi/mksunxi_fit_atf.sh +0
-1cat << __HEADER_EOF /dts-v1/; --1.9.1
Regards,
Simon
PATCH 1/1 mksunxi_fit_atf.sh: Allow for this to complete when bl31.bin is missing
Quoted 25 lines · Simon Glass
Hi Tom.,
Quoted 22 lines · Tom Rini
In situations like an autobuilder we are likely to not have bl31.bin present and thus would fail to build and propagate the error upwards. Instead, print a big warning to stderr so that human will see that something is wrong but complete the build.
Cc Andre Przywara <[email protected]>Cc Simon Glass <[email protected]>Cc Maxime Ripard <[email protected]>Signed-off-by Tom Rini <[email protected]>--- board/sunxi/mksunxi_fit_atf.sh | 5 +++++ 1 file changed, 5 insertions(+)board/sunxi/mksunxi_fit_atf.sh +0
-0@@ -7,6 +7,11 @@ [ -z "$BL31" ] && BL31="bl31.bin"
Quoted 9 lines
board/sunxi/mksunxi_fit_atf.sh line 14
Quoted 5 lines
board/sunxi/mksunxi_fit_atf.sh +5
-0+if [ ! -f $BL31 ]; then + echo "WARNING: BL31 file $BL31 NOT found, resulting binary is non-functional" >&2 + BL31=/dev/null +fi +On x86 we use
BUILD_ROMto enable building of something that requires binary blobs. Maybe we should have a standard build flag which tells the build to use binary blobs (or perhaps to not use them?).
That's not 100% true on how it's used on x86 today, we have to set BUILD_ROM to get a binary we can use with qemu (which is why it's set in .travis.yml) but I imagine could be controlled differently, easily enough. We also have a similar problem on TI HS devices in that if the HS kit is not installed we still generate binaries but they are non-functional on the hardware. In that case we key off of the generation script existing at all.
So yes, we should generalize this a bit, but I also really don't want to push the sunxi PR without something that means that autobuilders/etc will continue to funciton.
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/20170522/a49b47ba/attachment.sig>
PATCH 1/1 mksunxi_fit_atf.sh: Allow for this to complete when bl31.bin is missing
Hi Tom,
Quoted 44 lines · Tom Rini
Quoted 25 lines · Simon Glass
Hi Tom.,
Quoted 22 lines · Tom Rini
In situations like an autobuilder we are likely to not have bl31.bin present and thus would fail to build and propagate the error upwards. Instead, print a big warning to stderr so that human will see that something is wrong but complete the build.
Cc Andre Przywara <[email protected]>Cc Simon Glass <[email protected]>Cc Maxime Ripard <[email protected]>Signed-off-by Tom Rini <[email protected]>--- board/sunxi/mksunxi_fit_atf.sh | 5 +++++ 1 file changed, 5 insertions(+)board/sunxi/mksunxi_fit_atf.sh +0
-0@@ -7,6 +7,11 @@ [ -z "$BL31" ] && BL31="bl31.bin"Quoted 9 lines
board/sunxi/mksunxi_fit_atf.sh line 14
Quoted 5 lines
board/sunxi/mksunxi_fit_atf.sh +5
-0+if [ ! -f $BL31 ]; then + echo "WARNING: BL31 file $BL31 NOT found, resulting binary is non-functional" >&2 + BL31=/dev/null +fi +On x86 we use
BUILD_ROMto enable building of something that requires binary blobs. Maybe we should have a standard build flag which tells the build to use binary blobs (or perhaps to not use them?).That's not 100% true on how it's used on x86 today, we have to set
BUILD_ROMto get a binary we can use with qemu (which is why it's set in .travis.yml) but I imagine could be controlled differently, easily enough. We also have a similar problem on TI HS devices in that if the HS kit is not installed we still generate binaries but they are non-functional on the hardware. In that case we key off of the generation script existing at all.
Quoted 3 lines
So yes, we should generalize this a bit, but I also really don't want to push the sunxi PR without something that means that autobuilders/etc will continue to funciton.
Well let me know what you prefer and I can send a patch to update x86.
Regards,
Simon
PATCH 1/1 mksunxi_fit_atf.sh: Allow for this to complete when bl31.bin is missing
In reply to Tom RiniQuoted 4 lines · Tom Rini
In situations like an autobuilder we are likely to not have bl31.bin present and thus would fail to build and propagate the error upwards. Instead, print a big warning to stderr so that human will see that something is wrong but complete the build.
Yeah, that sounds like a good idea. Thanks!
To make this even more useful, we should both mention either ATF or "ARM Trusted firmware" and board/sunxi/README.sunxi64, so that the users have a clue how to fix it.
Quoted 4 lines
Cc Andre Przywara <[email protected]>Cc Simon Glass <[email protected]>Cc Maxime Ripard <[email protected]>Signed-off-by Tom Rini <[email protected]>
With those hints above added:
Cheers,
Andre.
Quoted 21 lines
--- board/sunxi/mksunxi_fit_atf.sh | 5 +++++ 1 file changed, 5 insertions(+)board/sunxi/mksunxi_fit_atf.sh +5
-0@@ -7,6 +7,11 @@ [ -z "$BL31" ] && BL31="bl31.bin" +if [ ! -f $BL31 ]; then + echo "WARNING: BL31 file $BL31 NOT found, resulting binary is non-functional" >&2 + BL31=/dev/null +fi + cat << __HEADER_EOF /dts-v1/;
PATCH 1/1 mksunxi_fit_atf.sh: Allow for this to complete when bl31.bin is missing
Quoted 12 lines · André Przywara
Quoted 4 lines · Tom Rini
In situations like an autobuilder we are likely to not have bl31.bin present and thus would fail to build and propagate the error upwards. Instead, print a big warning to stderr so that human will see that something is wrong but complete the build.
Yeah, that sounds like a good idea. Thanks!
To make this even more useful, we should both mention either ATF or "ARM Trusted firmware" and board/sunxi/README.sunxi64, so that the users have a clue how to fix it.
Quoted 7 lines
Quoted 4 lines
Cc Andre Przywara <[email protected]>Cc Simon Glass <[email protected]>Cc Maxime Ripard <[email protected]>Signed-off-by Tom Rini <[email protected]>With those hints above added:
Reviewed-by Andre Przywara <[email protected]>
I added:
Please read the section on ARM Trusted Firmware (ATF) in board/sunxi/README.sunxi64
and applied to u-boot/master, 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/20170522/c18eaca3/attachment.sig>
PATCH 1/1 mksunxi_fit_atf.sh: Allow for this to complete when bl31.bin is missing
Quoted 18 lines · Tom Rini
Quoted 17 lines · André Przywara
Quoted 4 lines · Tom Rini
In situations like an autobuilder we are likely to not have bl31.bin present and thus would fail to build and propagate the error upwards. Instead, print a big warning to stderr so that human will see that something is wrong but complete the build.
Yeah, that sounds like a good idea. Thanks!
To make this even more useful, we should both mention either ATF or "ARM Trusted firmware" and board/sunxi/README.sunxi64, so that the users have a clue how to fix it.
Quoted 4 lines
Cc Andre Przywara <[email protected]>Cc Simon Glass <[email protected]>Cc Maxime Ripard <[email protected]>Signed-off-by Tom Rini <[email protected]>
Quoted 8 lines
Quoted 2 lines
With those hints above added:
Reviewed-by Andre Przywara <[email protected]>I added:
Please read the section on ARM Trusted Firmware (ATF) in board/sunxi/README.sunxi64and applied to u-boot/master, thanks!
Perfect, thanks!
Cheers,
Andre.