summaryrefslogtreecommitdiffstats
path: root/recipes-bsp/imx-mkimage
Commit message (Collapse)AuthorAgeFilesLines
* imx-mkimage: Update for NXP release 6.1.55-2.2.0Oleksandr Suvorov2024-01-021-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Relevant changes: - c436545 LF-10397 imx8: Fix SCU container file offset issue - 5c97f59 imx9: Fix flash_singleboot_spinand broken - c684071 iMX9: Add signature DTS file - e019f61 imx9: Add System ready relevant targets - 5c58565 Support MSEL option for MX95 SM. - d683e41 Add FW header support - 703bc3c Update LPDDR5 FW to v202306 - cc6c3a4 imx95: Clean up targets in soc.mak and update Readme.imx95 - 3686be1 Add SM target with OEI+SM+M7(TCM)+AP. - e8d6d79 Update SM targets. Add SM target with M7 image in DDR. - 2ae36d5 Add SM+M7 target for i.MX9. - 3b13c36 Replace the OEI image with the prebuilt one - b41f521 Add SM only target for i.MX9. - 0eaf132 Introduce LPDDR_FW_PREFIX parameter - 3b69364 add Readme for i.MX95 - f308051 add temp m33 oei.bin from ROM team - 94e72ee update for entry and lpboot - 4fb55b7 imx95: Add targets to include M7 image - 68e4acb Add support for both OEI entry and destination addresses - fae7490 Add the target that embed OEI and Synopsys PHY FW - 17b2a94 Update to support meta data for i.MX9 - b437ce9 add a new target for zebu - 241701b support M7 - 72439ea support i.MX95 OEI - 4648479 imx9: enable a55 image when lpboot for i.MX95 - 092a1a9 imx9: make AHAB_IMG could be passed from command line - 6ef5326 iMX9: use -m33 & a55 - e9bf5c4 mkimage_imx8: add m33 option - ae6a77f Fix autobuild failure - 621803d Update Yocto build name to Common [YOCIMX-7230] - 3fefc2a Add example usage for autobuild - e439c8e Fix README and SCR permission - e1acbb6 Extract common logic from autobuild.mak - e8ed7ad Use common boottools location [YOCIMX-7189] Signed-off-by: Oleksandr Suvorov <oleksandr.suvorov@foundries.io>
* imx-mkimage: Update for NXP release 6.1.36-2.1.0Tom Hochstein2023-12-082-25/+22
| | | | | Reported-by: Joao Marcos Costa <joaomarcos.costa@bootlin.com> Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com>
* imx-boot: sync with upstream recipeOleksandr Suvorov2023-11-131-0/+2
| | | | | | Support imx91p and a "translation" rule for mx9. Signed-off-by: Oleksandr Suvorov <oleksandr.suvorov@foundries.io>
* imx-boot: Prevent unnecessary cp of UBOOT_DTB_NAME_EXTRA if ↵Timo Schuster2023-10-051-3/+3
| | | | UBOOT_SIGN_ENABLE is set
* imx-boot: Copy UBOOT_DTB_NAME_EXTRA instead of UBOOT_DTB_NAME to ↵Timo Schuster2023-10-041-1/+1
| | | | BOOT_STAGING in compile_mx8 to fix 'Can't find u-boot DTB file, please copy from u-boot' error
* imx-boot: allow deploy multiple u-bootDaiane Angolini2023-09-231-48/+126
| | | | | | | | | | | | | | | | | | | | | Generate multiple U-boots if env UBOOT_CONFIG contains multiple configs and support for the case where env UBOOT_DTB_NAME is defined in the machine's configuration and has flags for each dtb-file for a specific u-boot configs. UBOOT_CONFIG = "a b" UBOOT_DTB_NAME[a] = "a.dtb" UBOOT_DTB_NAME[b] = "b.dtb" Skip to create symlink as imx-boot in deploy directory and print warning about unique wks.in file if env UBOOT_CONFIG contains multiple configs. This prevents wic-images from been created that only point on imx-boot. See PR #1439 and #1642 Signed-off-by: Maxim Paymushkin <maxim.paymushkin@gmail.com> Signed-off-by: Daiane Angolini <daiane.angolini@foundries.io>
* imx-base.inc: Implement generic SOC revision designTom Hochstein2023-08-211-8/+1
| | | | | | | | | | Rework imx-boot and use-imx-security-controller-firmware.bbclass with a generic SOC revision design implemented in imx-base.inc. This does replace the machine feature design using `soc-rev*`, but maintains backwards compatibility by incorporating that design into the default settings. Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com>
* imx-mkimage: Update lf-6.1.1_1.0.0 to lf-6.1.22_2.0.0Oleksandr Suvorov2023-07-202-27/+32
| | | | | | | | | | | | | Relevant changes: - 5cfd218 MA-21144 imx8m: fix pad_image script - 1752a0a imx8ulp: Change to use A2 as default REV - d523fce imx8m: Add Multiple u-boot DTB support to FIT - 4981b77 MA-21096 Fix tee.bin can't be compressed as expected on 8ulp/8q. - ac12242 MA-21092 Adjust print log for compressed tee.bin Refresh the patch for fixing mkimage_uboot issue for imx8m machines. Signed-off-by: Oleksandr Suvorov <oleksandr.suvorov@foundries.io>
* imx-mkimage: Update lf-5.15.71-2.2.0 to lf-6.1.1_1.0.0Oleksandr Suvorov2023-04-181-2/+2
| | | | | | | | | | | | Relevant changes: - d489494 Add SCR file SCR-imx-lib.txt for imx-mkimage - 9c3eae7 imx93: Add bootaux container for M33 - a9deaa5 MA-20928 Add support for TEE compression - c015c34 iMX93: support flash XIP boot - e72c588 iMX8DXL: update default hash algorithm for kernel image to SHA256 - 11fedfb Revert "iMX8DXL: add flash_kernel_sha256 target for sha256 hash alogorithm" Signed-off-by: Oleksandr Suvorov <oleksandr.suvorov@foundries.io>
* imx-boot: Add i.MX 93 configurationDaiane Angolini2023-02-141-5/+37
| | | | | | It is based on 5.15.71_2.2.0 NXP BSP release. Signed-off-by: Daiane Angolini <daiane.angolini@foundries.io>
* imx-boot: Fix the bsp overrideRodrigo M. Duarte2023-02-131-1/+1
| | | | Signed-off-by: Rodrigo M. Duarte <rodrigo.duarte@ossystems.com.br>
* imx-boot: Add support for i.MX 8ULP machinesDaiane Angolini2023-02-071-0/+28
| | | | | | It comes from 5.15.52-2.2.0 BSP. Signed-off-by: Daiane Angolini <daiane.angolini@foundries.io>
* imx-mkimage: Update lf-5.15.52-2.1.0 to lf-5.15.71-2.2.0Oleksandr Suvorov2023-01-061-2/+2
| | | | | | | | | | | | | | | | | | | | Relevant changes: - 3bfcfcc iMX8DXL: update default hash algorithm for kernel image to SHA256 - 6e44968 Revert "iMX8DXL: add flash_kernel_sha256 target for sha256 hash alogorithm" - 67ac638 imx8ulp: Update fspi_header_atxp to support GD25LX256E - 15ac07f Removed default server. Please define in your .bashrc. - b6a8e30 Change netrc check to a warning. - 62b49b9 Fix issue when N=latest. - 0bf9cba Use Nexus for auto build downloads. - 7913800 imx8ulp: Add new target to pack ROM patch signed image - bf2924b iMX8DXL: add flash_kernel_sha256 target for sha256 hash alogorithm - fe3cdb2 iMX8ULP: update README for A1 silicon - 735945e iMX8M: use name mkeficapsule - 0d4d3b1 iMX8M: use GUID for mkeficapsule - ee1d098 iMX8M: add a delete_capsule_key target - 95d74cd imx8ulp: Update flash_kernel for A1 part Signed-off-by: Oleksandr Suvorov <oleksandr.suvorov@foundries.io>
* imx-mkimage: Simplify compile and install tasksTom Hochstein2022-10-301-9/+3
| | | | | | | | | | | | Replace do_compile() with EXTRA_OEMAKE: - The cd ${S} is redundant - The clean operation is already done in do_configure() - The two steps building the bin and mkimage_mx8 are the default behavior of the top-level Makefile with target mkimage_mx8 Drop redundant cd ${S} in do_install(). Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com>
* imx-mkimage: Update lf-5.15.32-2.0.0 to lf-5.15.52-2.1.0Tom Hochstein2022-10-302-17/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | Fixes: ``` 37648c8 iMX8ULP: update README for A1 silicon 46c0b5c iMX8M: use name mkeficapsule 809e209 iMX8M: use GUID for mkeficapsule c2dfe3e iMX8M: add a delete_capsule_key target 3948fde imx8ulp: Update flash_kernel for A1 part a735d32 Add MX9 autobuild. 96dba6b iMX8M: correct the path of mkimage_uboot 47e6dd4 imx8ulp: Add A1 part image build bd068a5 iMX8M: add capsule support 57a8eda makefile: compile in the specified directory fce2236 iMX93: support flash_lpboot and flash_lpboot_flexspi 400f62b imx9: Add DDR PHY FW to boot image 74b2c48 iMX93: support flash_lpboot_no_ahabfw_flexspi image 9826dea iMX93: support m33 in single boot 58b70e2 mkimage: support an optional m4 load addr option 4ee8733 Container: Update sentinel d6815e4 Container: Add Chinese Algorithm SM3 8acf49b iMX9: Add iMX93 support dc4b1e2 imx8ulp: Update flash_kernel target loading address ``` Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com>
* imx-boot: Create missing build directoriesKhem Raj2022-10-261-0/+6
| | | | | | | | | | | | | | | These are needed by do_uboot_assemble_fitimage code after https://git.openembedded.org/openembedded-core/commit/?id=5e12dc911d0c541f43aa6d0c046fb87e8b7c1f7e since this code now expects these directories to exist even if we are not using it Fixes run.do_uboot_assemble_fitimage.2153024: line 1 64: cd: /mnt/b/yoe/master/build/tmp/work/imx8qm_var_som-yoe-linux-musl/imx-boot/1.0-r0/git/imx8qm_var_som_defconfig: No such file or directory Signed-off-by: Khem Raj <raj.khem@gmail.com>
* imx-mkimage: Update to 5.15.32_2.0.0Tom Hochstein2022-08-167-233/+14
| | | | | | | | | | Drop patches incorporated in the new version: - 0001-mkimage_fit_atf-fix-fit-generator-node-naming.patch - 0001-Add-support-for-overriding-BL32-and-BL33-not-only-BL.patch - 0001-Add-LDFLAGS-to-link-step.patch - 0001-Add-support-for-overriding-BL31-BL32-and-BL33.patch Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com>
* imx-base.inc: consolidate `IMX_EXTRA_FIRMWARE` definitionOtavio Salvador2022-07-291-3/+0
| | | | | | | | | | | | | | We should have a single definition for `IMX_EXTRA_FIRMWARE` variable as this is SoC specific and not machine, or recipe, dependent. This removes multiple assignments from: - conf/machine/imx8mq-evk.conf - conf/machine/include/imx8mm-evk.inc - conf/machine/include/imx8mn-evk.inc - conf/machine/include/imx8mp-evk.inc - recipes-bsp/imx-mkimage/imx-boot_1.0.bb Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
* imx-boot: Use public key injected DTB when FIT signature is enabledLoic Poulain2022-07-011-1/+5
| | | | | | | When UBOOT_SIGN_ENABLE we want to use the DTB in which mkimage has added the signature node. Signed-off-by: Loic Poulain <loic.poulain@linaro.org>
* recipes-bsp: drop custom deploy location for TF-A binaryAndrey Zhizhikin2022-06-141-3/+3
| | | | | | | | | | | | | Upstream TF-A and downstream TF-A fork uses different deployment locations for results binaries, which leads to failures during image build when switching between upstream and downstream versions. Drop the custom TF-A deployment location, which is only specific to NXP downstream deployment, allowing the TF-A binaries from upstream and downstream to be picked up from the same location, namely - image deployment folder. Signed-off-by: Andrey Zhizhikin <andrey.z@gmail.com>
* imx-mkimage: Update for NXP release 5.15.5-1.0.0Tom Hochstein2022-05-101-2/+2
| | | | | | | | 22346a3 For iMX8DXL, rename silicon REVISION to REV similar to 8X a8decee LF-4794 iMX8ULP: move OPTEE OS base address to 0xa6000000 62bfe50 Rename the QM/QX/DXL field return targets Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com>
* imx-mkimage: Fix a BL32 missing overriding in mkimage_fit_atf.shThomas Perrot2022-04-291-6/+8
| | | | | | | | | | From the patch 0001-Add-support-for-overriding-BL32-and-BL33-not-only-BL.patch an occurrence of tee.bin wasn't replaced by $BL32. In addition, this patch use $BL31 and $BL32 value, in a displayed line, instead hardcoded values. Signed-off-by: Thomas Perrot <thomas.perrot@bootlin.com>
* imx-mkimage: fix patchMax Krummenacher2022-04-281-1/+1
| | | | | | | | | | | | | | | | | | | imx-mkimage is compiled with the host gcc, thus if one needs to add explicit linker flags one should use BULD_LDFLAGS, not the ones forseen for the cross compiler. Prevents, on distros with an older gcc (e.g. OpenSuse 15.3 with gcc 7.5.0), the following error. | Compiling mkimage_imx8 | gcc -O2 -Wall -std=c99 -I .../imx-boot/1.0-r0/recipe-sysroot-native/usr/include -L .../imx-boot/1.0-r0/recipe-sysroot-native/usr/lib mkimage_imx8.c -o mkimage_imx8 -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed -fmacro-prefix-map=.../imx-boot/1.0-r0=/usr/src/debug/imx-boot/1.0-r0 -fdebug-prefix-map=.../imx-boot/1.0-r0=/usr/src/debug/imx-boot/1.0-r0 -fdebug-prefix-map=.../imx-boot/1.0-r0/recipe-sysroot= -fdebug-prefix-map=.../imx-boot/1.0-r0/recipe-sysroot-native= -Wl,-z,relro,-z,now -lz | gcc: error: unrecognized command line option ‘-fmacro-prefix-map=.../imx-boot/1.0-r0=/usr/src/debug/imx-boot/1.0-r0’ | make[1]: *** [soc.mak:87: mkimage_imx8] Error 1 Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
* Merge pull request #1059 from MaxKrummenacher/masterOtavio Salvador2022-04-281-11/+11
|\ | | | | simplify the use of imx-boot-containers
| * imx-boot: don't restrict to the nxp bsp onlyMax Krummenacher2022-04-261-11/+11
| | | | | | | | | | | | | | | | | | | | Choosing if the boot container FIT image is built with imx-mkimage/ imx-boot or the U-Boot provided binman can be done with the imx-boot-container MACHINEOVERRIDES. Change the used overrides from *nxp-bsp to *generic-bsp. Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
* | imx-imkimage: fix a typo in a patch for print_fit_hab.shThomas Perrot2022-04-271-3/+3
| | | | | | | | | | | | When the variable BL31 is empty, BL33 was initialized instead of BL31. Signed-off-by: Thomas Perrot <thomas.perrot@bootlin.com>
* | imx-imkimage: install print_fit_hab.shThomas Perrot2022-04-275-0/+164
|/ | | | | | | This script gives the address, the offset and the size of binaries have been stored into U-Boot FIT image that contains TF-A, U-Boot and OP-TEE. Signed-off-by: Thomas Perrot <thomas.perrot@bootlin.com>
* mx8dx: Normalize MACHINEOVERRIDES implementationTom Hochstein2022-03-311-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | The imx8dx-mek machine is similar to imx8qxp-mek and so the mx8qxp override was included in the MACHINEOVERRIDES hierarchy. This is non-standard, and the rework of the SOC overrides didn't handle it properly, leading to a build break: ``` Log data follows: | DEBUG: Executing shell function do_compile | NOTE: 8QX boot binary build | cp: failed to access '/home/aquino/src/ossystems/oel-platform/build/tmp/work/imx8dx_mek-oel-linux/imx-boot/1.0-r0/git/iMX8DX/scfw_tcm.bin': Not a directory | WARNING: /home/aquino/src/ossystems/oel-platform/build/tmp/work/imx8dx_mek-oel-linux/imx-boot/1.0-r0/temp/run.do_compile.1809636:179 exit 1 from 'cp /home/aquino/src/ossystems/oel-platform/build/tmp/deploy/images/imx8dx-mek/imx-boot$ tools/scfw_tcm.bin /home/aquino/src/ossystems/oel-platform/build/tmp/work/imx8dx_mek-oel-linux/imx-boot/1.0-r0/git/iMX8DX/scfw_tcm.bin' | WARNING: Backtrace (BB generated script): | #1: compile_mx8x, /home/aquino/src/ossystems/oel-platform/build/tmp/work/imx8dx_mek-oel-linux/imx-boot/1.0-r0/temp/run.do_compile.1809636, line 179 | #2: do_compile, /home/aquino/src/ossystems/oel-platform/build/tmp/work/imx8dx_mek-oel-linux/imx-boot/1.0-r0/temp/run.do_compile.1809636, line 151 | #3: main, /home/aquino/src/ossystems/oel-platform/build/tmp/work/imx8dx_mek-oel-linux/imx-boot/1.0-r0/temp/run.do_compile.1809636, line 189 ERROR: Task (/home/aquino/src/ossystems/oel-platform/sources/meta-freescale/recipes-bsp/imx-mkimage/imx-boot_1.0.bb:do_compile) failed with exit code '1' ``` Fix the problem by removing mx8qxp from the mx8dx hierarchy and adapting existing mx8qxp overrides appropriately. Fixes: #1027 Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com>
* layer: Update LICENSE variable to use SPDX license identifiersAndrey Zhizhikin2022-03-032-2/+2
| | | | | | | | | | | | Since OE-Core commit 9379f80f48 ("license/insane: Show warning for obsolete license usage"), LICENSE field not containing SPDX identifiers are treated with WARNING. An automated conversion using scripts/contrib/convert-spdx-licenses.py to convert to use the standard SPDX license identifiers has been done on the entire layer. Signed-off-by: Andrey Zhizhikin <andrey.z@gmail.com>
* Generalize overrides subsystem for NXP and Mainline supportOtavio Salvador2022-02-211-10/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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 <otavio@ossystems.com.br>
* imx-boot,u-boot-imx: Add bootloader image size to SD card imageTom Hochstein2022-01-191-4/+6
| | | | | | | | 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 <tom.hochstein@nxp.com>
* imx-mkimage: Update to 5.10.72-2.2.0Tom Hochstein2022-01-172-125/+14
| | | | | | | | | | | | | | | | | | | | | 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 <tom.hochstein@nxp.com>
* imx-mkimage: use mkimage tool from sysrootAndrey Zhizhikin2021-10-223-3/+84
| | | | | | | | | | | 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 <andrey.z@gmail.com>
* imx-mkimage: update to 5.10.52-2.1.0Andrey Zhizhikin2021-10-221-2/+2
| | | | | | | | | | | | | | | | | 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 <andrey.z@gmail.com>
* layer: Convert to new override syntaxKhem Raj2021-08-121-11/+11
| | | | Signed-off-by: Khem Raj <raj.khem@gmail.com>
* imx-mkimage: Drop dcd files from deploy folderTom Hochstein2021-07-161-14/+1
| | | | | | The dcd files are apparently not needed and can be dropped. Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com>
* imx-mkimage: Upgrade to 5.10.35-2.0.0 releaseTom Hochstein2021-07-161-4/+3
| | | | Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com>
* imx-mkimage: fix node name generationsAndrey Zhizhikin2021-04-222-1/+170
| | | | | | | | | | | | | 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 <andrey.z@gmail.com> Cc: Tom Hochstein <tom.hochstein@nxp.com>
* imx-boot: Add dependency on xxd-nativeNathan Rossi2021-04-201-0/+2
| | | | | | | | | | | | | | | | | | | | | | | 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 <nathan.rossi@digi.com>
* imx-boot: drop compatibility with mainline bspAndrey Zhizhikin2021-03-171-1/+1
| | | | | | | | | | | | | Mainline BSP switches from using imx-boot package, which provides the boot container for mx8 derivatives, to the boot container provided as a part of u-boot package and usage of imx-boot-container class. Drop the compatibility with mainline BSP from the recipe, and let derivatives that are built with it to integrate support of new boot container mechanism. Fixes: 6fc0971c ("imx-mkimage: allow to be used with mainline bsp for mx8m)" Signed-off-by: Andrey Zhizhikin <andrey.z@gmail.com>
* layer: license: fix GPL-2.0 license identifiers changed upstreamAndrey Zhizhikin2021-02-242-2/+2
| | | | | | | | | | | | | | | Upstream commit 2456f523cf ("licenses: Update license file to match current SPDX names") deprecated the usage of GPL-2.0 SPDX identifier, removed GPL-2.0 license file and replaced it with GPL-2.0-only SPDX identifier and text file. Adjust layer recipes to use new SDPX identifier and text file. imx-test recipe has license has been re-captured to use GPL-2.0-or-later identifier, since it is required by the license text accompanying the source code repository through "GPLv2 or later" statement in COPYING file. Signed-off-by: Andrey Zhizhikin <andrey.z@gmail.com>
* imx-mkimage: : update to 5.4.70_2.3.0Max Krummenacher2021-02-011-3/+3
| | | | Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
* imx-mkimage: Reorder inheriting native classKhem Raj2021-01-281-1/+1
| | | | | | | Fixes imx-mkimage-git: imx-mkimage: native/nativesdk class is not inherited last, this can result in unexpected behaviour. [native-last] Signed-off-by: Khem Raj <raj.khem@gmail.com>
* imx8qxpmek: Update the i.MX 8QXP default build to rev C0Tom Hochstein2021-01-212-2/+6
| | | | | | | | | | The current machine configuration support for 8QXP MEK is for rev B0 silicon. Support for rev C0 is implemented using a machine override `mx8qxpc0`. Update the default build to rev C0 silicon. Support for rev B0 is provided with a new machine feature `soc-revb0`. The machine override is removed. Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com>
* imx-mkimage: allow to be used with mainline bsp for all mx8 machinesGary Bisson2020-12-301-12/+0
| | | | Signed-off-by: Gary Bisson <gary.bisson@boundarydevices.com>
* imx-mkimage: allow to be used with mainline bsp for mx8mAndrey Zhizhikin2020-12-111-20/+14
| | | | | | | | | | | | | | | | | | | | | | | | | imx-boot provides a boot container, which is required for mx8m family of SOCs to execute a boot sequence. Allow the imx-boot to generate boot container for Mini, Nano and Plus SOCs by adding use-mainline-bsp to the list of compatible machines. In order to accommodate new boot container generation model, former SOC_TARGET variable has been renamed to IMX_BOOT_SOC_TARGET and should be explicitly defined in the target machine recipes. This is done to indicate that even if the mx8mm machine is finter out from MACHINEOVERRIDES by extender filter - this recipe picks up a proper target definition for boot container construction. Default ATF binary image is also now based on ATF_PLATFORM, which is explicitly defined in the machine configuration file. Current support includes only Mini, Nano and Plus SOCs from i.MX8M family, and additions of further machines would require the definition of ATF_PLATFORM and IMX_BOOT_SOC_TARGET to be moved out from imx-boot recipe to a machine configuration file. Signed-off-by: Andrey Zhizhikin <andrey.z@gmail.com>
* imx-mkimage: Update to imx_5.4.47_2.2.0 branchCristinel Panfir2020-10-201-2/+2
| | | | Signed-off-by: Cristinel Panfir <cristinel.panfir@nxp.com>
* imx-boot: allow for additional/different u-boot device-treeMax Krummenacher2020-10-021-3/+3
| | | | | | | | | | | | | | | | With the current call to imx-mkimage and SOC_TARGET = "iMX8M" the u-boot device tree file name is set to $(PLAT)-evk.dtb in iMX8M/soc.mak which happens to match ${UBOOT_DTB_NAME} if building for an NXP machine. Setting the dtbs environment variable to ${UBOOT_DTB_NAME} makes the build succeed also for other machines. In the hardcoded version $(dtbs) is an intermediate file and gets delete as the last step of make. Thus for several make targets we have to redo the copy step before each make invocation or the second one will fail as the device tree file is then missing. Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
* imx-mkimage: upgrade to version 1.0Andrey Zhizhikin2020-09-233-23/+61
| | | | | | | | This upgrade contains of following modifications: - introduce new i.MX8 derivatives; - upgrade imx-mkimage recipe to match NXP release; Signed-off-by: Andrey Zhizhikin <andrey.zhizhikin@leica-geosystems.com>
* imx-boot: fix mkimage_uboot linking issueMing Liu2020-05-051-0/+2
| | | | | | | | | | | In imx-boot's Makefile, it downloads a native tool mkimage_uboot and executes it, but this native tool requires libssl.so.1.1, which is in ${STAGING_LIBDIR_NATIVE}, we need set LD_LIBRARY_PATH to include it, or it might run into following errors: | ./mkimage_uboot -E -p 0x3000 -f u-boot.its u-boot.itb | ./mkimage_uboot: error while loading shared libraries: libssl.so.1.1: cannot open shared object file: No such file or directory Signed-off-by: Ming Liu <ming.liu@toradex.com>