Diff for /fwmaker/src/fwmaker.c between versions 1.1.1.1 and 1.2

version 1.1.1.1, 2026/01/04 18:08:18 version 1.2, 2026/01/04 18:52:50
Line 8  struct tagMtd mtd; Line 8  struct tagMtd mtd;
 char image[MAXPATHLEN];  char image[MAXPATHLEN];
 int imgfd;  int imgfd;
 size_t imgsiz;  size_t imgsiz;
   u_char fillCh = 0x0;
   
   
 void  void
Line 16  Usage() Line 17  Usage()
         printf( " -= FWMAKER =- Firmware maker software ver.%s\n"          printf( " -= FWMAKER =- Firmware maker software ver.%s\n"
                 " (C)`25 ELWIX by Michael Pounov <misho@elwix.org> \n"                  " (C)`25 ELWIX by Michael Pounov <misho@elwix.org> \n"
                 "==================================================\n"                  "==================================================\n"
                " Syntax: fwmaker [-options] <image> [commands]\n\n"                " Syntax: fwmaker [-options] <image> [command [args]]\n\n"
                 "\t-i\t\t\tPrompt command\n"                  "\t-i\t\t\tPrompt command\n"
                   "\t-C <byte>\t\tFill empty bytes [default=0x0]\n"
                 "\t-d <0xmask>\t\tDebug mode\n"                  "\t-d <0xmask>\t\tDebug mode\n"
                 "\t-v\t\t\tVerbose, more -v more verbosity\n"                  "\t-v\t\t\tVerbose, more -v more verbosity\n"
                 "\t-h\t\t\tHelp, this screen\n", "0.1");                  "\t-h\t\t\tHelp, this screen\n", "0.1");
Line 29  prepareCli() Line 31  prepareCli()
         cli_addCommand(line, "image", 1, cmd_Image, "image command", "image management");          cli_addCommand(line, "image", 1, cmd_Image, "image command", "image management");
         cli_addCommand(line, "mtd", 1, cmd_Mtd, "mtd command", "mtd partition");          cli_addCommand(line, "mtd", 1, cmd_Mtd, "mtd command", "mtd partition");
         cli_addCommand(line, "show", 1, cmd_Show, "show command", "shows parameters");          cli_addCommand(line, "show", 1, cmd_Show, "show command", "shows parameters");
   
           cli_addCommand(line, "fill_byte", 2, cmd_FillCh, "fill_byte command",
                           "fill image empty areas with byte");
 }  }
   
 int  int
Line 37  main(int argc, char **argv) Line 42  main(int argc, char **argv)
         int ch, imode = 0, ret = 0;          int ch, imode = 0, ret = 0;
         char **args, cmdline[BUFSIZ] = { 0 };          char **args, cmdline[BUFSIZ] = { 0 };
   
        while ((ch = getopt(argc, argv, "hvid:")) != -1)        while ((ch = getopt(argc, argv, "hvid:C:")) != -1)
                 switch (ch) {                  switch (ch) {
                           case 'C':
                                   fillCh = (u_char) strtol(optarg, NULL, 0);
                                   break;
                         case 'i':                          case 'i':
                                 imode = 42;                                  imode = 42;
                                 break;                                  break;

Removed from v.1.1.1.1  
changed lines
  Added in v.1.2


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>