====u-boot cmomand 추가 =====
\common\cmd_ddr.c <== 생성
[code]
#include <common.h>
#include <command.h>
#include <common.h>
#include <command.h>
int do_dram_test(cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
{
printf("\n do_dram_test \n");
// 해당 코드 작성//
{
printf("\n do_dram_test \n");
// 해당 코드 작성//
return 0;
}
}
U_BOOT_CMD(
ddr, 1, 1, do_dram_test,
"DDR memory Read/Write Test (auto-incrementing address)",
""
);
ddr, 1, 1, do_dram_test,
"DDR memory Read/Write Test (auto-incrementing address)",
""
);
- name: is the name of the commad. THIS IS NOT a string.
- maxargs: the maximumn numbers of arguments this function takes
- command: Function pointer (*cmd)(struct cmd_tbl_s *, int, int, char *[]);
- usage: Short description. This is a string
- help: long description. This is a string
\common\Makefile <== 수정
[Makifile 수정]
COBJS-$(CONFIG_LOGBUFFER) += cmd_log.o
COBJS-$(CONFIG_ID_EEPROM) += cmd_mac.o
COBJS-$(CONFIG_CMD_MEMORY) += cmd_mem.o
...
COBJS-$(CONFIG_CMD_MEMORY) += cmd_ddr.o
...
COBJS-$(CONFIG_CMD_MFSL) += cmd_mfsl.o
COBJS-$(CONFIG_CMD_MG_DISK) += cmd_mgdisk.o
COBJS-$(CONFIG_MII) += miiphyutil.o
COBJS-$(CONFIG_CMD_MII) += miiphyutil.o
COBJS-$(CONFIG_LOGBUFFER) += cmd_log.o
COBJS-$(CONFIG_ID_EEPROM) += cmd_mac.o
COBJS-$(CONFIG_CMD_MEMORY) += cmd_mem.o
...
COBJS-$(CONFIG_CMD_MEMORY) += cmd_ddr.o
...
COBJS-$(CONFIG_CMD_MFSL) += cmd_mfsl.o
COBJS-$(CONFIG_CMD_MG_DISK) += cmd_mgdisk.o
COBJS-$(CONFIG_MII) += miiphyutil.o
COBJS-$(CONFIG_CMD_MII) += miiphyutil.o
'이것저것 > My_Work' 카테고리의 다른 글
Self_안드로이드 (0) | 2013.03.13 |
---|---|
[v210] Eboot size 조절 (0) | 2012.05.15 |
[ MFC] - 파일 복사와 진행율 보기 (0) | 2010.12.03 |
Power Management (0) | 2009.08.27 |
ATOM CPU Power dissipation (0) | 2009.08.04 |