summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAidan MacDonald <amachronic@protonmail.com>2024-03-30 15:02:22 +0000
committerAidan MacDonald <amachronic@protonmail.com>2024-03-31 11:24:07 -0400
commitb0a8cacd1dd11dbf6f8f7b46675d89e5b5b32920 (patch)
tree0284666ea01de50c01bbc1e43e8e7f8a96283131
parent7dc8d754a26c88f376d67e63b1da1adf5e770817 (diff)
downloadrockbox-b0a8cacd1dd11dbf6f8f7b46675d89e5b5b32920.tar.gz
rockbox-b0a8cacd1dd11dbf6f8f7b46675d89e5b5b32920.zip
rolo: simplify parsing scramble header in load_firmware()
The standard load_firmware() function is used on targets which use the "scramble -add" method for generating Rockbox binaries. While it tries to be a bit more generic and allows the CRC/data offsets to be placed anywhere in the file, there are no targets which actually need this flexibility, because they are all using plain old "scramble -add". So we can actually simplify load_firmware() and remove defines from the target headers. All the targets used CRC offset = 0 and data offset = 8, except for a few which I assume never supported ROLO or were never tested -- eg. samsungyh820: the CRC and data offsets cannot both be 0. The actual motivation for this is removing the calls to lseek(), which can help make bootloaders a tiny bit smaller, as lseek is typically not used anywhere else in bootloaders. Change-Id: Ic2d01e5b75a32e88363f085e3e839146a0710bf4
-rw-r--r--firmware/common/rb-loader.c9
-rw-r--r--firmware/export/config/android.h6
-rw-r--r--firmware/export/config/cowond2.h6
-rw-r--r--firmware/export/config/creativezen.h5
-rw-r--r--firmware/export/config/creativezenmozaic.h5
-rw-r--r--firmware/export/config/creativezenv.h5
-rw-r--r--firmware/export/config/creativezenxfi.h5
-rw-r--r--firmware/export/config/creativezenxfi2.h5
-rw-r--r--firmware/export/config/creativezenxfi3.h5
-rw-r--r--firmware/export/config/creativezenxfistyle.h5
-rw-r--r--firmware/export/config/creativezv.h6
-rw-r--r--firmware/export/config/erosqnative.h2
-rw-r--r--firmware/export/config/fiiom3k.h2
-rw-r--r--firmware/export/config/gigabeatfx.h6
-rw-r--r--firmware/export/config/gigabeats.h6
-rw-r--r--firmware/export/config/gogearhdd1630.h5
-rw-r--r--firmware/export/config/gogearhdd6330.h5
-rw-r--r--firmware/export/config/gogearsa9200.h4
-rw-r--r--firmware/export/config/hifietma8.h6
-rw-r--r--firmware/export/config/hifietma8c.h6
-rw-r--r--firmware/export/config/hifietma9.h6
-rw-r--r--firmware/export/config/hifietma9c.h6
-rw-r--r--firmware/export/config/hifimanhm60x.h6
-rw-r--r--firmware/export/config/hifimanhm801.h6
-rw-r--r--firmware/export/config/iaudiom3.h6
-rw-r--r--firmware/export/config/iaudiom5.h6
-rw-r--r--firmware/export/config/iaudiox5.h6
-rw-r--r--firmware/export/config/ibassodx50.h6
-rw-r--r--firmware/export/config/ibassodx90.h6
-rw-r--r--firmware/export/config/ihifi760.h6
-rw-r--r--firmware/export/config/ihifi770.h6
-rw-r--r--firmware/export/config/ihifi770c.h6
-rw-r--r--firmware/export/config/ihifi800.h6
-rw-r--r--firmware/export/config/ihifi960.h6
-rw-r--r--firmware/export/config/ipod1g2g.h9
-rw-r--r--firmware/export/config/ipod3g.h9
-rw-r--r--firmware/export/config/ipod4g.h9
-rw-r--r--firmware/export/config/ipod6g.h6
-rw-r--r--firmware/export/config/ipodcolor.h9
-rw-r--r--firmware/export/config/ipodmini1g.h9
-rw-r--r--firmware/export/config/ipodmini2g.h9
-rw-r--r--firmware/export/config/ipodnano1g.h9
-rw-r--r--firmware/export/config/ipodnano2g.h6
-rw-r--r--firmware/export/config/ipodvideo.h9
-rw-r--r--firmware/export/config/iriverh10.h5
-rw-r--r--firmware/export/config/iriverh100.h6
-rw-r--r--firmware/export/config/iriverh10_5gb.h8
-rw-r--r--firmware/export/config/iriverh120.h6
-rw-r--r--firmware/export/config/iriverh300.h6
-rw-r--r--firmware/export/config/lyreproto1.h6
-rw-r--r--firmware/export/config/meizum3.h6
-rw-r--r--firmware/export/config/meizum6sl.h6
-rw-r--r--firmware/export/config/meizum6sp.h6
-rw-r--r--firmware/export/config/mini2440.h6
-rw-r--r--firmware/export/config/mpiohd200.h9
-rw-r--r--firmware/export/config/mpiohd300.h9
-rw-r--r--firmware/export/config/mrobe100.h6
-rw-r--r--firmware/export/config/mrobe500.h6
-rw-r--r--firmware/export/config/nokian8xx.h6
-rw-r--r--firmware/export/config/nokian900.h6
-rw-r--r--firmware/export/config/ondavx747.h6
-rw-r--r--firmware/export/config/ondavx767.h6
-rw-r--r--firmware/export/config/ondavx777.h6
-rw-r--r--firmware/export/config/pandora.h6
-rw-r--r--firmware/export/config/rk27generic.h6
-rw-r--r--firmware/export/config/samsungyh820.h6
-rw-r--r--firmware/export/config/samsungyh920.h6
-rw-r--r--firmware/export/config/samsungyh925.h6
-rw-r--r--firmware/export/config/samsungyps3.h6
-rw-r--r--firmware/export/config/sansac200.h5
-rw-r--r--firmware/export/config/sansac200v2.h2
-rw-r--r--firmware/export/config/sansaclip.h2
-rw-r--r--firmware/export/config/sansaclipplus.h2
-rw-r--r--firmware/export/config/sansaclipv2.h2
-rw-r--r--firmware/export/config/sansaclipzip.h2
-rw-r--r--firmware/export/config/sansaconnect.h6
-rw-r--r--firmware/export/config/sansae200.h5
-rw-r--r--firmware/export/config/sansae200v2.h5
-rw-r--r--firmware/export/config/sansafuze.h5
-rw-r--r--firmware/export/config/sansafuzeplus.h5
-rw-r--r--firmware/export/config/sansafuzev2.h5
-rw-r--r--firmware/export/config/sansam200v4.h6
-rw-r--r--firmware/export/config/sansaview.h6
-rw-r--r--firmware/export/config/sdlapp.h6
-rw-r--r--firmware/export/config/shanlingq1.h2
-rw-r--r--firmware/export/config/sim.h4
-rw-r--r--firmware/export/config/sonynwze360.h5
-rw-r--r--firmware/export/config/sonynwze370.h5
-rw-r--r--firmware/export/config/vibe500.h9
-rw-r--r--firmware/export/config/xduoox3.h6
-rw-r--r--firmware/export/config/zenvisionm30gb.h6
-rw-r--r--firmware/export/config/zenvisionm60gb.h6
92 files changed, 4 insertions, 532 deletions
diff --git a/firmware/common/rb-loader.c b/firmware/common/rb-loader.c
index 430ed6ec7b..0256f21884 100644
--- a/firmware/common/rb-loader.c
+++ b/firmware/common/rb-loader.c
@@ -58,16 +58,15 @@ static int load_firmware_filename(unsigned char* buf,
58 goto end; 58 goto end;
59 } 59 }
60 60
61 lseek(fd, FIRMWARE_OFFSET_FILE_CRC, SEEK_SET); 61 /* read 32-bit checksum followed by 4-byte model name,
62 62 * this is the "scramble -add" header written by tools/scramble */
63 if (read(fd, &chksum, 4) < 4) 63 if (read(fd, buf, 8) < 8)
64 { 64 {
65 ret = EREAD_CHKSUM_FAILED; 65 ret = EREAD_CHKSUM_FAILED;
66 goto end; 66 goto end;
67 } 67 }
68 chksum = betoh32(chksum); /* Rockbox checksums are big-endian */
69 68
70 lseek(fd, FIRMWARE_OFFSET_FILE_DATA, SEEK_SET); 69 chksum = load_be32(buf); /* Rockbox checksums are big-endian */
71 70
72 if (read(fd, buf, len) < len) 71 if (read(fd, buf, len) < len)
73 { 72 {
diff --git a/firmware/export/config/android.h b/firmware/export/config/android.h
index ac0e2141a1..dcf996ebc3 100644
--- a/firmware/export/config/android.h
+++ b/firmware/export/config/android.h
@@ -86,12 +86,6 @@
86#define CPU_FREQ 48000000 86#define CPU_FREQ 48000000
87*/ 87*/
88 88
89/* Offset ( in the firmware file's header ) to the file CRC */
90#define FIRMWARE_OFFSET_FILE_CRC 0
91
92/* Offset ( in the firmware file's header ) to the real data */
93#define FIRMWARE_OFFSET_FILE_DATA 8
94
95#define CONFIG_LCD LCD_COWOND2 89#define CONFIG_LCD LCD_COWOND2
96 90
97/* Define this if a programmable hotkey is mapped */ 91/* Define this if a programmable hotkey is mapped */
diff --git a/firmware/export/config/cowond2.h b/firmware/export/config/cowond2.h
index 51b5495680..5912fb63eb 100644
--- a/firmware/export/config/cowond2.h
+++ b/firmware/export/config/cowond2.h
@@ -157,12 +157,6 @@
157 157
158#define INCLUDE_TIMEOUT_API 158#define INCLUDE_TIMEOUT_API
159 159
160/* Offset ( in the firmware file's header ) to the file CRC */
161#define FIRMWARE_OFFSET_FILE_CRC 0
162
163/* Offset ( in the firmware file's header ) to the real data */
164#define FIRMWARE_OFFSET_FILE_DATA 8
165
166#define CONFIG_LCD LCD_COWOND2 160#define CONFIG_LCD LCD_COWOND2
167 161
168#define BOOTFILE_EXT "d2" 162#define BOOTFILE_EXT "d2"
diff --git a/firmware/export/config/creativezen.h b/firmware/export/config/creativezen.h
index a3bb3a0ac6..b1f438c354 100644
--- a/firmware/export/config/creativezen.h
+++ b/firmware/export/config/creativezen.h
@@ -171,11 +171,6 @@
171/* Type of LCD */ 171/* Type of LCD */
172#define CONFIG_LCD LCD_CREATIVEZEN 172#define CONFIG_LCD LCD_CREATIVEZEN
173 173
174/* Offset ( in the firmware file's header ) to the file CRC and data. These are
175 only used when loading the old format rockbox.e200 file */
176#define FIRMWARE_OFFSET_FILE_CRC 0x0
177#define FIRMWARE_OFFSET_FILE_DATA 0x8
178
179/* USB On-the-go */ 174/* USB On-the-go */
180#define CONFIG_USBOTG USBOTG_ARC 175#define CONFIG_USBOTG USBOTG_ARC
181 176
diff --git a/firmware/export/config/creativezenmozaic.h b/firmware/export/config/creativezenmozaic.h
index 77775f2eab..696112f9dc 100644
--- a/firmware/export/config/creativezenmozaic.h
+++ b/firmware/export/config/creativezenmozaic.h
@@ -169,11 +169,6 @@
169/* Type of LCD */ 169/* Type of LCD */
170#define CONFIG_LCD LCD_CREATIVEZENMOZAIC 170#define CONFIG_LCD LCD_CREATIVEZENMOZAIC
171 171
172/* Offset ( in the firmware file's header ) to the file CRC and data. These are
173 only used when loading the old format rockbox.e200 file */
174#define FIRMWARE_OFFSET_FILE_CRC 0x0
175#define FIRMWARE_OFFSET_FILE_DATA 0x8
176
177/* USB On-the-go */ 172/* USB On-the-go */
178#define CONFIG_USBOTG USBOTG_ARC 173#define CONFIG_USBOTG USBOTG_ARC
179 174
diff --git a/firmware/export/config/creativezenv.h b/firmware/export/config/creativezenv.h
index bc05954264..b103c34f20 100644
--- a/firmware/export/config/creativezenv.h
+++ b/firmware/export/config/creativezenv.h
@@ -166,11 +166,6 @@
166/* Type of LCD */ 166/* Type of LCD */
167#define CONFIG_LCD LCD_CREATIVEZENV 167#define CONFIG_LCD LCD_CREATIVEZENV
168 168
169/* Offset ( in the firmware file's header ) to the file CRC and data. These are
170 only used when loading the old format rockbox.e200 file */
171#define FIRMWARE_OFFSET_FILE_CRC 0x0
172#define FIRMWARE_OFFSET_FILE_DATA 0x8
173
174/* USB On-the-go */ 169/* USB On-the-go */
175#define CONFIG_USBOTG USBOTG_ARC 170#define CONFIG_USBOTG USBOTG_ARC
176 171
diff --git a/firmware/export/config/creativezenxfi.h b/firmware/export/config/creativezenxfi.h
index d384a45333..34cde37d9a 100644
--- a/firmware/export/config/creativezenxfi.h
+++ b/firmware/export/config/creativezenxfi.h
@@ -176,11 +176,6 @@
176/* Type of LCD */ 176/* Type of LCD */
177#define CONFIG_LCD LCD_CREATIVEZEN 177#define CONFIG_LCD LCD_CREATIVEZEN
178 178
179/* Offset ( in the firmware file's header ) to the file CRC and data. These are
180 only used when loading the old format rockbox.e200 file */
181#define FIRMWARE_OFFSET_FILE_CRC 0x0
182#define FIRMWARE_OFFSET_FILE_DATA 0x8
183
184/* USB On-the-go */ 179/* USB On-the-go */
185#define CONFIG_USBOTG USBOTG_ARC 180#define CONFIG_USBOTG USBOTG_ARC
186 181
diff --git a/firmware/export/config/creativezenxfi2.h b/firmware/export/config/creativezenxfi2.h
index 979ed4ab2d..47a600e8f5 100644
--- a/firmware/export/config/creativezenxfi2.h
+++ b/firmware/export/config/creativezenxfi2.h
@@ -180,11 +180,6 @@
180/* Type of LCD */ 180/* Type of LCD */
181#define CONFIG_LCD LCD_CREATIVEZXFI2 181#define CONFIG_LCD LCD_CREATIVEZXFI2
182 182
183/* Offset ( in the firmware file's header ) to the file CRC and data. These are
184 only used when loading the old format rockbox.e200 file */
185#define FIRMWARE_OFFSET_FILE_CRC 0x0
186#define FIRMWARE_OFFSET_FILE_DATA 0x8
187
188/* USB On-the-go */ 183/* USB On-the-go */
189#define CONFIG_USBOTG USBOTG_ARC 184#define CONFIG_USBOTG USBOTG_ARC
190 185
diff --git a/firmware/export/config/creativezenxfi3.h b/firmware/export/config/creativezenxfi3.h
index f7acbf39bc..a558c2a7df 100644
--- a/firmware/export/config/creativezenxfi3.h
+++ b/firmware/export/config/creativezenxfi3.h
@@ -185,11 +185,6 @@
185/* Type of LCD */ 185/* Type of LCD */
186#define CONFIG_LCD LCD_CREATIVEZXFI3 186#define CONFIG_LCD LCD_CREATIVEZXFI3
187 187
188/* Offset ( in the firmware file's header ) to the file CRC and data. These are
189 only used when loading the old format rockbox.e200 file */
190#define FIRMWARE_OFFSET_FILE_CRC 0x0
191#define FIRMWARE_OFFSET_FILE_DATA 0x8
192
193/* USB On-the-go */ 188/* USB On-the-go */
194#define CONFIG_USBOTG USBOTG_ARC 189#define CONFIG_USBOTG USBOTG_ARC
195 190
diff --git a/firmware/export/config/creativezenxfistyle.h b/firmware/export/config/creativezenxfistyle.h
index fe4e274b75..665f1c1ae5 100644
--- a/firmware/export/config/creativezenxfistyle.h
+++ b/firmware/export/config/creativezenxfistyle.h
@@ -174,11 +174,6 @@
174/* Type of LCD */ 174/* Type of LCD */
175#define CONFIG_LCD LCD_CREATIVEZENXFISTYLE 175#define CONFIG_LCD LCD_CREATIVEZENXFISTYLE
176 176
177/* Offset ( in the firmware file's header ) to the file CRC and data. These are
178 only used when loading the old format rockbox.e200 file */
179#define FIRMWARE_OFFSET_FILE_CRC 0x0
180#define FIRMWARE_OFFSET_FILE_DATA 0x8
181
182/* USB On-the-go */ 177/* USB On-the-go */
183#define CONFIG_USBOTG USBOTG_ARC 178#define CONFIG_USBOTG USBOTG_ARC
184 179
diff --git a/firmware/export/config/creativezv.h b/firmware/export/config/creativezv.h
index 54312e9071..f10ef2b83e 100644
--- a/firmware/export/config/creativezv.h
+++ b/firmware/export/config/creativezv.h
@@ -148,12 +148,6 @@
148/* Define this if you have ATA power-off control */ 148/* Define this if you have ATA power-off control */
149#define HAVE_ATA_POWER_OFF 149#define HAVE_ATA_POWER_OFF
150 150
151/* Offset ( in the firmware file's header ) to the file CRC */
152#define FIRMWARE_OFFSET_FILE_CRC 0
153
154/* Offset ( in the firmware file's header ) to the real data */
155#define FIRMWARE_OFFSET_FILE_DATA 8
156
157/* Define this if you have adjustable CPU frequency */ 151/* Define this if you have adjustable CPU frequency */
158/* #define HAVE_ADJUSTABLE_CPU_FREQ */ 152/* #define HAVE_ADJUSTABLE_CPU_FREQ */
159 153
diff --git a/firmware/export/config/erosqnative.h b/firmware/export/config/erosqnative.h
index 4f87282f1f..f6e5b0d55e 100644
--- a/firmware/export/config/erosqnative.h
+++ b/firmware/export/config/erosqnative.h
@@ -8,8 +8,6 @@
8#define BOOTFILE_EXT "erosq" 8#define BOOTFILE_EXT "erosq"
9#define BOOTFILE "rockbox." BOOTFILE_EXT 9#define BOOTFILE "rockbox." BOOTFILE_EXT
10#define BOOTDIR "/.rockbox" 10#define BOOTDIR "/.rockbox"
11#define FIRMWARE_OFFSET_FILE_CRC 0
12#define FIRMWARE_OFFSET_FILE_DATA 8
13 11
14/* CPU defines */ 12/* CPU defines */
15#define CONFIG_CPU X1000 13#define CONFIG_CPU X1000
diff --git a/firmware/export/config/fiiom3k.h b/firmware/export/config/fiiom3k.h
index 86a9b05402..cf8509405f 100644
--- a/firmware/export/config/fiiom3k.h
+++ b/firmware/export/config/fiiom3k.h
@@ -4,8 +4,6 @@
4#define BOOTFILE_EXT "m3k" 4#define BOOTFILE_EXT "m3k"
5#define BOOTFILE "rockbox." BOOTFILE_EXT 5#define BOOTFILE "rockbox." BOOTFILE_EXT
6#define BOOTDIR "/.rockbox" 6#define BOOTDIR "/.rockbox"
7#define FIRMWARE_OFFSET_FILE_CRC 0
8#define FIRMWARE_OFFSET_FILE_DATA 8
9 7
10/* CPU defines */ 8/* CPU defines */
11#define CONFIG_CPU X1000 9#define CONFIG_CPU X1000
diff --git a/firmware/export/config/gigabeatfx.h b/firmware/export/config/gigabeatfx.h
index 738d7a8eec..10ca6dd20e 100644
--- a/firmware/export/config/gigabeatfx.h
+++ b/firmware/export/config/gigabeatfx.h
@@ -176,12 +176,6 @@
176 176
177#define CONFIG_LCD LCD_GIGABEAT 177#define CONFIG_LCD LCD_GIGABEAT
178 178
179/* Offset ( in the firmware file's header ) to the file CRC */
180#define FIRMWARE_OFFSET_FILE_CRC 0
181
182/* Offset ( in the firmware file's header ) to the real data */
183#define FIRMWARE_OFFSET_FILE_DATA 8
184
185/* Define this if you have adjustable CPU frequency */ 179/* Define this if you have adjustable CPU frequency */
186/* #define HAVE_ADJUSTABLE_CPU_FREQ */ 180/* #define HAVE_ADJUSTABLE_CPU_FREQ */
187 181
diff --git a/firmware/export/config/gigabeats.h b/firmware/export/config/gigabeats.h
index edf76d0e98..987afd4e4e 100644
--- a/firmware/export/config/gigabeats.h
+++ b/firmware/export/config/gigabeats.h
@@ -235,12 +235,6 @@
235 235
236#define CONFIG_LCD LCD_GIGABEATS 236#define CONFIG_LCD LCD_GIGABEATS
237 237
238/* Offset ( in the firmware file's header ) to the file CRC */
239#define FIRMWARE_OFFSET_FILE_CRC 0
240
241/* Offset ( in the firmware file's header ) to the real data */
242#define FIRMWARE_OFFSET_FILE_DATA 8
243
244//#define HAVE_SERIAL 238//#define HAVE_SERIAL
245#define HAVE_VOLUME_IN_LIST 239#define HAVE_VOLUME_IN_LIST
246 240
diff --git a/firmware/export/config/gogearhdd1630.h b/firmware/export/config/gogearhdd1630.h
index dec114b339..9f611317e5 100644
--- a/firmware/export/config/gogearhdd1630.h
+++ b/firmware/export/config/gogearhdd1630.h
@@ -181,11 +181,6 @@
181/* We're able to shut off power to the HDD */ 181/* We're able to shut off power to the HDD */
182#define HAVE_ATA_POWER_OFF 182#define HAVE_ATA_POWER_OFF
183 183
184/* Offset ( in the firmware file's header ) to the file CRC and data. These are
185 only used when loading the old format rockbox.e200 file */
186#define FIRMWARE_OFFSET_FILE_CRC 0x0
187#define FIRMWARE_OFFSET_FILE_DATA 0x8
188
189/* USB On-the-go */ 184/* USB On-the-go */
190#define CONFIG_USBOTG USBOTG_ARC 185#define CONFIG_USBOTG USBOTG_ARC
191 186
diff --git a/firmware/export/config/gogearhdd6330.h b/firmware/export/config/gogearhdd6330.h
index afe77d36b2..18a1e8012b 100644
--- a/firmware/export/config/gogearhdd6330.h
+++ b/firmware/export/config/gogearhdd6330.h
@@ -186,11 +186,6 @@
186/* We're able to shut off power to the HDD */ 186/* We're able to shut off power to the HDD */
187#define HAVE_ATA_POWER_OFF 187#define HAVE_ATA_POWER_OFF
188 188
189/* Offset ( in the firmware file's header ) to the file CRC and data. These are
190 only used when loading the old format rockbox.e200 file */
191#define FIRMWARE_OFFSET_FILE_CRC 0x0
192#define FIRMWARE_OFFSET_FILE_DATA 0x8
193
194/* USB On-the-go */ 189/* USB On-the-go */
195#define CONFIG_USBOTG USBOTG_ARC 190#define CONFIG_USBOTG USBOTG_ARC
196 191
diff --git a/firmware/export/config/gogearsa9200.h b/firmware/export/config/gogearsa9200.h
index 0a4dbad006..c2cfc306d9 100644
--- a/firmware/export/config/gogearsa9200.h
+++ b/firmware/export/config/gogearsa9200.h
@@ -185,10 +185,6 @@
185#define BOOTFILE "rockbox." BOOTFILE_EXT 185#define BOOTFILE "rockbox." BOOTFILE_EXT
186#define BOOTDIR "/.rockbox" 186#define BOOTDIR "/.rockbox"
187 187
188/* These values are unused, but need to be defined */
189#define FIRMWARE_OFFSET_FILE_CRC 0x0
190#define FIRMWARE_OFFSET_FILE_DATA 0x8
191
192#define ICODE_ATTR_TREMOR_NOT_MDCT 188#define ICODE_ATTR_TREMOR_NOT_MDCT
193 189
194#define INCLUDE_TIMEOUT_API 190#define INCLUDE_TIMEOUT_API
diff --git a/firmware/export/config/hifietma8.h b/firmware/export/config/hifietma8.h
index a9b94227d8..b834ba2b87 100644
--- a/firmware/export/config/hifietma8.h
+++ b/firmware/export/config/hifietma8.h
@@ -134,12 +134,6 @@
134/* define this if the hardware can be powered off while charging */ 134/* define this if the hardware can be powered off while charging */
135/* #define HAVE_POWEROFF_WHILE_CHARGING */ 135/* #define HAVE_POWEROFF_WHILE_CHARGING */
136 136
137/* Offset ( in the firmware file's header ) to the file CRC */
138#define FIRMWARE_OFFSET_FILE_CRC 0
139
140/* Offset ( in the firmware file's header ) to the real data */
141#define FIRMWARE_OFFSET_FILE_DATA 8
142
143/* Define this if you have adjustable CPU frequency */ 137/* Define this if you have adjustable CPU frequency */
144#define HAVE_ADJUSTABLE_CPU_FREQ 138#define HAVE_ADJUSTABLE_CPU_FREQ
145 139
diff --git a/firmware/export/config/hifietma8c.h b/firmware/export/config/hifietma8c.h
index 009c4ee353..7f9014f92a 100644
--- a/firmware/export/config/hifietma8c.h
+++ b/firmware/export/config/hifietma8c.h
@@ -134,12 +134,6 @@
134/* define this if the hardware can be powered off while charging */ 134/* define this if the hardware can be powered off while charging */
135/* #define HAVE_POWEROFF_WHILE_CHARGING */ 135/* #define HAVE_POWEROFF_WHILE_CHARGING */
136 136
137/* Offset ( in the firmware file's header ) to the file CRC */
138#define FIRMWARE_OFFSET_FILE_CRC 0
139
140/* Offset ( in the firmware file's header ) to the real data */
141#define FIRMWARE_OFFSET_FILE_DATA 8
142
143/* Define this if you have adjustable CPU frequency */ 137/* Define this if you have adjustable CPU frequency */
144#define HAVE_ADJUSTABLE_CPU_FREQ 138#define HAVE_ADJUSTABLE_CPU_FREQ
145 139
diff --git a/firmware/export/config/hifietma9.h b/firmware/export/config/hifietma9.h
index 454b3b17ff..dcd32ebd3b 100644
--- a/firmware/export/config/hifietma9.h
+++ b/firmware/export/config/hifietma9.h
@@ -134,12 +134,6 @@
134/* define this if the hardware can be powered off while charging */ 134/* define this if the hardware can be powered off while charging */
135/* #define HAVE_POWEROFF_WHILE_CHARGING */ 135/* #define HAVE_POWEROFF_WHILE_CHARGING */
136 136
137/* Offset ( in the firmware file's header ) to the file CRC */
138#define FIRMWARE_OFFSET_FILE_CRC 0
139
140/* Offset ( in the firmware file's header ) to the real data */
141#define FIRMWARE_OFFSET_FILE_DATA 8
142
143/* Define this if you have adjustable CPU frequency */ 137/* Define this if you have adjustable CPU frequency */
144#define HAVE_ADJUSTABLE_CPU_FREQ 138#define HAVE_ADJUSTABLE_CPU_FREQ
145 139
diff --git a/firmware/export/config/hifietma9c.h b/firmware/export/config/hifietma9c.h
index e9817e40d6..7767131882 100644
--- a/firmware/export/config/hifietma9c.h
+++ b/firmware/export/config/hifietma9c.h
@@ -134,12 +134,6 @@
134/* define this if the hardware can be powered off while charging */ 134/* define this if the hardware can be powered off while charging */
135/* #define HAVE_POWEROFF_WHILE_CHARGING */ 135/* #define HAVE_POWEROFF_WHILE_CHARGING */
136 136
137/* Offset ( in the firmware file's header ) to the file CRC */
138#define FIRMWARE_OFFSET_FILE_CRC 0
139
140/* Offset ( in the firmware file's header ) to the real data */
141#define FIRMWARE_OFFSET_FILE_DATA 8
142
143/* Define this if you have adjustable CPU frequency */ 137/* Define this if you have adjustable CPU frequency */
144#define HAVE_ADJUSTABLE_CPU_FREQ 138#define HAVE_ADJUSTABLE_CPU_FREQ
145 139
diff --git a/firmware/export/config/hifimanhm60x.h b/firmware/export/config/hifimanhm60x.h
index 84f65f1c81..a2030715bc 100644
--- a/firmware/export/config/hifimanhm60x.h
+++ b/firmware/export/config/hifimanhm60x.h
@@ -168,12 +168,6 @@
168/* define this if the hardware can be powered off while charging */ 168/* define this if the hardware can be powered off while charging */
169/* #define HAVE_POWEROFF_WHILE_CHARGING */ 169/* #define HAVE_POWEROFF_WHILE_CHARGING */
170 170
171/* Offset ( in the firmware file's header ) to the file CRC */
172#define FIRMWARE_OFFSET_FILE_CRC 0
173
174/* Offset ( in the firmware file's header ) to the real data */
175#define FIRMWARE_OFFSET_FILE_DATA 8
176
177/* Define this if you have adjustable CPU frequency */ 171/* Define this if you have adjustable CPU frequency */
178#define HAVE_ADJUSTABLE_CPU_FREQ 172#define HAVE_ADJUSTABLE_CPU_FREQ
179 173
diff --git a/firmware/export/config/hifimanhm801.h b/firmware/export/config/hifimanhm801.h
index 0879cd2980..acf6d5ab62 100644
--- a/firmware/export/config/hifimanhm801.h
+++ b/firmware/export/config/hifimanhm801.h
@@ -156,12 +156,6 @@
156/* define this if the hardware can be powered off while charging */ 156/* define this if the hardware can be powered off while charging */
157/* #define HAVE_POWEROFF_WHILE_CHARGING */ 157/* #define HAVE_POWEROFF_WHILE_CHARGING */
158 158
159/* Offset ( in the firmware file's header ) to the file CRC */
160#define FIRMWARE_OFFSET_FILE_CRC 0
161
162/* Offset ( in the firmware file's header ) to the real data */
163#define FIRMWARE_OFFSET_FILE_DATA 8
164
165/* Define this if you have adjustable CPU frequency */ 159/* Define this if you have adjustable CPU frequency */
166#define HAVE_ADJUSTABLE_CPU_FREQ 160#define HAVE_ADJUSTABLE_CPU_FREQ
167 161
diff --git a/firmware/export/config/iaudiom3.h b/firmware/export/config/iaudiom3.h
index cfac0d7253..b1af9f5458 100644
--- a/firmware/export/config/iaudiom3.h
+++ b/firmware/export/config/iaudiom3.h
@@ -144,12 +144,6 @@
144/* FIXME: implement hardware LED handling */ 144/* FIXME: implement hardware LED handling */
145/* #define CONFIG_LED LED_REAL */ 145/* #define CONFIG_LED LED_REAL */
146 146
147/* Offset ( in the firmware file's header ) to the file CRC */
148#define FIRMWARE_OFFSET_FILE_CRC 0
149
150/* Offset ( in the firmware file's header ) to the real data */
151#define FIRMWARE_OFFSET_FILE_DATA 8
152
153/* Define this if you have adjustable CPU frequency */ 147/* Define this if you have adjustable CPU frequency */
154#define HAVE_ADJUSTABLE_CPU_FREQ 148#define HAVE_ADJUSTABLE_CPU_FREQ
155 149
diff --git a/firmware/export/config/iaudiom5.h b/firmware/export/config/iaudiom5.h
index e7b46868b7..6f5038b788 100644
--- a/firmware/export/config/iaudiom5.h
+++ b/firmware/export/config/iaudiom5.h
@@ -165,12 +165,6 @@
165/* Define this if you have ATA power-off control */ 165/* Define this if you have ATA power-off control */
166#define HAVE_ATA_POWER_OFF 166#define HAVE_ATA_POWER_OFF
167 167
168/* Offset ( in the firmware file's header ) to the file CRC */
169#define FIRMWARE_OFFSET_FILE_CRC 0
170
171/* Offset ( in the firmware file's header ) to the real data */
172#define FIRMWARE_OFFSET_FILE_DATA 8
173
174/* Define this if you have adjustable CPU frequency */ 168/* Define this if you have adjustable CPU frequency */
175#define HAVE_ADJUSTABLE_CPU_FREQ 169#define HAVE_ADJUSTABLE_CPU_FREQ
176 170
diff --git a/firmware/export/config/iaudiox5.h b/firmware/export/config/iaudiox5.h
index cae83dd952..1724341fca 100644
--- a/firmware/export/config/iaudiox5.h
+++ b/firmware/export/config/iaudiox5.h
@@ -174,12 +174,6 @@
174/* Define this if you have ATA power-off control */ 174/* Define this if you have ATA power-off control */
175#define HAVE_ATA_POWER_OFF 175#define HAVE_ATA_POWER_OFF
176 176
177/* Offset ( in the firmware file's header ) to the file CRC */
178#define FIRMWARE_OFFSET_FILE_CRC 0
179
180/* Offset ( in the firmware file's header ) to the real data */
181#define FIRMWARE_OFFSET_FILE_DATA 8
182
183/* USB On-the-go */ 177/* USB On-the-go */
184#define CONFIG_USBOTG USBOTG_M5636 178#define CONFIG_USBOTG USBOTG_M5636
185 179
diff --git a/firmware/export/config/ibassodx50.h b/firmware/export/config/ibassodx50.h
index 2161d9f3e3..f2521c2782 100644
--- a/firmware/export/config/ibassodx50.h
+++ b/firmware/export/config/ibassodx50.h
@@ -127,12 +127,6 @@
127/* define this if the hardware can be powered off while charging */ 127/* define this if the hardware can be powered off while charging */
128#define HAVE_POWEROFF_WHILE_CHARGING 128#define HAVE_POWEROFF_WHILE_CHARGING
129 129
130/* Offset ( in the firmware file's header ) to the file CRC */
131#define FIRMWARE_OFFSET_FILE_CRC 0
132
133/* Offset ( in the firmware file's header ) to the real data */
134#define FIRMWARE_OFFSET_FILE_DATA 8
135
136#define CONFIG_LCD LCD_COWOND2 130#define CONFIG_LCD LCD_COWOND2
137 131
138/* Define this if a programmable hotkey is mapped */ 132/* Define this if a programmable hotkey is mapped */
diff --git a/firmware/export/config/ibassodx90.h b/firmware/export/config/ibassodx90.h
index 570a8d2a35..21d07a9112 100644
--- a/firmware/export/config/ibassodx90.h
+++ b/firmware/export/config/ibassodx90.h
@@ -124,12 +124,6 @@
124/* define this if the hardware can be powered off while charging */ 124/* define this if the hardware can be powered off while charging */
125#define HAVE_POWEROFF_WHILE_CHARGING 125#define HAVE_POWEROFF_WHILE_CHARGING
126 126
127/* Offset ( in the firmware file's header ) to the file CRC */
128#define FIRMWARE_OFFSET_FILE_CRC 0
129
130/* Offset ( in the firmware file's header ) to the real data */
131#define FIRMWARE_OFFSET_FILE_DATA 8
132
133#define CONFIG_LCD LCD_COWOND2 127#define CONFIG_LCD LCD_COWOND2
134 128
135/* Define this if a programmable hotkey is mapped */ 129/* Define this if a programmable hotkey is mapped */
diff --git a/firmware/export/config/ihifi760.h b/firmware/export/config/ihifi760.h
index d58d6b9dfb..cc4152f5d8 100644
--- a/firmware/export/config/ihifi760.h
+++ b/firmware/export/config/ihifi760.h
@@ -168,12 +168,6 @@
168/* define this if the hardware can be powered off while charging */ 168/* define this if the hardware can be powered off while charging */
169/* #define HAVE_POWEROFF_WHILE_CHARGING */ 169/* #define HAVE_POWEROFF_WHILE_CHARGING */
170 170
171/* Offset ( in the firmware file's header ) to the file CRC */
172#define FIRMWARE_OFFSET_FILE_CRC 0
173
174/* Offset ( in the firmware file's header ) to the real data */
175#define FIRMWARE_OFFSET_FILE_DATA 8
176
177/* Define this if you have adjustable CPU frequency */ 171/* Define this if you have adjustable CPU frequency */
178#define HAVE_ADJUSTABLE_CPU_FREQ 172#define HAVE_ADJUSTABLE_CPU_FREQ
179 173
diff --git a/firmware/export/config/ihifi770.h b/firmware/export/config/ihifi770.h
index f6bc747bc6..74b12de994 100644
--- a/firmware/export/config/ihifi770.h
+++ b/firmware/export/config/ihifi770.h
@@ -144,12 +144,6 @@
144/* Define this if your LCD can set contrast */ 144/* Define this if your LCD can set contrast */
145/* #define HAVE_LCD_CONTRAST */ 145/* #define HAVE_LCD_CONTRAST */
146 146
147/* Offset ( in the firmware file's header ) to the file CRC */
148#define FIRMWARE_OFFSET_FILE_CRC 0
149
150/* Offset ( in the firmware file's header ) to the real data */
151#define FIRMWARE_OFFSET_FILE_DATA 8
152
153/* Define this if you have adjustable CPU frequency */ 147/* Define this if you have adjustable CPU frequency */
154#define HAVE_ADJUSTABLE_CPU_FREQ 148#define HAVE_ADJUSTABLE_CPU_FREQ
155 149
diff --git a/firmware/export/config/ihifi770c.h b/firmware/export/config/ihifi770c.h
index 82f12c968b..8224e2f368 100644
--- a/firmware/export/config/ihifi770c.h
+++ b/firmware/export/config/ihifi770c.h
@@ -144,12 +144,6 @@
144/* Define this if your LCD can set contrast */ 144/* Define this if your LCD can set contrast */
145/* #define HAVE_LCD_CONTRAST */ 145/* #define HAVE_LCD_CONTRAST */
146 146
147/* Offset ( in the firmware file's header ) to the file CRC */
148#define FIRMWARE_OFFSET_FILE_CRC 0
149
150/* Offset ( in the firmware file's header ) to the real data */
151#define FIRMWARE_OFFSET_FILE_DATA 8
152
153/* Define this if you have adjustable CPU frequency */ 147/* Define this if you have adjustable CPU frequency */
154#define HAVE_ADJUSTABLE_CPU_FREQ 148#define HAVE_ADJUSTABLE_CPU_FREQ
155 149
diff --git a/firmware/export/config/ihifi800.h b/firmware/export/config/ihifi800.h
index ac58029216..91981682c1 100644
--- a/firmware/export/config/ihifi800.h
+++ b/firmware/export/config/ihifi800.h
@@ -145,12 +145,6 @@
145/* Define this if your LCD can set contrast */ 145/* Define this if your LCD can set contrast */
146/* #define HAVE_LCD_CONTRAST */ 146/* #define HAVE_LCD_CONTRAST */
147 147
148/* Offset ( in the firmware file's header ) to the file CRC */
149#define FIRMWARE_OFFSET_FILE_CRC 0
150
151/* Offset ( in the firmware file's header ) to the real data */
152#define FIRMWARE_OFFSET_FILE_DATA 8
153
154/* Define this if you have adjustable CPU frequency */ 148/* Define this if you have adjustable CPU frequency */
155#define HAVE_ADJUSTABLE_CPU_FREQ 149#define HAVE_ADJUSTABLE_CPU_FREQ
156 150
diff --git a/firmware/export/config/ihifi960.h b/firmware/export/config/ihifi960.h
index 9f8b3ef443..64c6c90874 100644
--- a/firmware/export/config/ihifi960.h
+++ b/firmware/export/config/ihifi960.h
@@ -168,12 +168,6 @@
168/* define this if the hardware can be powered off while charging */ 168/* define this if the hardware can be powered off while charging */
169/* #define HAVE_POWEROFF_WHILE_CHARGING */ 169/* #define HAVE_POWEROFF_WHILE_CHARGING */
170 170
171/* Offset ( in the firmware file's header ) to the file CRC */
172#define FIRMWARE_OFFSET_FILE_CRC 0
173
174/* Offset ( in the firmware file's header ) to the real data */
175#define FIRMWARE_OFFSET_FILE_DATA 8
176
177/* Define this if you have adjustable CPU frequency */ 171/* Define this if you have adjustable CPU frequency */
178#define HAVE_ADJUSTABLE_CPU_FREQ 172#define HAVE_ADJUSTABLE_CPU_FREQ
179 173
diff --git a/firmware/export/config/ipod1g2g.h b/firmware/export/config/ipod1g2g.h
index fd497c7469..5cc8770bb3 100644
--- a/firmware/export/config/ipod1g2g.h
+++ b/firmware/export/config/ipod1g2g.h
@@ -160,15 +160,6 @@
160 160
161#define CONFIG_LCD LCD_IPOD2BPP 161#define CONFIG_LCD LCD_IPOD2BPP
162 162
163/* Offset ( in the firmware file's header ) to the file length */
164#define FIRMWARE_OFFSET_FILE_LENGTH 0
165
166/* Offset ( in the firmware file's header ) to the file CRC */
167#define FIRMWARE_OFFSET_FILE_CRC 0
168
169/* Offset ( in the firmware file's header ) to the real data */
170#define FIRMWARE_OFFSET_FILE_DATA 8
171
172#define USB_HANDLED_BY_OF 163#define USB_HANDLED_BY_OF
173/* actually firewire only, but handled like USB */ 164/* actually firewire only, but handled like USB */
174 165
diff --git a/firmware/export/config/ipod3g.h b/firmware/export/config/ipod3g.h
index ae94ea7d63..c42702e2df 100644
--- a/firmware/export/config/ipod3g.h
+++ b/firmware/export/config/ipod3g.h
@@ -170,15 +170,6 @@
170 170
171#define CONFIG_LCD LCD_IPOD2BPP 171#define CONFIG_LCD LCD_IPOD2BPP
172 172
173/* Offset ( in the firmware file's header ) to the file length */
174#define FIRMWARE_OFFSET_FILE_LENGTH 0
175
176/* Offset ( in the firmware file's header ) to the file CRC */
177#define FIRMWARE_OFFSET_FILE_CRC 0
178
179/* Offset ( in the firmware file's header ) to the real data */
180#define FIRMWARE_OFFSET_FILE_DATA 8
181
182#define USB_HANDLED_BY_OF 173#define USB_HANDLED_BY_OF
183/* actually both firewire and USB, USB isn't handled yet */ 174/* actually both firewire and USB, USB isn't handled yet */
184 175
diff --git a/firmware/export/config/ipod4g.h b/firmware/export/config/ipod4g.h
index 49996c4eee..80f4ccec65 100644
--- a/firmware/export/config/ipod4g.h
+++ b/firmware/export/config/ipod4g.h
@@ -189,15 +189,6 @@
189 189
190#define CONFIG_LCD LCD_IPOD2BPP 190#define CONFIG_LCD LCD_IPOD2BPP
191 191
192/* Offset ( in the firmware file's header ) to the file length */
193#define FIRMWARE_OFFSET_FILE_LENGTH 0
194
195/* Offset ( in the firmware file's header ) to the file CRC */
196#define FIRMWARE_OFFSET_FILE_CRC 0
197
198/* Offset ( in the firmware file's header ) to the real data */
199#define FIRMWARE_OFFSET_FILE_DATA 8
200
201/* USB On-the-go */ 192/* USB On-the-go */
202#define CONFIG_USBOTG USBOTG_ARC 193#define CONFIG_USBOTG USBOTG_ARC
203 194
diff --git a/firmware/export/config/ipod6g.h b/firmware/export/config/ipod6g.h
index b03b1131bd..50aa5d8e8c 100644
--- a/firmware/export/config/ipod6g.h
+++ b/firmware/export/config/ipod6g.h
@@ -186,12 +186,6 @@
186/* define this if the hardware can be powered off while charging */ 186/* define this if the hardware can be powered off while charging */
187#define HAVE_POWEROFF_WHILE_CHARGING 187#define HAVE_POWEROFF_WHILE_CHARGING
188 188
189/* Offset ( in the firmware file's header ) to the file CRC */
190#define FIRMWARE_OFFSET_FILE_CRC 0
191
192/* Offset ( in the firmware file's header ) to the real data */
193#define FIRMWARE_OFFSET_FILE_DATA 8
194
195/* Define this if you can read an absolute wheel position */ 189/* Define this if you can read an absolute wheel position */
196#define HAVE_WHEEL_POSITION 190#define HAVE_WHEEL_POSITION
197 191
diff --git a/firmware/export/config/ipodcolor.h b/firmware/export/config/ipodcolor.h
index 93bea58daa..19e5326179 100644
--- a/firmware/export/config/ipodcolor.h
+++ b/firmware/export/config/ipodcolor.h
@@ -176,15 +176,6 @@
176 176
177#define CONFIG_LCD LCD_IPODCOLOR 177#define CONFIG_LCD LCD_IPODCOLOR
178 178
179/* Offset ( in the firmware file's header ) to the file length */
180#define FIRMWARE_OFFSET_FILE_LENGTH 0
181
182/* Offset ( in the firmware file's header ) to the file CRC */
183#define FIRMWARE_OFFSET_FILE_CRC 0
184
185/* Offset ( in the firmware file's header ) to the real data */
186#define FIRMWARE_OFFSET_FILE_DATA 8
187
188/* USB On-the-go */ 179/* USB On-the-go */
189#define CONFIG_USBOTG USBOTG_ARC 180#define CONFIG_USBOTG USBOTG_ARC
190 181
diff --git a/firmware/export/config/ipodmini1g.h b/firmware/export/config/ipodmini1g.h
index b8f52ff936..3e8795adee 100644
--- a/firmware/export/config/ipodmini1g.h
+++ b/firmware/export/config/ipodmini1g.h
@@ -185,15 +185,6 @@
185 185
186#define CONFIG_LCD LCD_IPODMINI 186#define CONFIG_LCD LCD_IPODMINI
187 187
188/* Offset ( in the firmware file's header ) to the file length */
189#define FIRMWARE_OFFSET_FILE_LENGTH 0
190
191/* Offset ( in the firmware file's header ) to the file CRC */
192#define FIRMWARE_OFFSET_FILE_CRC 0
193
194/* Offset ( in the firmware file's header ) to the real data */
195#define FIRMWARE_OFFSET_FILE_DATA 8
196
197/* USB On-the-go */ 188/* USB On-the-go */
198#define CONFIG_USBOTG USBOTG_ARC 189#define CONFIG_USBOTG USBOTG_ARC
199 190
diff --git a/firmware/export/config/ipodmini2g.h b/firmware/export/config/ipodmini2g.h
index c1cd45310c..7879737c46 100644
--- a/firmware/export/config/ipodmini2g.h
+++ b/firmware/export/config/ipodmini2g.h
@@ -186,15 +186,6 @@
186 186
187#define CONFIG_LCD LCD_IPODMINI 187#define CONFIG_LCD LCD_IPODMINI
188 188
189/* Offset ( in the firmware file's header ) to the file length */
190#define FIRMWARE_OFFSET_FILE_LENGTH 0
191
192/* Offset ( in the firmware file's header ) to the file CRC */
193#define FIRMWARE_OFFSET_FILE_CRC 0
194
195/* Offset ( in the firmware file's header ) to the real data */
196#define FIRMWARE_OFFSET_FILE_DATA 8
197
198/* USB On-the-go */ 189/* USB On-the-go */
199#define CONFIG_USBOTG USBOTG_ARC 190#define CONFIG_USBOTG USBOTG_ARC
200 191
diff --git a/firmware/export/config/ipodnano1g.h b/firmware/export/config/ipodnano1g.h
index d919435cbd..8220ca54d9 100644
--- a/firmware/export/config/ipodnano1g.h
+++ b/firmware/export/config/ipodnano1g.h
@@ -176,15 +176,6 @@
176 176
177#define CONFIG_LCD LCD_IPODNANO 177#define CONFIG_LCD LCD_IPODNANO
178 178
179/* Offset ( in the firmware file's header ) to the file length */
180#define FIRMWARE_OFFSET_FILE_LENGTH 0
181
182/* Offset ( in the firmware file's header ) to the file CRC */
183#define FIRMWARE_OFFSET_FILE_CRC 0
184
185/* Offset ( in the firmware file's header ) to the real data */
186#define FIRMWARE_OFFSET_FILE_DATA 8
187
188/* USB On-the-go */ 179/* USB On-the-go */
189#define CONFIG_USBOTG USBOTG_ARC 180#define CONFIG_USBOTG USBOTG_ARC
190 181
diff --git a/firmware/export/config/ipodnano2g.h b/firmware/export/config/ipodnano2g.h
index 9445b2809a..be7b6579ee 100644
--- a/firmware/export/config/ipodnano2g.h
+++ b/firmware/export/config/ipodnano2g.h
@@ -183,12 +183,6 @@
183/* define this if the hardware can be powered off while charging */ 183/* define this if the hardware can be powered off while charging */
184#define HAVE_POWEROFF_WHILE_CHARGING 184#define HAVE_POWEROFF_WHILE_CHARGING
185 185
186/* Offset ( in the firmware file's header ) to the file CRC */
187#define FIRMWARE_OFFSET_FILE_CRC 0
188
189/* Offset ( in the firmware file's header ) to the real data */
190#define FIRMWARE_OFFSET_FILE_DATA 8
191
192/* Define this if you can read an absolute wheel position */ 186/* Define this if you can read an absolute wheel position */
193#define HAVE_WHEEL_POSITION 187#define HAVE_WHEEL_POSITION
194 188
diff --git a/firmware/export/config/ipodvideo.h b/firmware/export/config/ipodvideo.h
index aec362a654..64200f4e61 100644
--- a/firmware/export/config/ipodvideo.h
+++ b/firmware/export/config/ipodvideo.h
@@ -196,15 +196,6 @@
196 196
197#define CONFIG_LCD LCD_IPODVIDEO 197#define CONFIG_LCD LCD_IPODVIDEO
198 198
199/* Offset ( in the firmware file's header ) to the file length */
200#define FIRMWARE_OFFSET_FILE_LENGTH 0
201
202/* Offset ( in the firmware file's header ) to the file CRC */
203#define FIRMWARE_OFFSET_FILE_CRC 0
204
205/* Offset ( in the firmware file's header ) to the real data */
206#define FIRMWARE_OFFSET_FILE_DATA 8
207
208/* USB On-the-go */ 199/* USB On-the-go */
209#define CONFIG_USBOTG USBOTG_ARC 200#define CONFIG_USBOTG USBOTG_ARC
210 201
diff --git a/firmware/export/config/iriverh10.h b/firmware/export/config/iriverh10.h
index 6342a90deb..480f6db0f5 100644
--- a/firmware/export/config/iriverh10.h
+++ b/firmware/export/config/iriverh10.h
@@ -160,11 +160,6 @@
160/* We're able to shut off power to the HDD */ 160/* We're able to shut off power to the HDD */
161#define HAVE_ATA_POWER_OFF 161#define HAVE_ATA_POWER_OFF
162 162
163/* Offset ( in the firmware file's header ) to the file CRC and data. These are
164 only used when loading the old format rockbox.h10 file */
165#define FIRMWARE_OFFSET_FILE_CRC 0x0
166#define FIRMWARE_OFFSET_FILE_DATA 0x8
167
168/* USB On-the-go */ 163/* USB On-the-go */
169#define CONFIG_USBOTG USBOTG_ARC 164#define CONFIG_USBOTG USBOTG_ARC
170 165
diff --git a/firmware/export/config/iriverh100.h b/firmware/export/config/iriverh100.h
index b7f1ca4b30..3d899674ef 100644
--- a/firmware/export/config/iriverh100.h
+++ b/firmware/export/config/iriverh100.h
@@ -157,12 +157,6 @@
157/* Define this if you have ATA power-off control */ 157/* Define this if you have ATA power-off control */
158#define HAVE_ATA_POWER_OFF 158#define HAVE_ATA_POWER_OFF
159 159
160/* Offset ( in the firmware file's header ) to the file CRC */
161#define FIRMWARE_OFFSET_FILE_CRC 0
162
163/* Offset ( in the firmware file's header ) to the real data */
164#define FIRMWARE_OFFSET_FILE_DATA 8
165
166#define HAVE_ATA_LED_CTRL 160#define HAVE_ATA_LED_CTRL
167 161
168/* Define this if you have adjustable CPU frequency */ 162/* Define this if you have adjustable CPU frequency */
diff --git a/firmware/export/config/iriverh10_5gb.h b/firmware/export/config/iriverh10_5gb.h
index d1ec64090e..67b11b276b 100644
--- a/firmware/export/config/iriverh10_5gb.h
+++ b/firmware/export/config/iriverh10_5gb.h
@@ -147,14 +147,6 @@
147/* We're able to shut off power to the HDD */ 147/* We're able to shut off power to the HDD */
148#define HAVE_ATA_POWER_OFF 148#define HAVE_ATA_POWER_OFF
149 149
150/* Offset ( in the firmware file's header ) to the file length */
151#define FIRMWARE_OFFSET_FILE_LENGTH 0x8
152
153/* Offset ( in the firmware file's header ) to the file CRC and data. These are
154 only used when loading the old format rockbox.h10 file */
155#define FIRMWARE_OFFSET_FILE_CRC 0x0
156#define FIRMWARE_OFFSET_FILE_DATA 0x8
157
158/* USB On-the-go */ 150/* USB On-the-go */
159#define CONFIG_USBOTG USBOTG_ARC 151#define CONFIG_USBOTG USBOTG_ARC
160 152
diff --git a/firmware/export/config/iriverh120.h b/firmware/export/config/iriverh120.h
index 4b658bcf49..28e7877f23 100644
--- a/firmware/export/config/iriverh120.h
+++ b/firmware/export/config/iriverh120.h
@@ -163,12 +163,6 @@
163/* Define this if you have ATA power-off control */ 163/* Define this if you have ATA power-off control */
164#define HAVE_ATA_POWER_OFF 164#define HAVE_ATA_POWER_OFF
165 165
166/* Offset ( in the firmware file's header ) to the file CRC */
167#define FIRMWARE_OFFSET_FILE_CRC 0
168
169/* Offset ( in the firmware file's header ) to the real data */
170#define FIRMWARE_OFFSET_FILE_DATA 8
171
172#define HAVE_ATA_LED_CTRL 166#define HAVE_ATA_LED_CTRL
173 167
174/* Define this if you have adjustable CPU frequency */ 168/* Define this if you have adjustable CPU frequency */
diff --git a/firmware/export/config/iriverh300.h b/firmware/export/config/iriverh300.h
index e5805dd8f4..8dbbc0cfdd 100644
--- a/firmware/export/config/iriverh300.h
+++ b/firmware/export/config/iriverh300.h
@@ -171,12 +171,6 @@
171 171
172#define CONFIG_LCD LCD_H300 172#define CONFIG_LCD LCD_H300
173 173
174/* Offset ( in the firmware file's header ) to the file CRC */
175#define FIRMWARE_OFFSET_FILE_CRC 0
176
177/* Offset ( in the firmware file's header ) to the real data */
178#define FIRMWARE_OFFSET_FILE_DATA 8
179
180/* USB On-the-go */ 174/* USB On-the-go */
181#define CONFIG_USBOTG USBOTG_ISP1362 175#define CONFIG_USBOTG USBOTG_ISP1362
182 176
diff --git a/firmware/export/config/lyreproto1.h b/firmware/export/config/lyreproto1.h
index 4cde26879c..c1b41b3223 100644
--- a/firmware/export/config/lyreproto1.h
+++ b/firmware/export/config/lyreproto1.h
@@ -94,12 +94,6 @@
94#define MCK_FREQ 99328000 94#define MCK_FREQ 99328000
95#define SLOW_CLOCK 32768 95#define SLOW_CLOCK 32768
96 96
97/* Offset ( in the firmware file's header ) to the file CRC */
98#define FIRMWARE_OFFSET_FILE_CRC 0
99
100/* Offset ( in the firmware file's header ) to the real data */
101#define FIRMWARE_OFFSET_FILE_DATA 8
102
103#define BOOTFILE_EXT "lyre_proto1" 97#define BOOTFILE_EXT "lyre_proto1"
104#define BOOTFILE "rockbox." BOOTFILE_EXT 98#define BOOTFILE "rockbox." BOOTFILE_EXT
105#define BOOTDIR "/.rockbox" 99#define BOOTDIR "/.rockbox"
diff --git a/firmware/export/config/meizum3.h b/firmware/export/config/meizum3.h
index c770790d47..17e24d7281 100644
--- a/firmware/export/config/meizum3.h
+++ b/firmware/export/config/meizum3.h
@@ -143,12 +143,6 @@
143/* Define this if you have ATA power-off control */ 143/* Define this if you have ATA power-off control */
144//#define HAVE_ATA_POWER_OFF 144//#define HAVE_ATA_POWER_OFF
145 145
146/* Offset ( in the firmware file's header ) to the file CRC */
147#define FIRMWARE_OFFSET_FILE_CRC 0
148
149/* Offset ( in the firmware file's header ) to the real data */
150#define FIRMWARE_OFFSET_FILE_DATA 8
151
152/* USB On-the-go */ 146/* USB On-the-go */
153//#define CONFIG_USBOTG USBOTG_M5636 147//#define CONFIG_USBOTG USBOTG_M5636
154 148
diff --git a/firmware/export/config/meizum6sl.h b/firmware/export/config/meizum6sl.h
index 95841c8465..99f54ff187 100644
--- a/firmware/export/config/meizum6sl.h
+++ b/firmware/export/config/meizum6sl.h
@@ -143,12 +143,6 @@
143/* Define this if you have ATA power-off control */ 143/* Define this if you have ATA power-off control */
144//#define HAVE_ATA_POWER_OFF 144//#define HAVE_ATA_POWER_OFF
145 145
146/* Offset ( in the firmware file's header ) to the file CRC */
147#define FIRMWARE_OFFSET_FILE_CRC 0
148
149/* Offset ( in the firmware file's header ) to the real data */
150#define FIRMWARE_OFFSET_FILE_DATA 8
151
152/* USB On-the-go */ 146/* USB On-the-go */
153//#define CONFIG_USBOTG USBOTG_M5636 147//#define CONFIG_USBOTG USBOTG_M5636
154 148
diff --git a/firmware/export/config/meizum6sp.h b/firmware/export/config/meizum6sp.h
index 13b4d2e6b5..332940e1ed 100644
--- a/firmware/export/config/meizum6sp.h
+++ b/firmware/export/config/meizum6sp.h
@@ -149,12 +149,6 @@
149/* Define this if you have ATA power-off control */ 149/* Define this if you have ATA power-off control */
150//#define HAVE_ATA_POWER_OFF 150//#define HAVE_ATA_POWER_OFF
151 151
152/* Offset ( in the firmware file's header ) to the file CRC */
153#define FIRMWARE_OFFSET_FILE_CRC 0
154
155/* Offset ( in the firmware file's header ) to the real data */
156#define FIRMWARE_OFFSET_FILE_DATA 8
157
158/* USB On-the-go */ 152/* USB On-the-go */
159//#define CONFIG_USBOTG USBOTG_M5636 153//#define CONFIG_USBOTG USBOTG_M5636
160 154
diff --git a/firmware/export/config/mini2440.h b/firmware/export/config/mini2440.h
index 5f57606378..4fc483b324 100644
--- a/firmware/export/config/mini2440.h
+++ b/firmware/export/config/mini2440.h
@@ -147,12 +147,6 @@
147#define CONFIG_CHARGING CHARGING_MONITOR 147#define CONFIG_CHARGING CHARGING_MONITOR
148/*#define POWER_INPUT_BATTERY 0*/ 148/*#define POWER_INPUT_BATTERY 0*/
149 149
150/* Offset ( in the firmware file's header ) to the file CRC */
151#define FIRMWARE_OFFSET_FILE_CRC 0
152
153/* Offset ( in the firmware file's header ) to the real data */
154#define FIRMWARE_OFFSET_FILE_DATA 8
155
156#define BOOTFILE_EXT "mini2440" 150#define BOOTFILE_EXT "mini2440"
157#define BOOTFILE "rockbox." BOOTFILE_EXT 151#define BOOTFILE "rockbox." BOOTFILE_EXT
158#define BOOTDIR "/.rockbox" 152#define BOOTDIR "/.rockbox"
diff --git a/firmware/export/config/mpiohd200.h b/firmware/export/config/mpiohd200.h
index a770183946..bced50dfe7 100644
--- a/firmware/export/config/mpiohd200.h
+++ b/firmware/export/config/mpiohd200.h
@@ -152,15 +152,6 @@
152/* Define this if you have ATA power-off control */ 152/* Define this if you have ATA power-off control */
153#define HAVE_ATA_POWER_OFF 153#define HAVE_ATA_POWER_OFF
154 154
155/* Offset ( in the firmware file's header ) to the file length */
156#define FIRMWARE_OFFSET_FILE_LENGTH 0
157
158/* Offset ( in the firmware file's header ) to the file CRC */
159#define FIRMWARE_OFFSET_FILE_CRC 0
160
161/* Offset ( in the firmware file's header ) to the real data */
162#define FIRMWARE_OFFSET_FILE_DATA 8
163
164/* Define this if you have adjustable CPU frequency */ 155/* Define this if you have adjustable CPU frequency */
165#define HAVE_ADJUSTABLE_CPU_FREQ 156#define HAVE_ADJUSTABLE_CPU_FREQ
166 157
diff --git a/firmware/export/config/mpiohd300.h b/firmware/export/config/mpiohd300.h
index d5b2948cec..f02a2125ec 100644
--- a/firmware/export/config/mpiohd300.h
+++ b/firmware/export/config/mpiohd300.h
@@ -155,15 +155,6 @@
155/* Define this if you have ATA power-off control */ 155/* Define this if you have ATA power-off control */
156#define HAVE_ATA_POWER_OFF 156#define HAVE_ATA_POWER_OFF
157 157
158/* Offset ( in the firmware file's header ) to the file length */
159#define FIRMWARE_OFFSET_FILE_LENGTH 0
160
161/* Offset ( in the firmware file's header ) to the file CRC */
162#define FIRMWARE_OFFSET_FILE_CRC 0
163
164/* Offset ( in the firmware file's header ) to the real data */
165#define FIRMWARE_OFFSET_FILE_DATA 8
166
167/* Define this if you have adjustable CPU frequency */ 158/* Define this if you have adjustable CPU frequency */
168#define HAVE_ADJUSTABLE_CPU_FREQ 159#define HAVE_ADJUSTABLE_CPU_FREQ
169 160
diff --git a/firmware/export/config/mrobe100.h b/firmware/export/config/mrobe100.h
index bb636f7625..790545c1c5 100644
--- a/firmware/export/config/mrobe100.h
+++ b/firmware/export/config/mrobe100.h
@@ -193,12 +193,6 @@
193#define BOOTFILE "rockbox." BOOTFILE_EXT 193#define BOOTFILE "rockbox." BOOTFILE_EXT
194#define BOOTDIR "/.rockbox" 194#define BOOTDIR "/.rockbox"
195 195
196/* Offset ( in the firmware file's header ) to the file CRC and data.
197 Not used for the mrobe 100, since it boots an mi4 file, but needed
198 for compatibility. */
199#define FIRMWARE_OFFSET_FILE_CRC 0x0
200#define FIRMWARE_OFFSET_FILE_DATA 0x0
201
202#define ICODE_ATTR_TREMOR_NOT_MDCT 196#define ICODE_ATTR_TREMOR_NOT_MDCT
203 197
204 198
diff --git a/firmware/export/config/mrobe500.h b/firmware/export/config/mrobe500.h
index 621c0b75ca..5b9240be94 100644
--- a/firmware/export/config/mrobe500.h
+++ b/firmware/export/config/mrobe500.h
@@ -238,12 +238,6 @@
238/* Define this if you have ATA power-off control */ 238/* Define this if you have ATA power-off control */
239#define HAVE_ATA_POWER_OFF 239#define HAVE_ATA_POWER_OFF
240 240
241/* Offset ( in the firmware file's header ) to the file CRC */
242#define FIRMWARE_OFFSET_FILE_CRC 0
243
244/* Offset ( in the firmware file's header ) to the real data */
245#define FIRMWARE_OFFSET_FILE_DATA 8
246
247/* Define this if you have adjustable CPU frequency */ 241/* Define this if you have adjustable CPU frequency */
248#define HAVE_ADJUSTABLE_CPU_FREQ 242#define HAVE_ADJUSTABLE_CPU_FREQ
249 243
diff --git a/firmware/export/config/nokian8xx.h b/firmware/export/config/nokian8xx.h
index 5cdf42a11f..b145641586 100644
--- a/firmware/export/config/nokian8xx.h
+++ b/firmware/export/config/nokian8xx.h
@@ -79,12 +79,6 @@
79#define CPU_FREQ 48000000 79#define CPU_FREQ 48000000
80*/ 80*/
81 81
82/* Offset ( in the firmware file's header ) to the file CRC */
83#define FIRMWARE_OFFSET_FILE_CRC 0
84
85/* Offset ( in the firmware file's header ) to the real data */
86#define FIRMWARE_OFFSET_FILE_DATA 8
87
88#define CONFIG_LCD LCD_COWOND2 82#define CONFIG_LCD LCD_COWOND2
89 83
90/* Define this if a programmable hotkey is mapped */ 84/* Define this if a programmable hotkey is mapped */
diff --git a/firmware/export/config/nokian900.h b/firmware/export/config/nokian900.h
index e7084f9acb..cac8a66457 100644
--- a/firmware/export/config/nokian900.h
+++ b/firmware/export/config/nokian900.h
@@ -76,12 +76,6 @@
76#define CPU_FREQ 48000000 76#define CPU_FREQ 48000000
77*/ 77*/
78 78
79/* Offset ( in the firmware file's header ) to the file CRC */
80#define FIRMWARE_OFFSET_FILE_CRC 0
81
82/* Offset ( in the firmware file's header ) to the real data */
83#define FIRMWARE_OFFSET_FILE_DATA 8
84
85#define CONFIG_LCD LCD_COWOND2 79#define CONFIG_LCD LCD_COWOND2
86 80
87/* Define this if a programmable hotkey is mapped */ 81/* Define this if a programmable hotkey is mapped */
diff --git a/firmware/export/config/ondavx747.h b/firmware/export/config/ondavx747.h
index fe5a772167..7f4f1ea843 100644
--- a/firmware/export/config/ondavx747.h
+++ b/firmware/export/config/ondavx747.h
@@ -187,12 +187,6 @@ No access to the NAND yet..
187/* define this if you have a flash memory storage */ 187/* define this if you have a flash memory storage */
188#define HAVE_FLASH_STORAGE 188#define HAVE_FLASH_STORAGE
189 189
190/* Offset ( in the firmware file's header ) to the file CRC */
191#define FIRMWARE_OFFSET_FILE_CRC 0
192
193/* Offset ( in the firmware file's header ) to the real data */
194#define FIRMWARE_OFFSET_FILE_DATA 8
195
196/* Define this if you have adjustable CPU frequency */ 190/* Define this if you have adjustable CPU frequency */
197#define HAVE_ADJUSTABLE_CPU_FREQ 191#define HAVE_ADJUSTABLE_CPU_FREQ
198 192
diff --git a/firmware/export/config/ondavx767.h b/firmware/export/config/ondavx767.h
index ee65702fe0..8357c76026 100644
--- a/firmware/export/config/ondavx767.h
+++ b/firmware/export/config/ondavx767.h
@@ -148,12 +148,6 @@
148/* define this if you have a flash memory storage */ 148/* define this if you have a flash memory storage */
149#define HAVE_FLASH_STORAGE 149#define HAVE_FLASH_STORAGE
150 150
151/* Offset ( in the firmware file's header ) to the file CRC */
152#define FIRMWARE_OFFSET_FILE_CRC 0
153
154/* Offset ( in the firmware file's header ) to the real data */
155#define FIRMWARE_OFFSET_FILE_DATA 8
156
157/* Define this if you have adjustable CPU frequency */ 151/* Define this if you have adjustable CPU frequency */
158#define HAVE_ADJUSTABLE_CPU_FREQ 152#define HAVE_ADJUSTABLE_CPU_FREQ
159 153
diff --git a/firmware/export/config/ondavx777.h b/firmware/export/config/ondavx777.h
index e03a0cdd04..ceea151d8c 100644
--- a/firmware/export/config/ondavx777.h
+++ b/firmware/export/config/ondavx777.h
@@ -178,12 +178,6 @@ No access to the NAND yet..
178/* define this if you have a flash memory storage */ 178/* define this if you have a flash memory storage */
179#define HAVE_FLASH_STORAGE 179#define HAVE_FLASH_STORAGE
180 180
181/* Offset ( in the firmware file's header ) to the file CRC */
182#define FIRMWARE_OFFSET_FILE_CRC 0
183
184/* Offset ( in the firmware file's header ) to the real data */
185#define FIRMWARE_OFFSET_FILE_DATA 8
186
187/* Define this if you have adjustable CPU frequency */ 181/* Define this if you have adjustable CPU frequency */
188#define HAVE_ADJUSTABLE_CPU_FREQ 182#define HAVE_ADJUSTABLE_CPU_FREQ
189 183
diff --git a/firmware/export/config/pandora.h b/firmware/export/config/pandora.h
index 41b2b44dad..377b8aa04e 100644
--- a/firmware/export/config/pandora.h
+++ b/firmware/export/config/pandora.h
@@ -79,12 +79,6 @@
79#define CPU_FREQ 48000000 79#define CPU_FREQ 48000000
80*/ 80*/
81 81
82/* Offset ( in the firmware file's header ) to the file CRC */
83#define FIRMWARE_OFFSET_FILE_CRC 0
84
85/* Offset ( in the firmware file's header ) to the real data */
86#define FIRMWARE_OFFSET_FILE_DATA 8
87
88#define CONFIG_LCD LCD_COWOND2 82#define CONFIG_LCD LCD_COWOND2
89 83
90/* Define this if a programmable hotkey is mapped */ 84/* Define this if a programmable hotkey is mapped */
diff --git a/firmware/export/config/rk27generic.h b/firmware/export/config/rk27generic.h
index 369974abb7..967fc6d8ff 100644
--- a/firmware/export/config/rk27generic.h
+++ b/firmware/export/config/rk27generic.h
@@ -176,12 +176,6 @@
176/* define this if the hardware can be powered off while charging */ 176/* define this if the hardware can be powered off while charging */
177/* #define HAVE_POWEROFF_WHILE_CHARGING */ 177/* #define HAVE_POWEROFF_WHILE_CHARGING */
178 178
179/* Offset ( in the firmware file's header ) to the file CRC */
180#define FIRMWARE_OFFSET_FILE_CRC 0
181
182/* Offset ( in the firmware file's header ) to the real data */
183#define FIRMWARE_OFFSET_FILE_DATA 8
184
185/* Define this if you have adjustable CPU frequency */ 179/* Define this if you have adjustable CPU frequency */
186#define HAVE_ADJUSTABLE_CPU_FREQ 180#define HAVE_ADJUSTABLE_CPU_FREQ
187 181
diff --git a/firmware/export/config/samsungyh820.h b/firmware/export/config/samsungyh820.h
index b04ae1c0ea..0cf70d89a2 100644
--- a/firmware/export/config/samsungyh820.h
+++ b/firmware/export/config/samsungyh820.h
@@ -191,12 +191,6 @@
191#define BOOTFILE "rockbox." BOOTFILE_EXT 191#define BOOTFILE "rockbox." BOOTFILE_EXT
192#define BOOTDIR "/.rockbox" 192#define BOOTDIR "/.rockbox"
193 193
194/* Offset ( in the firmware file's header ) to the file CRC */
195#define FIRMWARE_OFFSET_FILE_CRC 0x00
196
197/* Offset ( in the firmware file's header ) to the real data */
198#define FIRMWARE_OFFSET_FILE_DATA 0x00
199
200#define ICODE_ATTR_TREMOR_NOT_MDCT 194#define ICODE_ATTR_TREMOR_NOT_MDCT
201 195
202 196
diff --git a/firmware/export/config/samsungyh920.h b/firmware/export/config/samsungyh920.h
index 8367f06731..5ca5fea2a8 100644
--- a/firmware/export/config/samsungyh920.h
+++ b/firmware/export/config/samsungyh920.h
@@ -193,12 +193,6 @@
193#define BOOTFILE "rockbox." BOOTFILE_EXT 193#define BOOTFILE "rockbox." BOOTFILE_EXT
194#define BOOTDIR "/.rockbox" 194#define BOOTDIR "/.rockbox"
195 195
196/* Offset ( in the firmware file's header ) to the file CRC */
197#define FIRMWARE_OFFSET_FILE_CRC 0x00
198
199/* Offset ( in the firmware file's header ) to the real data */
200#define FIRMWARE_OFFSET_FILE_DATA 0x00
201
202#define ICODE_ATTR_TREMOR_NOT_MDCT 196#define ICODE_ATTR_TREMOR_NOT_MDCT
203 197
204 198
diff --git a/firmware/export/config/samsungyh925.h b/firmware/export/config/samsungyh925.h
index 8e467550d8..cb6f185014 100644
--- a/firmware/export/config/samsungyh925.h
+++ b/firmware/export/config/samsungyh925.h
@@ -184,12 +184,6 @@
184#define BOOTFILE "rockbox." BOOTFILE_EXT 184#define BOOTFILE "rockbox." BOOTFILE_EXT
185#define BOOTDIR "/.rockbox" 185#define BOOTDIR "/.rockbox"
186 186
187/* Offset ( in the firmware file's header ) to the file CRC */
188#define FIRMWARE_OFFSET_FILE_CRC 0x00
189
190/* Offset ( in the firmware file's header ) to the real data */
191#define FIRMWARE_OFFSET_FILE_DATA 0x00
192
193#define ICODE_ATTR_TREMOR_NOT_MDCT 187#define ICODE_ATTR_TREMOR_NOT_MDCT
194 188
195 189
diff --git a/firmware/export/config/samsungyps3.h b/firmware/export/config/samsungyps3.h
index 6306d23102..10f51f846f 100644
--- a/firmware/export/config/samsungyps3.h
+++ b/firmware/export/config/samsungyps3.h
@@ -141,12 +141,6 @@
141/* Define this if you have ATA power-off control */ 141/* Define this if you have ATA power-off control */
142//#define HAVE_ATA_POWER_OFF 142//#define HAVE_ATA_POWER_OFF
143 143
144/* Offset ( in the firmware file's header ) to the file CRC */
145#define FIRMWARE_OFFSET_FILE_CRC 0
146
147/* Offset ( in the firmware file's header ) to the real data */
148#define FIRMWARE_OFFSET_FILE_DATA 8
149
150/* USB */ 144/* USB */
151//#define HAVE_USBSTACK 145//#define HAVE_USBSTACK
152#define USB_VENDOR_ID 0x04E8 146#define USB_VENDOR_ID 0x04E8
diff --git a/firmware/export/config/sansac200.h b/firmware/export/config/sansac200.h
index 4d5bf17256..46260b77d2 100644
--- a/firmware/export/config/sansac200.h
+++ b/firmware/export/config/sansac200.h
@@ -173,11 +173,6 @@
173/* Type of LCD TODO: hopefully the same as the x5 but check this*/ 173/* Type of LCD TODO: hopefully the same as the x5 but check this*/
174#define CONFIG_LCD LCD_C200 174#define CONFIG_LCD LCD_C200
175 175
176/* Offset ( in the firmware file's header ) to the file CRC and data. These are
177 only used when loading the old format rockbox.e200 file */
178#define FIRMWARE_OFFSET_FILE_CRC 0x0
179#define FIRMWARE_OFFSET_FILE_DATA 0x8
180
181#ifndef BOOTLOADER 176#ifndef BOOTLOADER
182#define HAVE_MULTIDRIVE 177#define HAVE_MULTIDRIVE
183#define NUM_DRIVES 2 178#define NUM_DRIVES 2
diff --git a/firmware/export/config/sansac200v2.h b/firmware/export/config/sansac200v2.h
index df306e88b0..3eb0c56f65 100644
--- a/firmware/export/config/sansac200v2.h
+++ b/firmware/export/config/sansac200v2.h
@@ -5,8 +5,6 @@
5/* For Rolo and boot loader */ 5/* For Rolo and boot loader */
6#define MODEL_NUMBER 44 6#define MODEL_NUMBER 44
7#define MODEL_NAME "Sandisk Sansa c200v2 series" 7#define MODEL_NAME "Sandisk Sansa c200v2 series"
8#define FIRMWARE_OFFSET_FILE_DATA 8
9#define FIRMWARE_OFFSET_FILE_CRC 0
10 8
11#define HW_SAMPR_CAPS SAMPR_CAP_ALL_96 9#define HW_SAMPR_CAPS SAMPR_CAP_ALL_96
12 10
diff --git a/firmware/export/config/sansaclip.h b/firmware/export/config/sansaclip.h
index faab50590c..9a17cec736 100644
--- a/firmware/export/config/sansaclip.h
+++ b/firmware/export/config/sansaclip.h
@@ -5,8 +5,6 @@
5/* For Rolo and boot loader */ 5/* For Rolo and boot loader */
6#define MODEL_NUMBER 40 6#define MODEL_NUMBER 40
7#define MODEL_NAME "Sandisk Sansa Clip" 7#define MODEL_NAME "Sandisk Sansa Clip"
8#define FIRMWARE_OFFSET_FILE_DATA 8
9#define FIRMWARE_OFFSET_FILE_CRC 0
10 8
11#define HW_SAMPR_CAPS SAMPR_CAP_ALL_96 9#define HW_SAMPR_CAPS SAMPR_CAP_ALL_96
12 10
diff --git a/firmware/export/config/sansaclipplus.h b/firmware/export/config/sansaclipplus.h
index 99eb1d8832..37142c6992 100644
--- a/firmware/export/config/sansaclipplus.h
+++ b/firmware/export/config/sansaclipplus.h
@@ -5,8 +5,6 @@
5/* For Rolo and boot loader */ 5/* For Rolo and boot loader */
6#define MODEL_NUMBER 66 6#define MODEL_NUMBER 66
7#define MODEL_NAME "Sandisk Sansa Clip+" 7#define MODEL_NAME "Sandisk Sansa Clip+"
8#define FIRMWARE_OFFSET_FILE_DATA 8
9#define FIRMWARE_OFFSET_FILE_CRC 0
10/* Define if boot data from bootloader has been enabled for the target */ 8/* Define if boot data from bootloader has been enabled for the target */
11#define HAVE_BOOTDATA 9#define HAVE_BOOTDATA
12/* define boot redirect file name allows booting from external drives */ 10/* define boot redirect file name allows booting from external drives */
diff --git a/firmware/export/config/sansaclipv2.h b/firmware/export/config/sansaclipv2.h
index 6e369db681..886779f57a 100644
--- a/firmware/export/config/sansaclipv2.h
+++ b/firmware/export/config/sansaclipv2.h
@@ -5,8 +5,6 @@
5/* For Rolo and boot loader */ 5/* For Rolo and boot loader */
6#define MODEL_NUMBER 60 6#define MODEL_NUMBER 60
7#define MODEL_NAME "Sandisk Sansa Clipv2" 7#define MODEL_NAME "Sandisk Sansa Clipv2"
8#define FIRMWARE_OFFSET_FILE_DATA 8
9#define FIRMWARE_OFFSET_FILE_CRC 0
10/* Define if boot data from bootloader has been enabled for the target */ 8/* Define if boot data from bootloader has been enabled for the target */
11#define HAVE_BOOTDATA 9#define HAVE_BOOTDATA
12 10
diff --git a/firmware/export/config/sansaclipzip.h b/firmware/export/config/sansaclipzip.h
index d8b18e1a18..e34a2857f6 100644
--- a/firmware/export/config/sansaclipzip.h
+++ b/firmware/export/config/sansaclipzip.h
@@ -5,8 +5,6 @@
5/* For Rolo and boot loader */ 5/* For Rolo and boot loader */
6#define MODEL_NUMBER 79 6#define MODEL_NUMBER 79
7#define MODEL_NAME "Sandisk Sansa Zip" 7#define MODEL_NAME "Sandisk Sansa Zip"
8#define FIRMWARE_OFFSET_FILE_DATA 8
9#define FIRMWARE_OFFSET_FILE_CRC 0
10/* Define if boot data from bootloader has been enabled for the target */ 8/* Define if boot data from bootloader has been enabled for the target */
11#define HAVE_BOOTDATA 9#define HAVE_BOOTDATA
12/* define boot redirect file name allows booting from external drives */ 10/* define boot redirect file name allows booting from external drives */
diff --git a/firmware/export/config/sansaconnect.h b/firmware/export/config/sansaconnect.h
index a06ea9b207..ef048084f2 100644
--- a/firmware/export/config/sansaconnect.h
+++ b/firmware/export/config/sansaconnect.h
@@ -183,12 +183,6 @@
183/* Define this if you have ATA power-off control */ 183/* Define this if you have ATA power-off control */
184#define HAVE_ATA_POWER_OFF 184#define HAVE_ATA_POWER_OFF
185 185
186/* Offset ( in the firmware file's header ) to the file CRC */
187#define FIRMWARE_OFFSET_FILE_CRC 0
188
189/* Offset ( in the firmware file's header ) to the real data */
190#define FIRMWARE_OFFSET_FILE_DATA 8
191
192/* Hardware controlled charging */ 186/* Hardware controlled charging */
193#define CONFIG_CHARGING CHARGING_MONITOR 187#define CONFIG_CHARGING CHARGING_MONITOR
194 188
diff --git a/firmware/export/config/sansae200.h b/firmware/export/config/sansae200.h
index 6bb2df9bc8..1c10f74845 100644
--- a/firmware/export/config/sansae200.h
+++ b/firmware/export/config/sansae200.h
@@ -180,11 +180,6 @@
180/* Type of LCD TODO: hopefully the same as the x5 but check this*/ 180/* Type of LCD TODO: hopefully the same as the x5 but check this*/
181#define CONFIG_LCD LCD_X5 181#define CONFIG_LCD LCD_X5
182 182
183/* Offset ( in the firmware file's header ) to the file CRC and data. These are
184 only used when loading the old format rockbox.e200 file */
185#define FIRMWARE_OFFSET_FILE_CRC 0x0
186#define FIRMWARE_OFFSET_FILE_DATA 0x8
187
188#define HAVE_MULTIDRIVE 183#define HAVE_MULTIDRIVE
189//#define HAVE_MULTIVOLUME 184//#define HAVE_MULTIVOLUME
190#define NUM_DRIVES 2 185#define NUM_DRIVES 2
diff --git a/firmware/export/config/sansae200v2.h b/firmware/export/config/sansae200v2.h
index 27dd881e73..00833d56a6 100644
--- a/firmware/export/config/sansae200v2.h
+++ b/firmware/export/config/sansae200v2.h
@@ -187,11 +187,6 @@
187/* Type of LCD TODO: hopefully the same as the x5 but check this*/ 187/* Type of LCD TODO: hopefully the same as the x5 but check this*/
188#define CONFIG_LCD LCD_X5 188#define CONFIG_LCD LCD_X5
189 189
190/* Offset ( in the firmware file's header ) to the file CRC and data. These are
191 only used when loading the old format rockbox.e200 file */
192#define FIRMWARE_OFFSET_FILE_CRC 0x0
193#define FIRMWARE_OFFSET_FILE_DATA 0x8
194
195#define HAVE_MULTIDRIVE 190#define HAVE_MULTIDRIVE
196#define NUM_DRIVES 2 191#define NUM_DRIVES 2
197 192
diff --git a/firmware/export/config/sansafuze.h b/firmware/export/config/sansafuze.h
index e8f7157deb..4bb5d18ceb 100644
--- a/firmware/export/config/sansafuze.h
+++ b/firmware/export/config/sansafuze.h
@@ -194,11 +194,6 @@
194/* Type of LCD */ 194/* Type of LCD */
195#define CONFIG_LCD LCD_FUZE 195#define CONFIG_LCD LCD_FUZE
196 196
197/* Offset ( in the firmware file's header ) to the file CRC and data. These are
198 only used when loading the old format rockbox.e200 file */
199#define FIRMWARE_OFFSET_FILE_CRC 0x0
200#define FIRMWARE_OFFSET_FILE_DATA 0x8
201
202#define HAVE_MULTIDRIVE 197#define HAVE_MULTIDRIVE
203#define NUM_DRIVES 2 198#define NUM_DRIVES 2
204 199
diff --git a/firmware/export/config/sansafuzeplus.h b/firmware/export/config/sansafuzeplus.h
index 9b91e114bc..c96131e37d 100644
--- a/firmware/export/config/sansafuzeplus.h
+++ b/firmware/export/config/sansafuzeplus.h
@@ -184,11 +184,6 @@
184/* Type of LCD */ 184/* Type of LCD */
185#define CONFIG_LCD LCD_FUZEPLUS 185#define CONFIG_LCD LCD_FUZEPLUS
186 186
187/* Offset ( in the firmware file's header ) to the file CRC and data. These are
188 only used when loading the old format rockbox.e200 file */
189#define FIRMWARE_OFFSET_FILE_CRC 0x0
190#define FIRMWARE_OFFSET_FILE_DATA 0x8
191
192/* USB On-the-go */ 187/* USB On-the-go */
193#define CONFIG_USBOTG USBOTG_ARC 188#define CONFIG_USBOTG USBOTG_ARC
194 189
diff --git a/firmware/export/config/sansafuzev2.h b/firmware/export/config/sansafuzev2.h
index 96d3b2deee..6d95d49f78 100644
--- a/firmware/export/config/sansafuzev2.h
+++ b/firmware/export/config/sansafuzev2.h
@@ -196,11 +196,6 @@
196/* Type of LCD */ 196/* Type of LCD */
197#define CONFIG_LCD LCD_FUZE 197#define CONFIG_LCD LCD_FUZE
198 198
199/* Offset ( in the firmware file's header ) to the file CRC and data. These are
200 only used when loading the old format rockbox.e200 file */
201#define FIRMWARE_OFFSET_FILE_CRC 0x0
202#define FIRMWARE_OFFSET_FILE_DATA 0x8
203
204#define HAVE_MULTIDRIVE 199#define HAVE_MULTIDRIVE
205#define NUM_DRIVES 2 200#define NUM_DRIVES 2
206 201
diff --git a/firmware/export/config/sansam200v4.h b/firmware/export/config/sansam200v4.h
index 37f0931079..58cd096edb 100644
--- a/firmware/export/config/sansam200v4.h
+++ b/firmware/export/config/sansam200v4.h
@@ -131,12 +131,6 @@
131/* Define this if you have adjustable CPU frequency */ 131/* Define this if you have adjustable CPU frequency */
132#define HAVE_ADJUSTABLE_CPU_FREQ 132#define HAVE_ADJUSTABLE_CPU_FREQ
133 133
134/* Offset ( in the firmware file's header ) to the file CRC */
135#define FIRMWARE_OFFSET_FILE_CRC 0
136
137/* Offset ( in the firmware file's header ) to the real data */
138#define FIRMWARE_OFFSET_FILE_DATA 8
139
140#define CONFIG_USBOTG USBOTG_AS3525 134#define CONFIG_USBOTG USBOTG_AS3525
141 135
142/* enable these for the experimental usb stack */ 136/* enable these for the experimental usb stack */
diff --git a/firmware/export/config/sansaview.h b/firmware/export/config/sansaview.h
index 78458fe3fc..4b5de553b9 100644
--- a/firmware/export/config/sansaview.h
+++ b/firmware/export/config/sansaview.h
@@ -154,12 +154,6 @@
154/* Type of LCD */ 154/* Type of LCD */
155#define CONFIG_LCD LCD_VIEW 155#define CONFIG_LCD LCD_VIEW
156 156
157/* Offset ( in the firmware file's header ) to the file CRC and data. These are
158 only used when loading the old format rockbox.e200 file
159 Required for bootloader/common.c to compile */
160#define FIRMWARE_OFFSET_FILE_CRC 0x0
161#define FIRMWARE_OFFSET_FILE_DATA 0x8
162
163#ifndef BOOTLOADER 157#ifndef BOOTLOADER
164#define HAVE_MULTIDRIVE 158#define HAVE_MULTIDRIVE
165#define NUM_DRIVES 2 159#define NUM_DRIVES 2
diff --git a/firmware/export/config/sdlapp.h b/firmware/export/config/sdlapp.h
index 3286e377ce..4421e5e1ea 100644
--- a/firmware/export/config/sdlapp.h
+++ b/firmware/export/config/sdlapp.h
@@ -80,12 +80,6 @@
80#define CPU_FREQ 48000000 80#define CPU_FREQ 48000000
81*/ 81*/
82 82
83/* Offset ( in the firmware file's header ) to the file CRC */
84#define FIRMWARE_OFFSET_FILE_CRC 0
85
86/* Offset ( in the firmware file's header ) to the real data */
87#define FIRMWARE_OFFSET_FILE_DATA 8
88
89#define CONFIG_LCD LCD_COWOND2 83#define CONFIG_LCD LCD_COWOND2
90 84
91/* Define this if a programmable hotkey is mapped */ 85/* Define this if a programmable hotkey is mapped */
diff --git a/firmware/export/config/shanlingq1.h b/firmware/export/config/shanlingq1.h
index 6f5365a97e..a708cfc2a9 100644
--- a/firmware/export/config/shanlingq1.h
+++ b/firmware/export/config/shanlingq1.h
@@ -4,8 +4,6 @@
4#define BOOTFILE_EXT "q1" 4#define BOOTFILE_EXT "q1"
5#define BOOTFILE "rockbox." BOOTFILE_EXT 5#define BOOTFILE "rockbox." BOOTFILE_EXT
6#define BOOTDIR "/.rockbox" 6#define BOOTDIR "/.rockbox"
7#define FIRMWARE_OFFSET_FILE_CRC 0
8#define FIRMWARE_OFFSET_FILE_DATA 8
9 7
10/* CPU defines */ 8/* CPU defines */
11#define CONFIG_CPU X1000 9#define CONFIG_CPU X1000
diff --git a/firmware/export/config/sim.h b/firmware/export/config/sim.h
index 2dd6a929d3..0aeca695f0 100644
--- a/firmware/export/config/sim.h
+++ b/firmware/export/config/sim.h
@@ -23,10 +23,6 @@
23 23
24#undef ROM_START 24#undef ROM_START
25 25
26#undef FIRMWARE_OFFSET_FILE_LENGTH
27#undef FIRMWARE_OFFSET_FILE_CRC
28#undef FIRMWARE_OFFSET_FILE_DATA
29
30#undef AMS_OF_SIZE 26#undef AMS_OF_SIZE
31 27
32#undef HAVE_HOTSWAP_STORAGE_AS_MAIN 28#undef HAVE_HOTSWAP_STORAGE_AS_MAIN
diff --git a/firmware/export/config/sonynwze360.h b/firmware/export/config/sonynwze360.h
index e52dbfcac3..40b0a4feb7 100644
--- a/firmware/export/config/sonynwze360.h
+++ b/firmware/export/config/sonynwze360.h
@@ -155,11 +155,6 @@
155/* Type of LCD */ 155/* Type of LCD */
156#define CONFIG_LCD LCD_NWZE360 156#define CONFIG_LCD LCD_NWZE360
157 157
158/* Offset ( in the firmware file's header ) to the file CRC and data. These are
159 only used when loading the old format rockbox.e200 file */
160#define FIRMWARE_OFFSET_FILE_CRC 0x0
161#define FIRMWARE_OFFSET_FILE_DATA 0x8
162
163/* USB On-the-go */ 158/* USB On-the-go */
164#define CONFIG_USBOTG USBOTG_ARC 159#define CONFIG_USBOTG USBOTG_ARC
165 160
diff --git a/firmware/export/config/sonynwze370.h b/firmware/export/config/sonynwze370.h
index 5dd1c4bc9e..3ed2880d35 100644
--- a/firmware/export/config/sonynwze370.h
+++ b/firmware/export/config/sonynwze370.h
@@ -155,11 +155,6 @@
155/* Type of LCD */ 155/* Type of LCD */
156#define CONFIG_LCD LCD_NWZE370 156#define CONFIG_LCD LCD_NWZE370
157 157
158/* Offset ( in the firmware file's header ) to the file CRC and data. These are
159 only used when loading the old format rockbox.e200 file */
160#define FIRMWARE_OFFSET_FILE_CRC 0x0
161#define FIRMWARE_OFFSET_FILE_DATA 0x8
162
163/* USB On-the-go */ 158/* USB On-the-go */
164#define CONFIG_USBOTG USBOTG_ARC 159#define CONFIG_USBOTG USBOTG_ARC
165 160
diff --git a/firmware/export/config/vibe500.h b/firmware/export/config/vibe500.h
index edbc1e321a..b6d2e5082a 100644
--- a/firmware/export/config/vibe500.h
+++ b/firmware/export/config/vibe500.h
@@ -158,15 +158,6 @@
158/* We're able to shut off power to the HDD */ 158/* We're able to shut off power to the HDD */
159#define HAVE_ATA_POWER_OFF 159#define HAVE_ATA_POWER_OFF
160 160
161/* Offset ( in the firmware file's header ) to the file length */
162#define FIRMWARE_OFFSET_FILE_LENGTH 0
163
164/* Offset ( in the firmware file's header ) to the file CRC */
165#define FIRMWARE_OFFSET_FILE_CRC 0
166
167/* Offset ( in the firmware file's header ) to the real data */
168#define FIRMWARE_OFFSET_FILE_DATA 8
169
170/* USB On-the-go */ 161/* USB On-the-go */
171#define CONFIG_USBOTG USBOTG_ARC 162#define CONFIG_USBOTG USBOTG_ARC
172 163
diff --git a/firmware/export/config/xduoox3.h b/firmware/export/config/xduoox3.h
index ea86e60d59..46e1a61712 100644
--- a/firmware/export/config/xduoox3.h
+++ b/firmware/export/config/xduoox3.h
@@ -5,12 +5,6 @@
5#define MODEL_NAME "xDuoo X3" 5#define MODEL_NAME "xDuoo X3"
6#define MODEL_NUMBER 96 6#define MODEL_NUMBER 96
7 7
8/* Offset ( in the firmware file's header ) to the file CRC */
9#define FIRMWARE_OFFSET_FILE_CRC 0
10
11/* Offset ( in the firmware file's header ) to the real data */
12#define FIRMWARE_OFFSET_FILE_DATA 8
13
14/* Support FAT16 for SD cards <= 2GB */ 8/* Support FAT16 for SD cards <= 2GB */
15#define HAVE_FAT16SUPPORT 9#define HAVE_FAT16SUPPORT
16 10
diff --git a/firmware/export/config/zenvisionm30gb.h b/firmware/export/config/zenvisionm30gb.h
index ff68345349..ef0eb000ba 100644
--- a/firmware/export/config/zenvisionm30gb.h
+++ b/firmware/export/config/zenvisionm30gb.h
@@ -149,12 +149,6 @@
149/* Define this if you have ATA power-off control */ 149/* Define this if you have ATA power-off control */
150#define HAVE_ATA_POWER_OFF 150#define HAVE_ATA_POWER_OFF
151 151
152/* Offset ( in the firmware file's header ) to the file CRC */
153#define FIRMWARE_OFFSET_FILE_CRC 0
154
155/* Offset ( in the firmware file's header ) to the real data */
156#define FIRMWARE_OFFSET_FILE_DATA 8
157
158/* Define this if you have adjustable CPU frequency */ 152/* Define this if you have adjustable CPU frequency */
159/* #define HAVE_ADJUSTABLE_CPU_FREQ */ 153/* #define HAVE_ADJUSTABLE_CPU_FREQ */
160 154
diff --git a/firmware/export/config/zenvisionm60gb.h b/firmware/export/config/zenvisionm60gb.h
index 7136595d94..ce7fb9fa30 100644
--- a/firmware/export/config/zenvisionm60gb.h
+++ b/firmware/export/config/zenvisionm60gb.h
@@ -148,12 +148,6 @@
148/* Define this if you have ATA power-off control */ 148/* Define this if you have ATA power-off control */
149#define HAVE_ATA_POWER_OFF 149#define HAVE_ATA_POWER_OFF
150 150
151/* Offset ( in the firmware file's header ) to the file CRC */
152#define FIRMWARE_OFFSET_FILE_CRC 0
153
154/* Offset ( in the firmware file's header ) to the real data */
155#define FIRMWARE_OFFSET_FILE_DATA 8
156
157/* Define this if you have adjustable CPU frequency */ 151/* Define this if you have adjustable CPU frequency */
158/* #define HAVE_ADJUSTABLE_CPU_FREQ */ 152/* #define HAVE_ADJUSTABLE_CPU_FREQ */
159 153