在u-boot里面加入自己定义的命令方法

来源:互联网 发布:主机屋的数据库名称 编辑:程序博客网 时间:2024/06/07 02:12

#include <common.h>
#include <asm/io.h>

static int do_set_cmd(cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
{                              
        printf ("test/n");
        return 1;
}


U_BOOT_CMD(
        setcmd,        5,      1,      do_set_cmd,
        "test sub-system",
        "ttest              - add  a  new command'"
);

原创粉丝点击