[Buildroot] [PATCH v9 02/11] boot/ti-k3-image-gen: new package

Andreas Dannenberg dannenberg at ti.com
Tue Aug 15 07:15:00 UTC 2023


Hi Bryce, All,
first I wanted to say my apologies from the lack of progress on updating
this series, the v9 rework got caught up in my summer break, and then TI
has since released new U-Boot 2023.04 and Kernel 6.1-based SDKs for the
AM62x/AM64 devices which should now be the updated goal for this
upstream effort. In addition to newer components this should actually
help/simplify some of the boot image creation and secure boot related
"TI quirks", for example we'll no longer need the ti-k3-image-gen and
ti-core-secdev-k3 packages (yeey!) as those items will be taken care of
by U-Boot (via binman). I'm planning on making time to pick this back up
over the next few weeks and work on a v10 series with those changes plus
applicable feedback that was provided on v9.

As for your feedback, see below...


On Tue, Aug 08, 2023 at 04:38:18PM -0700, Bryce Johnson wrote:
> Hi Andreas and all,
> 
> 
> On Thu, Jun 22, 2023 at 9:05 AM Andreas Dannenberg via buildroot
> <buildroot at buildroot.org> wrote:
> >
> > From: Xuanhao Shi <x-shi at ti.com>
> >
> > This is the image generator that builds the initial boot binary,
> > tiboot3.bin, for the R5 core on TI's K3 family of devices.
> > This requires the R5 SPL output from the ti-k3-r5-loader package.
> >
> > https://git.ti.com/cgit/k3-image-gen/k3-image-gen
> 
> I was able to build with your patchset for am62x_sk_defconfig as
> included.  I attempted to do a reproducible and per_package parallel
> build and ran into an error.  We tend to use that for builds because
> it is significantly faster build times especially on a dedicated
> server.
> 
> Adding to the defconfig:
> BR2_REPRODUCIBLE=y
> BR2_PER_PACKAGE_DIRECTORIES=y

Good find, I'll experiment with this in the context of v10 and see how
this behavior can be improved.

--
Andreas Dannenberg
Texas Instruments Inc

> 
>  and I was running in to the below error:
> 
> >>> ti-k3-image-gen 08.06.00.007 Installing to images directory
> cp /build_data/johnsonb/buildroot_ti/output/build/ti-k3-image-gen-08.06.00.007/tiboot3.bin
> /build_data/johnsonb/buildroot_ti/output/images
> [19/30] Compiling C object
> src/libwayland-server.so.0.21.0.p/wayland-shm.c.omake[5]: Leaving
> directory '/build_data/johnsonb/buildroot_ti/output/build/util-linux-libs-2.38'
> make[4]: Leaving directory
> '/build_data/johnsonb/buildroot_ti/output/build/util-linux-libs-2.38'
> make[3]: Leaving directory
> '/build_data/johnsonb/buildroot_ti/output/build/util-linux-libs-2.38'
> make[2]: Leaving directory
> '/build_data/johnsonb/buildroot_ti/output/build/util-linux-libs-2.38'
> make[1]: Leaving directory
> '/build_data/johnsonb/buildroot_ti/output/build/util-linux-libs-2.38'
> cp: cannot stat
> '/build_data/johnsonb/buildroot_ti/output/build/ti-k3-image-gen-08.06.00.007/tiboot3.bin':
> No such file or directory
> package/pkg-generic.mk:371: recipe for target
> '/build_data/johnsonb/buildroot_ti/output/build/ti-k3-image-gen-08.06.00.007/.stamp_images_installed'
> failed
> make: *** [/build_data/johnsonb/buildroot_ti/output/build/ti-k3-image-gen-08.06.00.007/.stamp_images_installed]
> Error 1
> make: *** Waiting for unfinished jobs....
> 
> 
> 
> I can see that file located there:
> ls -al /build_data/johnsonb/buildroot_ti/output/build/ti-k3-image-gen-08.06.00.007/tiboot3.bin
> lrwxrwxrwx 1 johnsonb users 103 Aug  8 18:18
> /build_data/johnsonb/buildroot_ti/output/build/ti-k3-image-gen-08.06.00.007/tiboot3.bin
> -> /build_data/johnsonb/buildroot_ti/output/build/ti-k3-image-gen-08.06.00.007/tiboot3-am62x-hs-fs-evm.bin
> 
> Might be something out of order or a missing dependency.  I didn't dig
> into it too far, but I thought I would let you know.
> 
> Bryce



More information about the buildroot mailing list