Skip to content

Commit 0dccaa0

Browse files
committed
meta-rauc-nxp: added support for the FRDM i.MX 93 development board
Since the board layout is very similar to one of the products, the layer included, the changes here are very minimalistics: - Updated the README file - Added a recipe for building out of meta-imx which does no build off linux-yocto Signed-off-by: Ron Munitz <ron@thepscg.com>
1 parent 222c612 commit 0dccaa0

2 files changed

Lines changed: 21 additions & 2 deletions

File tree

meta-rauc-nxp/README.rst

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ Actual requirements may differ from project to project and will
3939
probably need a much different RAUC/bootloader/system configuration.
4040

4141

42-
Currently this layer supports only cubox-i/HummingBoard boards.
42+
Currently this layer supports cubox-i/HummingBoard boards, and the FRDM-IMX93 development board.
4343

4444

4545
I. Adding the meta-rauc-nxp layer to your build
@@ -51,7 +51,7 @@ Run 'bitbake-layers add-layer meta-rauc-nxp'
5151
II. Build NXP Demo System
5252
===============================================
5353

54-
For Olimex iMX8MP-SOM-4GB-IND and iMX8MP-SOM-EVB-IND set in local.conf:
54+
For Olimex iMX8MP-SOM-4GB-IND and iMX8MP-SOM-EVB-IND set in local.conf::
5555

5656
MACHINE = "olimex-imx8mp-evb"
5757
INIT_MANAGER = "systemd"
@@ -61,6 +61,9 @@ For Olimex iMX8MP-SOM-4GB-IND and iMX8MP-SOM-EVB-IND set in local.conf:
6161
IMAGE_FSTYPES:append = " ext4"
6262
IMAGE_BOOT_FILES:append = " boot.scr"
6363

64+
For FRDM-IMX93 you would can use the exact same parameters as above (i.e., use the dual-imx-boot-bootpart.wks.in kickstart file), and use the following ``MACHINE``::
65+
MACHINE = "imx93frdm"
66+
6467
For cubox-i/HummingBoard follow the steps below:
6568

6669
::
@@ -157,3 +160,4 @@ A convenient way to host HTTP server is::
157160

158161
After the update is complete reboot the board to boot from the updated rootfs.
159162

163+
The steps for the iMX93 boards are identical, other than the file names. For example, should you build ``core-image-base`` (which is the default bundled image in all of the aforementioned products in this README fie), your will want to install ``update-bundle-imx93frdm.raucb`` and flash the corresponding ``.wic.zstd`` image name respectfully.
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
FILESEXTRAPATHS:prepend := "${THISDIR}/files:"
2+
SRC_URI += "file://rauc.cfg"
3+
4+
# linux-imx from meta-imx/meta-imx-bsp does not inherit linux-yocto and does not implement the fragment mechanisms.
5+
# So we just add it and call merge-config manually, should one choose to use the iMX downstream recipe (rather than the community fsl one)
6+
do_configure:append() {
7+
# ${S}: source ; ${B}: build ; ${WORKDIR}: workdir (fragments go there via SRC_URI)
8+
if [ -f "${WORKDIR}/rauc.cfg" ]; then
9+
# We use the kernel's own script to ensure it's done right
10+
${S}/scripts/kconfig/merge_config.sh -m -O ${B} ${B}/.config ${WORKDIR}/rauc.cfg
11+
12+
# This part ensures the .config is valid and dependencies are resolved
13+
oe_runmake -C ${S} O=${B} oldconfig
14+
fi
15+
}

0 commit comments

Comments
 (0)