From 50fa69a0621be55867305a8ac46421a892d4ac5c Mon Sep 17 00:00:00 2001 From: bunnie Date: Thu, 4 Apr 2024 19:24:38 +0800 Subject: [PATCH] fix main memory patching for swap config on precursor --- tools/src/bin/create-image.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tools/src/bin/create-image.rs b/tools/src/bin/create-image.rs index 52f5a3cf8..5cb254611 100644 --- a/tools/src/bin/create-image.rs +++ b/tools/src/bin/create-image.rs @@ -366,6 +366,8 @@ fn main() { if s.offset < ram_config.offset + ram_config.size { ram_config.size = s.offset - ram_config.offset; } + args.ram_start = ram_config.offset; + args.ram_length = ram_config.size; } // Note that other configurations don't split RAM, since the swap is provisioned directly // in hardware, and thus, no post-processing is required.