From a6c290e8e514ad28ea0397efa650b6832ce54820 Mon Sep 17 00:00:00 2001 From: Aidan MacDonald Date: Thu, 5 Feb 2026 20:33:51 +0000 Subject: [PATCH] jz47xx: fix plugins/codec link address Removing STUBOFFSET in commit 78542df4666 caused DRAMSIZE to be computed incorrectly, not taking into account the 16k offset used for 'IRAM'. As a result plugins & codecs got shifted 16k upwards from their intended load address, making them unable to load. Change-Id: I6c338e04506e12fa2b8a69286a1ed785a2f8042d --- apps/plugins/plugin.lds | 3 +++ 1 file changed, 3 insertions(+) diff --git a/apps/plugins/plugin.lds b/apps/plugins/plugin.lds index fbba450b2b..9437be1766 100644 --- a/apps/plugins/plugin.lds +++ b/apps/plugins/plugin.lds @@ -77,6 +77,9 @@ OUTPUT_FORMAT(elf32-littlemips) #elif CONFIG_CPU==IMX233 #include "cpu.h" #define DRAMSIZE (DRAM_SIZE - PLUGIN_BUFFER_SIZE - CODEC_SIZE - FRAME_SIZE - TTB_SIZE) +#elif CONFIG_CPU == JZ4732 || CONFIG_CPU == JZ4760B +/* fake 'iram' region occupies first 16k */ +#define DRAMSIZE (MEMORYSIZE * 0x100000) - PLUGIN_BUFFER_SIZE - CODEC_SIZE - 0x4000 #elif CONFIG_CPU==X1000 #include "cpu.h" #define DRAMSIZE (X1000_DRAM_SIZE - PLUGIN_BUFFER_SIZE - CODEC_SIZE)