-
Notifications
You must be signed in to change notification settings - Fork 585
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
os/tools: Check package size with both internal and external flashes
This script compares a package size with partition size and show the ratio of usage. It checked internal partitions so I added external checking if external flash exist. If I set partitions like below, Example 1) - Partitions CONFIG_FLASH_PART_SIZE="60,40,12,400,1844,4808,384,1844,4808,384,512,1280,8," CONFIG_FLASH_PART_TYPE="none,none,none,none,kernel,bin,bin,kernel,bin,bin,smartfs,ftl,bootparam," CONFIG_FLASH_PART_NAME="bl1,reserved,ftl,ss,kernel,app1,app2,kernel,app1,app2,userfs,reserved,bootparam," - Result ========== Size Verification of built Binaries ========== Type Binary Size Partition Size used(%) KERNEL 1,391,550 bytes 1,888,256 bytes 73.69% PASS APP1 7,603 bytes 4,923,392 bytes 0.15% PASS APP2 83,394 bytes 393,216 bytes 21.21% PASS => Size verification SUCCESS!! The size of all binaries are OK. Example 2) - Partitions CONFIG_FLASH_PART_SIZE="60,40,12,400,1844,5404,684,1844,5404,684,8," CONFIG_FLASH_PART_TYPE="none,none,none,none,kernel,bin,bin,kernel,bin,bin,bootparam," CONFIG_FLASH_PART_NAME="bl1,reserved,ftl,ss,kernel,common,app1,kernel,common,app1,bootparam," CONFIG_SECOND_FLASH_PART_SIZE="128,14656,14656,2048,1280," CONFIG_SECOND_FLASH_PART_TYPE="none,resource,resource,smartfs,ftl," CONFIG_SECOND_FLASH_PART_NAME="reserved,resource,resource,userfs,micom," - Result ========== Size Verification of built Binaries ========== Type Binary Size Partition Size used(%) KERNEL 1,477,390 bytes 1,888,256 bytes 78.24% PASS APP1 356,268 bytes 700,416 bytes 50.87% PASS COMMON 5,405,608 bytes 5,533,696 bytes 97.69% WARNING RESOURCE 2,928,640 bytes 15,007,744 bytes 19.51% PASS
- Loading branch information
1 parent
1916359
commit 3db3c09
Showing
1 changed file
with
64 additions
and
131 deletions.
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