* [Buildroot] [PATCH next 1/1] configs/freescale_imx93frdm: new defconfig
@ 2025-03-06 20:47 Julien Olivain
2025-03-24 20:51 ` Fabio Estevam
2025-05-16 13:12 ` Peter Korsgaard
0 siblings, 2 replies; 3+ messages in thread
From: Julien Olivain @ 2025-03-06 20:47 UTC (permalink / raw)
To: buildroot; +Cc: Martin Chabot, Julien Olivain, Fabio Estevam
This commit adds support for the i.MX 93 FRDM (Freedom) board.
The i.MX93 FRDM development board is a low-cost and compact
development board featuring the i.MX93 applications processor.
See: https://nxp.com/FRDM-IMX93
This defconfig is based on freescale_imx93evk_defconfig introduced
by Sébastien, in Cc.
Note: the Linux and U-Boot repositories are forks. This is because
the NXP software team did not included all the necessary i.MX93 FRDM
patches in the standard NXP i.MX BSP at the time of this commit.
Instead, patches were published in a dedicated Yocto Layer from [1].
The forks used in this defconfig are simply the repositories [2]
and [3] with patches from [1] applied on them. This is only to make this
defconfig simpler in the meantime the BSP patches are included in the
NXP BSP repositories.
Thanks to Martin Chabot for lending a board!
[1] https://github.com/nxp-imx-support/meta-imx-frdm
[2] https://github.com/nxp-imx/uboot-imx
[3] https://github.com/nxp-imx/linux-imx
Cc: Martin Chabot <martin.chabot@gmail.com>
Cc: Sébastien Szymanski <sebastien.szymanski@armadeus.com>
Tested-by: Julien Olivain <ju.o@free.fr>
[Julien: Tested on board 700-94611 Rev B1]
Signed-off-by: Julien Olivain <ju.o@free.fr>
---
DEVELOPERS | 2 +
.../arm-trusted-firmware.hash | 2 +
| 1 +
.../imx93frdm/patches/linux/linux.hash | 2 +
.../imx93frdm/patches/uboot/uboot.hash | 2 +
board/freescale/imx93frdm/readme.txt | 74 +++++++++++++++++++
configs/freescale_imx93frdm_defconfig | 41 ++++++++++
7 files changed, 124 insertions(+)
create mode 100644 board/freescale/imx93frdm/patches/arm-trusted-firmware/arm-trusted-firmware.hash
create mode 120000 board/freescale/imx93frdm/patches/linux-headers/linux-headers.hash
create mode 100644 board/freescale/imx93frdm/patches/linux/linux.hash
create mode 100644 board/freescale/imx93frdm/patches/uboot/uboot.hash
create mode 100644 board/freescale/imx93frdm/readme.txt
create mode 100644 configs/freescale_imx93frdm_defconfig
diff --git a/DEVELOPERS b/DEVELOPERS
index 25cb5dc764..9798b14a41 100644
--- a/DEVELOPERS
+++ b/DEVELOPERS
@@ -1800,9 +1800,11 @@ F: configs/ts7680_defconfig
F: package/paho-mqtt-c
N: Julien Olivain <ju.o@free.fr>
+F: board/freescale/imx93frdm/
F: board/qemu/riscv64-virt-efi/
F: board/spike/
F: board/technexion/imx8mmpico/
+F: configs/freescale_imx93frdm_defconfig
F: configs/imx8mmpico_defconfig
F: configs/qemu_riscv64_virt_efi_defconfig
F: configs/spike_riscv32_defconfig
diff --git a/board/freescale/imx93frdm/patches/arm-trusted-firmware/arm-trusted-firmware.hash b/board/freescale/imx93frdm/patches/arm-trusted-firmware/arm-trusted-firmware.hash
new file mode 100644
index 0000000000..7561385cb8
--- /dev/null
+++ b/board/freescale/imx93frdm/patches/arm-trusted-firmware/arm-trusted-firmware.hash
@@ -0,0 +1,2 @@
+# Locally calculated
+sha256 8cfe0afc903ebbc03f27e4874aa9ce82be78843a8b42ed4c906871e7f311b510 imx-atf-lf-6.6.36-2.1.0.tar.gz
--git a/board/freescale/imx93frdm/patches/linux-headers/linux-headers.hash b/board/freescale/imx93frdm/patches/linux-headers/linux-headers.hash
new file mode 120000
index 0000000000..5808d92afe
--- /dev/null
+++ b/board/freescale/imx93frdm/patches/linux-headers/linux-headers.hash
@@ -0,0 +1 @@
+../linux/linux.hash
\ No newline at end of file
diff --git a/board/freescale/imx93frdm/patches/linux/linux.hash b/board/freescale/imx93frdm/patches/linux/linux.hash
new file mode 100644
index 0000000000..0da8c03384
--- /dev/null
+++ b/board/freescale/imx93frdm/patches/linux/linux.hash
@@ -0,0 +1,2 @@
+# Locally calculated
+sha256 3244dc3c62c990d9de90e1c7193aa3099e0e74e720de5c9c13edfbfdd802f596 linux-imx-lf-6.6.36-2.1.0-imx93frdm.tar.gz
diff --git a/board/freescale/imx93frdm/patches/uboot/uboot.hash b/board/freescale/imx93frdm/patches/uboot/uboot.hash
new file mode 100644
index 0000000000..e512c27f7d
--- /dev/null
+++ b/board/freescale/imx93frdm/patches/uboot/uboot.hash
@@ -0,0 +1,2 @@
+# Locally calculated
+sha256 bced4334363199d5465532d221d06dc3a5b49271067d74408019c825ed2ca715 uboot-imx-lf-6.6.36-2.1.0-imx93frdm.tar.gz
diff --git a/board/freescale/imx93frdm/readme.txt b/board/freescale/imx93frdm/readme.txt
new file mode 100644
index 0000000000..3e5f404029
--- /dev/null
+++ b/board/freescale/imx93frdm/readme.txt
@@ -0,0 +1,74 @@
+**********************
+NXP i.MX 93 FRDM board
+**********************
+
+This file documents the Buildroot support for the i.MX 93 FRDM
+(Freedom) board. For more information on this board, see [1].
+
+
+Build
+=====
+
+First, configure Buildroot for the i.MX 93 FRDM board:
+
+ make freescale_imx93frdm_defconfig
+
+Build all components:
+
+ make
+
+When this command completes, the generated image containing everything
+to boot from the SD card is located in "output/images/sdcard.img".
+
+
+Create a bootable SD card
+=========================
+
+To determine the device associated to the SD card have a look in the
+/proc/partitions file:
+
+ cat /proc/partitions
+
+Buildroot prepares a bootable "sdcard.img" image in the output/images/
+directory, ready to be dumped on a SD card. Launch the following
+command as root:
+
+ dd if=output/images/sdcard.img of=/dev/<your-sd-device>
+
+*** WARNING! This will destroy all the card content. Use with care! ***
+
+For details about the medium image layout, see the definition in
+board/freescale/common/imx/genimage.cfg.template_imx9.
+
+
+Boot the i.MX 93 FRDM board
+===========================
+
+To boot your newly created system (refer to the i.MX 93 FRDM
+Documentation [2] for guidance):
+- insert the SD card in the SD slot (P13) of the board;
+- Configure the SW1 boot switches as follows:
+ SW1: 1100 SW1[1-4] ("USDHC2 4-bit SD3.0" Boot Mode)
+- connect a USB Type-C cable into the P16 Debug USB Port and connect
+ using a terminal emulator at 115200 bps, 8n1;
+- power on the board by connecting a USB Type-C cable into the P1
+ Power USB Port.
+
+Note 1: the board boot switches default configuration is:
+SW1: 0100 SW1[1-4] ("USDHC1 8-bit eMMC 5.1" Boot Mode)
+and the board is also pre-flashed with a reference Linux demo
+image. It is important to change the boot config switches to make
+sure the system will boot on the SD Card.
+
+Note 2: the debug USB connector presents 2 UARTs (for example
+/dev/ttyACM[0-1]), the Cortex-A55 UART should be the 1st one (in the
+previous example, /dev/ttyACM0). Refer to the documentation [2] for
+more details.
+
+Enjoy!
+
+
+References
+==========
+[1] https://www.nxp.com/FRDM-IMX93
+[2] https://www.nxp.com/document/guide/getting-started-with-frdm-imx93:GS-FRDM-IMX93
diff --git a/configs/freescale_imx93frdm_defconfig b/configs/freescale_imx93frdm_defconfig
new file mode 100644
index 0000000000..8e16762d8f
--- /dev/null
+++ b/configs/freescale_imx93frdm_defconfig
@@ -0,0 +1,41 @@
+BR2_aarch64=y
+BR2_cortex_a55=y
+BR2_ARM_FPU_VFPV4D16=y
+BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_6_6=y
+BR2_GLOBAL_PATCH_DIR="board/freescale/imx93frdm/patches"
+BR2_DOWNLOAD_FORCE_CHECK_HASHES=y
+BR2_TARGET_GENERIC_GETTY_PORT="ttyLP0"
+BR2_ROOTFS_POST_IMAGE_SCRIPT="board/freescale/common/imx/imx9-bootloader-prepare.sh board/freescale/common/imx/post-image.sh"
+BR2_LINUX_KERNEL=y
+BR2_LINUX_KERNEL_CUSTOM_TARBALL=y
+BR2_LINUX_KERNEL_CUSTOM_TARBALL_LOCATION="$(call github,jolivain,linux-imx,lf-6.6.36-2.1.0-imx93frdm)/linux-imx-lf-6.6.36-2.1.0-imx93frdm.tar.gz"
+BR2_LINUX_KERNEL_DEFCONFIG="imx_v8"
+BR2_LINUX_KERNEL_DTS_SUPPORT=y
+BR2_LINUX_KERNEL_INTREE_DTS_NAME="freescale/imx93-11x11-frdm"
+BR2_LINUX_KERNEL_NEEDS_HOST_OPENSSL=y
+BR2_PACKAGE_FREESCALE_IMX=y
+BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX93=y
+BR2_PACKAGE_FIRMWARE_ELE_IMX=y
+BR2_PACKAGE_FIRMWARE_IMX=y
+BR2_TARGET_ROOTFS_EXT2=y
+BR2_TARGET_ROOTFS_EXT2_4=y
+BR2_TARGET_ROOTFS_EXT2_SIZE="120M"
+BR2_TARGET_ARM_TRUSTED_FIRMWARE=y
+BR2_TARGET_ARM_TRUSTED_FIRMWARE_CUSTOM_TARBALL=y
+BR2_TARGET_ARM_TRUSTED_FIRMWARE_CUSTOM_TARBALL_LOCATION="$(call github,nxp-imx,imx-atf,lf-6.6.36-2.1.0)/imx-atf-lf-6.6.36-2.1.0.tar.gz"
+BR2_TARGET_ARM_TRUSTED_FIRMWARE_PLATFORM="imx93"
+BR2_TARGET_ARM_TRUSTED_FIRMWARE_BL31=y
+BR2_TARGET_UBOOT=y
+BR2_TARGET_UBOOT_BUILD_SYSTEM_KCONFIG=y
+BR2_TARGET_UBOOT_CUSTOM_TARBALL=y
+BR2_TARGET_UBOOT_CUSTOM_TARBALL_LOCATION="$(call github,jolivain,uboot-imx,lf-6.6.36-2.1.0-imx93frdm)/uboot-imx-lf-6.6.36-2.1.0-imx93frdm.tar.gz"
+BR2_TARGET_UBOOT_BOARD_DEFCONFIG="imx93_11x11_frdm"
+BR2_TARGET_UBOOT_NEEDS_DTC=y
+BR2_TARGET_UBOOT_NEEDS_OPENSSL=y
+BR2_TARGET_UBOOT_NEEDS_GNUTLS=y
+BR2_TARGET_UBOOT_SPL=y
+BR2_PACKAGE_HOST_DOSFSTOOLS=y
+BR2_PACKAGE_HOST_GENIMAGE=y
+BR2_PACKAGE_HOST_IMX_MKIMAGE=y
+BR2_PACKAGE_HOST_MTOOLS=y
+BR2_PACKAGE_HOST_UBOOT_TOOLS=y
--
2.48.1
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [Buildroot] [PATCH next 1/1] configs/freescale_imx93frdm: new defconfig
2025-03-06 20:47 [Buildroot] [PATCH next 1/1] configs/freescale_imx93frdm: new defconfig Julien Olivain
@ 2025-03-24 20:51 ` Fabio Estevam
2025-05-16 13:12 ` Peter Korsgaard
1 sibling, 0 replies; 3+ messages in thread
From: Fabio Estevam @ 2025-03-24 20:51 UTC (permalink / raw)
To: Julien Olivain; +Cc: Martin Chabot, buildroot
Hi Julien,
On Thu, Mar 6, 2025 at 5:48 PM Julien Olivain <ju.o@free.fr> wrote:
>
> This commit adds support for the i.MX 93 FRDM (Freedom) board.
>
> The i.MX93 FRDM development board is a low-cost and compact
> development board featuring the i.MX93 applications processor.
>
> See: https://nxp.com/FRDM-IMX93
Nice board!
> This defconfig is based on freescale_imx93evk_defconfig introduced
> by Sébastien, in Cc.
>
> Note: the Linux and U-Boot repositories are forks. This is because
> the NXP software team did not included all the necessary i.MX93 FRDM
> patches in the standard NXP i.MX BSP at the time of this commit.
> Instead, patches were published in a dedicated Yocto Layer from [1].
> The forks used in this defconfig are simply the repositories [2]
> and [3] with patches from [1] applied on them. This is only to make this
> defconfig simpler in the meantime the BSP patches are included in the
> NXP BSP repositories.
>
> Thanks to Martin Chabot for lending a board!
It would be great to get this board supported in upstream U-Boot and kernel.
I can help with that if someone sends me this board.
Reviewed-by: Fabio Estevam <festevam@gmail.com>
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [Buildroot] [PATCH next 1/1] configs/freescale_imx93frdm: new defconfig
2025-03-06 20:47 [Buildroot] [PATCH next 1/1] configs/freescale_imx93frdm: new defconfig Julien Olivain
2025-03-24 20:51 ` Fabio Estevam
@ 2025-05-16 13:12 ` Peter Korsgaard
1 sibling, 0 replies; 3+ messages in thread
From: Peter Korsgaard @ 2025-05-16 13:12 UTC (permalink / raw)
To: Julien Olivain; +Cc: buildroot, Martin Chabot, Fabio Estevam
>>>>> "Julien" == Julien Olivain <ju.o@free.fr> writes:
> This commit adds support for the i.MX 93 FRDM (Freedom) board.
> The i.MX93 FRDM development board is a low-cost and compact
> development board featuring the i.MX93 applications processor.
> See: https://nxp.com/FRDM-IMX93
> This defconfig is based on freescale_imx93evk_defconfig introduced
> by Sébastien, in Cc.
> Note: the Linux and U-Boot repositories are forks. This is because
> the NXP software team did not included all the necessary i.MX93 FRDM
> patches in the standard NXP i.MX BSP at the time of this commit.
> Instead, patches were published in a dedicated Yocto Layer from [1].
> The forks used in this defconfig are simply the repositories [2]
> and [3] with patches from [1] applied on them. This is only to make this
> defconfig simpler in the meantime the BSP patches are included in the
> NXP BSP repositories.
> Thanks to Martin Chabot for lending a board!
> [1] https://github.com/nxp-imx-support/meta-imx-frdm
> [2] https://github.com/nxp-imx/uboot-imx
> [3] https://github.com/nxp-imx/linux-imx
> Cc: Martin Chabot <martin.chabot@gmail.com>
> Cc: Sébastien Szymanski <sebastien.szymanski@armadeus.com>
> Tested-by: Julien Olivain <ju.o@free.fr>
> [Julien: Tested on board 700-94611 Rev B1]
> Signed-off-by: Julien Olivain <ju.o@free.fr>
Committed, thanks.
--
Bye, Peter Korsgaard
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2025-05-16 13:13 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-03-06 20:47 [Buildroot] [PATCH next 1/1] configs/freescale_imx93frdm: new defconfig Julien Olivain
2025-03-24 20:51 ` Fabio Estevam
2025-05-16 13:12 ` Peter Korsgaard
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.