add support for imx8mp-lpddr4-evk#435
Conversation
| CONFIG_CMD_EDITENV=y | ||
| CONFIG_CMD_SAVEENV=y | ||
| CONFIG_USE_BOOTCOMMAND=y | ||
| CONFIG_BOOTCOMMAND="fatload mmc ${emmc_dev}:1 ${loadaddr} /boot.scr; source ${loadaddr}; reset" |
There was a problem hiding this comment.
We might not need to define bootcommand here as usually the board has enough to find and use a boot.scr file, but fine to keep if you want.
There was a problem hiding this comment.
Yeah most likely this was copied over from imx8mm, but we're a bit inconsistent:
./meta-lmp-bsp/recipes-bsp/u-boot/u-boot-fio/imx8mm-lpddr4-evk/lmp-base.cfg:26:CONFIG_BOOTCOMMAND="fatload mmc ${emmc_dev}:1 ${loadaddr} /boot.scr; source ${loadaddr}; reset"
./meta-lmp-bsp/recipes-bsp/u-boot/u-boot-fio/imx7ulpea-ucom/lmp-base.cfg:52:CONFIG_BOOTCOMMAND="mmc rescan; fatload mmc ${mmcdev}:1 ${loadaddr} boot.scr; source ${loadaddr}"
./meta-lmp-bsp/recipes-bsp/u-boot/u-boot-fio/imx8qm-mek/lmp-base.cfg:33:CONFIG_BOOTCOMMAND="fatload mmc 0:1 ${scriptaddr} /boot.scr; source ${scriptaddr}"
./meta-lmp-bsp/recipes-bsp/u-boot/u-boot-fio/imx8mq-evk/lmp-base.cfg:25:CONFIG_BOOTCOMMAND="fatload mmc 0:1 ${loadaddr} /boot.scr; source ${loadaddr}; reset"
There was a problem hiding this comment.
For now, i'll keep it in and we can clean up all of the machines at once if we want to drop this.
|
@mike-scott @Tim-Anderson looks good, some minor comments and nits. One thing that would be nice to avoid is having patches without a commit message, several only got the subject. Even if used to repeat the core of the subject line, useful to add if stuff was based on another board/target or similar, to add a bit more context. |
- lmp.cfg for the standard LmP build - lmp-base.cfg for DISTRO=lmp-base build - fw_env.config to describe the env size and mount point for userspace Signed-off-by: Tim Anderson <[email protected]> [[email protected]: more config changes] Signed-off-by: Michael Scott <[email protected]>
- Add lmp.cfg fragment for the standard LmP build Signed-off-by: Tim Anderson <[email protected]> Signed-off-by: Michael Scott <[email protected]>
- add scripts for the default lmp-base boot script recipe: u-boot-base-scr Signed-off-by: Tim Anderson <[email protected]> Signed-off-by: Michael Scott <[email protected]>
- Add ostree compatible boot script for use with kernel fit-image Signed-off-by: Tim Anderson <[email protected]> [[email protected]: mx8mp has 0 offset for boot part] Signed-off-by: Michael Scott <[email protected]>
This patch is a movement only change. Cleanup file structure: - Group settings into vendor, soc, machine and secure machine sections - Added headers for each section - Alpha sort all settings Signed-off-by: Michael Scott <[email protected]>
- Add an SoC entry for mx8m - Drop related machine specific entries Signed-off-by: Michael Scott <[email protected]>
This patch is a movement only change. Cleanup file structure: - Group settings into vendor, soc, machine and secure machine sections - Added headers for each section - Alpha sort all settings Signed-off-by: Michael Scott <[email protected]>
- Add an SoC entry for mx8m - Drop related machine specific entries Signed-off-by: Michael Scott <[email protected]>
NOTE: machine setting for imx8mp-lpddr4-evk sets DDR SIZE so that OP-TEE load/entry happens at 0x56000000 regardless of actual DDR size. Signed-off-by: Tim Anderson <[email protected]> Signed-off-by: Michael Scott <[email protected]>
NOTE: machine setting for imx8mp-lpddr4-evk sets DDR SIZE so that load/entry happens at 0x56000000 regardless of OP-TEE actual DDR size. Signed-off-by: Tim Anderson <[email protected]> Signed-off-by: Michael Scott <[email protected]>
Add initial scripts for flashing bootloader and full image to eMMC. Tested with uuu version 1.4.43. Signed-off-by: Tim Anderson <[email protected]> Signed-off-by: Michael Scott <[email protected]>
Initial support to build mfgtool artifacts for imx8mp-lpddr4-evk in an LmP compatible way: - sign u-boot fit-image - signed kernel fit-image Signed-off-by: Tim Anderson <[email protected]> Signed-off-by: Michael Scott <[email protected]>
Add imx8mp settings for LmP compatibility: - signed u-boot fit-image - use fio recipe for u-boot - set memory locations for dtb and boot script - fix ATF dependencies - specify boot script recipes - kernel class is signed kernel-lmp-fitimage - use imxboot with only SPL - ostree compatible WIC image - ostree compatible kernel arguments Signed-off-by: Tim Anderson <[email protected]> Signed-off-by: Michael Scott <[email protected]>
Custom fstab is needed for mounting vfat boot partition to read u-boot env for OTA support. Signed-off-by: Michael Scott <[email protected]>
Relevant changes: - 34d3891f imx8qm: Add config for imx8qm-mek - 946fe0e7 imx: turn off CONFIG_MXC_IMX_DMX_HW for imx8mp-lpddr4-evk - 1119da21 bsp: imx: Add CONFIG_PINCTRL to the imx8mp-lpddr4-evk - d0cf695e bsp: imx: add bsp for imx8mp-lpddr4-evk Signed-off-by: Tim Anderson <[email protected]> Signed-off-by: Michael Scott <[email protected]>
This patch somehow breaks the boot for mfgtools on 8mp and needs more debugging. Signed-off-by: Michael Scott <[email protected]>
Relevant changes: - 0bb88ebb71 [FIO toup] ARM: imx8m: support IMX8MP in imx8m_usb_power_domain - 557816cb2a [FIO internal] imx8m: set the fuses definitions common for all imx8m parts - dea236900e [FIO toup] imx8mp_evk: move setting bootcmd to defconfig - 379dd77761 [FIO internal] imx8mp_evk: use common spl_mmc_get_uboot_raw_sector() - d9578c7d3d [FIO internal] imx8mp_evk: runtime detection raw sector offsets - cab88e87ec [FIO internal] imx8mp_evk: drop hardcoded USB configuration - 22bf38250b [FIO internal] imx8mp_evk: disable DM_I2C for SPL - c06d7e9458 [FIO internal] imx8mp_evk: disable use of TCPC for SPL - a37100c494 [FIO toup-squash] spl: imx: re-add missing imx7ulp boot devices - ba69c026d5 [FIO internal] arch: arm: dts: imx8mm-evk-u-boot: add RPMB dev ID - a30c05b93b [FIO internal] arch: arm: mach-imx: fiohab: fix typo Signed-off-by: Michael Scott <[email protected]>
f326227 to
94318c6
Compare
Diff from previous version: |
|
Adding a note from @rsalveti here: we will want a new PR to combine the settings for the |
Patches for: