[meta-freescale] u-boot-fslc: migration from morty to pyro with a signed image using CST

Daiane Angolini daiane.list at gmail.com
Fri Jun 16 06:29:05 PDT 2017


On Wed, Jun 14, 2017 at 1:45 PM, Romain Bazile <romain.bazile at ubiant.com> wrote:
> Hello everyone,
>
> I'm in the process of migrating from Morty to Pyro and I'm having some
> troubles with u-boot-fslc.
>
> In Morty, we were using u-boot-fslc_2016.11, in Pyro, we are migrating to
> u-boot-fslc_2017.03. Our processor is an i.MX6ul.
>
>
> We have in our bbappend a custom task, `sign_uboot`. This task uses the IMX
> Code Signing Tool distributed by NXP to sign `u-boot.img` .
>
>
> During the migration, I had a compilation problem. Basically, the build
> system would complain that authenticate_image was an undefined reference.
> When having a look at u-boot code, it seemed normal since it was not built
> in the absence of `CONFIG_SECURE_BOOT`.
> I added a patchfile changing this in `mx6ul_14x14_defconfig`, but now, a
> different problem appears.
>
> Basically, the do_compile task is failing when it tries to copy `u-boot.img`
> (as defined in my bbappend `UBOOT_BINARY`). This is "normal", since this
> file is not in the filesystem, and likely not built. However, I do have a
> `u-boot-ivt.img` (but this file is supposed to be created at a later stage
> by the task `sign_uboot`).
>
> Also, just before, a couple of errors appears, where a script complains
> about `bc` and `comm` not being found, except they are installed in the
> build machine. This may not be related and not have consequences, I believe
> this could be linked to the per-recipe sysroot.
>
>
> Sorry for the long post, I can also share the details if needed (the task
> `sign_uboot` and the scripts used to sign).
>
> My questions are as follows:
> Do I still need to use this custom script if I use `CONFIG_SECURE_BOOT`?

What I understand is that secure boot is different from signed image.
So I would say they are complementary, so you would also need  both.

> How can I insure that u-boot-fslc will be correctly built?

I don't really understand your build problem. From what I understand,
you should override the UBOOT_BINARY name in your bbappend, so bitbake
will find your binary and stop complaining.


Daiane

>
>
> Thanks for the help,
>
> Sincerely,
> --
> Romain Bazile
> Hardware R&D Engineer
> www.ubiant.com
> --
> _______________________________________________
> meta-freescale mailing list
> meta-freescale at yoctoproject.org
> https://lists.yoctoproject.org/listinfo/meta-freescale


More information about the meta-freescale mailing list