Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id 6BE12E00B8A; Wed, 14 Jun 2017 12:10:18 -0700 (PDT) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on yocto-www.yoctoproject.org X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.1 X-Spam-HAM-Report: * -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low * trust * [46.105.63.230 listed in list.dnswl.org] * -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] X-Greylist: delayed 4196 seconds by postgrey-1.32 at yocto-www; Wed, 14 Jun 2017 12:10:16 PDT Received: from 7.mo68.mail-out.ovh.net (7.mo68.mail-out.ovh.net [46.105.63.230]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id 4BD98E00B43 for ; Wed, 14 Jun 2017 12:10:16 -0700 (PDT) Received: from player789.ha.ovh.net (b9.ovh.net [213.186.33.59]) by mo68.mail-out.ovh.net (Postfix) with ESMTP id EBBB054AA4 for ; Wed, 14 Jun 2017 18:45:13 +0200 (CEST) Received: from [192.168.0.180] (LMontsouris-657-1-193-111.w90-63.abo.wanadoo.fr [90.63.225.111]) (Authenticated sender: romain.bazile@ubiant.com) by player789.ha.ovh.net (Postfix) with ESMTPSA id B959926009B for ; Wed, 14 Jun 2017 18:45:13 +0200 (CEST) To: meta-freescale@yoctoproject.org From: Romain Bazile Organization: Ubiant Message-ID: <344293d3-6ec9-cbf1-190b-b4954a4dc7cf@ubiant.com> Date: Wed, 14 Jun 2017 18:45:13 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.1.1 MIME-Version: 1.0 X-Ovh-Tracer-Id: 7501026656108764057 X-VR-SPAMSTATE: OK X-VR-SPAMSCORE: 50 X-VR-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrfeeljedrjeehgdduuddtucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecuqfggjfdpvefjgfevmfevgfenuceurghilhhouhhtmecufedttdenucgoteefjeefqddtgeculdehtddm Subject: u-boot-fslc: migration from morty to pyro with a signed image using CST X-BeenThere: meta-freescale@yoctoproject.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Usage and development list for the meta-fsl-* layers List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 14 Jun 2017 19:10:18 -0000 Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-GB-large Content-Transfer-Encoding: 7bit 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`? How can I insure that u-boot-fslc will be correctly built? Thanks for the help, Sincerely, -- Romain Bazile Hardware R&D Engineer www.ubiant.com