All of lore.kernel.org
 help / color / mirror / Atom feed
* binman warning/failure when blobs are missing
@ 2022-08-11 16:27 Tim Harvey
  2022-08-11 16:48 ` Tom Rini
  0 siblings, 1 reply; 13+ messages in thread
From: Tim Harvey @ 2022-08-11 16:27 UTC (permalink / raw)
  To: u-boot, Simon Glass

Greetings,

After a couple of hours troubleshooting a bad boot image today I
realized the issue was that I had some 0 byte files for the lpddr4
training blobs that are part of the imx8mp binman created image.

Digging in I found that if a blob referenced in the binman node is
missing a warning will be output but the missing files will be
'created' as 0 byte files such that the next time you build you will
get no warning (but will have a non-working image). Additionally the
error does not cause a non-zero exit code.

I'm not that fluent in python these days, and don't have the time for
a while to try and fix this but I figured I would at least send this
email in case someone else does.

Example:
# rm *lpddr4*.bin # make sure lpddr4*.bin files referenced in binman
nodes are missing
# make distclean imx8mp_venice_defconfig flash.bin && echo "build ok"
...
  BINMAN  flash.bin
Image 'main-section' is missing external blobs and is non-functional: ddr-1d-ime
m-fw ddr-1d-dmem-fw ddr-2d-imem-fw ddr-2d-dmem-fw
Image 'main-section' has faked external blobs and is non-functional: lpddr4_pmu_
train_1d_imem_202006.bin lpddr4_pmu_train_1d_dmem_202006.bin lpddr4_pmu_train_2d
_imem_202006.bin lpddr4_pmu_train_2d_dmem_202006.bin

Some images are invalid
^^^ excellent warning
build ok
^^^ not so great that there is a successful exit code
# make flash.bin && echo "build ok"
...
  BINMAN  flash.bin
build ok
^^^ absolutely horrible that 0 byte files were created and thus
everything looks good this time around!
# stat -c "%s %n" lpddr4*.bin
0 lpddr4_pmu_train_1d_dmem_202006.bin
0 lpddr4_pmu_train_1d_imem_202006.bin
0 lpddr4_pmu_train_2d_dmem_202006.bin
0 lpddr4_pmu_train_2d_imem_202006.bin

Best Regards,

Tim

^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2022-08-31 14:17 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-08-11 16:27 binman warning/failure when blobs are missing Tim Harvey
2022-08-11 16:48 ` Tom Rini
2022-08-11 16:59   ` Tim Harvey
2022-08-11 17:43     ` Tom Rini
2022-08-12  0:08       ` Simon Glass
2022-08-12  0:13         ` Tim Harvey
2022-08-12  1:03         ` Tom Rini
2022-08-12 15:11           ` Simon Glass
2022-08-12 16:11             ` Tom Rini
2022-08-13  2:21               ` Simon Glass
2022-08-13 12:36                 ` Tom Rini
2022-08-15 17:37                   ` Simon Glass
2022-08-31 14:17                     ` Tom Rini

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.