FreeCalypso > hg > freecalypso-tools
comparison loadtools/flcmplboot.c @ 437:2cd705c8116e
loadtools: Mot C155 turns out to have the same flash partition quirks
as the flash chip on TI's D-Sample
c155.config changed to use the fixed 28f640w30b config instead of CFI,
and a bit of C code in fc-loadtool had to be changed too so that
flash erase-program-boot still works.
| author | Mychaela Falconia <falcon@freecalypso.org> |
|---|---|
| date | Tue, 06 Nov 2018 16:02:23 +0000 |
| parents | e7502631a0f9 |
| children | 0dd2c87c1b63 |
comparison
equal
deleted
inserted
replaced
| 436:d43e7444f458 | 437:2cd705c8116e |
|---|---|
| 13 #include <stdlib.h> | 13 #include <stdlib.h> |
| 14 #include "flash.h" | 14 #include "flash.h" |
| 15 | 15 |
| 16 extern struct flash_bank_info flash_bank_info[2]; | 16 extern struct flash_bank_info flash_bank_info[2]; |
| 17 extern struct flash_cmdset flash_cmdset_intel; | 17 extern struct flash_cmdset flash_cmdset_intel; |
| 18 extern struct flash_cmdset flash_cmdset_intel_w30; | |
| 18 | 19 |
| 19 extern uint32_t crc32_table[]; | 20 extern uint32_t crc32_table[]; |
| 20 | 21 |
| 21 static int hack_enabled; | 22 static int hack_enabled; |
| 22 static uint32_t boot_sector_size; | 23 static uint32_t boot_sector_size; |
| 145 != boot_sector_size) { | 146 != boot_sector_size) { |
| 146 fprintf(stderr, | 147 fprintf(stderr, |
| 147 "error: detected flash boot sector size differs from config\n"); | 148 "error: detected flash boot sector size differs from config\n"); |
| 148 return(-1); | 149 return(-1); |
| 149 } | 150 } |
| 150 if (flash_bank_info[0].ops != &flash_cmdset_intel) { | 151 if (flash_bank_info[0].ops != &flash_cmdset_intel && |
| 152 flash_bank_info[0].ops != &flash_cmdset_intel_w30) { | |
| 151 fprintf(stderr, | 153 fprintf(stderr, |
| 152 "error: operation implemented for Intel flash only\n"); | 154 "error: operation implemented for Intel flash only\n"); |
| 153 return(-1); | 155 return(-1); |
| 154 } | 156 } |
| 155 | 157 |
