Skip to content

hw/arm: Enable U-Boot boot on MCIMX6UL-EVK

Bin Meng qemu-arm qemu-devel 5 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v5 Latest10 patches 0 repliesNew
  2. v410 patches 6 repliesSuperseded
  3. v310 patches 7 repliesSuperseded
Earlier versions · 2
VersionPostedPatchesRepliesStatus
v210 patches10 repliesSuperseded
v110 patches4 repliesSuperseded

Changes in v5 from the cover letter

- Rebase on the v5 PolarFire SoC Icicle Kit series
- Address the uSDHC const and opaque-pointer review comments
- Consolidate uSDHC write dispatch while preserving partial accesses
- Fix boot example formatting and use the default RAM size

Patches in v5 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/10hw/cpu: a15mpcore: Model the reserved page as RAZ/WIhw/cpu/a15mpcore.c include/hw/cpu/a15mpcore.h+33 -00 replies
2/10hw/misc: imx6ul_ccm: Update PMU_MISC0 reset valuehw/misc/imx6ul_ccm.c+1 -10 replies
3/10hw/arm: fsl-imx6ul: Map early firmware register placeholdershw/arm/fsl-imx6ul.c+15 -00 replies
4/10hw/arm: fsl-imx6ul: Add a minimal MMDC geometry modelhw/arm/fsl-imx6ul.c hw/arm/mcimx6ul-evk.c include/hw/arm/fsl-imx6ul.h+74 -20 replies
5/10hw/sd: sdhci: Use a QEMU-local no-busy IRQ quirk bitinclude/hw/sd/sdhci.h+1 -40 replies
6/10hw/sd: sdhci: Honor i.MX uSDHC vendor clock gateshw/sd/sdhci.c+83 -120 replies
7/10hw/sd: sdhci: Preserve uSDHC status enables for U-Boothw/sd/sdhci.c+18 -10 replies
8/10hw/sd: sdhci: Skip SDMA boundary stops for eSDHC and uSDHChw/sd/sdhci.c include/hw/sd/sdhci.h+26 -210 replies
9/10docs/system/arm: Document MCIMX6UL-EVK Buildroot bootdocs/system/arm/mcimx6ul-evk.rst+72 -00 replies
10/10tests/functional/arm: Add MCIMX6UL-EVK boot testsMAINTAINERS tests/functional/arm/meson.build tests/functional/arm/test_mcimx6ul_evk.py+72 -00 replies

Reviews trailers per patch

6 of 10 patches have a Reviewed-by or Acked-by.

PatchPeter MaydellPhilippe Mathieu-DaudéBernhard Beschow
1/10R-b
2/10R-b
3/10
4/10
5/10R-b R-b
6/10
7/10
8/10R-b
9/10R-b
10/10R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.

Read the v5 thread

Cover letter [PATCH v5 00/10] hw/arm: Enable U-Boot boot on MCIMX6UL-EVK

The mcimx6ul-evk machine can boot Linux directly, but it cannot run the U-Boot proper produced by Buildroot far enough to load a kernel from its SD card. Early U-Boot boot test accesses currently abort or observe placeholder values, and the i.MX uSDHC model exposes several issues.

This series lets an unmodified Buildroot 2026.05 U-Boot 2024.07 image run on mcimx6ul-evk, load zImage and imx6ul-14x14-evk.dtb from USDHC2, start Linux, mount the SD card root file system, and reach the Buildroot login prompt. It also documents and tests the existing direct Linux boot path.

Patches 1 through 4 provide the minimum early-firmware-visible state. Patches 5 through 8 address i.MX uSDHC behavior needed by U-Boot. The last two patches document both boot paths and add functional tests for U-Boot and direct Linux boot.

This series is based on the v5 PolarFire SoC Icicle Kit series <[email protected]>, as the SDHCI changes overlap.

Changes in v5:
- Rebase on the v5 PolarFire SoC Icicle Kit series
- Address the uSDHC const and opaque-pointer review comments
- Consolidate uSDHC write dispatch while preserving partial accesses
- Fix boot example formatting and use the default RAM size

Changes in v4:
- Rebase on the v4 PolarFire SoC Icicle Kit series
- Simplify the reserved page to a MemoryRegion
- Log invalid reserved accesses and explain the RAZ/WI behaviour
- Reference the U-Boot fix for the reserved-register access
- Make the functional test executable

Changes in v3:
- hw/cpu: a15mpcore: Model the reserved page as RAZ/WI
- Rebase on the v3 PolarFire SoC Icicle Kit series
- Model the full reserved page as a child of a15mpcore_priv
- Validate MMDC RAM geometry and document supported capacities
- Translate uSDHC vendor clock gates in its MMIO handlers
- Cover partial reset accesses and migrate vendor clock state
- Extend contiguous SDMA completion to both eSDHC byte orders

Changes in v2:
- rebase on top of the microchip polarfire soc series

Bin Meng (10):
hw/cpu: a15mpcore: Model the reserved page as RAZ/WI hw/misc: imx6ul_ccm: Update PMU_MISC0 reset value hw/arm: fsl-imx6ul: Map early firmware register placeholders hw/arm: fsl-imx6ul: Add a minimal MMDC geometry model hw/sd: sdhci: Use a QEMU-local no-busy IRQ quirk bit hw/sd: sdhci: Honor i.MX uSDHC vendor clock gates hw/sd: sdhci: Preserve uSDHC status enables for U-Boot hw/sd: sdhci: Skip SDMA boundary stops for eSDHC and uSDHC docs/system/arm: Document MCIMX6UL-EVK Buildroot boot tests/functional/arm: Add MCIMX6UL-EVK boot tests

 MAINTAINERS                               |   1 +
 docs/system/arm/mcimx6ul-evk.rst          |  72 ++++++++++
 include/hw/arm/fsl-imx6ul.h               |   2 +
 include/hw/cpu/a15mpcore.h                |   1 +
 include/hw/sd/sdhci.h                     |  10 +-
 hw/arm/fsl-imx6ul.c                       |  87 +++++++++++-
 hw/arm/mcimx6ul-evk.c                     |   2 +
 hw/cpu/a15mpcore.c                        |  32 +++++
 hw/misc/imx6ul_ccm.c                      |   2 +-
 hw/sd/sdhci.c                             | 154 +++++++++++++++++-----
 tests/functional/arm/meson.build          |   2 +
 tests/functional/arm/test_mcimx6ul_evk.py |  69 ++++++++++
 12 files changed, 394 insertions(+), 40 deletions(-)
 create mode 100755 tests/functional/arm/test_mcimx6ul_evk.py

---
base-commit: 055648c36dd2ce8bf7a339f852ba01f063e23b4e
branch: imx6ul-evk

Signature · 1 line
2.53.0