Skip to content

Commit 2e13a7c

Browse files
committed
Reduce reserved size for bootloader
1 parent 8cd4389 commit 2e13a7c

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

arch/arm/cpu/aml_meson/common/firmware/magic.S

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@ __magic_word:
2929
.short 0
3030

3131
// Partition 1
32-
PARTATION(ACTIVE, FAT16LBA, 352256, 524288)
33-
PARTATION(ACTIVE, LINUX, 892928, 14376960)
32+
PARTATION(ACTIVE, FAT16LBA, 32768, 524288)
33+
PARTATION(ACTIVE, LINUX, 557056, 14712832)
3434

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

board/amlogic/m8b_onecloud/firmware/storage.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
struct partitions partition_table[]={
77
{
88
.name = "resource",
9-
.size = 32 * SZ_1M,
9+
.size = 4 * SZ_1M,
1010
.mask_flags = STORE_DATA,
1111
},
1212
{

include/emmc_partitions.h

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,20 +27,20 @@
2727
#define MAX_MMC_PART_NUM 16
2828
#define MAX_MMC_PART_NAME_LEN 16
2929

30-
#define PARTITION_RESERVED (8*SZ_1M) // 8MB
31-
#define MMC_BOOT_PARTITION_RESERVED (32*SZ_1M) // 32MB
30+
#define PARTITION_RESERVED (0 * SZ_1M)
31+
#define MMC_BOOT_PARTITION_RESERVED (0 * SZ_1M)
3232

3333
#define MMC_BOOT_NAME "bootloader"
34-
#define MMC_BOOT_DEVICE_SIZE (0x4*SZ_1M)
34+
#define MMC_BOOT_DEVICE_SIZE (4 * SZ_1M)
3535

3636
#define MMC_RESERVED_NAME "reserved"
37-
#define MMC_RESERVED_SIZE (64*SZ_1M)
37+
#define MMC_RESERVED_SIZE (4 * SZ_1M)
3838

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

4242
#define MMC_ENV_NAME "env"
43-
#define MMC_ENV_SIZE (8*SZ_1M)
43+
#define MMC_ENV_SIZE (4*SZ_1M)
4444

4545
// #define MMC_KEY_NAME "key"
4646
// #define MMC_KEY_SIZE (0x1*SZ_1M)

0 commit comments

Comments
 (0)