uboot添加命令
来源:互联网 发布:美国硅谷软件学院 编辑:程序博客网 时间:2024/05/17 22:18
添加一个简单的命令,yinming,打印helloworld
1 common/yinming.c
/* * Command for accessing DataFlash. * * Copyright (C) 2008 Atmel Corporation */#include <common.h>static int do_yinming(cmd_tbl_t *cmdtp, int flag, int argc, char *argv[]){printf("hello world\n");return 1;}U_BOOT_CMD(yinming, 2,1, do_yinming,"yinming make uboot cmd exercise","yinming make uboot cmd exercise");
2 common/Makefile
# commandCOBJS-$(CONFIG_CMD_YINMING) += cmd_yinming.o COBJS-$(CONFIG_CMD_AMBAPP) += cmd_ambapp.o
3 include/configs/配置文件.h
/*********************************************************** * Command definition ***********************************************************/#include <config_cmd_default.h>#define CONFIG_CMD_YINMING 1 #define CONFIG_CMD_PING
4 重新编译uboot
OK
0 0
- [UBOOT]uboot命令添加过程
- uboot添加命令
- uboot 添加命令
- uboot命令添加过程
- uboot命令添加过程
- 添加一个uboot命令
- uboot 添加hello命令
- uboot添加命令
- Uboot如何添加命令
- uboot 添加命令
- uboot添加命令
- FAT文件系统编译进uboot uboot命令的添加
- uboot试验记录-添加自己的命令
- UBOOT添加命令的执行流程
- UBOOT添加命令的执行流程
- 在uboot中添加新的命令
- Uboot 添加命令的执行流程
- uboot 中添加自己的命令
- web安全相关的资源
- Spring IOC、DI、AOP原理和实现
- 计算机是物理实现是多种多样的
- Eclipse设置:背景与字体大小和xml文件中字体大小调整
- RTSP协议分析
- uboot添加命令
- 解决Apache 和 Tomcat整合出现访问Tomcat内容出现404问题
- 关于Reset命令
- 在编译RegexKitLite的时候报错
- 问题:分页连接,如何带入查询参数
- 计算机设计使用
- app store审查指南
- 名人名言,你听过几句
- 输入输出设备