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

Otavio Salvador otavio.salvador at ossystems.com.br
Fri Jun 16 08:04:14 PDT 2017


On Wed, Jun 14, 2017 at 1:45 PM, Romain Bazile <romain.bazile at ubiant.com> wrote:
...
> 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`?
> How can I insure that u-boot-fslc will be correctly built?

Please share the patch so we can look how it is done...


-- 
Otavio Salvador                             O.S. Systems
http://www.ossystems.com.br        http://code.ossystems.com.br
Mobile: +55 (53) 9981-7854            Mobile: +1 (347) 903-9750


More information about the meta-freescale mailing list