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