Skip to content

Commit

Permalink
Reduce reserved size for bootloader
Browse files Browse the repository at this point in the history
  • Loading branch information
hzyitc committed Oct 16, 2022
1 parent 8cd4389 commit 2e13a7c
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions arch/arm/cpu/aml_meson/common/firmware/magic.S
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ __magic_word:
.short 0

// Partition 1
PARTATION(ACTIVE, FAT16LBA, 352256, 524288)
PARTATION(ACTIVE, LINUX, 892928, 14376960)
PARTATION(ACTIVE, FAT16LBA, 32768, 524288)
PARTATION(ACTIVE, LINUX, 557056, 14712832)

.space (0x1FE - 0x1B0) - (. - __magic_word)

Expand Down
2 changes: 1 addition & 1 deletion board/amlogic/m8b_onecloud/firmware/storage.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
struct partitions partition_table[]={
{
.name = "resource",
.size = 32 * SZ_1M,
.size = 4 * SZ_1M,
.mask_flags = STORE_DATA,
},
{
Expand Down
10 changes: 5 additions & 5 deletions include/emmc_partitions.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,20 +27,20 @@
#define MAX_MMC_PART_NUM 16
#define MAX_MMC_PART_NAME_LEN 16

#define PARTITION_RESERVED (8*SZ_1M) // 8MB
#define MMC_BOOT_PARTITION_RESERVED (32*SZ_1M) // 32MB
#define PARTITION_RESERVED (0 * SZ_1M)
#define MMC_BOOT_PARTITION_RESERVED (0 * SZ_1M)

#define MMC_BOOT_NAME "bootloader"
#define MMC_BOOT_DEVICE_SIZE (0x4*SZ_1M)
#define MMC_BOOT_DEVICE_SIZE (4 * SZ_1M)

#define MMC_RESERVED_NAME "reserved"
#define MMC_RESERVED_SIZE (64*SZ_1M)
#define MMC_RESERVED_SIZE (4 * SZ_1M)

#define MMC_CACHE_NAME "cache"
// #define MMC_CACHE_SIZE (512*SZ_1M) // this is not used and should be get from spl

#define MMC_ENV_NAME "env"
#define MMC_ENV_SIZE (8*SZ_1M)
#define MMC_ENV_SIZE (4*SZ_1M)

// #define MMC_KEY_NAME "key"
// #define MMC_KEY_SIZE (0x1*SZ_1M)
Expand Down

0 comments on commit 2e13a7c

Please sign in to comment.