summaryrefslogtreecommitdiffstats
path: root/recipes-bsp/imx-mkimage
Commit message (Collapse)AuthorAgeFilesLines
* imx-boot: Create missing build directoriesKhem Raj2022-11-281-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> (cherry picked from commit 94374963a83b6d99c696f211aae1a41346ca983a)
* imx-mkimage: Simplify compile and install tasksTom Hochstein2022-11-091-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-11-062-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> (cherry picked from commit 0a90bc6bfdc04a2e570e6f928c78dc3ec534de37)
* imx-mkimage: Update to 5.15.32_2.0.0Tom Hochstein2022-08-187-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> (cherry picked from commit ca7d70516fb7855a1e84aebf8b9b1e19ae784385)
* 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> (cherry picked from commit 63d73925950aa35ec1378696c0f5dcfd2fef9e83)
* 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> (cherry picked from commit 6824fc6603adfd2b0d4e7ef9d854120eec7b3129)
* recipes-bsp: drop custom deploy location for TF-A binaryAndrey Zhizhikin2022-06-161-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> (cherry picked from commit 1ec9540091c6d2cb7faf679f3b01916bfb0a0397)
* 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> (cherry picked from commit 8f10c7333024039483245cd745393551be086cd2)
* 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>
* imx-mkimage: update to use new kernel 5.4.3-1.0.0 branchAndrey Zhizhikin2020-04-161-1/+1
| | | | | | | Update recipe to pull sources from new branch, which is aligned with new kernel version 5.4.3 Signed-off-by: Andrey Zhizhikin <andrey.zhizhikin@leica-geosystems.com>
* u-boot: Split out u-boot toolsJoshua Watt2020-03-301-1/+2
| | | | | | | | | | | | | | | | | | | Splits out the IMX u-boot tools build to it's own recipe. This is required because these are native tools and thus need to be in a -native recipe to be properly relocated (instead of being built as part of the target u-boot-imx recipe). If the tools aren't built in a -native recipe, then the mkimage tool will contain a hard coded path to the uninative program loader from the sandbox where it was first built and this will not get corrected when restored from sstate. The result is that the mkimage_uboot executable can't run because it's looking for a hard coded program loader that does not exist, resulting in strange build errors like: ./mkimage_uboot: Command not found even though the executable is obviously in the correct location. Signed-off-by: Joshua Watt <Joshua.Watt@garmin.com>
* imx-boot: add support for i.MX8M Nano EVKAndrey Zhizhikin2020-01-081-1/+4
| | | | | | | Add ATF and platform machine definitions for i.MX8M Nano SoC in order to generate boot images. This mainly follows the setup done for i.MX8M Mini. Signed-off-by: Andrey Zhizhikin <andrey.zhizhikin@leica-geosystems.com>
* imx-mkimage_git.inc: Update to 4.19.35_1.1.0Cristinel Panfir2019-12-191-2/+2
| | | | | | | | - Enable dual bootloader for imx8m - Add functionality to parse 8/8X container headers - Update the build target for different ddr firmware Signed-off-by: Cristinel Panfir <cristinel.panfir@nxp.com>
* imx-boot: Use imx-seco firmwareMihai Lindner2019-12-161-3/+3
| | | | | | Account for imx-seco split from firmware-imx. Signed-off-by: Mihai Lindner <mihai.lindner@nxp.com>
* optee: Add support for optee imx fork to imx8mqevkPeter Griffin2019-11-081-1/+14
| | | | | | | | optee imx fork like most other imx forked components is more fully featured for imx devices and supports things like CAAM accleration. Signed-off-by: Peter Griffin <peter.griffin@linaro.org>
* imx-boot: Pass DTB names to makeJoshua Watt2019-09-041-1/+1
| | | | | | | Passes the name of the DTBs to be built to make. This allows alternate DTBs to be built instead of assuming the default Signed-off-by: Joshua Watt <Joshua.Watt@garmin.com>
* imx-boot: Remove i.MX 8QXP u-boot configurationTom Hochstein2019-06-131-8/+0
| | | | | | IMXBOOT_TARGETS is now defined in imx8qxpmek.conf. Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com>
* imx-boot: Drop independent DCD componentTom Hochstein2019-06-131-8/+0
| | | | | | The DCD component has moved into the firmware. Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com>
* imx-boot: Add DisplayPort firmware for i.MX 8MTom Hochstein2019-06-131-2/+4
| | | | | | | Also, use explicit names to help remove surprises due to unexpected changes. Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com>
* imx-boot: Upgrade to L4.14.98-2.0.0_gaTom Hochstein2019-06-131-6/+9
| | | | | | | | - Rename atf binary - Update intermediate name for u-boot nodtb binary - Improve whitespace for file copies Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com>
* imx-mkimage: Upgrade to L4.14.98-2.0.0_gaTom Hochstein2019-06-131-3/+3
| | | | Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com>
* imx-boot: drop dependency to u-bootStefan Agner2019-05-201-1/+0
| | | | | | | | The recipe do_compile task depends on virtual/bootloader which makes sure the necessary dependencies are available once imx-boot do_compile is executed. Signed-off-by: Stefan Agner <stefan.agner@toradex.com>