<feed xmlns='http://www.w3.org/2005/Atom'>
<title>linux/meta-freescale.git/recipes-bsp/imx-mkimage, branch topic/better-nip-support</title>
<subtitle>Mirror of github.com/Freescale/meta-freescale</subtitle>
<id>https://git.enea.com/cgit/linux/meta-freescale.git/atom?h=topic%2Fbetter-nip-support</id>
<link rel='self' href='https://git.enea.com/cgit/linux/meta-freescale.git/atom?h=topic%2Fbetter-nip-support'/>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/meta-freescale.git/'/>
<updated>2022-02-21T23:06:28+00:00</updated>
<entry>
<title>Generalize overrides subsystem for NXP and Mainline support</title>
<updated>2022-02-21T23:06:28+00:00</updated>
<author>
<name>Otavio Salvador</name>
<email>otavio@ossystems.com.br</email>
</author>
<published>2022-02-18T22:43:56+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/meta-freescale.git/commit/?id=30f5ce1d2168389295b4813e01898c2fb0f9bab9'/>
<id>urn:sha1:30f5ce1d2168389295b4813e01898c2fb0f9bab9</id>
<content type='text'>
Essentially, we extend the overrides to a generic-bsp, nxp-bsp, and
mainline-bsp.

So, for example, the mx8mq override is split into:

- imx-generic-bsp: compatible with every i.MX SoC and both BSP variants
- imx-nxp-bsp: compatible with every i.MX SoC but specific to NXP BSP
- imx-mainline-bsp: compatible with every i.MX SoC but specific to Mainline BSP

- mx8-generic-bsp: compatible with every i.MX8 SoC and both BSP variants
- mx8-nxp-bsp: compatible with every i.MX8 SoC but specific to NXP BSP
- mx8-mainline-bsp: compatible with every i.MX8 SoC but specific to Mainline BSP

- mx8m-generic-bsp: compatible with every i.MX8M SoC and both BSP variants
- mx8m-nxp-bsp: compatible with every i.MX8M SoC but specific to NXP BSP
- mx8m-mainline-bsp: compatible with every i.MX8M SoC but specific to Mainline BSP

- mx8mq-generic-bsp: compatible with every i.MX8MQ SoC and both BSP variants
- mx8mq-nxp-bsp: compatible with every i.MX8MQ SoC8 but specific to NXP BSP
- mx8mq-mainline-bsp: compatible with every i.MX8MQ SoC but specific to Mainline BSP

The extender mechanism is responsible for extending the override list to
include the generic overrides. We can then use the three different
variants to handle the metadata correctly.

Generically speaking, the conversion mainly was automated (with a lot of
back and forth until getting it right).

To convert an existing layer, the following script can be used:

```sh
  git ls-files classes recipes-* \
      | xargs sed -i \
              -e 's,:\(mx[6-8]\w*\),:\1-nxp-bsp,g' \
              -e 's,(\(mx[6-8]\w*\)),(\1-nxp-bsp),g' \
              -e 's,\(mx[6-8]\w*\)|,\1-nxp-bsp|,g' \
              -e 's,|\(mx[6-8]\w*\)),|\1-nxp-bsp),g' \
              \
              -e 's,:\(mx[5s]\w*\),:\1-generic-bsp,g' \
              -e 's,(\(mx[5s]\w*\)),(\1-generic-bsp),g' \
              -e 's,\(mx[5s]\w*\)|,\1-generic-bsp|,g' \
              -e 's,|\(mx[5s]\w*\)),|\1-generic-bsp),g' \
              \
              -e 's,:\(vf\w*\),:\1-generic-bsp,g' \
              -e 's,:\(vf[56]0\w*\),:\1-generic-bsp,g' \
              -e 's,\(vf\w*\)|,\1-generic-bsp|,g' \
              -e 's,|\(vf\w*\)),|\1-generic-bsp),g' \
              -e 's,\(vf[56]0\w*\)|,\1-generic-bsp|,g' \
              -e 's,|\(vf[56]0\w*\)),|\1-generic-bsp),g' \
              \
              -e 's,:\(imx\) ,:\1-nxp-bsp ,g' \
              -e 's,(\(imx\)),(\1-nxp-bsp),g' \
              -e 's,\(imx\)|,\1-nxp-bsp|,g' \
              -e 's,|\(imx\)),|\1-nxp-bsp),g'

  for d in $(find -type d | egrep '/mx[6-8]w*'); do
      git mv $d $d-nxp-bsp
  done

  for d in $(find -type d | egrep '/imx$'); do
      git mv $d $d-nxp-bsp
  done

  for d in $(find -type d | egrep '/mx[5s]w*'); do
      git mv $d $d-generic-bsp
  done
```

