摘要: 1 阅读全文
posted @ 2016-05-28 15:43 墩墩 阅读(89) 评论(0) 推荐(0) 编辑
摘要: int creat(const char *pathname, mode_t mode); 包含路径 创建模式 creat("/dev/fb",0666); int open(const char *pathname, int flags); int open(const char *pathnam 阅读全文
posted @ 2016-05-28 13:35 墩墩 阅读(152) 评论(0) 推荐(0) 编辑
摘要: u-boot 代码分为两个阶段第一阶段是汇编,入口是 arch/arm/cpu/armv7/start.S,第二阶段是 C 语言, 入口是 board.c 第一阶段代码1. 异常向量表定义2. 设置 SVC32 模式(ARM 七种工作模式)3. 调用 cpu_init_crit 进行 cpu 相关初 阅读全文
posted @ 2016-05-18 11:41 墩墩 阅读(373) 评论(0) 推荐(0) 编辑
摘要: #include <stdio.h>int main(void){ int num[] = { 5, 6, 7, 3, 1, 2 }; int i = 0; int j = 0; int temp = 0; for (i = 0; i < sizeof(num) / sizeof(num[0]); 阅读全文
posted @ 2016-05-17 22:49 墩墩 阅读(123) 评论(0) 推荐(0) 编辑
摘要: 1. u-boot配置过程 make xxx.config MKCONFIG := $(SRCTREE)/mkconfig export MKCONFIG 》》执行mkconfig 1).确定开发板名称BOARD_NAME . CONFIG_NAME="${1%_config}" [ "${BOAR 阅读全文
posted @ 2016-05-17 16:45 墩墩 阅读(943) 评论(0) 推荐(0) 编辑
摘要: 第一步就是要为这个模型机构建一个基本结构,这是一个有效的设备树最基本的结构。在这个阶段你需要唯一的标识该机器。 /{ compatible= " Marvell ,armada38x" };compatible 指定了系统的名称。它包含了一个“<制造商>,<型号>”形式的字符串。重要的是要指定一个确 阅读全文
posted @ 2016-05-12 17:34 墩墩 阅读(6125) 评论(0) 推荐(0) 编辑
该文被密码保护。 阅读全文
posted @ 2016-05-12 10:57 墩墩 阅读(6) 评论(0) 推荐(0) 编辑