Commit 84521356 authored by Luo Ji's avatar Luo Ji

MA-11845 Only check the stack value to identify the M4 image type

The pc value in the head of M4 image can be changeable, so just
use the stack value to identify the M4 image type.

Change-Id: I08c285a6080e55d608b951f2acd57cd8e81e03df
Signed-off-by: 's avatarLuo Ji <ji.luo@nxp.com>
parent 0daa9c14
......@@ -633,10 +633,8 @@ static bool is_tcm_image(char *image_addr)
u32 stack, pc;
stack = *(u32 *)image_addr;
pc = *(u32 *)(image_addr + 4);
if ((stack != (u32)ANDROID_MCU_FIRMWARE_HEADER_STACK) ||
(pc != (u32)ANDROID_MCU_FIRMWARE_HEADER_PC)) {
if ((stack != (u32)ANDROID_MCU_FIRMWARE_HEADER_STACK)) {
printf("Please flash mcu firmware images for running from TCM\n");
return false;
} else
......
......@@ -57,7 +57,6 @@
#define ANDROID_MCU_FIRMWARE_START 0x500000
#define ANDROID_MCU_FIRMWARE_SIZE 0x40000
#define ANDROID_MCU_FIRMWARE_HEADER_STACK 0x20020000
#define ANDROID_MCU_FIRMWARE_HEADER_PC 0x1ffe0321
#endif
#endif /* IMX8MQ_EVK_ANDROID_H */
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment