jz47xx: fix plugins/codec link address

rockbox-gerrit-noreply--- via rockbox-cvs <[email protected]>
Newsgroups gmane.comp.systems.archos.rockbox.cvs
Message-ID <[email protected]>
commit a6c290e8e514ad28ea0397efa650b6832ce54820
Author: Aidan MacDonald <[email protected]>
Date:   Thu Feb 5 20:33:51 2026 +0000

    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

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)
-- 
rockbox-cvs mailing list
[email protected]
https://lists.haxx.se/mailman/listinfo/rockbox-cvs
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.