mirror of
https://github.com/dikeckaan/mu300-linux.git
synced 2026-12-05 08:02:40 +00:00
Why the Moto G35 image takes this device down, from its own device tree rather than a guess: pulled out of vendor_boot.img in the same firmware, it puts audio-mem at 0xaf600000 and a 7 MiB DSP region at 0xaf900000, with cmdaddr 0xaf880000 - a megabyte below this board's 0xaf700000 / 0xafa00000 / 0xaf980000. Written to the wrong base the image runs into memory belonging to something else. Read the other way it is reassuring: the donor image answers SIPC at 0xaf980000, so it is built for this layout and is where it should be. CONFIG_OF_RESERVED_MEM_ADD now reserves 0xaf600000,3M;0xaf900000,7M, contiguous to 0xb0000000 and a superset of what this board uses, so one boot image can host either. audio-mem-shm-shift.patch adds shm_shift for the addresses that are absolute in the device tree instead of derived from the region - ddr32_base and dspbin_base already move everything else. The experiment itself is inconclusive rather than negative. At its own addresses the Moto image no longer takes the board down and ldinfo reads 0xaf900000 / 7340032, but the DSP does not answer and shm_shift is not confirmed to have taken effect - cmdaddr still shows as 0xaf980000 in the SIPC trace. FINDINGS says so, along with two things that cost time here: audio_mem has three DT parsers and this board uses the sharkl5 one, so a change made in whale2's compiles, loads, accepts its parameter and does nothing; and the boot service loads audio_mem at startup where it is [permanent], so trying another layout needs the service disabled and a reboot first. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_017Z17MBkdHmZPvNPNSLxcHk