All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Richard Purdie" <richard.purdie@linuxfoundation.org>
To: Nandor Han <nandor.han@vaisala.com>,
	 openembedded-core@lists.openembedded.org
Subject: Re: [OE-core][PATCH v7 0/3] Add a new bbclass that abstracts the generation of FIT blobs
Date: Fri, 05 Jun 2020 07:34:33 +0100	[thread overview]
Message-ID: <fbca27d924e7f0f89da34872fbcda680b5dc0042.camel@linuxfoundation.org> (raw)
In-Reply-To: <cover.1590559408.git.nandor.han@vaisala.com>

On Wed, 2020-05-27 at 09:05 +0300, Nandor Han wrote:
> Description
> ----------
> Add a new class and unittest for generating FIT blobs.
> 
> 
> Testing
> -------
> 
>     1. linux-yocto_5.4.bbappend was modified to have the following
> configuration:
> 
>     ```
>     inherit fit-image
> 
>     KERNEL_IMAGE_NODE[name] = "kernel"
>     KERNEL_IMAGE_NODE[description] = "${PF}"
>     KERNEL_IMAGE_NODE[data] =
> '/incbin/("./arch/${ARCH}/boot/zImage")'
>     KERNEL_IMAGE_NODE[type] = "kernel"
>     KERNEL_IMAGE_NODE[arch] = "${ARCH}"
>     KERNEL_IMAGE_NODE[os] = "linux"
>     KERNEL_IMAGE_NODE[compression] = "none"
>     KERNEL_IMAGE_NODE[load] = "${UBOOT_LOADADDRESS}"
>     KERNEL_IMAGE_NODE[entry] = "${UBOOT_ENTRYPOINT}"
>     KERNEL_IMAGE_NODE[hash] = "sha256"
> 
>     FDT_IMAGE_NODE[name] = "fdt"
>     FDT_IMAGE_NODE[description] = "FDT blob"
>     FDT_IMAGE_NODE[data] = '/incbin/("./arch/${ARCH}/boot/dts/am335x-
> bone.dtb")'
>     FDT_IMAGE_NODE[type] = "flat_dt"
>     FDT_IMAGE_NODE[arch] = "${ARCH}"
>     FDT_IMAGE_NODE[compression] = "none"
>     FDT_IMAGE_NODE[hash] = "sha256"
> 
>     CONF1_CONF_NODE[name] = "conf"
>     CONF1_CONF_NODE[description] = "Linux kernel and FDT blob"
>     CONF1_CONF_NODE[kernel] = "kernel"
>     CONF1_CONF_NODE[fdt] = "fdt"
> 
>     FIT_IMAGES_NODE = "KERNEL_IMAGE_NODE FDT_IMAGE_NODE"
>     FIT_CONFIGURATIONS_NODE = "CONF1_CONF_NODE"
>     FIT_CONFIGURATIONS_NODE[default] = "${@d.getVarFlag('CONF1_CONF_N
> ODE', 'name') or ""}"
>     ```
>     2. Build the kernel: `bitbake virtual/kernel`
>     3. Verify that `image-fit.itb` is present in the build directory:
> PASS
>     4. Disassemble the image using the command: `dtc -I dtb -O dts
> image-fit.itb`
>     5. Verify that the FIT source contains the expected
> configuration: PASS
>     6. Run the unittest using the command: `oe-selftest --run-tests
> fit_image.FitImage`
>     7. Verify that is successfully: PASS
>     ```
>     2020-05-26 16:54:34,996 - oe-selftest - INFO - SUMMARY:
>     2020-05-26 16:54:34,996 - oe-selftest - INFO - oe-selftest () -
> Ran 13
>     tests in 1956.639s
>     2020-05-26 16:54:34,997 - oe-selftest - INFO - oe-selftest - OK -
> All
>     required tests passed (successes=13, skipped=0, failures=0,
> errors=0)
>     ```         
>  
> 
>     Changes since v1:
>     ----------------
>     - Change the format of short-log to "<target>: <summary>"
> 
>     Changes since v2:
>     ----------------
>     - rename the file from `fit-image` to `fit_image` to successfully
> export the class functions.
>     - adding new sanity checks.
>     - add missing dependency.
>     - fix a variable reference in a debug log.
>     
>     Changes since v3:
>     ----------------
>     - unit-test added
>     - class updated to support also properties for U-Boot image
> 
>     Changes since v4:
>     ----------------
>     - remove a wrong patch
> 
>     Changes since v5:
>     ----------------
>     - something went wrong with generation of the patches. regenerate
> 
>     Changes since v6:
>     ----------------
>     - fix the shortlog for one of the patches
> 
> Nandor Han (3):
>   python-fdt: add a recipe for `python3-fdt` package
>   classes: Add a new bbclass that abstracts the generation of FIT
> blobs
>   selftest: add a unit-test for fit-image bbclass
> 
>  .../fit-image-test/files/dt-fake.dtb          |   3 +
>  .../fit-image-test/files/zImage-fake          |   3 +
>  .../fit-image-test/fit-image-test.bb          |  17 +
>  meta/classes/fit_image.bbclass                | 387
> ++++++++++++++++++
>  meta/lib/oeqa/selftest/cases/fit_image.py     | 212 ++++++++++
>  .../python/python3-fdt_0.2.0.bb               |  14 +
>  6 files changed, 636 insertions(+)
>  create mode 100644 meta-selftest/recipes-test/fit-image-
> test/files/dt-fake.dtb
>  create mode 100644 meta-selftest/recipes-test/fit-image-
> test/files/zImage-fake
>  create mode 100644 meta-selftest/recipes-test/fit-image-test/fit-
> image-test.bb
>  create mode 100644 meta/classes/fit_image.bbclass
>  create mode 100644 meta/lib/oeqa/selftest/cases/fit_image.py
>  create mode 100644 meta/recipes-devtools/python/python3-fdt_0.2.0.bb

This did show up two issues in testing:

https://autobuilder.yoctoproject.org/typhoon/#/builders/79/builds/1022

(step2d)

Basically there is no maintainer listed for python3-fdt which is an
easy fix and secondly the tests need python3-fdt-native which isn't
present in the test environment.

Cheers,

Richard




  parent reply	other threads:[~2020-06-05  6:34 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-05-27  6:05 [OE-core][PATCH v7 0/3] Add a new bbclass that abstracts the generation of FIT blobs Nandor Han
2020-05-27  6:05 ` [OE-core][PATCH v7 1/3] python-fdt: add a recipe for `python3-fdt` package Nandor Han
2020-05-27  6:06 ` [OE-core][PATCH v7 2/3] classes: Add a new bbclass that abstracts the generation of FIT blobs Nandor Han
2020-05-27  6:06 ` [OE-core][PATCH v7 3/3] selftest: add a unit-test for fit-image bbclass Nandor Han
2020-05-27  6:32 ` ✗ patchtest: failure for Add a new bbclass that abstracts the generation of FIT blobs (rev8) Patchwork
2020-05-27  6:40   ` Nandor Han
2020-06-05  6:34 ` Richard Purdie [this message]
2020-06-05 10:36   ` [OE-core][PATCH v7 0/3] Add a new bbclass that abstracts the generation of FIT blobs Nandor Han

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=fbca27d924e7f0f89da34872fbcda680b5dc0042.camel@linuxfoundation.org \
    --to=richard.purdie@linuxfoundation.org \
    --cc=nandor.han@vaisala.com \
    --cc=openembedded-core@lists.openembedded.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.