Add and enable mcore support
cover Add and enable mcore support
Added m7 core support in uboot for imx8mp by adding the boot variable prepare_mcore and enabled bootaux in defconfig.
Regards,
yashwanth.
Yashwanth Varakala (2):
board: phytec: phycore_imx8mp: Add mcore support
configs: phycore-imx8mp_defconfig: Enabled bootaux command
board/phytec/phycore_imx8mp/phycore_imx8mp.env | 5 +++-- configs/phycore-imx8mp_defconfig | 1 + 2 files changed, 4 insertions(+), 2 deletions(-)
Signature · 1 line
2.34.1
PATCH 1/2 board: phytec: phycore_imx8mp: Add mcore support
Added m7 core support in uboot for imx8mp by adding the boot variable prepare_mcore.
Based on commit 0ed32cc8568a ("LF-6555 imx8m[m/n/p/q]_evk: add bootargs to support mcore")
--- board/phytec/phycore_imx8mp/phycore_imx8mp.env | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-)
board/phytec/phycore_imx8mp/phycore_imx8mp.env +3 -2
@@ -30,7 +30,7 @@ ip_dyn=yes loadfdt=fatload mmc ${mmcdev}:${mmcpart} ${fdt_addr_r} ${fdtfile} loadimage=fatload mmc ${mmcdev}:${mmcpart} ${loadaddr} ${image} mmcargs= - setenv bootargs console=${console} + setenv bootargs ${mcore_clk} console=${console} root=/dev/mmcblk${mmcdev}p${mmcroot} ${raucargs} rootwait rw mmcautodetect=yes mmcboot=
@@ -51,7 +51,7 @@ mmcdev=CONFIG_SYS_MMC_ENV_DEV mmcpart=1 mmcroot=2 netargs= - setenv bootargs console=${console} root=/dev/nfs ip=dhcp + setenv bootargs ${mcore_clk} console=${console} root=/dev/nfs ip=dhcp nfsroot=${serverip}:${nfsroot},v3,tcp netboot= echo Booting from net ...;
@@ -74,4 +74,5 @@ netboot= echo WARN: Cannot load the DT; fi; nfsroot=/srv/nfs +prepare_mcore=setenv mcore_clk clk-imx8mp.mcore_booted sd_dev=1
Signature · 1 line
2.34.1
PATCH 2/2 configs: phycore-imx8mp_defconfig: Enabled bootaux command
In reply to Yashwanth VarakalaTo start the mcore binary from u-boot, bootaux command is needed.
--- configs/phycore-imx8mp_defconfig | 1 + 1 file changed, 1 insertion(+)
configs/phycore-imx8mp_defconfig +1 -0
@@ -24,6 +24,7 @@ CONFIG_SPL_BSS_START_ADDR=0x98fc00 CONFIG_SPL_BSS_MAX_SIZE=0x400 CONFIG_SPL=y CONFIG_ENV_OFFSET_REDUND=0x3e0000 +CONFIG_IMX_BOOTAUX=y CONFIG_SPL_IMX_ROMAPI_LOADADDR=0x48000000 CONFIG_SYS_LOAD_ADDR=0x40480000 CONFIG_FIT=y
Signature · 1 line
2.34.1
Quoted 11 lines · Yashwanth Varakala
Added m7 core support in uboot for imx8mp by adding the boot variable
prepare_mcoreand enabled bootaux in defconfig.Regards,
yashwanth.Yashwanth Varakala (2):
board: phytec:phycore_imx8mp: Add mcore support
configs: phycore-imx8mp_defconfig: Enabled bootaux command
Applied all, thanks.