mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-11-15 12:08:59 +00:00
feat(core): adjust flash layout on DISC2
[no changelog]
This commit is contained in:
parent
4ed70cc9bc
commit
5894c34f58
@ -1,7 +1,7 @@
|
|||||||
/* Auto-generated file, do not edit.*/
|
/* Auto-generated file, do not edit.*/
|
||||||
|
|
||||||
FLASH_START = 0xc004000;
|
FLASH_START = 0xc004000;
|
||||||
NORCOW_SECTOR_SIZE = 0x10000;
|
NORCOW_SECTOR_SIZE = 0x20000;
|
||||||
SECRET_START = 0xc000000;
|
SECRET_START = 0xc000000;
|
||||||
SECRET_MAXSIZE = 0x4000;
|
SECRET_MAXSIZE = 0x4000;
|
||||||
SECRET_SECTOR_START = 0x0;
|
SECRET_SECTOR_START = 0x0;
|
||||||
@ -11,28 +11,28 @@ BHK_MAXSIZE = 0x2000;
|
|||||||
BHK_SECTOR_START = 0x1;
|
BHK_SECTOR_START = 0x1;
|
||||||
BHK_SECTOR_END = 0x1;
|
BHK_SECTOR_END = 0x1;
|
||||||
BOARDLOADER_START = 0xc004000;
|
BOARDLOADER_START = 0xc004000;
|
||||||
BOARDLOADER_MAXSIZE = 0xc000;
|
BOARDLOADER_MAXSIZE = 0x10000;
|
||||||
BOARDLOADER_SECTOR_START = 0x2;
|
BOARDLOADER_SECTOR_START = 0x2;
|
||||||
BOARDLOADER_SECTOR_END = 0x7;
|
BOARDLOADER_SECTOR_END = 0x9;
|
||||||
BOARDCAPS_START = 0xc00ff00;
|
BOARDCAPS_START = 0xc013f00;
|
||||||
BOARDCAPS_MAXSIZE = 0x100;
|
BOARDCAPS_MAXSIZE = 0x100;
|
||||||
BOOTLOADER_START = 0xc010000;
|
BOOTLOADER_START = 0xc014000;
|
||||||
BOOTLOADER_MAXSIZE = 0x20000;
|
BOOTLOADER_MAXSIZE = 0x30000;
|
||||||
BOOTLOADER_SECTOR_START = 0x8;
|
BOOTLOADER_SECTOR_START = 0xa;
|
||||||
BOOTLOADER_SECTOR_END = 0x17;
|
BOOTLOADER_SECTOR_END = 0x21;
|
||||||
STORAGE_1_START = 0xc030000;
|
STORAGE_1_START = 0xc044000;
|
||||||
STORAGE_1_MAXSIZE = 0x10000;
|
STORAGE_1_MAXSIZE = 0x20000;
|
||||||
STORAGE_1_SECTOR_START = 0x18;
|
STORAGE_1_SECTOR_START = 0x22;
|
||||||
STORAGE_1_SECTOR_END = 0x1f;
|
STORAGE_1_SECTOR_END = 0x31;
|
||||||
STORAGE_2_START = 0xc040000;
|
STORAGE_2_START = 0xc064000;
|
||||||
STORAGE_2_MAXSIZE = 0x10000;
|
STORAGE_2_MAXSIZE = 0x20000;
|
||||||
STORAGE_2_SECTOR_START = 0x20;
|
STORAGE_2_SECTOR_START = 0x32;
|
||||||
STORAGE_2_SECTOR_END = 0x27;
|
STORAGE_2_SECTOR_END = 0x41;
|
||||||
FIRMWARE_START = 0xc050000;
|
FIRMWARE_START = 0xc084000;
|
||||||
FIRMWARE_MAXSIZE = 0x3a0000;
|
FIRMWARE_MAXSIZE = 0x36c000;
|
||||||
FIRMWARE_SECTOR_START = 0x28;
|
FIRMWARE_SECTOR_START = 0x42;
|
||||||
FIRMWARE_SECTOR_END = 0x1f7;
|
FIRMWARE_SECTOR_END = 0x1f7;
|
||||||
KERNEL_START = 0xc050000;
|
KERNEL_START = 0xc084000;
|
||||||
KERNEL_MAXSIZE = 0x80000;
|
KERNEL_MAXSIZE = 0x80000;
|
||||||
ASSETS_START = 0xc3f0000;
|
ASSETS_START = 0xc3f0000;
|
||||||
ASSETS_MAXSIZE = 0x10000;
|
ASSETS_MAXSIZE = 0x10000;
|
||||||
|
@ -34,7 +34,7 @@
|
|||||||
// SHARED WITH MAKEFILE, LINKER SCRIPT etc.
|
// SHARED WITH MAKEFILE, LINKER SCRIPT etc.
|
||||||
// misc
|
// misc
|
||||||
#define FLASH_START 0x0C004000
|
#define FLASH_START 0x0C004000
|
||||||
#define NORCOW_SECTOR_SIZE (8 * 8 * 1024) // 64 kB
|
#define NORCOW_SECTOR_SIZE (16 * 8 * 1024) // 128 kB
|
||||||
|
|
||||||
// FLASH layout
|
// FLASH layout
|
||||||
#define SECRET_START 0x0C000000
|
#define SECRET_START 0x0C000000
|
||||||
@ -49,33 +49,33 @@
|
|||||||
#define BHK_SECTOR_END 0x1
|
#define BHK_SECTOR_END 0x1
|
||||||
|
|
||||||
#define BOARDLOADER_START 0x0C004000
|
#define BOARDLOADER_START 0x0C004000
|
||||||
#define BOARDLOADER_MAXSIZE (6 * 8 * 1024) // 48 kB
|
#define BOARDLOADER_MAXSIZE (8 * 8 * 1024) // 64 kB
|
||||||
#define BOARDLOADER_SECTOR_START 0x2
|
#define BOARDLOADER_SECTOR_START 0x2
|
||||||
#define BOARDLOADER_SECTOR_END 0x7
|
#define BOARDLOADER_SECTOR_END 0x9
|
||||||
|
|
||||||
#define BOARDCAPS_START 0x0C00FF00
|
#define BOARDCAPS_START 0x0C013F00
|
||||||
#define BOARDCAPS_MAXSIZE 0x100
|
#define BOARDCAPS_MAXSIZE 0x100
|
||||||
|
|
||||||
#define BOOTLOADER_START 0x0C010000
|
#define BOOTLOADER_START 0x0C014000
|
||||||
#define BOOTLOADER_MAXSIZE (16 * 8 * 1024) // 128 kB
|
#define BOOTLOADER_MAXSIZE (24 * 8 * 1024) // 192 kB
|
||||||
#define BOOTLOADER_SECTOR_START 0x8
|
#define BOOTLOADER_SECTOR_START 0x0A
|
||||||
#define BOOTLOADER_SECTOR_END 0x17
|
#define BOOTLOADER_SECTOR_END 0x21
|
||||||
|
|
||||||
#define STORAGE_1_START 0x0C030000
|
#define STORAGE_1_START 0x0C044000
|
||||||
#define STORAGE_1_MAXSIZE (8 * 8 * 1024) // 64 kB
|
#define STORAGE_1_MAXSIZE (16 * 8 * 1024) // 128 kB
|
||||||
#define STORAGE_1_SECTOR_START 0x18
|
#define STORAGE_1_SECTOR_START 0x22
|
||||||
#define STORAGE_1_SECTOR_END 0x1F
|
#define STORAGE_1_SECTOR_END 0x31
|
||||||
|
|
||||||
#define STORAGE_2_START 0x0C040000
|
#define STORAGE_2_START 0x0C064000
|
||||||
#define STORAGE_2_MAXSIZE (8 * 8 * 1024) // 64 kB
|
#define STORAGE_2_MAXSIZE (16 * 8 * 1024) // 128 kB
|
||||||
#define STORAGE_2_SECTOR_START 0x20
|
#define STORAGE_2_SECTOR_START 0x32
|
||||||
#define STORAGE_2_SECTOR_END 0x27
|
#define STORAGE_2_SECTOR_END 0x41
|
||||||
|
|
||||||
#define FIRMWARE_START 0x0C050000
|
#define FIRMWARE_START 0x0C084000
|
||||||
#define FIRMWARE_MAXSIZE (464 * 8 * 1024) // 3712 kB
|
#define FIRMWARE_MAXSIZE (438 * 8 * 1024) // 3504 kB
|
||||||
#define FIRMWARE_SECTOR_START 0x28
|
#define FIRMWARE_SECTOR_START 0x42
|
||||||
#define FIRMWARE_SECTOR_END 0x1F7
|
#define FIRMWARE_SECTOR_END 0x1F7
|
||||||
#define KERNEL_START 0x0C050000
|
#define KERNEL_START 0x0C084000
|
||||||
#define KERNEL_MAXSIZE (512 * 1024) // 512 kB
|
#define KERNEL_MAXSIZE (512 * 1024) // 512 kB
|
||||||
|
|
||||||
#define ASSETS_START 0x0C3F0000
|
#define ASSETS_START 0x0C3F0000
|
||||||
|
Loading…
Reference in New Issue
Block a user