Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

imx8mp-olimex.dts: Olimex iMX8MP-SOM-EVB-IND #694

Merged

Conversation

leon-anavi
Copy link

Add device tree for Olimex i.MX8MP SoM iMX8MP-SOM-4GB-IND and the evaluation board iMX8MP-SOM-EVB-IND.

Based on imx8mp-evk.dts with similar changes on top of it as for kernel lf-5.10.y-1.0.0 provided by Olimex in their buildroot repository:
OLIMEX/buildroot-imx@fcf7064

This patch is based on commit 6cdcd71 from branch 6.6-1.0.x-imx. I have performed very basic testing with core-image-base (with Yocto/OE release Scarthgap) on Olimex i.MX8MP SoM iMX8MP-SOM-4GB-IND and the evaluation board iMX8MP-SOM-EVB-IND.

@otavio
Copy link
Member

otavio commented Nov 6, 2024

I believe that you forgot to add that to the makefile.

Add device tree for Olimex i.MX8MP SoM iMX8MP-SOM-4GB-IND and the
evaluation board iMX8MP-SOM-EVB-IND.

Based on imx8mp-evk.dts with similar changes on top of it as for
kernel lf-5.10.y-1.0.0 provided by Olimex in their buildroot
repository:
OLIMEX/buildroot-imx@fcf7064

Signed-off-by: Leon Anavi <[email protected]>
@leon-anavi leon-anavi force-pushed the 6.6-2.1.x-imx-imx8mp-olimex branch from 9a58b13 to 317f05e Compare November 6, 2024 14:45
@leon-anavi
Copy link
Author

I believe that you forgot to add that to the makefile.

@otavio, yes, you are right. I modified the Makefile and force pushed the patch.

In general I built the kernel and dtb without issues as part of my Yocto/OE environment with this patch and I have the dtb listed in KERNEL_DEVICETREE:append:use-nxp-bsp. Because of this I forgot to initially modify the Makefile. After adding it, here are the steps that I used to test the Makefile and the dtb:

  • Install toolchain:
cd ~
wget -O arm-gnu-toolchain-12.3.rel1-x86_64-aarch64-none-linux-gnu.tar.xz "https://developer.arm.com/-/media/Files/downloads/gnu/12.3.rel1/binrel/arm-gnu-toolchain-12.3.rel1-x86_64-aarch64-none-linux-gnu.tar.xz?rev=cf8baa0ef2e54e9286f0409cdda4f66c&hash=4E1BA6BFC2C09EA04DBD36C393C9DD3A"
tar xvf arm-gnu-toolchain-12.3.rel1-x86_64-aarch64-none-linux-gnu.tar.xz
ln -s arm-gnu-toolchain-12.3.rel1-x86_64-aarch64-none-linux-gnu gcc-linaro
  • Export environment variables:
export ARCH=arm64
export DTC_FLAGS="-@"
export PATH=~/gcc-linaro/bin/:$PATH
export CROSS_COMPILE=aarch64-none-linux-gnu-
  • Download the source and build the device tree:
git clone -b 6.6-2.1.x-imx-imx8mp-olimex [email protected]:leon-anavi/linux-fslc.git
cd linux-fslc
make imx_v8_defconfig
make dtbs

As a result imx8mp-olimex.dtb is generated along with the rest of the device trees:

$ ls -l arch/arm64/boot/dts/freescale/imx8mp-olimex.dtb
-rw-r--r-- 1 leon leon 75987 Nov  6 16:40 arch/arm64/boot/dts/freescale/imx8mp-olimex.dtb

Best regards, Leon

@otavio otavio merged commit ea326ec into Freescale:6.6-2.1.x-imx Nov 6, 2024
@otavio
Copy link
Member

otavio commented Nov 6, 2024

Please now prepare the pull request to prompt the revision in the repository.

@leon-anavi
Copy link
Author

Please now prepare the pull request to prompt the revision in the repository.

OK, thank you! I opened the pull request for branch Scarthgap in meta-freescale: Freescale/meta-freescale#2022

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants