分类: 嵌入式
2010-08-18 21:21:32
2 在板级配置文件include/configs/xxx.h COMFIG_COMMANDS中加入CFG_CMD_FPGALOAD,
3 在common目录下编写fpgaload.c文件,框架如下 :
#include
int do_fpgaload(cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
{}
U_BOOT_CMD(
fpgaload, 2, 1, do_fpgaload,"fpgaload - load image to ram on fpga\n"
"this is a test\n"
);