Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tools: mksunxiboot: Add support for bigger SPL size
Upcoming H616 SoC will need support for bigger SPL size. Increase max. number to 48 KiB. Signed-off-by: Jernej Skrabec <jernej.skrabec@siol.net>
- Loading branch information
Showing
1 changed file
with
1 addition
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -45,7 +45,7 @@ int gen_check_sum(struct boot_file_head *head_p) | |
return 0; | ||
} | ||
|
||
#define SUNXI_SRAM_SIZE 0x8000 /* SoC with smaller size are limited before */ | ||
#define SUNXI_SRAM_SIZE 0xc000 /* SoC with smaller size are limited before */ | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
jernejsk
Author
Owner
|
||
#define SRAM_LOAD_MAX_SIZE (SUNXI_SRAM_SIZE - sizeof(struct boot_file_head)) | ||
|
||
/* | ||
|
I guess this is OK for now, ideally we retire this tool anyway. Eventually we want to avoid SPLs for other SoCs growing too big, accidentally. But this tools should be agnostic to the SoC used, so maybe we would always allow 48KB, but warn if it's bigger than 32KB?