Chinaunix首页 | 论坛 | 博客
  • 博客访问: 156739
  • 博文数量: 60
  • 博客积分: 0
  • 博客等级: 民兵
  • 技术积分: 458
  • 用 户 组: 普通用户
  • 注册时间: 2014-04-04 10:01
文章分类

全部博文(60)

文章存档

2016年(3)

2014年(57)

我的朋友

分类: LINUX

2014-05-03 23:10:34

1.假设u-boot的目录是在根目录下的/u-boo目录下
当通过命令make mini2440_config配置时,在/u-boot/include先生成一个config.h的头文件,
其内容如下:
/* Automatically generated - do not edit */
#define CONFIG_BOARDDIR board/tekkamanninja/mini2440
#include
#include
#include


2.在/u-boot/inlcude/configs下新建一个开发板相关的头文件按mini2440.h,其内容是开发板相关的配置
复制smdk2410.h,修改名字为mini2440.h即可
3.在/u-boot/inlcude/asm-arm/arc-s3c24x0/s3c24x0_cpu.h,只想CPU型号资源定义头文件按,其内容如下
#ifdef CONFIG_S3C2400
#include
#elif defined CONFIG_S3C2410
#include
/************** By myself *******/
#elif defined(CONFIG_S3C2440)
#include
/************** By myself *******/
#else
#error Please define the s3c24x0 cpu type
#endif
阅读(566) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~