From 94b326469baf5b2a993e37f6c3acf50fe16b4951 Mon Sep 17 00:00:00 2001 From: Venkateshwar S Date: Sun, 21 Dec 2025 22:38:26 -0800 Subject: [PATCH] mb/google/bluey: Increase FW_MAIN_A/B slot size to 8.5MB This patch increases the size of the FW_MAIN_A and FW_MAIN_B slots to 8.5MB to accommodate APDP, Ramdump and ADSP-lite images. A 5MB estimated size of QTEE image is also taken into account to avoid future resizing. Size required for QTEE: Current size -> 2776K, Estimated size -> 5120K (5MB) Additional size needed -> 5120K-2776K = 2344K Size required for new images: Ramdump - 449K APDP - 0.7K ramdump_meta - 0.1K apdp_meta - 1.4K ADSP_Lite - 1192K Total = 1643K Additional size needed (QTEE + new images): 2344K+1643K = 3987K Current Layout of FW_MAIN_A/B slots: Total size - 4608K (4.5MB) Used size - 4126K Free size - 482K Additional size needed (excluding free size): 3987K-482K = 3505K Total size of FW_MAIN_A/B slots: 4608K+3505K = 8133K An additional buffer of 591K is included in the final size to provide room for increase in size of other blobs. So, Final size of FW_MAIN_A/B slots: 8133K+591K = 8704K (8.5MB). TEST=Create an image.serial.bin and ensure it boots on X1P42100. Change-Id: I3b3ba5c4bf8b5d3830174a890ea7cd089e3f274f Signed-off-by: Venkateshwar S Reviewed-on: https://review.coreboot.org/c/coreboot/+/90594 Reviewed-by: Subrata Banik Reviewed-by: Kapil Porwal Tested-by: build bot (Jenkins) --- src/mainboard/google/bluey/chromeos-nogsc.fmd | 4 ++-- src/mainboard/google/bluey/chromeos.fmd | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/mainboard/google/bluey/chromeos-nogsc.fmd b/src/mainboard/google/bluey/chromeos-nogsc.fmd index aa6b996b3a..6ffe1d335c 100644 --- a/src/mainboard/google/bluey/chromeos-nogsc.fmd +++ b/src/mainboard/google/bluey/chromeos-nogsc.fmd @@ -25,13 +25,13 @@ FLASH@0x0 CONFIG_ROM_SIZE { RW_NVRAM(PRESERVE) 16K } - RW_SECTION_A 4608K { + RW_SECTION_A 8704K { VBLOCK_A 8K FW_MAIN_A(CBFS) RW_FWID_A 256 } - RW_SECTION_B 4608K { + RW_SECTION_B 8704K { VBLOCK_B 8K FW_MAIN_B(CBFS) RW_FWID_B 256 diff --git a/src/mainboard/google/bluey/chromeos.fmd b/src/mainboard/google/bluey/chromeos.fmd index 98f03b5851..01a2331b22 100644 --- a/src/mainboard/google/bluey/chromeos.fmd +++ b/src/mainboard/google/bluey/chromeos.fmd @@ -26,13 +26,13 @@ FLASH@0x0 CONFIG_ROM_SIZE { RW_NVRAM(PRESERVE) 16K } - RW_SECTION_A 4608K { + RW_SECTION_A 8704K { VBLOCK_A 8K FW_MAIN_A(CBFS) RW_FWID_A 256 } - RW_SECTION_B 4608K { + RW_SECTION_B 8704K { VBLOCK_B 8K FW_MAIN_B(CBFS) RW_FWID_B 256