|
|
|
@ -315,20 +315,20 @@ while ((opt = getopt(argc, argv, "hp:ft:ms:bc")) != -1) {
|
|
|
|
|
switch (opt) {
|
|
|
|
|
case 'h':
|
|
|
|
|
|
|
|
|
|
printf("\n This utility is intended for emergency USB loading of devices on the Balong V7 chip\n\n\
|
|
|
|
|
printf("\n This utility is used for emergency USB loading of devices with the Balong V7 chip\n\n\
|
|
|
|
|
%s [option] <boot file name>\n\n\
|
|
|
|
|
The following options are allowed:\n\n"
|
|
|
|
|
Following options are allowed:\n\n"
|
|
|
|
|
#ifndef WIN32
|
|
|
|
|
"-p <tty> - serial port for communicating with the bootloader (by default /dev/ttyUSB0)\n"
|
|
|
|
|
"-p <tty> - serial port for communicating with the bootloader (by default /dev/ttyUSB0)\n"
|
|
|
|
|
#else
|
|
|
|
|
"-p # - number of the serial port for communicating with the loader (e.g. -p8)\n"
|
|
|
|
|
"-p # - number of the serial port for communicating with the loader (e.g. -p8)\n"
|
|
|
|
|
" if the -p switch is not specified, the port is auto-detected\n"
|
|
|
|
|
#endif
|
|
|
|
|
"-f - Load usbloader only to fastboot (without starting Linux)\n\
|
|
|
|
|
-b - Similarly to -f, additionally disable check of defective blocks during wipeout\n\
|
|
|
|
|
-t <file> - Take partition table from specified file\n\
|
|
|
|
|
-m - Show the loader partition table and exit\n\
|
|
|
|
|
-s n - Set file flag for partition n (option can be set multiple times)\n\
|
|
|
|
|
-s <n> - Set file flag for partition <n> (option can be set multiple times)\n\
|
|
|
|
|
-c - Do not automatically patch partitions\n\
|
|
|
|
|
\n",argv[0]);
|
|
|
|
|
return;
|
|
|
|
@ -375,10 +375,10 @@ printf("\n This utility is intended for emergency USB loading of devices on the
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
printf("\n Balong-chipset emergency USB loader, version 2.20, (c) forth32, 2015\n");
|
|
|
|
|
printf("\n English Version (c) robertzaage, 2022");
|
|
|
|
|
printf("\nBalong-chipset emergency USB loader, version 2.20, (c) forth32, 2015\n");
|
|
|
|
|
printf("English Version (c) robertzaage, 2022\n");
|
|
|
|
|
#ifdef WIN32
|
|
|
|
|
printf("\n Windows Port 32bit (c) rust3028, 2016");
|
|
|
|
|
printf("Windows Port 32bit (c) rust3028, 2016\n");
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
if (optind>=argc) {
|
|
|
|
|