Browse Source

configs: Increase size of firmware memory region

Signed-off-by: Yuin Yee Chew <yuinyee.chew@starfivetech.com>
Yuin Yee Chew 10 months ago
parent
commit
ef35a2a245

+ 16 - 15
Platform/StarFive/JH7110SeriesPkg/JH7110Board/JH7110.fdf.inc

@@ -10,16 +10,16 @@
 DEFINE BLOCK_SIZE        = 0x1000
 
 DEFINE FW_BASE_ADDRESS   = 0x40000000
-DEFINE FW_SIZE           = 0x00400000
-DEFINE FW_BLOCKS         = 0x400
+DEFINE FW_SIZE           = 0x00900000
+DEFINE FW_BLOCKS         = 0x900
 
 #
 # 0x000000-0x7DFFFF code
 # 0x7E0000-0x800000 variables
 #
 DEFINE CODE_BASE_ADDRESS = 0x40000000
-DEFINE CODE_SIZE         = 0x00380000
-DEFINE CODE_BLOCKS       = 0x3800
+DEFINE CODE_SIZE         = 0x00800000
+DEFINE CODE_BLOCKS       = 0x800
 DEFINE VARS_BLOCKS       = 0x20
 
 #
@@ -37,10 +37,10 @@ DEFINE ROOT_FW_DOMAIN_SIZE = $(SECFV_SIZE)
 #
 # FW memory region
 #
-DEFINE PEIFV_OFFSET                  = 0x00200000
-DEFINE PEIFV_SIZE                    = 0x00060000
-DEFINE FVMAIN_OFFSET                 = 0x00260000
-DEFINE FVMAIN_SIZE                   = 0x00120000
+DEFINE PEIFV_OFFSET                  = 0x00400000
+DEFINE PEIFV_SIZE                    = 0x00180000
+DEFINE FVMAIN_OFFSET                 = 0x00580000
+DEFINE FVMAIN_SIZE                   = 0x00280000
 
 #
 # EFI Variable memory region.
@@ -48,22 +48,23 @@ DEFINE FVMAIN_SIZE                   = 0x00120000
 # all of sub regions of EFI Variable
 #
 DEFINE VARS_OFFSET                   = 0x00380000
-DEFINE VARS_SIZE                     = 0x00007000
-DEFINE VARS_FTW_WORKING_OFFSET       = 0x00387000
-DEFINE VARS_FTW_WORKING_SIZE         = 0x00001000
-DEFINE VARS_FTW_SPARE_OFFSET         = 0x00388000
-DEFINE VARS_FTW_SPARE_SIZE           = 0x00018000
+DEFINE VARS_OFFSET                   = 0x00800000
+DEFINE VARS_SIZE                     = 0x00010000
+DEFINE VARS_FTW_WORKING_OFFSET       = 0x00810000
+DEFINE VARS_FTW_WORKING_SIZE         = 0x00010000
+DEFINE VARS_FTW_SPARE_OFFSET         = 0x00820000
+DEFINE VARS_FTW_SPARE_SIZE           = 0x00010000
 
 #
 # Device Tree memory region
 #
-DEFINE DTB_OFFSET                    = 0x003a0000
+DEFINE DTB_OFFSET                    = 0x00840000
 DEFINE DTB_SIZE                      = 0x00010000
 
 #
 # Scratch area memory region
 #
-DEFINE SCRATCH_OFFSET                = 0x003c0000
+DEFINE SCRATCH_OFFSET                = 0x00860000
 DEFINE SCRATCH_SIZE                  = 0x00010000
 
 

+ 1 - 1
Platform/StarFive/JH7110SeriesPkg/JH7110Board/VarStore.fdf.inc

@@ -48,7 +48,7 @@ DATA = {
   0x16, 0x36, 0xcf, 0xdd, 0x75, 0x32, 0x64, 0x41,
   0x98, 0xb6, 0xfe, 0x85, 0x70, 0x7f, 0xfe, 0x7d,
 !endif
-  # Size: 0x7000 (gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageVariableSize) -
+  # Size: 0x10000 (gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageVariableSize) -
   #         0x48 (size of EFI_FIRMWARE_VOLUME_HEADER) = 0x6fb8
   # This can speed up the Variable Dispatch a bit.
   0xB8, 0x6F, 0x00, 0x00,