comparison loadtools/flmain.c @ 713:cf7bd5e705ed

fc-loadtool: flash compal-imei command implemented
author Mychaela Falconia <falcon@freecalypso.org>
date Fri, 05 Jun 2020 07:54:33 +0000
parents 44cdfc4fed4c
children 511e2b85c115
comparison
equal deleted inserted replaced
712:a167d7b376b7 713:cf7bd5e705ed
90 (u_long) flash_bank_info[bank].base_addr); 90 (u_long) flash_bank_info[bank].base_addr);
91 return(0); 91 return(0);
92 } 92 }
93 93
94 extern int flashcmd_blankchk(); 94 extern int flashcmd_blankchk();
95 extern int flashcmd_compal_imei();
95 extern int flashcmd_dump2file(); 96 extern int flashcmd_dump2file();
96 extern int flashcmd_erase(); 97 extern int flashcmd_erase();
97 extern int flashcmd_erase_program_boot(); 98 extern int flashcmd_erase_program_boot();
98 extern int flashcmd_progbin_wrap(); 99 extern int flashcmd_progbin_wrap();
99 extern int flashcmd_program_m0(); 100 extern int flashcmd_program_m0();
108 static struct cmdtab { 109 static struct cmdtab {
109 char *cmd; 110 char *cmd;
110 int (*func)(); 111 int (*func)();
111 } cmdtab[] = { 112 } cmdtab[] = {
112 {"blankchk", flashcmd_blankchk}, 113 {"blankchk", flashcmd_blankchk},
114 {"compal-imei", flashcmd_compal_imei},
113 {"dump2bin", flashcmd_dump2file}, 115 {"dump2bin", flashcmd_dump2file},
114 {"dump2srec", flashcmd_dump2file}, 116 {"dump2srec", flashcmd_dump2file},
115 {"erase", flashcmd_erase}, 117 {"erase", flashcmd_erase},
116 {"erase-program-boot", flashcmd_erase_program_boot}, 118 {"erase-program-boot", flashcmd_erase_program_boot},
117 {"e-program-bin", flashcmd_progbin_wrap}, 119 {"e-program-bin", flashcmd_progbin_wrap},