mirror of
https://gitlab.com/buildroot.org/buildroot.git
synced 2026-08-01 21:23:51 -09:00
configs/freescale_imx91frdm: new defconfig
This commit adds support for the i.MX 91 FRDM (Freedom) board.
The i.MX91 FRDM development board is a low-cost and compact
development board featuring the i.MX91 applications processor.
See: https://nxp.com/FRDM-IMX91
This defconfig is based on freescale_imx93frmd_defconfig, introduced in
commit 2e05f22ff8
Compared to the original freescale_imx93_frmd_defconfig, this defconfig
uses a Bootlin glibc stable external toolchain, to follow guidelines
from: https://elinux.org/Buildroot:DeveloperDaysELCE2024#Rules_for_defconfigs
Signed-off-by: Juan Pablo Montero Castro <juanpablo.monterocastro@nxp.com>
Signed-off-by: Julien Olivain <ju.o@free.fr>
This commit is contained in:
committed by
Julien Olivain
parent
30ea8ea9ae
commit
b6645d7407
@@ -0,0 +1,2 @@
|
||||
# Locally calculated
|
||||
sha256 8cfe0afc903ebbc03f27e4874aa9ce82be78843a8b42ed4c906871e7f311b510 imx-atf-lf-6.6.36-2.1.0.tar.gz
|
||||
@@ -0,0 +1 @@
|
||||
../linux/linux.hash
|
||||
2
board/freescale/imx91frdm/patches/linux/linux.hash
Normal file
2
board/freescale/imx91frdm/patches/linux/linux.hash
Normal file
@@ -0,0 +1,2 @@
|
||||
# Locally calculated
|
||||
sha256 3f5017e85ba6c490be597670033a7eaba14e3c34af4e53d24dc3762c3deece83 linux-imx-lf-6.6.36-2.1.0-imx91frdm.tar.gz
|
||||
2
board/freescale/imx91frdm/patches/uboot/uboot.hash
Normal file
2
board/freescale/imx91frdm/patches/uboot/uboot.hash
Normal file
@@ -0,0 +1,2 @@
|
||||
# Locally calculated
|
||||
sha256 f7d9a6e99825926d0bc597e0fdfeafffcc76ad6267f1d4e9aae1fe9a8d400c22 uboot-imx-lf-6.6.36-2.1.0-imx91frdm.tar.gz
|
||||
74
board/freescale/imx91frdm/readme.txt
Normal file
74
board/freescale/imx91frdm/readme.txt
Normal file
@@ -0,0 +1,74 @@
|
||||
**********************
|
||||
NXP i.MX 91 FRDM board
|
||||
**********************
|
||||
|
||||
This file documents the Buildroot support for the i.MX 91 FRDM
|
||||
(Freedom) board. For more information on this board, see [1].
|
||||
|
||||
|
||||
Build
|
||||
=====
|
||||
|
||||
First, configure Buildroot for the i.MX 91 FRDM board:
|
||||
|
||||
make freescale_imx91frdm_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 91 FRDM board
|
||||
===========================
|
||||
|
||||
To boot your newly created system (refer to the i.MX 91 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-IMX91
|
||||
[2] https://www.nxp.com/document/guide/getting-started-with-frdm-imx91:GS-FRDM-IMX91
|
||||
43
configs/freescale_imx91frdm_defconfig
Normal file
43
configs/freescale_imx91frdm_defconfig
Normal file
@@ -0,0 +1,43 @@
|
||||
BR2_aarch64=y
|
||||
BR2_cortex_a55=y
|
||||
BR2_ARM_FPU_VFPV4D16=y
|
||||
BR2_TOOLCHAIN_EXTERNAL=y
|
||||
BR2_TOOLCHAIN_EXTERNAL_BOOTLIN=y
|
||||
BR2_TOOLCHAIN_EXTERNAL_BOOTLIN_AARCH64_GLIBC_STABLE=y
|
||||
BR2_GLOBAL_PATCH_DIR="board/freescale/imx91frdm/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-imx91frdm)/linux-imx-lf-6.6.36-2.1.0-imx91frdm.tar.gz"
|
||||
BR2_LINUX_KERNEL_DEFCONFIG="imx_v8"
|
||||
BR2_LINUX_KERNEL_DTS_SUPPORT=y
|
||||
BR2_LINUX_KERNEL_INTREE_DTS_NAME="freescale/imx91-11x11-frdm"
|
||||
BR2_LINUX_KERNEL_NEEDS_HOST_OPENSSL=y
|
||||
BR2_PACKAGE_FREESCALE_IMX=y
|
||||
BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX91=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="imx91"
|
||||
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-imx91frdm)/uboot-imx-lf-6.6.36-2.1.0-imx91frdm.tar.gz"
|
||||
BR2_TARGET_UBOOT_BOARD_DEFCONFIG="imx91_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
|
||||
Reference in New Issue
Block a user