All of lore.kernel.org
 help / color / mirror / Atom feed
* Dependency loop with kernel-fitimage class
@ 2018-05-16 10:17 Olivier Dufour
  2020-03-30 13:28 ` [poky] " Nandor Han
  0 siblings, 1 reply; 2+ messages in thread
From: Olivier Dufour @ 2018-05-16 10:17 UTC (permalink / raw)
  To: poky

[-- Attachment #1: Type: text/plain, Size: 1450 bytes --]

Hi,

I'm trying to build a trusted boot image on ARM64 platform using u-boot.
I've added kernel-fitimage to KERNEL_CLASSES, and set UBOOT_SIGN_ENABLE to
"1".

I get the following dependency loop:

> Dependency loop #1 found:
>   Task
> /build/firmware/v3/build/../meta-marvell/recipes-bsp/u-boot/u-boot-marvell_2017.03.bb:do_concat_dtb
> (dependent Tasks ['linux-marvell_4.4.52.bb:do_assemble_fitimage'])
>   Task
> /build/firmware/v3/build/../meta-marvell/recipes-bsp/u-boot/u-boot-marvell_2017.03.bb:do_install
> (dependent Tasks ['pseudo_1.8.2.bb:do_populate_sysroot',
> 'u-boot-marvell_2017.03.bb:do_compile', 'u-boot-marvell_2017.03.bb:
> do_concat_dtb'])
>   Task
> /build/firmware/v3/build/../meta-marvell/recipes-bsp/u-boot/u-boot-marvell_2017.03.bb:do_deploy
> (dependent Tasks ['u-boot-marvell_2017.03.bb:do_install',
> 'u-boot-marvell_2017.03.bb:do_deploy_dtb'])
>   Task
> /build/firmware/v3/build/../meta-marvell/recipes-kernel/linux/linux-marvell_4.4.52.bb:do_assemble_fitimage
> (dependent Tasks ['u-boot-marvell_2017.03.bb:do_deploy',
> 'linux-marvell_4.4.52.bb:do_compile'])


From my understanding, do_assemble_fitimage should only depend on
do_deploy_dtb, since it doesn't require the whole u-boot binary, but only
the dtb.

I did a few patches to get it work eventually, but I wonder if that's the
right way to go. Maybe I'm missing a step in my configuration ?

Regards,

-- 
Olivier Dufour

[-- Attachment #2: Type: text/html, Size: 1946 bytes --]

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

* Re: [poky] Dependency loop with kernel-fitimage class
  2018-05-16 10:17 Dependency loop with kernel-fitimage class Olivier Dufour
@ 2020-03-30 13:28 ` Nandor Han
  0 siblings, 0 replies; 2+ messages in thread
From: Nandor Han @ 2020-03-30 13:28 UTC (permalink / raw)
  To: Olivier Dufour, poky

[-- Attachment #1: Type: text/plain, Size: 1749 bytes --]

On 2018-05-16 13:17, Olivier Dufour wrote:
> Hi,
>
> I'm trying to build a trusted boot image on ARM64 platform using u-boot.
> I've added kernel-fitimage to KERNEL_CLASSES, and set 
> UBOOT_SIGN_ENABLE to "1".
>
> I get the following dependency loop:
>
>     Dependency loop #1 found:
>       Task
>     /build/firmware/v3/build/../meta-marvell/recipes-bsp/u-boot/u-boot-marvell_2017.03.bb:do_concat_dtb
>     (dependent Tasks ['linux-marvell_4.4.52.bb:do_assemble_fitimage'])
>       Task
>     /build/firmware/v3/build/../meta-marvell/recipes-bsp/u-boot/u-boot-marvell_2017.03.bb:do_install
>     (dependent Tasks ['pseudo_1.8.2.bb:do_populate_sysroot',
>     'u-boot-marvell_2017.03.bb:do_compile',
>     'u-boot-marvell_2017.03.bb:do_concat_dtb'])
>       Task
>     /build/firmware/v3/build/../meta-marvell/recipes-bsp/u-boot/u-boot-marvell_2017.03.bb:do_deploy
>     (dependent Tasks ['u-boot-marvell_2017.03.bb:do_install',
>     'u-boot-marvell_2017.03.bb:do_deploy_dtb'])
>       Task
>     /build/firmware/v3/build/../meta-marvell/recipes-kernel/linux/linux-marvell_4.4.52.bb:do_assemble_fitimage
>     (dependent Tasks ['u-boot-marvell_2017.03.bb:do_deploy',
>     'linux-marvell_4.4.52.bb:do_compile'])
>
>
> From my understanding, do_assemble_fitimage should only depend on 
> do_deploy_dtb, since it doesn't require the whole u-boot binary, but 
> only the dtb.
>
> I did a few patches to get it work eventually, but I wonder if that's 
> the right way to go. Maybe I'm missing a step in my configuration ?
>
Hi,

The keys are injected in DTB, however the newly created DTB needs to be 
recombined with U-Boot, resulting in `u-boot-dtb.bin` (IIRC).

Just to have this in mind :)

Nandor

[-- Attachment #2: Type: text/html, Size: 2842 bytes --]

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

end of thread, other threads:[~2020-03-30 13:28 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-05-16 10:17 Dependency loop with kernel-fitimage class Olivier Dufour
2020-03-30 13:28 ` [poky] " Nandor Han

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.