直接上主题:
更改\bootable\bootloader\lk\target\tcc8920st_evm\init.c
static struct ptentry board_part_list[] = {
{
.start = 0,
.length = 0,
.name = "bootloader",
.flags = PART_HIDDEN,
},
{
.start = 0,
.length = 10, /* 10MB */
.name = "boot",
},
{
.start = 10,
.length = 5, /* 5MB */
.name = "kpanic",
},
{
.start = 15,
.length = 150, /* 150MB */
.name = "system",
},
{
.start = 165,
.length = 4, /* 4MB */
.name = "splash",
},
{
.start = 169,
.length = 68, /* 68MB, minimum free size of /cache is 55MB from Android 2.3 Compatibility Definition */
.name = "cache",
},
{
.start = 237,
.length = VARIABLE_LENGTH,
.name = "userdata",
},
{
.start = DIFF_START_ADDR,
.length = 10, /* 10MB */
.name = "recovery",
},
{
.start = DIFF_START_ADDR,
.length = 1, /* 1MB */
.name = "misc",
},
{
.start = DIFF_START_ADDR,
.length = 1, /* 1MB */
.name = "tcc",
}
};
挺简单的。