Skip to content

imx: integrate PHYTEC imx8m boards#840

Closed
ymoog wants to merge 4 commits intoOP-TEE:masterfrom
ymoog:phytec-imx8m-boards
Closed

imx: integrate PHYTEC imx8m boards#840
ymoog wants to merge 4 commits intoOP-TEE:masterfrom
ymoog:phytec-imx8m-boards

Conversation

@ymoog
Copy link
Copy Markdown

@ymoog ymoog commented Jul 23, 2025

The goal of this PR is to integrate phytec imx8m boards to the build framework.
For full build support, the imx manifest needs to be updated as well. OP-TEE/manifest#330
Note that for everything to work, we need to wait for U-Boot 2025.10 release since U-Boot work for imx8m phytec boards as a prerequisite is still ongoing.

The challenge is finding a common method that multiple vendors share (nxp, toratex, phytec) regarding

  • integration of all firmware blobs into the boot container
  • loading kernel, initramfs, dtb
  • booting into initframfs

Propose using U-Boot standard boot as well as binman.
Before, imx-mkimage was used to package all firmware blobs into a boot container, now use binman which handles packaging.
Further, U-Boot standardboot sets forth variables (that must be defined when using standard boot) that hold addresses for where to load kernel,initramfs,dtb.
Thus we can migrate from required "proprietary" variables (mmcdev, mmcpart, mmcargs, loadfdt, loadimage) and define them ourselfs in the boot script.
Note that U-Boot standard boot is recommended for all new boards in U-Boot, so expecting standard boot to be used here is a good idea going forward.

ymoog added 4 commits July 18, 2025 10:50
Binman handles all calls to mkimage and is called when building an
U-Boot image. Thus nothing more needs to be done and most of the mkimage
section can be dropped.
Also introduce a variable for a SoC specific seek value when flashing
the bootloader image to mmc.

Signed-off-by: Yannic Moog <y.moog@phytec.de>
U-Boot adds an optee node to device tree for imx8m.
If a node is present or created before the U-Boot is called, board will
fail to boot with
"Could not create optee node." (ft_add_optee_node in mach-imx/imx8m/soc.c)
Make existing imx8m family boards use the script by introducing new
variable. imx8mq-evk will keep the existing script.

Signed-off-by: Yannic Moog <y.moog@phytec.de>
phyBOARD-Pollux is an imx8mp board of the imx8m family.

Signed-off-by: Yannic Moog <y.moog@phytec.de>
WIP

Signed-off-by: Yannic Moog <y.moog@phytec.de>
Copy link
Copy Markdown
Contributor

@jforissier jforissier left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • For "imx: update makefile to binman":
    s/mmc/MMC/ in the commit description + one comment below. With that:
    Acked-by: Jerome Forissier <jerome.forissier@linaro.org>

Comment thread imx.mk
#> +If you want to run with HDMI, copy signed_hdmi_imx8m.bin to imx-mkimage/iMX8M
#> +make SOC=iMX8M flash_spl_uboot or make SOC=iMX8M flash_hdmi_spl_uboot to
#> +generate flash.bin.
mkimage-clean:
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this target still useful?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No, don't think it is, should be removed probably. I also thought about removing mk-image from the imx manifest then as I don't think it is used anymore.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, please do.

Copy link
Copy Markdown
Contributor

@jforissier jforissier left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • For "imx: create imx8m boot script":
    Acked-by: Jerome Forissier <jerome.forissier@linaro.org>

Copy link
Copy Markdown
Contributor

@jforissier jforissier left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • For "imx: add phyBOARD-Pollux":
    Acked-by: Jerome Forissier <jerome.forissier@linaro.org>

@github-actions
Copy link
Copy Markdown

This pull request has been marked as stale because it has been open (more than) 30 days with no activity. Remove the stale label or add a comment saying that you would like to have the label removed otherwise this pull request will automatically be closed in 5 days. Note, that you can always re-open a closed pull request at any time.

@github-actions github-actions Bot added the Stale label Aug 28, 2025
@github-actions github-actions Bot closed this Sep 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants