系统教程
您现在的位置是:首页>服务器系统>Ubuntu系统内容

Ubuntu14.04中编译U-Boot

时间:2018-04-09 出处:未知复制分享人气(次) 【

1、开发环境

宿主机:Ubuntu14.04.2(32bit)

开发板:Mini2440

U-Boot:2010.03


2、编译

下载Tekkaman移植的U-Boot源码(https://github.com/tekkamanninja/u-boot-2010.03-tekkaman),然后只需要两个命令即可实现U-Boot的配置和编译:

make mini2440_config 
make 


3、交叉工具链前缀

必须在顶级Makefile中指定交叉编译工具链的前缀,例如Tekkaman在顶级目录的Makefile中添加:

CROSS_COMPILE =  arm-tekkaman-linux-gnueabi- 

执行make时将会使用arm-tekkaman-linux-gnueabi-gcc进行c代码的编译。


4、输出

编译完成后将会在U-Boot源码顶级目录中生成一个u-boot.bin文件,这就是编译的结果,将其烧写到开发板中即可。

    最新资讯
    热门内容
    小米移动电源能为iPad mini充几次电