Mercurial > ecos
comparison packages/redboot/current/src/flash.c @ 153:5e8f3b328bb3
Merge from eCos master repository on 2001-02-19-15:48:12-GMT
| author | jlarmour |
|---|---|
| date | Mon, 19 Feb 2001 17:27:10 +0000 |
| parents | f935b880e96c |
| children | e2d866e32dac |
comparison
equal
deleted
inserted
replaced
| 152:f935b880e96c | 153:5e8f3b328bb3 |
|---|---|
| 1325 (config.key1 != CONFIG_KEY1)|| (config.key2 != CONFIG_KEY2)) { | 1325 (config.key1 != CONFIG_KEY1)|| (config.key2 != CONFIG_KEY2)) { |
| 1326 printf("FLASH configuration checksum error or invalid key\n"); | 1326 printf("FLASH configuration checksum error or invalid key\n"); |
| 1327 config_init(); | 1327 config_init(); |
| 1328 return; | 1328 return; |
| 1329 } | 1329 } |
| 1330 config_ok = true; | |
| 1330 flash_get_config("boot_script", &use_boot_script, CONFIG_BOOL); | 1331 flash_get_config("boot_script", &use_boot_script, CONFIG_BOOL); |
| 1331 if (use_boot_script) { | 1332 if (use_boot_script) { |
| 1332 flash_get_config("boot_script_data", &script, CONFIG_SCRIPT); | 1333 flash_get_config("boot_script_data", &script, CONFIG_SCRIPT); |
| 1333 flash_get_config("boot_script_timeout", &script_timeout, CONFIG_INT); | 1334 flash_get_config("boot_script_timeout", &script_timeout, CONFIG_INT); |
| 1334 } | 1335 } |
| 1335 config_ok = true; | |
| 1336 } | 1336 } |
| 1337 | 1337 |
| 1338 RedBoot_init(load_flash_config, RedBoot_INIT_FIRST); | 1338 RedBoot_init(load_flash_config, RedBoot_INIT_FIRST); |
| 1339 | 1339 |
| 1340 #endif | 1340 #endif |
