blob: c47063cba843fa8bd2520be74d15209a5fd55c98 [file] [log] [blame]
Dave Chapman79a1fb12007-02-08 23:57:41 +00001/***************************************************************************
2 * __________ __ ___.
3 * Open \______ \ ____ ____ | | _\_ |__ _______ ___
4 * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
5 * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
6 * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
7 * \/ \/ \/ \/ \/
8 * $Id: ipodpatcher.c 12237 2007-02-08 21:31:38Z dave $
9 *
10 * Copyright (C) 2006-2007 Dave Chapman
11 *
12 * All files in this archive are subject to the GNU General Public License.
13 * See the file COPYING in the source tree root for full license agreement.
14 *
15 * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
16 * KIND, either express or implied.
17 *
18 ****************************************************************************/
19
20#include <stdio.h>
21#include <unistd.h>
22#include <fcntl.h>
23#include <string.h>
24#include <stdlib.h>
25#include <inttypes.h>
26#include <sys/types.h>
27#include <sys/stat.h>
28
29#include "ipodpatcher.h"
30#include "ipodio.h"
31
Dave Chapmanbbde4452007-06-02 10:10:31 +000032#define VERSION "1.1-svn"
Dave Chapman79a1fb12007-02-08 23:57:41 +000033
34int verbose = 0;
35
36enum {
37 NONE,
38#ifdef WITH_BOOTOBJS
39 INSTALL,
40#endif
41 INTERACTIVE,
42 SHOW_INFO,
43 LIST_IMAGES,
44 DELETE_BOOTLOADER,
45 ADD_BOOTLOADER,
46 READ_FIRMWARE,
47 WRITE_FIRMWARE,
48 READ_PARTITION,
Dave Chapman56780e32007-06-16 22:32:57 +000049 WRITE_PARTITION,
Dave Chapman35735c662007-07-27 20:51:36 +000050 FORMAT_PARTITION,
51 CONVERT_TO_FAT32
Dave Chapman79a1fb12007-02-08 23:57:41 +000052};
53
54void print_macpod_warning(void)
55{
56 printf("[INFO] ************************************************************************\n");
57 printf("[INFO] *** WARNING FOR ROCKBOX USERS\n");
58 printf("[INFO] *** You must convert this ipod to FAT32 format (aka a \"winpod\")\n");
59 printf("[INFO] *** if you want to run Rockbox. Rockbox WILL NOT work on this ipod.\n");
60 printf("[INFO] *** See http://www.rockbox.org/twiki/bin/view/Main/IpodConversionToFAT32\n");
61 printf("[INFO] ************************************************************************\n");
62}
63
64void print_usage(void)
65{
66 fprintf(stderr,"Usage: ipodpatcher --scan\n");
67#ifdef __WIN32__
68 fprintf(stderr," or ipodpatcher [DISKNO] [action]\n");
69#else
70 fprintf(stderr," or ipodpatcher [device] [action]\n");
71#endif
72 fprintf(stderr,"\n");
73 fprintf(stderr,"Where [action] is one of the following options:\n");
74#ifdef WITH_BOOTOBJS
75 fprintf(stderr," --install\n");
76#endif
77 fprintf(stderr," -l, --list\n");
78 fprintf(stderr," -r, --read-partition bootpartition.bin\n");
79 fprintf(stderr," -w, --write-partition bootpartition.bin\n");
80 fprintf(stderr," -rf, --read-firmware filename.ipod\n");
Dave Chapman427fff42007-04-13 23:28:20 +000081 fprintf(stderr," -rfb, --read-firmware-bin filename.bin\n");
Dave Chapman79a1fb12007-02-08 23:57:41 +000082 fprintf(stderr," -wf, --write-firmware filename.ipod\n");
83 fprintf(stderr," -wfb, --write-firmware-bin filename.bin\n");
Dave Chapmanbbde4452007-06-02 10:10:31 +000084#ifdef WITH_BOOTOBJS
85 fprintf(stderr," -we, --write-embedded\n");
86#endif
Dave Chapman79a1fb12007-02-08 23:57:41 +000087 fprintf(stderr," -a, --add-bootloader filename.ipod\n");
88 fprintf(stderr," -ab, --add-bootloader-bin filename.bin\n");
89 fprintf(stderr," -d, --delete-bootloader\n");
Dave Chapman56780e32007-06-16 22:32:57 +000090 fprintf(stderr," -f, --format\n");
Dave Chapman35735c662007-07-27 20:51:36 +000091 fprintf(stderr," -c, --convert\n");
Dave Chapman79a1fb12007-02-08 23:57:41 +000092 fprintf(stderr,"\n");
93
94#ifdef __WIN32__
95 fprintf(stderr,"DISKNO is the number (e.g. 2) Windows has assigned to your ipod's hard disk.\n");
96 fprintf(stderr,"The first hard disk in your computer (i.e. C:\\) will be disk 0, the next disk\n");
97 fprintf(stderr,"will be disk 1 etc. ipodpatcher will refuse to access a disk unless it\n");
98 fprintf(stderr,"can identify it as being an ipod.\n");
99 fprintf(stderr,"\n");
100#else
101#if defined(linux) || defined (__linux)
102 fprintf(stderr,"\"device\" is the device node (e.g. /dev/sda) assigned to your ipod.\n");
103#elif defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__)
104 fprintf(stderr,"\"device\" is the device node (e.g. /dev/da1) assigned to your ipod.\n");
105#elif defined(__APPLE__) && defined(__MACH__)
106 fprintf(stderr,"\"device\" is the device node (e.g. /dev/disk1) assigned to your ipod.\n");
107#endif
108 fprintf(stderr,"ipodpatcher will refuse to access a disk unless it can identify it as being\n");
109 fprintf(stderr,"an ipod.\n");
110#endif
111}
112
Dave Chapmana6d68bd2007-02-10 20:09:23 +0000113void display_partinfo(struct ipod_t* ipod)
114{
115 int i;
116 double sectors_per_MB = (1024.0*1024.0)/ipod->sector_size;
117
118 printf("[INFO] Part Start Sector End Sector Size (MB) Type\n");
119 for ( i = 0; i < 4; i++ ) {
120 if (ipod->pinfo[i].start != 0) {
121 printf("[INFO] %d %10ld %10ld %10.1f %s (0x%02x)\n",
122 i,
Dave Chapman35735c662007-07-27 20:51:36 +0000123 (long int)ipod->pinfo[i].start,
124 (long int)ipod->pinfo[i].start+ipod->pinfo[i].size-1,
Dave Chapmana6d68bd2007-02-10 20:09:23 +0000125 ipod->pinfo[i].size/sectors_per_MB,
126 get_parttype(ipod->pinfo[i].type),
Dave Chapman35735c662007-07-27 20:51:36 +0000127 (int)ipod->pinfo[i].type);
Dave Chapmana6d68bd2007-02-10 20:09:23 +0000128 }
129 }
130}
131
132
Dave Chapman79a1fb12007-02-08 23:57:41 +0000133int main(int argc, char* argv[])
134{
Dave Chapman79a1fb12007-02-08 23:57:41 +0000135 char yesno[4];
Dave Chapman79a1fb12007-02-08 23:57:41 +0000136 int i;
137 int n;
138 int infile, outfile;
139 unsigned int inputsize;
140 char* filename;
141 int action = SHOW_INFO;
142 int type;
143 struct ipod_t ipod;
144
145 fprintf(stderr,"ipodpatcher v" VERSION " - (C) Dave Chapman 2006-2007\n");
146 fprintf(stderr,"This is free software; see the source for copying conditions. There is NO\n");
147 fprintf(stderr,"warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\n\n");
148
149 if ((argc > 1) && ((strcmp(argv[1],"-h")==0) || (strcmp(argv[1],"--help")==0))) {
150 print_usage();
151 return 1;
152 }
153
154 if (ipod_alloc_buffer(&sectorbuf,BUFFER_SIZE) < 0) {
155 fprintf(stderr,"Failed to allocate memory buffer\n");
156 }
157
158 if ((argc > 1) && (strcmp(argv[1],"--scan")==0)) {
159 if (ipod_scan(&ipod) == 0)
160 fprintf(stderr,"[ERR] No ipods found.\n");
161 return 0;
162 }
163
164 /* If the first parameter doesn't start with -, then we interpret it as a device */
165 if ((argc > 1) && (argv[1][0] != '-')) {
166 ipod.diskname[0]=0;
167#ifdef __WIN32__
168 snprintf(ipod.diskname,sizeof(ipod.diskname),"\\\\.\\PhysicalDrive%s",argv[1]);
169#else
170 strncpy(ipod.diskname,argv[1],sizeof(ipod.diskname));
171#endif
172 i = 2;
173 } else {
174 /* Autoscan for ipods */
175 n = ipod_scan(&ipod);
176 if (n==0) {
177 fprintf(stderr,"[ERR] No ipods found, aborting\n");
178 fprintf(stderr,"[ERR] Please connect your ipod and ensure it is in disk mode\n");
Dave Chapman46424302007-02-09 09:45:29 +0000179#if defined(__APPLE__) && defined(__MACH__)
180 fprintf(stderr,"[ERR] Also ensure that itunes is closed, and that your ipod is not mounted.\n");
181#elif !defined(__WIN32__)
182 if (geteuid()!=0) {
183 fprintf(stderr,"[ERR] You may also need to run ipodpatcher as root.\n");
184 }
185#endif
186 fprintf(stderr,"[ERR] Please refer to the Rockbox manual if you continue to have problems.\n");
Dave Chapman79a1fb12007-02-08 23:57:41 +0000187 } else if (n > 1) {
188 fprintf(stderr,"[ERR] %d ipods found, aborting\n",n);
Dave Chapman46424302007-02-09 09:45:29 +0000189 fprintf(stderr,"[ERR] Please connect only one ipod and re-run ipodpatcher.\n");
Dave Chapman79a1fb12007-02-08 23:57:41 +0000190 }
191
192 if (n != 1) {
193#ifdef WITH_BOOTOBJS
194 if (argc==1) {
195 printf("\nPress ENTER to exit ipodpatcher :");
196 fgets(yesno,4,stdin);
197 }
198#endif
199 return 0;
200 }
201
202 i = 1;
203 }
204
205#ifdef WITH_BOOTOBJS
206 action = INTERACTIVE;
207#else
208 action = NONE;
209#endif
210
211 while (i < argc) {
212 if ((strcmp(argv[i],"-l")==0) || (strcmp(argv[i],"--list")==0)) {
213 action = LIST_IMAGES;
214 i++;
215#ifdef WITH_BOOTOBJS
216 } else if (strcmp(argv[i],"--install")==0) {
217 action = INSTALL;
218 i++;
219#endif
220 } else if ((strcmp(argv[i],"-d")==0) ||
221 (strcmp(argv[i],"--delete-bootloader")==0)) {
222 action = DELETE_BOOTLOADER;
223 i++;
224 } else if ((strcmp(argv[i],"-a")==0) ||
225 (strcmp(argv[i],"--add-bootloader")==0)) {
226 action = ADD_BOOTLOADER;
227 type = FILETYPE_DOT_IPOD;
228 i++;
229 if (i == argc) { print_usage(); return 1; }
230 filename=argv[i];
231 i++;
232 } else if ((strcmp(argv[i],"-ab")==0) ||
233 (strcmp(argv[i],"--add-bootloader-bin")==0)) {
234 action = ADD_BOOTLOADER;
235 type = FILETYPE_DOT_BIN;
236 i++;
237 if (i == argc) { print_usage(); return 1; }
238 filename=argv[i];
239 i++;
240 } else if ((strcmp(argv[i],"-rf")==0) ||
241 (strcmp(argv[i],"--read-firmware")==0)) {
242 action = READ_FIRMWARE;
Dave Chapman427fff42007-04-13 23:28:20 +0000243 type = FILETYPE_DOT_IPOD;
244 i++;
245 if (i == argc) { print_usage(); return 1; }
246 filename=argv[i];
247 i++;
248 } else if ((strcmp(argv[i],"-rfb")==0) ||
249 (strcmp(argv[i],"--read-firmware-bin")==0)) {
250 action = READ_FIRMWARE;
251 type = FILETYPE_DOT_BIN;
Dave Chapman79a1fb12007-02-08 23:57:41 +0000252 i++;
253 if (i == argc) { print_usage(); return 1; }
254 filename=argv[i];
255 i++;
Dave Chapmanbbde4452007-06-02 10:10:31 +0000256#ifdef WITH_BOOTOBJS
257 } else if ((strcmp(argv[i],"-we")==0) ||
258 (strcmp(argv[i],"--write-embedded")==0)) {
259 action = WRITE_FIRMWARE;
260 type = FILETYPE_INTERNAL;
261 filename="[embedded bootloader]"; /* Only displayed for user */
262 i++;
263#endif
Dave Chapman79a1fb12007-02-08 23:57:41 +0000264 } else if ((strcmp(argv[i],"-wf")==0) ||
265 (strcmp(argv[i],"--write-firmware")==0)) {
266 action = WRITE_FIRMWARE;
267 type = FILETYPE_DOT_IPOD;
268 i++;
269 if (i == argc) { print_usage(); return 1; }
270 filename=argv[i];
271 i++;
272 } else if ((strcmp(argv[i],"-wfb")==0) ||
273 (strcmp(argv[i],"--write-firmware-bin")==0)) {
274 action = WRITE_FIRMWARE;
275 type = FILETYPE_DOT_BIN;
276 i++;
277 if (i == argc) { print_usage(); return 1; }
278 filename=argv[i];
279 i++;
280 } else if ((strcmp(argv[i],"-r")==0) ||
281 (strcmp(argv[i],"--read-partition")==0)) {
282 action = READ_PARTITION;
283 i++;
284 if (i == argc) { print_usage(); return 1; }
285 filename=argv[i];
286 i++;
287 } else if ((strcmp(argv[i],"-w")==0) ||
288 (strcmp(argv[i],"--write-partition")==0)) {
289 action = WRITE_PARTITION;
290 i++;
291 if (i == argc) { print_usage(); return 1; }
292 filename=argv[i];
293 i++;
294 } else if ((strcmp(argv[i],"-v")==0) ||
295 (strcmp(argv[i],"--verbose")==0)) {
296 verbose++;
297 i++;
Dave Chapman56780e32007-06-16 22:32:57 +0000298 } else if ((strcmp(argv[i],"-f")==0) ||
299 (strcmp(argv[i],"--format")==0)) {
300 action = FORMAT_PARTITION;
301 i++;
Dave Chapman35735c662007-07-27 20:51:36 +0000302 } else if ((strcmp(argv[i],"-c")==0) ||
303 (strcmp(argv[i],"--convert")==0)) {
304 action = CONVERT_TO_FAT32;
305 i++;
Dave Chapman79a1fb12007-02-08 23:57:41 +0000306 } else {
307 print_usage(); return 1;
308 }
309 }
310
311 if (ipod.diskname[0]==0) {
312 print_usage();
313 return 1;
314 }
315
316 if (ipod_open(&ipod, 0) < 0) {
317 return 1;
318 }
319
320 fprintf(stderr,"[INFO] Reading partition table from %s\n",ipod.diskname);
321 fprintf(stderr,"[INFO] Sector size is %d bytes\n",ipod.sector_size);
322
323 if (read_partinfo(&ipod,0) < 0) {
324 return 2;
325 }
326
327 display_partinfo(&ipod);
328
329 if (ipod.pinfo[0].start==0) {
330 fprintf(stderr,"[ERR] No partition 0 on disk:\n");
331 display_partinfo(&ipod);
332 return 3;
333 }
334
335 read_directory(&ipod);
336
337 if (ipod.nimages <= 0) {
338 fprintf(stderr,"[ERR] Failed to read firmware directory - nimages=%d\n",ipod.nimages);
339 return 1;
340 }
341
342 if (getmodel(&ipod,(ipod.ipod_directory[0].vers>>8)) < 0) {
343 fprintf(stderr,"[ERR] Unknown version number in firmware (%08x)\n",
344 ipod.ipod_directory[0].vers);
345 return -1;
346 }
347
348 printf("[INFO] Ipod model: %s (\"%s\")\n",ipod.modelstr,
349 ipod.macpod ? "macpod" : "winpod");
350
Dave Chapman564d2492007-08-03 02:12:32 +0000351 if (ipod.ipod_directory[0].vers == 0x10000) {
352 fprintf(stderr,"[ERR] *** ipodpatcher does not support the 2nd Generation Nano! ***\n");
353#ifdef WITH_BOOTOBJS
354 printf("Press ENTER to exit ipodpatcher :");
355 fgets(yesno,4,stdin);
356#endif
357 return 0;
358 }
359
Dave Chapman79a1fb12007-02-08 23:57:41 +0000360 if (ipod.macpod) {
361 print_macpod_warning();
362 }
363
364 if (action==LIST_IMAGES) {
365 list_images(&ipod);
366#ifdef WITH_BOOTOBJS
367 } else if (action==INTERACTIVE) {
368
Dave Chapman9b4bb472007-03-06 14:07:38 +0000369 printf("Enter i to install the Rockbox bootloader, u to uninstall\n or c to cancel and do nothing (i/u/c) :");
370
Dave Chapman79a1fb12007-02-08 23:57:41 +0000371 if (fgets(yesno,4,stdin)) {
Dave Chapman9b4bb472007-03-06 14:07:38 +0000372 if (yesno[0]=='i') {
Dave Chapman79a1fb12007-02-08 23:57:41 +0000373 if (ipod_reopen_rw(&ipod) < 0) {
374 return 5;
375 }
376
377 if (add_bootloader(&ipod, NULL, FILETYPE_INTERNAL)==0) {
378 fprintf(stderr,"[INFO] Bootloader installed successfully.\n");
379 } else {
380 fprintf(stderr,"[ERR] --install failed.\n");
381 }
Dave Chapman9b4bb472007-03-06 14:07:38 +0000382 } else if (yesno[0]=='u') {
383 if (ipod_reopen_rw(&ipod) < 0) {
384 return 5;
385 }
386
387 if (delete_bootloader(&ipod)==0) {
388 fprintf(stderr,"[INFO] Bootloader removed.\n");
389 } else {
390 fprintf(stderr,"[ERR] Bootloader removal failed.\n");
391 }
Dave Chapman79a1fb12007-02-08 23:57:41 +0000392 }
393 }
394#endif
395 } else if (action==DELETE_BOOTLOADER) {
396 if (ipod_reopen_rw(&ipod) < 0) {
397 return 5;
398 }
399
400 if (ipod.ipod_directory[0].entryOffset==0) {
401 fprintf(stderr,"[ERR] No bootloader detected.\n");
402 } else {
403 if (delete_bootloader(&ipod)==0) {
404 fprintf(stderr,"[INFO] Bootloader removed.\n");
405 } else {
406 fprintf(stderr,"[ERR] --delete-bootloader failed.\n");
407 }
408 }
409 } else if (action==ADD_BOOTLOADER) {
410 if (ipod_reopen_rw(&ipod) < 0) {
411 return 5;
412 }
413
414 if (add_bootloader(&ipod, filename, type)==0) {
415 fprintf(stderr,"[INFO] Bootloader %s written to device.\n",filename);
416 } else {
417 fprintf(stderr,"[ERR] --add-bootloader failed.\n");
418 }
419#ifdef WITH_BOOTOBJS
420 } else if (action==INSTALL) {
421 if (ipod_reopen_rw(&ipod) < 0) {
422 return 5;
423 }
424
425 if (add_bootloader(&ipod, NULL, FILETYPE_INTERNAL)==0) {
426 fprintf(stderr,"[INFO] Bootloader installed successfully.\n");
427 } else {
428 fprintf(stderr,"[ERR] --install failed.\n");
429 }
430#endif
431 } else if (action==WRITE_FIRMWARE) {
432 if (ipod_reopen_rw(&ipod) < 0) {
433 return 5;
434 }
435
436 if (write_firmware(&ipod, filename,type)==0) {
437 fprintf(stderr,"[INFO] Firmware %s written to device.\n",filename);
438 } else {
439 fprintf(stderr,"[ERR] --write-firmware failed.\n");
440 }
441 } else if (action==READ_FIRMWARE) {
Dave Chapman427fff42007-04-13 23:28:20 +0000442 if (read_firmware(&ipod, filename, type)==0) {
Dave Chapman79a1fb12007-02-08 23:57:41 +0000443 fprintf(stderr,"[INFO] Firmware read to file %s.\n",filename);
444 } else {
445 fprintf(stderr,"[ERR] --read-firmware failed.\n");
446 }
447 } else if (action==READ_PARTITION) {
448 outfile = open(filename,O_CREAT|O_TRUNC|O_WRONLY|O_BINARY,S_IREAD|S_IWRITE);
449 if (outfile < 0) {
450 perror(filename);
451 return 4;
452 }
453
454 if (read_partition(&ipod, outfile) < 0) {
455 fprintf(stderr,"[ERR] --read-partition failed.\n");
456 } else {
457 fprintf(stderr,"[INFO] Partition extracted to %s.\n",filename);
458 }
459 close(outfile);
460 } else if (action==WRITE_PARTITION) {
461 if (ipod_reopen_rw(&ipod) < 0) {
462 return 5;
463 }
464
465 infile = open(filename,O_RDONLY|O_BINARY);
466 if (infile < 0) {
467 perror(filename);
468 return 2;
469 }
470
471 /* Check filesize is <= partition size */
472 inputsize=filesize(infile);
473 if (inputsize > 0) {
474 if (inputsize <= (ipod.pinfo[0].size*ipod.sector_size)) {
475 fprintf(stderr,"[INFO] Input file is %u bytes\n",inputsize);
476 if (write_partition(&ipod,infile) < 0) {
477 fprintf(stderr,"[ERR] --write-partition failed.\n");
478 } else {
479 fprintf(stderr,"[INFO] %s restored to partition\n",filename);
480 }
481 } else {
482 fprintf(stderr,"[ERR] File is too large for firmware partition, aborting.\n");
483 }
484 }
485
486 close(infile);
Dave Chapman56780e32007-06-16 22:32:57 +0000487 } else if (action==FORMAT_PARTITION) {
Dave Chapman35735c662007-07-27 20:51:36 +0000488 printf("WARNING!!! YOU ARE ABOUT TO USE AN EXPERIMENTAL FEATURE.\n");
489 printf("ALL DATA ON YOUR IPOD WILL BE ERASED.\n");
490 printf("Are you sure you want to format your ipod? (y/n):");
Dave Chapman56780e32007-06-16 22:32:57 +0000491
492 if (fgets(yesno,4,stdin)) {
493 if (yesno[0]=='y') {
494 if (ipod_reopen_rw(&ipod) < 0) {
495 return 5;
496 }
497
498 if (format_partition(&ipod,1) < 0) {
499 fprintf(stderr,"[ERR] Format failed.\n");
500 }
501 } else {
502 fprintf(stderr,"[INFO] Format cancelled.\n");
503 }
504 }
Dave Chapman35735c662007-07-27 20:51:36 +0000505 } else if (action==CONVERT_TO_FAT32) {
506 if (!ipod.macpod) {
507 printf("[ERR] Ipod is already FAT32, aborting\n");
508 } else {
509 printf("WARNING!!! YOU ARE ABOUT TO USE AN EXPERIMENTAL FEATURE.\n");
510 printf("ALL DATA ON YOUR IPOD WILL BE ERASED.\n");
511 printf("Are you sure you want to convert your ipod to FAT32? (y/n):");
512
513 if (fgets(yesno,4,stdin)) {
514 if (yesno[0]=='y') {
515 if (ipod_reopen_rw(&ipod) < 0) {
516 return 5;
517 }
518
519 if (write_dos_partition_table(&ipod) < 0) {
520 fprintf(stderr,"[ERR] Partition conversion failed.\n");
521 }
522
523 if (format_partition(&ipod,1) < 0) {
524 fprintf(stderr,"[ERR] Format failed.\n");
525 }
526 } else {
527 fprintf(stderr,"[INFO] Format cancelled.\n");
528 }
529 }
530 }
Dave Chapman79a1fb12007-02-08 23:57:41 +0000531 }
532
533 ipod_close(&ipod);
534
Dave Chapman6bd75aa2007-02-09 10:47:37 +0000535#ifdef WITH_BOOTOBJS
536 if (action==INTERACTIVE) {
537 printf("Press ENTER to exit ipodpatcher :");
538 fgets(yesno,4,stdin);
539 }
540#endif
541
542
Dave Chapman79a1fb12007-02-08 23:57:41 +0000543 return 0;
544}