summaryrefslogtreecommitdiff
path: root/meta-phosphor/classes
diff options
context:
space:
mode:
authorTroy Lee <troy_lee@aspeedtech.com>2021-06-08 12:50:49 +0300
committerPatrick Williams <patrick@stwcx.xyz>2021-06-15 20:51:44 +0300
commit7f886a9f23c037fd57feeec585d9ba1f0061145a (patch)
treea1fce6f7e34ac84d8e07f9046af9a2ca45b25f59 /meta-phosphor/classes
parent65d9cfae12a5b38300343df5a8bfade81ce68718 (diff)
downloadopenbmc-7f886a9f23c037fd57feeec585d9ba1f0061145a.tar.xz
phosphor: image_types_phosphor: 64MiB flash default layout
Add an addition override for 64MiB static flash layout. The existing 32MiB layout are unchanged: partition: size: offset u-boot: 384 KiB (0 KiB) u-boot-env: 128 KiB (384 KiB) kernel/FIT: 4352 KiB (512 KiB) rootfs: 23808 KiB (4864 KiB) rwfs: 4MiB (28672 KiB) The existing 128MiB layout are unchanged: partition: size: offset u-boot: 896 KiB (0 KiB) u-boot-env: 128 KiB (896 KiB) kernel/FIT: 9 MiB (1 MiB) rootfs: 86 MiB (10 MiB) rwfs: 32MiB (96 MiB) The new layout for 64MiB is as follows: partition: size: offset u-boot: 896 KiB (0 KiB) u-boot-env: 128 KiB (896 KiB) kernel/FIT: 9 MiB (1 MiB) rootfs: 32 MiB (10 MiB) rwfs: 22 MiB (42 MiB) Signed-off-by: Troy Lee <troy_lee@aspeedtech.com> Change-Id: I001cf2e9bc30edc34e43c0c4503684050e2a764f
Diffstat (limited to 'meta-phosphor/classes')
-rw-r--r--meta-phosphor/classes/image_types_phosphor.bbclass3
1 files changed, 3 insertions, 0 deletions
diff --git a/meta-phosphor/classes/image_types_phosphor.bbclass b/meta-phosphor/classes/image_types_phosphor.bbclass
index c347fdba3..21c451a7d 100644
--- a/meta-phosphor/classes/image_types_phosphor.bbclass
+++ b/meta-phosphor/classes/image_types_phosphor.bbclass
@@ -41,11 +41,14 @@ FLASH_NOR_UBI_OVERHEAD ?= "64"
FLASH_UBOOT_SPL_SIZE ?= "64"
FLASH_UBOOT_OFFSET ?= "0"
FLASH_KERNEL_OFFSET ?= "512"
+FLASH_KERNEL_OFFSET_flash-65536 ?= "1024"
FLASH_KERNEL_OFFSET_flash-131072 ?= "1024"
FLASH_UBI_OFFSET ?= "${FLASH_KERNEL_OFFSET}"
FLASH_ROFS_OFFSET ?= "4864"
+FLASH_ROFS_OFFSET_flash-65536 ?= "10240"
FLASH_ROFS_OFFSET_flash-131072 ?= "10240"
FLASH_RWFS_OFFSET ?= "28672"
+FLASH_RWFS_OFFSET_flash-65536 ?= "43008"
FLASH_RWFS_OFFSET_flash-131072 ?= "98304"
# UBI volume sizes in KB unless otherwise noted.