From c4dcb176373c810c5ffcde435997ee83aad975ab Mon Sep 17 00:00:00 2001 From: Amneesh Singh Date: Thu, 10 Apr 2025 15:15:45 +0530 Subject: [PATCH] soc: ti: k3: am6x: do not override KERNEL_ENTRY The SOC defconfig overrides CONFIG_KERNEL_ENTRY from the default of __start to _vector_table. This is undesirable for cores such as M4 where the _vector_table symbol has just raw addresses and no instructions. The change was done to make sure Zephyr images can be loaded via remoteproc in which case the entrypoint needs to be 64 byte aligned. To fix this, use _vector_table as the ELF entrypoint only for R5 cores. Signed-off-by: Amneesh Singh --- soc/ti/k3/am6x/Kconfig.defconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/soc/ti/k3/am6x/Kconfig.defconfig b/soc/ti/k3/am6x/Kconfig.defconfig index 445a04cd01a..6d60583b71c 100644 --- a/soc/ti/k3/am6x/Kconfig.defconfig +++ b/soc/ti/k3/am6x/Kconfig.defconfig @@ -4,7 +4,7 @@ if SOC_SERIES_AM6X config KERNEL_ENTRY - default "_vector_table" + default "_vector_table" if SOC_SERIES_AM6X_R5 # Workaround for not being able to have commas in macro arguments DT_CHOSEN_Z_FLASH := zephyr,flash