Chinaunix首页 | 论坛 | 博客
  • 博客访问: 333823
  • 博文数量: 97
  • 博客积分: 0
  • 博客等级: 民兵
  • 技术积分: 636
  • 用 户 组: 普通用户
  • 注册时间: 2014-10-12 22:41
文章分类

全部博文(97)

文章存档

2017年(8)

2015年(87)

2014年(2)

我的朋友

分类: 嵌入式

2015-09-11 00:16:15

近期在学习linux,用am335x处理器练手,博文记录移植过程,如有错误请多多指点。

参考链接:
ti uboot user guide: %27s_Guide#Getting_the_Code


1、获取uboot源码
The U-Boot git repository, branch and commit id can be found below: 

Based on Version: 2014.07 URL: git://git.ti.com/ti-u-boot/ti-u-boot.git
Branch: ti-u-boot-2014.07y
Commit ID:7e537bfdd261bf8bf444f3ac4d1be3db4ee124e8

2、Cleaning the Sources
If you did not use a separate object directory: 

点击(此处)折叠或打开

  1. $ make CROSS_COMPILE=arm-linux-gnueabihf- distclean
If you used 'O=am335x_evm' as your object directory: 

点击(此处)折叠或打开

  1. $ rm -rf ./am335x_evm
3、Compiling MLO and u-boot
  文档中提示可以使用预定义的配置文件进行编译:
点击(此处)折叠或打开
  1. $ make CROSS_COMPILE=arm-linux-gnueabihf- O=am335x_evm am335x_evm_config all

在这一步出现问题;
1) 直接-all 会出错
2) 去除all编译选项后编译也会出错

解决方案:
执行以下两句:
make CROSS_COMPILE=arm-linux-gnueabihf- O=am335x_evm am335x_evm_config
make CROSS_COMPILE=arm-linux-gnueabihf- O=am335x_evm

原因:目前未知,对linux了解深入一点后再来编辑这一部分。

完成u-boot的编译

阅读(1662) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~