Heiko Schocher | 7937e4f | 2008-11-20 09:59:09 +0100 | [diff] [blame] | 1 | /* |
Heiko Schocher | 8ce3dd5 | 2011-03-15 16:52:29 +0100 | [diff] [blame] | 2 | * (C) Copyright 2008-2011 |
Heiko Schocher | 7937e4f | 2008-11-20 09:59:09 +0100 | [diff] [blame] | 3 | * Heiko Schocher, DENX Software Engineering, hs@denx.de. |
| 4 | * |
Wolfgang Denk | bd8ec7e | 2013-10-07 13:07:26 +0200 | [diff] [blame] | 5 | * SPDX-License-Identifier: GPL-2.0+ |
Heiko Schocher | 7937e4f | 2008-11-20 09:59:09 +0100 | [diff] [blame] | 6 | */ |
| 7 | |
| 8 | #ifndef __CONFIG_KEYMILE_H |
| 9 | #define __CONFIG_KEYMILE_H |
| 10 | |
Heiko Schocher | cfc5804 | 2010-04-26 13:07:28 +0200 | [diff] [blame] | 11 | #define CONFIG_BOOTCOUNT_LIMIT |
Heiko Schocher | 7937e4f | 2008-11-20 09:59:09 +0100 | [diff] [blame] | 12 | |
Heiko Schocher | 7937e4f | 2008-11-20 09:59:09 +0100 | [diff] [blame] | 13 | /* |
| 14 | * Command line configuration. |
| 15 | */ |
Gerlando Falauto | 069b52b | 2011-09-22 05:06:12 +0000 | [diff] [blame] | 16 | #define CONFIG_CMD_DEFAULTENV_VARS |
Heiko Schocher | 7937e4f | 2008-11-20 09:59:09 +0100 | [diff] [blame] | 17 | #define CONFIG_CMD_IMMAP |
Heiko Schocher | 7937e4f | 2008-11-20 09:59:09 +0100 | [diff] [blame] | 18 | #define CONFIG_CMD_EEPROM |
Heiko Schocher | a8d5189 | 2009-03-12 07:37:18 +0100 | [diff] [blame] | 19 | #define CONFIG_CMD_JFFS2 |
Heiko Schocher | 875f4728 | 2009-07-09 12:04:18 +0200 | [diff] [blame] | 20 | #define CONFIG_CMD_MTDPARTS |
Heiko Schocher | 7937e4f | 2008-11-20 09:59:09 +0100 | [diff] [blame] | 21 | |
Heiko Schocher | 8ce3dd5 | 2011-03-15 16:52:29 +0100 | [diff] [blame] | 22 | #undef CONFIG_WATCHDOG /* disable platform specific watchdog */ |
Heiko Schocher | 7937e4f | 2008-11-20 09:59:09 +0100 | [diff] [blame] | 23 | |
Heiko Schocher | 8ce3dd5 | 2011-03-15 16:52:29 +0100 | [diff] [blame] | 24 | #undef CONFIG_BOOTARGS /* the boot command will set bootargs */ |
Heiko Schocher | 7937e4f | 2008-11-20 09:59:09 +0100 | [diff] [blame] | 25 | |
| 26 | /* |
| 27 | * Miscellaneous configurable options |
| 28 | */ |
Heiko Schocher | 8ce3dd5 | 2011-03-15 16:52:29 +0100 | [diff] [blame] | 29 | #define CONFIG_SYS_LONGHELP /* undef to save memory */ |
Heiko Schocher | 7937e4f | 2008-11-20 09:59:09 +0100 | [diff] [blame] | 30 | #if defined(CONFIG_CMD_KGDB) |
Heiko Schocher | 8ce3dd5 | 2011-03-15 16:52:29 +0100 | [diff] [blame] | 31 | #define CONFIG_SYS_CBSIZE 1024 /* Console I/O Buffer Size */ |
Heiko Schocher | 7937e4f | 2008-11-20 09:59:09 +0100 | [diff] [blame] | 32 | #else |
Holger Brunck | 0bd8202 | 2011-03-14 15:49:05 +0100 | [diff] [blame] | 33 | #define CONFIG_SYS_CBSIZE 512 /* Console I/O Buffer Size */ |
Heiko Schocher | 7937e4f | 2008-11-20 09:59:09 +0100 | [diff] [blame] | 34 | #endif |
Heiko Schocher | 8ce3dd5 | 2011-03-15 16:52:29 +0100 | [diff] [blame] | 35 | #define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16) |
Holger Brunck | 0bd8202 | 2011-03-14 15:49:05 +0100 | [diff] [blame] | 36 | #define CONFIG_SYS_MAXARGS 32 /* max number of command args */ |
Heiko Schocher | 8ce3dd5 | 2011-03-15 16:52:29 +0100 | [diff] [blame] | 37 | #define CONFIG_SYS_BARGSIZE CONFIG_SYS_CBSIZE |
| 38 | #define CONFIG_CMDLINE_EDITING |
| 39 | #define CONFIG_AUTO_COMPLETE |
Heiko Schocher | 7937e4f | 2008-11-20 09:59:09 +0100 | [diff] [blame] | 40 | |
Heiko Schocher | 8ce3dd5 | 2011-03-15 16:52:29 +0100 | [diff] [blame] | 41 | #define CONFIG_HUSH_INIT_VAR |
Heiko Schocher | 7937e4f | 2008-11-20 09:59:09 +0100 | [diff] [blame] | 42 | |
| 43 | #define CONFIG_SYS_ALT_MEMTEST /* memory test, takes time */ |
Heiko Schocher | 7937e4f | 2008-11-20 09:59:09 +0100 | [diff] [blame] | 44 | |
Holger Brunck | 4559d1f | 2011-04-08 02:47:46 +0000 | [diff] [blame] | 45 | #define CONFIG_SYS_BAUDRATE_TABLE { 9600, 19200, 38400, 57600, 115200, 230400 } |
Heiko Schocher | 7937e4f | 2008-11-20 09:59:09 +0100 | [diff] [blame] | 46 | |
Heiko Schocher | 8ce3dd5 | 2011-03-15 16:52:29 +0100 | [diff] [blame] | 47 | #define CONFIG_LOADS_ECHO |
| 48 | #define CONFIG_SYS_LOADS_BAUD_CHANGE |
Heiko Schocher | 7937e4f | 2008-11-20 09:59:09 +0100 | [diff] [blame] | 49 | |
Holger Brunck | 6c3dd06 | 2015-11-13 16:15:19 +0100 | [diff] [blame] | 50 | |
Heiko Schocher | a8d5189 | 2009-03-12 07:37:18 +0100 | [diff] [blame] | 51 | /* Support the IVM EEprom */ |
| 52 | #define CONFIG_SYS_IVM_EEPROM_ADR 0x50 |
| 53 | #define CONFIG_SYS_IVM_EEPROM_MAX_LEN 0x400 |
| 54 | #define CONFIG_SYS_IVM_EEPROM_PAGE_LEN 0x100 |
| 55 | |
Heiko Schocher | 8ce3dd5 | 2011-03-15 16:52:29 +0100 | [diff] [blame] | 56 | #define CONFIG_SYS_FLASH_PROTECTION |
Heiko Schocher | a8d5189 | 2009-03-12 07:37:18 +0100 | [diff] [blame] | 57 | |
Heiko Schocher | 7937e4f | 2008-11-20 09:59:09 +0100 | [diff] [blame] | 58 | /* |
| 59 | * BOOTP options |
| 60 | */ |
| 61 | #define CONFIG_BOOTP_BOOTFILESIZE |
| 62 | #define CONFIG_BOOTP_BOOTPATH |
| 63 | #define CONFIG_BOOTP_GATEWAY |
| 64 | #define CONFIG_BOOTP_HOSTNAME |
| 65 | |
Heiko Schocher | 875f4728 | 2009-07-09 12:04:18 +0200 | [diff] [blame] | 66 | /* UBI Support for all Keymile boards */ |
Heiko Schocher | 875f4728 | 2009-07-09 12:04:18 +0200 | [diff] [blame] | 67 | #define CONFIG_RBTREE |
| 68 | #define CONFIG_MTD_PARTITIONS |
Heiko Schocher | 875f4728 | 2009-07-09 12:04:18 +0200 | [diff] [blame] | 69 | #define CONFIG_MTD_DEVICE |
| 70 | #define CONFIG_MTD_CONCAT |
| 71 | |
Holger Brunck | 4056265 | 2011-06-05 22:22:21 +0000 | [diff] [blame] | 72 | #define CONFIG_CMD_CRAMFS |
Holger Brunck | 4056265 | 2011-06-05 22:22:21 +0000 | [diff] [blame] | 73 | |
Holger Brunck | e7c1fdc | 2011-03-04 14:56:27 +0100 | [diff] [blame] | 74 | #ifndef CONFIG_KM_DEF_ENV_BOOTPARAMS |
| 75 | #define CONFIG_KM_DEF_ENV_BOOTPARAMS \ |
Holger Brunck | 2ff59ee | 2011-07-04 21:27:16 +0000 | [diff] [blame] | 76 | "actual_bank=0\0" |
Heiko Schocher | a8d5189 | 2009-03-12 07:37:18 +0100 | [diff] [blame] | 77 | #endif |
| 78 | |
Holger Brunck | 752ba31 | 2011-03-14 16:01:04 +0100 | [diff] [blame] | 79 | #ifndef CONFIG_KM_DEF_NETDEV |
| 80 | #define CONFIG_KM_DEF_NETDEV \ |
| 81 | "netdev=eth0\0" |
| 82 | #endif |
| 83 | |
Andreas Huber | a81548a | 2012-05-04 10:30:16 +0200 | [diff] [blame] | 84 | #ifndef CONFIG_KM_UBI_PARTITION_NAME_BOOT |
| 85 | #define CONFIG_KM_UBI_PARTITION_NAME_BOOT "ubi0" |
| 86 | #endif /* CONFIG_KM_UBI_PARTITION_NAME_BOOT */ |
| 87 | |
Valentin Longchamp | e6d848f | 2014-01-27 11:49:10 +0100 | [diff] [blame] | 88 | #ifndef CONFIG_KM_UBI_PART_BOOT_OPTS |
| 89 | #define CONFIG_KM_UBI_PART_BOOT_OPTS "" |
| 90 | #endif /* CONFIG_KM_UBI_PART_BOOT_OPTS */ |
| 91 | |
Andreas Huber | a81548a | 2012-05-04 10:30:16 +0200 | [diff] [blame] | 92 | #ifndef CONFIG_KM_UBI_PARTITION_NAME_APP |
| 93 | /* one flash chip only called boot */ |
| 94 | /* boot: CONFIG_KM_UBI_PARTITION_NAME_BOOT */ |
| 95 | # define CONFIG_KM_UBI_LINUX_MTD \ |
Valentin Longchamp | e6d848f | 2014-01-27 11:49:10 +0100 | [diff] [blame] | 96 | "ubi.mtd=" CONFIG_KM_UBI_PARTITION_NAME_BOOT \ |
| 97 | CONFIG_KM_UBI_PART_BOOT_OPTS |
Andreas Huber | a81548a | 2012-05-04 10:30:16 +0200 | [diff] [blame] | 98 | # define CONFIG_KM_DEV_ENV_FLASH_BOOT_UBI \ |
| 99 | "ubiattach=ubi part " CONFIG_KM_UBI_PARTITION_NAME_BOOT "\0" |
| 100 | #else /* CONFIG_KM_UBI_PARTITION_NAME_APP */ |
| 101 | /* two flash chips called boot and app */ |
| 102 | /* boot: CONFIG_KM_UBI_PARTITION_NAME_BOOT */ |
| 103 | /* app: CONFIG_KM_UBI_PARTITION_NAME_APP */ |
| 104 | # define CONFIG_KM_UBI_LINUX_MTD \ |
Valentin Longchamp | e6d848f | 2014-01-27 11:49:10 +0100 | [diff] [blame] | 105 | "ubi.mtd=" CONFIG_KM_UBI_PARTITION_NAME_BOOT \ |
| 106 | CONFIG_KM_UBI_PART_BOOT_OPTS " " \ |
Andreas Huber | a81548a | 2012-05-04 10:30:16 +0200 | [diff] [blame] | 107 | "ubi.mtd=" CONFIG_KM_UBI_PARTITION_NAME_APP |
| 108 | # define CONFIG_KM_DEV_ENV_FLASH_BOOT_UBI \ |
| 109 | "ubiattach=if test ${boot_bank} -eq 0; then; " \ |
| 110 | "ubi part " CONFIG_KM_UBI_PARTITION_NAME_BOOT "; else; " \ |
| 111 | "ubi part " CONFIG_KM_UBI_PARTITION_NAME_APP "; fi\0" |
| 112 | #endif /* CONFIG_KM_UBI_PARTITION_NAME_APP */ |
Holger Brunck | 752ba31 | 2011-03-14 16:01:04 +0100 | [diff] [blame] | 113 | |
Andreas Huber | c31a757 | 2013-01-21 03:55:20 +0000 | [diff] [blame] | 114 | #ifdef CONFIG_NAND_ECC_BCH |
| 115 | #define CONFIG_KM_UIMAGE_NAME "ecc_bch_uImage\0" |
Holger Brunck | ffcbb93 | 2013-01-21 03:55:24 +0000 | [diff] [blame] | 116 | #define CONFIG_KM_ECC_MODE " eccmode=bch" |
Andreas Huber | c31a757 | 2013-01-21 03:55:20 +0000 | [diff] [blame] | 117 | #else |
| 118 | #define CONFIG_KM_UIMAGE_NAME "uImage\0" |
Holger Brunck | ffcbb93 | 2013-01-21 03:55:24 +0000 | [diff] [blame] | 119 | #define CONFIG_KM_ECC_MODE |
Andreas Huber | c31a757 | 2013-01-21 03:55:20 +0000 | [diff] [blame] | 120 | #endif |
| 121 | |
Holger Brunck | 752ba31 | 2011-03-14 16:01:04 +0100 | [diff] [blame] | 122 | /* |
Holger Brunck | e7c1fdc | 2011-03-04 14:56:27 +0100 | [diff] [blame] | 123 | * boottargets |
Holger Brunck | 2ff59ee | 2011-07-04 21:27:16 +0000 | [diff] [blame] | 124 | * - set 'subbootcmds' |
Holger Brunck | e7c1fdc | 2011-03-04 14:56:27 +0100 | [diff] [blame] | 125 | * - set 'bootcmd' and 'altbootcmd' |
| 126 | * available targets: |
| 127 | * - 'release': for a standalone system kernel/rootfs from flash |
Holger Brunck | e7c1fdc | 2011-03-04 14:56:27 +0100 | [diff] [blame] | 128 | */ |
| 129 | #define CONFIG_KM_DEF_ENV_BOOTTARGETS \ |
Valentin Longchamp | 15e79cc | 2015-11-13 16:15:20 +0100 | [diff] [blame] | 130 | "subbootcmds=ubiattach ubicopy checkfdt cramfsloadfdt " \ |
| 131 | "set_fdthigh cramfsloadkernel flashargs add_default " \ |
| 132 | "addpanic boot\0" \ |
Holger Brunck | e7bec9b | 2011-07-04 21:52:52 +0000 | [diff] [blame] | 133 | "develop=" \ |
| 134 | "tftp 200000 scripts/develop-${arch}.txt && " \ |
| 135 | "env import -t 200000 ${filesize} && " \ |
| 136 | "run setup_debug_env\0" \ |
| 137 | "ramfs=" \ |
| 138 | "tftp 200000 scripts/ramfs-${arch}.txt && " \ |
Holger Brunck | 0b53902 | 2011-05-04 01:47:34 +0000 | [diff] [blame] | 139 | "env import -t 200000 ${filesize} && " \ |
Holger Brunck | e7bec9b | 2011-07-04 21:52:52 +0000 | [diff] [blame] | 140 | "run setup_debug_env\0" \ |
Holger Brunck | e7c1fdc | 2011-03-04 14:56:27 +0100 | [diff] [blame] | 141 | "" |
| 142 | |
| 143 | /* |
Holger Brunck | 752ba31 | 2011-03-14 16:01:04 +0100 | [diff] [blame] | 144 | * bootargs |
| 145 | * - modify 'bootargs' |
| 146 | * |
Holger Brunck | 2ff59ee | 2011-07-04 21:27:16 +0000 | [diff] [blame] | 147 | * - 'add_default': default bootargs common for all arm/ppc boards |
Holger Brunck | 752ba31 | 2011-03-14 16:01:04 +0100 | [diff] [blame] | 148 | * - 'addpanic': add kernel panic options |
Holger Brunck | 752ba31 | 2011-03-14 16:01:04 +0100 | [diff] [blame] | 149 | * - 'flashargs': defaults arguments for flash base boot |
| 150 | * |
Holger Brunck | 752ba31 | 2011-03-14 16:01:04 +0100 | [diff] [blame] | 151 | */ |
| 152 | #define CONFIG_KM_DEF_ENV_BOOTARGS \ |
Holger Brunck | 2ff59ee | 2011-07-04 21:27:16 +0000 | [diff] [blame] | 153 | "add_default=" \ |
Holger Brunck | 752ba31 | 2011-03-14 16:01:04 +0100 | [diff] [blame] | 154 | "setenv bootargs ${bootargs} " \ |
| 155 | "ip=${ipaddr}:${serverip}:${gatewayip}:${netmask}" \ |
Valentin Longchamp | 1d39959 | 2013-10-18 11:47:16 +0200 | [diff] [blame] | 156 | ":${hostname}:${netdev}:off:" \ |
Holger Brunck | 2ff59ee | 2011-07-04 21:27:16 +0000 | [diff] [blame] | 157 | " console=" CONFIG_KM_CONSOLE_TTY ",${baudrate}" \ |
Andreas Huber | 28c63c7 | 2011-09-13 23:06:11 +0000 | [diff] [blame] | 158 | " mem=${kernelmem} init=${init}" \ |
Holger Brunck | ffcbb93 | 2013-01-21 03:55:24 +0000 | [diff] [blame] | 159 | CONFIG_KM_ECC_MODE \ |
Marek Vasut | fd5ba89 | 2012-09-23 17:41:23 +0200 | [diff] [blame] | 160 | " phram.phram=phvar,${varaddr}," __stringify(CONFIG_KM_PHRAM)\ |
Andreas Huber | a81548a | 2012-05-04 10:30:16 +0200 | [diff] [blame] | 161 | " " CONFIG_KM_UBI_LINUX_MTD " " \ |
Holger Brunck | 2ff59ee | 2011-07-04 21:27:16 +0000 | [diff] [blame] | 162 | CONFIG_KM_DEF_BOOT_ARGS_CPU \ |
| 163 | "\0" \ |
Holger Brunck | 752ba31 | 2011-03-14 16:01:04 +0100 | [diff] [blame] | 164 | "addpanic=" \ |
Holger Brunck | 0b53902 | 2011-05-04 01:47:34 +0000 | [diff] [blame] | 165 | "setenv bootargs ${bootargs} panic=1 panic_on_oops=1\0" \ |
Holger Brunck | 752ba31 | 2011-03-14 16:01:04 +0100 | [diff] [blame] | 166 | "flashargs=" \ |
| 167 | "setenv bootargs " \ |
Thomas Herzmann | 1d253c1 | 2011-04-08 02:47:41 +0000 | [diff] [blame] | 168 | "root=mtdblock:rootfs${boot_bank} " \ |
Holger Brunck | 752ba31 | 2011-03-14 16:01:04 +0100 | [diff] [blame] | 169 | "rootfstype=squashfs ro\0" \ |
| 170 | "" |
| 171 | |
Holger Brunck | e7c1fdc | 2011-03-04 14:56:27 +0100 | [diff] [blame] | 172 | /* |
Holger Brunck | 752ba31 | 2011-03-14 16:01:04 +0100 | [diff] [blame] | 173 | * flash_boot |
| 174 | * - commands for booting from flash |
| 175 | * |
Holger Brunck | 752ba31 | 2011-03-14 16:01:04 +0100 | [diff] [blame] | 176 | * - 'cramfsloadkernel': copy kernel from a cramfs to ram |
| 177 | * - 'ubiattach': attach ubi partition |
| 178 | * - 'ubicopy': copy ubi volume to ram |
| 179 | * - volume names: bootfs0, bootfs1, bootfs2, ... |
Holger Brunck | 752ba31 | 2011-03-14 16:01:04 +0100 | [diff] [blame] | 180 | * |
| 181 | * processor specific settings |
| 182 | * - 'cramfsloadfdt': copy fdt from a cramfs to ram |
| 183 | */ |
| 184 | #define CONFIG_KM_DEF_ENV_FLASH_BOOT \ |
Marek Vasut | fd5ba89 | 2012-09-23 17:41:23 +0200 | [diff] [blame] | 185 | "cramfsaddr=" __stringify(CONFIG_KM_CRAMFS_ADDR) "\0" \ |
Andreas Huber | c31a757 | 2013-01-21 03:55:20 +0000 | [diff] [blame] | 186 | "cramfsloadkernel=cramfsload ${load_addr_r} ${uimage}\0" \ |
Marek Vasut | fd5ba89 | 2012-09-23 17:41:23 +0200 | [diff] [blame] | 187 | "ubicopy=ubi read "__stringify(CONFIG_KM_CRAMFS_ADDR) \ |
Holger Brunck | 0b53902 | 2011-05-04 01:47:34 +0000 | [diff] [blame] | 188 | " bootfs${boot_bank}\0" \ |
Andreas Huber | c31a757 | 2013-01-21 03:55:20 +0000 | [diff] [blame] | 189 | "uimage=" CONFIG_KM_UIMAGE_NAME \ |
Andreas Huber | a81548a | 2012-05-04 10:30:16 +0200 | [diff] [blame] | 190 | CONFIG_KM_DEV_ENV_FLASH_BOOT_UBI |
Holger Brunck | 752ba31 | 2011-03-14 16:01:04 +0100 | [diff] [blame] | 191 | |
| 192 | /* |
Holger Brunck | 752ba31 | 2011-03-14 16:01:04 +0100 | [diff] [blame] | 193 | * constants |
| 194 | * - KM specific constants and commands |
| 195 | * |
| 196 | * - 'default': setup default environment |
| 197 | */ |
| 198 | #define CONFIG_KM_DEF_ENV_CONSTANTS \ |
Thomas Herzmann | 1d253c1 | 2011-04-08 02:47:41 +0000 | [diff] [blame] | 199 | "backup_bank=0\0" \ |
Holger Brunck | 2ff59ee | 2011-07-04 21:27:16 +0000 | [diff] [blame] | 200 | "release=run newenv; reset\0" \ |
Marek Vasut | fd5ba89 | 2012-09-23 17:41:23 +0200 | [diff] [blame] | 201 | "pnvramsize=" __stringify(CONFIG_KM_PNVRAM) "\0" \ |
Thomas Herzmann | 80d5c9e | 2011-06-05 22:22:13 +0000 | [diff] [blame] | 202 | "testbootcmd=setenv boot_bank ${test_bank}; " \ |
| 203 | "run ${subbootcmds}; reset\0" \ |
Holger Brunck | 752ba31 | 2011-03-14 16:01:04 +0100 | [diff] [blame] | 204 | "" |
| 205 | |
Heiko Schocher | a8d5189 | 2009-03-12 07:37:18 +0100 | [diff] [blame] | 206 | #ifndef CONFIG_KM_DEF_ENV |
| 207 | #define CONFIG_KM_DEF_ENV \ |
Holger Brunck | e7c1fdc | 2011-03-04 14:56:27 +0100 | [diff] [blame] | 208 | CONFIG_KM_DEF_ENV_BOOTPARAMS \ |
Holger Brunck | 752ba31 | 2011-03-14 16:01:04 +0100 | [diff] [blame] | 209 | CONFIG_KM_DEF_NETDEV \ |
| 210 | CONFIG_KM_DEF_ENV_CPU \ |
Holger Brunck | e7c1fdc | 2011-03-04 14:56:27 +0100 | [diff] [blame] | 211 | CONFIG_KM_DEF_ENV_BOOTTARGETS \ |
Holger Brunck | 752ba31 | 2011-03-14 16:01:04 +0100 | [diff] [blame] | 212 | CONFIG_KM_DEF_ENV_BOOTARGS \ |
Holger Brunck | 752ba31 | 2011-03-14 16:01:04 +0100 | [diff] [blame] | 213 | CONFIG_KM_DEF_ENV_FLASH_BOOT \ |
Holger Brunck | e7c1fdc | 2011-03-04 14:56:27 +0100 | [diff] [blame] | 214 | CONFIG_KM_DEF_ENV_CONSTANTS \ |
Holger Brunck | 752ba31 | 2011-03-14 16:01:04 +0100 | [diff] [blame] | 215 | "altbootcmd=run bootcmd\0" \ |
Gerlando Falauto | ae2adaf | 2014-01-27 16:58:27 +0100 | [diff] [blame] | 216 | "boot=bootm ${load_addr_r} - ${fdt_addr_r}\0" \ |
Holger Brunck | 2ff59ee | 2011-07-04 21:27:16 +0000 | [diff] [blame] | 217 | "bootcmd=km_checkbidhwk && " \ |
Thomas Herzmann | b2c3160 | 2012-05-04 10:55:58 +0200 | [diff] [blame] | 218 | "setenv bootcmd \'if km_checktestboot; then; " \ |
| 219 | "setenv boot_bank ${test_bank}; else; " \ |
| 220 | "setenv boot_bank ${actual_bank}; fi;" \ |
Holger Brunck | 2ff59ee | 2011-07-04 21:27:16 +0000 | [diff] [blame] | 221 | "run ${subbootcmds}; reset\' && " \ |
| 222 | "setenv altbootcmd \'setenv boot_bank ${backup_bank}; " \ |
| 223 | "run ${subbootcmds}; reset\' && " \ |
| 224 | "saveenv && saveenv && boot\0" \ |
Holger Brunck | ca907c9 | 2012-05-04 10:55:54 +0200 | [diff] [blame] | 225 | "bootlimit=3\0" \ |
Gerlando Falauto | ae2adaf | 2014-01-27 16:58:27 +0100 | [diff] [blame] | 226 | "cramfsloadfdt=" \ |
| 227 | "cramfsload ${fdt_addr_r} " \ |
| 228 | "fdt_0x${IVM_BoardId}_0x${IVM_HWKey}.dtb\0" \ |
| 229 | "fdt_addr_r="__stringify(CONFIG_KM_FDT_ADDR) "\0" \ |
Holger Brunck | 752ba31 | 2011-03-14 16:01:04 +0100 | [diff] [blame] | 230 | "init=/sbin/init-overlay.sh\0" \ |
Marek Vasut | fd5ba89 | 2012-09-23 17:41:23 +0200 | [diff] [blame] | 231 | "load_addr_r="__stringify(CONFIG_KM_KERNEL_ADDR) "\0" \ |
Holger Brunck | 2ff59ee | 2011-07-04 21:27:16 +0000 | [diff] [blame] | 232 | "load=tftpboot ${load_addr_r} ${u-boot}\0" \ |
Holger Brunck | 752ba31 | 2011-03-14 16:01:04 +0100 | [diff] [blame] | 233 | "mtdids=" MTDIDS_DEFAULT "\0" \ |
| 234 | "mtdparts=" MTDPARTS_DEFAULT "\0" \ |
Heiko Schocher | a8d5189 | 2009-03-12 07:37:18 +0100 | [diff] [blame] | 235 | "" |
| 236 | #endif /* CONFIG_KM_DEF_ENV */ |
| 237 | |
Heiko Schocher | 7937e4f | 2008-11-20 09:59:09 +0100 | [diff] [blame] | 238 | #endif /* __CONFIG_KEYMILE_H */ |