Commit c21f6764478bc7079866fafbd6a8e1fca2642046
1 parent
a3f5218d38
Exists in
smarc_8mm-imx_v2018.03_4.14.98_2.0.0_ga
and in
5 other branches
[iot] Enlarge spl max size
124KB spl max size is not enough anymore, enlarge the max size to 172KB. Test: build and boot ok on Enterprise. Change-Id: I4569430b1be88cacbf86026fc1741f1e7cb03d90 Signed-off-by: Ji Luo <ji.luo@nxp.com>
Showing 1 changed file with 6 additions and 0 deletions Inline Diff
include/configs/imx8mq_evk_androidthings.h
1 | /* | 1 | /* |
2 | * Copyright 2018 NXP | 2 | * Copyright 2018 NXP |
3 | * | 3 | * |
4 | * SPDX-License-Identifier: GPL-2.0+ | 4 | * SPDX-License-Identifier: GPL-2.0+ |
5 | */ | 5 | */ |
6 | 6 | ||
7 | #ifndef IMX8MQ_EVK_ANDROID_THINGS_H | 7 | #ifndef IMX8MQ_EVK_ANDROID_THINGS_H |
8 | #define IMX8MQ_EVK_ANDROID_THINGS_H | 8 | #define IMX8MQ_EVK_ANDROID_THINGS_H |
9 | 9 | ||
10 | #define CONFIG_BCB_SUPPORT | 10 | #define CONFIG_BCB_SUPPORT |
11 | #define CONFIG_CMD_READ | 11 | #define CONFIG_CMD_READ |
12 | 12 | ||
13 | #define CONFIG_ANDROID_AB_SUPPORT | 13 | #define CONFIG_ANDROID_AB_SUPPORT |
14 | #define CONFIG_AVB_SUPPORT | 14 | #define CONFIG_AVB_SUPPORT |
15 | #define CONFIG_SUPPORT_EMMC_RPMB | 15 | #define CONFIG_SUPPORT_EMMC_RPMB |
16 | #define CONFIG_SYSTEM_RAMDISK_SUPPORT | 16 | #define CONFIG_SYSTEM_RAMDISK_SUPPORT |
17 | #define CONFIG_AVB_FUSE_BANK_SIZEW 0 | 17 | #define CONFIG_AVB_FUSE_BANK_SIZEW 0 |
18 | #define CONFIG_AVB_FUSE_BANK_START 0 | 18 | #define CONFIG_AVB_FUSE_BANK_START 0 |
19 | #define CONFIG_AVB_FUSE_BANK_END 0 | 19 | #define CONFIG_AVB_FUSE_BANK_END 0 |
20 | #define CONFIG_FASTBOOT_LOCK | 20 | #define CONFIG_FASTBOOT_LOCK |
21 | #define FSL_FASTBOOT_FB_DEV "mmc" | 21 | #define FSL_FASTBOOT_FB_DEV "mmc" |
22 | 22 | ||
23 | #define CONFIG_ENABLE_LOCKSTATUS_SUPPORT | 23 | #define CONFIG_ENABLE_LOCKSTATUS_SUPPORT |
24 | 24 | ||
25 | #ifdef CONFIG_SYS_MALLOC_LEN | 25 | #ifdef CONFIG_SYS_MALLOC_LEN |
26 | #undef CONFIG_SYS_MALLOC_LEN | 26 | #undef CONFIG_SYS_MALLOC_LEN |
27 | #define CONFIG_SYS_MALLOC_LEN (64 * SZ_1M) | 27 | #define CONFIG_SYS_MALLOC_LEN (64 * SZ_1M) |
28 | #endif | 28 | #endif |
29 | 29 | ||
30 | #define CONFIG_USB_FUNCTION_FASTBOOT | 30 | #define CONFIG_USB_FUNCTION_FASTBOOT |
31 | #define CONFIG_FASTBOOT_FLASH | 31 | #define CONFIG_FASTBOOT_FLASH |
32 | #define CONFIG_FASTBOOT_STORAGE_MMC | 32 | #define CONFIG_FASTBOOT_STORAGE_MMC |
33 | 33 | ||
34 | #define CONFIG_USB_GADGET | 34 | #define CONFIG_USB_GADGET |
35 | #define CONFIG_CMD_FASTBOOT | 35 | #define CONFIG_CMD_FASTBOOT |
36 | #define CONFIG_FSL_FASTBOOT | 36 | #define CONFIG_FSL_FASTBOOT |
37 | #define CONFIG_ANDROID_RECOVERY | 37 | #define CONFIG_ANDROID_RECOVERY |
38 | 38 | ||
39 | #define CONFIG_FASTBOOT_BUF_ADDR CONFIG_SYS_LOAD_ADDR | 39 | #define CONFIG_FASTBOOT_BUF_ADDR CONFIG_SYS_LOAD_ADDR |
40 | #define CONFIG_FASTBOOT_BUF_SIZE 0x19000000 | 40 | #define CONFIG_FASTBOOT_BUF_SIZE 0x19000000 |
41 | 41 | ||
42 | #define CONFIG_CMD_BOOTA | 42 | #define CONFIG_CMD_BOOTA |
43 | #define CONFIG_SUPPORT_RAW_INITRD | 43 | #define CONFIG_SUPPORT_RAW_INITRD |
44 | #define CONFIG_SERIAL_TAG | 44 | #define CONFIG_SERIAL_TAG |
45 | 45 | ||
46 | #undef CONFIG_EXTRA_ENV_SETTINGS | 46 | #undef CONFIG_EXTRA_ENV_SETTINGS |
47 | #undef CONFIG_BOOTCOMMAND | 47 | #undef CONFIG_BOOTCOMMAND |
48 | 48 | ||
49 | #define CONFIG_EXTRA_ENV_SETTINGS \ | 49 | #define CONFIG_EXTRA_ENV_SETTINGS \ |
50 | "splashpos=m,m\0" \ | 50 | "splashpos=m,m\0" \ |
51 | "fdt_high=0xffffffffffffffff\0" \ | 51 | "fdt_high=0xffffffffffffffff\0" \ |
52 | "initrd_high=0xffffffffffffffff\0" \ | 52 | "initrd_high=0xffffffffffffffff\0" \ |
53 | 53 | ||
54 | #define AVB_AB_I_UNDERSTAND_LIBAVB_AB_IS_DEPRECATED | 54 | #define AVB_AB_I_UNDERSTAND_LIBAVB_AB_IS_DEPRECATED |
55 | 55 | ||
56 | #define ENTERPRISE_MICRON_1G 0x5c | 56 | #define ENTERPRISE_MICRON_1G 0x5c |
57 | #define ENTERPRISE_HYNIX_1G 0x56 | 57 | #define ENTERPRISE_HYNIX_1G 0x56 |
58 | #define ENTERPRISE_MIRCONB_3G 0x40 | 58 | #define ENTERPRISE_MIRCONB_3G 0x40 |
59 | #define WIBO_3G 0x00 | 59 | #define WIBO_3G 0x00 |
60 | #define IMX8M_REF_3G 0x00 | 60 | #define IMX8M_REF_3G 0x00 |
61 | 61 | ||
62 | #ifdef CONFIG_SPL_BUILD | 62 | #ifdef CONFIG_SPL_BUILD |
63 | 63 | ||
64 | #define CONFIG_SPL_SHA256 | 64 | #define CONFIG_SPL_SHA256 |
65 | 65 | ||
66 | #define AVB_RPMB | 66 | #define AVB_RPMB |
67 | #ifdef AVB_RPMB | 67 | #ifdef AVB_RPMB |
68 | #define BOOTLOADER_RBIDX_OFFSET 0x1E000 | 68 | #define BOOTLOADER_RBIDX_OFFSET 0x1E000 |
69 | #define BOOTLOADER_RBIDX_START 0x1F000 | 69 | #define BOOTLOADER_RBIDX_START 0x1F000 |
70 | #define BOOTLOADER_RBIDX_LEN 0x08 | 70 | #define BOOTLOADER_RBIDX_LEN 0x08 |
71 | #define BOOTLOADER_RBIDX_INITVAL 0 | 71 | #define BOOTLOADER_RBIDX_INITVAL 0 |
72 | #define KEYSLOT_HWPARTITION_ID 2 | 72 | #define KEYSLOT_HWPARTITION_ID 2 |
73 | #define KEYSLOT_BLKS 0x1FFF | 73 | #define KEYSLOT_BLKS 0x1FFF |
74 | #endif | 74 | #endif |
75 | 75 | ||
76 | #endif | 76 | #endif |
77 | 77 | ||
78 | /* Enlarge the spl max size to 172k */ | ||
79 | #ifdef CONFIG_SPL_MAX_SIZE | ||
80 | #undef CONFIG_SPL_MAX_SIZE | ||
81 | #define CONFIG_SPL_MAX_SIZE 176128 | ||
82 | #endif | ||
83 | |||
78 | #endif /* IMX8MQ_EVK_ANDROID_THINGS_H */ | 84 | #endif /* IMX8MQ_EVK_ANDROID_THINGS_H */ |
79 | 85 |