--- zzzz-none-000/linux-4.19.183/arch/arm64/kernel/head.S 2021-03-24 10:07:39.000000000 +0000 +++ bcm63-7530ax-756/linux-4.19.183/arch/arm64/kernel/head.S 2023-06-28 08:54:18.000000000 +0000 @@ -51,8 +51,14 @@ #elif (PAGE_OFFSET & 0x1fffff) != 0 #error PAGE_OFFSET must be at least 2MB aligned #elif TEXT_OFFSET > 0x1fffff +#if defined(CONFIG_BCM_KF_OPTEE) +/* Kernel can move beyond 2MB + as long as it is 2MB aligned +*/ +#else #error TEXT_OFFSET must be less than 2MB #endif +#endif /* * Kernel startup entry point.