Fixes: #791.
Signed-off-by: Otavio Salvador &lt;otavio@ossystems.com.br&gt;
</content>
</entry>
<entry>
<title>imx-boot,u-boot-imx: Add bootloader image size to SD card image</title>
<updated>2022-01-19T21:50:12+00:00</updated>
<author>
<name>Tom Hochstein</name>
<email>tom.hochstein@nxp.com</email>
</author>
<published>2022-01-13T23:56:08+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/meta-freescale.git/commit/?id=92acf99a6124df0d2e10bf10f296962ab9383ba1'/>
<id>urn:sha1:92acf99a6124df0d2e10bf10f296962ab9383ba1</id>
<content type='text'>
Append a tag to the bootloader image used in the SD card image. The tag
contains the size of the bootloader image so UUU can easily find the end of
the bootloader in the SD card image.

Signed-off-by: Tom Hochstein &lt;tom.hochstein@nxp.com&gt;
</content>
</entry>
<entry>
<title>imx-mkimage: Update to 5.10.72-2.2.0</title>
<updated>2022-01-17T18:24:39+00:00</updated>
<author>
<name>Tom Hochstein</name>
<email>tom.hochstein@nxp.com</email>
</author>
<published>2022-01-13T18:33:35+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/meta-freescale.git/commit/?id=16f2894dc267ab515a0b441f2d5ad0695a2c9f07'/>
<id>urn:sha1:16f2894dc267ab515a0b441f2d5ad0695a2c9f07</id>
<content type='text'>
Includes update to patch 0001-mkimage_fit_atf-fix-fit-generator-node-naming.patch
which is partially applied by 1527fb9.

Fixes in update:
---
7a277c8 LF-4794 iMX8ULP: move OPTEE OS base address to 0xa6000000
9a04474 Update iMX8DXL clean target to remove intermediate files
dfe6265 Fix build warning
c78d727 Fix iMX8DXL ahab container image extraction
9bd94cc LF-4522 Parse and extract the u-boot-atf container
6cf67ed iMX8QM/QX/DXL/ULP: Add core id to -data option
1527fb9 iMX8M: fix FIT DT node unit address
cbf03b6 Fix issue with C0 versus B0 nightly pull for VAL.
7f98709 iMX8M: soc: fix support to override u-boot DTB file name
c9cce4f iMX8ULP: support xip for m33 and add README
----

Signed-off-by: Tom Hochstein &lt;tom.hochstein@nxp.com&gt;
</content>
</entry>
<entry>
<title>imx-mkimage: use mkimage tool from sysroot</title>
<updated>2021-10-22T19:15:38+00:00</updated>
<author>
<name>Andrey Zhizhikin</name>
<email>andrey.z@gmail.com</email>
</author>
<published>2021-10-21T10:01:01+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/meta-freescale.git/commit/?id=c59f817b0d1ee70ef224405ff8acd31e0743ed91'/>
<id>urn:sha1:c59f817b0d1ee70ef224405ff8acd31e0743ed91</id>
<content type='text'>
mkimage tool is provided as a part of sysroot and should not be used as
a local copy, since it contains runtime dependencies which local copy
does not account for.

Drop the local copy on mkimage, introduce the patch that fixes mkimage
invocations in build system.

Signed-off-by: Andrey Zhizhikin &lt;andrey.z@gmail.com&gt;
</content>
</entry>
<entry>
<title>imx-mkimage: update to 5.10.52-2.1.0</title>
<updated>2021-10-22T19:15:38+00:00</updated>
<author>
<name>Andrey Zhizhikin</name>
<email>andrey.z@gmail.com</email>
</author>
<published>2021-10-19T18:38:42+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/meta-freescale.git/commit/?id=f0092d11699caf95f43aa8acfb2ba7d166608859'/>
<id>urn:sha1:f0092d11699caf95f43aa8acfb2ba7d166608859</id>
<content type='text'>
Following commits are included in this update:
----
1112c88 ("MLK-25706: iMX8M: soc: fix support to override u-boot DTB file name")
5af389c ("iMX8ULP: support xip for m33 and add README")
37faca4 ("MLK-25490 imx8m: Remove unused DDR registers file")
4e241ae ("iMX8M: Support to override u-boot DTB file name")
7e5ff11 ("imx8ulp: Workaround ATXP flash header for dual boot")
394188b ("Support iMX8ULP secure boot")
32bf25f ("imx8ulp: Add flash_dualboot_m33 to generate M33 container")
aa44b32 ("imx8ulp: Move M33 image before AP image for single boot")
ad70dd2 ("imx8qm: cockpit: fix Linux image name in nightly targets")
----

Signed-off-by: Andrey Zhizhikin &lt;andrey.z@gmail.com&gt;
</content>
</entry>
<entry>
<title>layer: Convert to new override syntax</title>
<updated>2021-08-12T17:08:24+00:00</updated>
<author>
<name>Khem Raj</name>
<email>raj.khem@gmail.com</email>
</author>
<published>2021-08-02T18:01:05+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/meta-freescale.git/commit/?id=59d36c9832702989bfcca8a5af29fb2dff01efcc'/>
<id>urn:sha1:59d36c9832702989bfcca8a5af29fb2dff01efcc</id>
<content type='text'>
Signed-off-by: Khem Raj &lt;raj.khem@gmail.com&gt;
</content>
</entry>
<entry>
<title>imx-mkimage: Drop dcd files from deploy folder</title>
<updated>2021-07-16T17:20:09+00:00</updated>
<author>
<name>Tom Hochstein</name>
<email>tom.hochstein@nxp.com</email>
</author>
<published>2021-07-16T17:20:05+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/meta-freescale.git/commit/?id=6d463c7048ef95e56d4730d5636df4b8836a2059'/>
<id>urn:sha1:6d463c7048ef95e56d4730d5636df4b8836a2059</id>
<content type='text'>
The dcd files are apparently not needed and can be dropped.

Signed-off-by: Tom Hochstein &lt;tom.hochstein@nxp.com&gt;
</content>
</entry>
<entry>
<title>imx-mkimage: Upgrade to 5.10.35-2.0.0 release</title>
<updated>2021-07-16T17:16:42+00:00</updated>
<author>
<name>Tom Hochstein</name>
<email>tom.hochstein@nxp.com</email>
</author>
<published>2021-07-16T17:16:42+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/meta-freescale.git/commit/?id=ea3c8d90600c2ad3a0a8989d3965aa85f28bd6df'/>
<id>urn:sha1:ea3c8d90600c2ad3a0a8989d3965aa85f28bd6df</id>
<content type='text'>
Signed-off-by: Tom Hochstein &lt;tom.hochstein@nxp.com&gt;
</content>
</entry>
<entry>
<title>imx-mkimage: fix node name generations</title>
<updated>2021-04-22T13:39:22+00:00</updated>
<author>
<name>Andrey Zhizhikin</name>
<email>andrey.z@gmail.com</email>
</author>
<published>2021-04-22T12:49:13+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/meta-freescale.git/commit/?id=31d58f1791e1535b650739a07c835f272882863a'/>
<id>urn:sha1:31d58f1791e1535b650739a07c835f272882863a</id>
<content type='text'>
FIT node names generated by imx-mkimage script are not conformant to the
latest version of mkimage tool and are caused to be skipped at parsing
stage, leading to build errors.

Introduce the patch to correct generated node names (drop unit address
fields and replace with names-only).

Fixes: #741 https://github.com/Freescale/meta-freescale/issues/741
Signed-off-by: Andrey Zhizhikin &lt;andrey.z@gmail.com&gt;
Cc: Tom Hochstein &lt;tom.hochstein@nxp.com&gt;
</content>
</entry>
<entry>
<title>imx-boot: Add dependency on xxd-native</title>
<updated>2021-04-20T13:26:07+00:00</updated>
<author>
<name>Nathan Rossi</name>
<email>nathan.rossi@digi.com</email>
</author>
<published>2021-04-20T07:02:51+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/meta-freescale.git/commit/?id=71a0623ada456790778213a0ea2bb6b1535bd069'/>
<id>urn:sha1:71a0623ada456790778213a0ea2bb6b1535bd069</id>
<content type='text'>
The fspi_packer.sh script uses xxd in order to generate the SPI flash
configuration header. If xxd is missing no error is produced and the
output image does not work. The log however contains the following error
messages (e.g. for iMX8MP flash_evk_flexspi target):

    ./../scripts/fspi_packer.sh ../scripts/fspi_header
    ./../scripts/fspi_packer.sh: 5: xxd: not found
    dd: failed to open 'qspi-header': No such file or directory
    3333+1 records in
    3333+1 records out
    3413776 bytes (3.4 MB, 3.3 MiB) copied, 0.00566483 s, 603 MB/s
    dd: failed to open 'qspi-header.off': No such file or directory
    cp: cannot stat 'qspi-header.off': No such file or directory
    rm: cannot remove 'qspi-header*': No such file or directory
    F(Q)SPI IMAGE PACKED

xxd is not in HOSTTOOLS or HOSTTOOLS_NONFATAL, as such the explicit
DEPENDS is required.

Signed-off-by: Nathan Rossi &lt;nathan.rossi@digi.com&gt;
</content>
</entry>
</feed>
