Uboot之命令行框架-1 #include 2 #include 3 4 int do_cmdusr(cmd_tbl_t *cmdtp, int flag, int argc, char *argv[]) 5 { 6 //自己实现的功能:例如tftp等下载、数据校验 7 } 8 9 U_BOOT_CMD(10 cmdusr, 3, 0, do_cmdusr,11 “cmdusr- user cmd\n”,12 ” – this is cmd, Contains the following steps:\n”13 ” – 1…\n”14 ” – 2…\n”15 ” – 3…\n”16 ” – 4…\n”17 );