Openwrt移植IMX6之增加u-boot支持
2014-04-21 16:30
253 查看
Openwrt移植IMX6之增加u-boot支持
本文原文地址:http://blog.csdn.net/crazyleenopenwrt已经支持IMX6的u-boot,u-boot位于package/boot/uboot-imx6,只需要针对自己的u-boot添加补丁,openwrt使用quilt管理补丁,以下是制作补丁的全过程。
使用quilt制作补丁
参考文档http://wiki.openwrt.org/doc/devel/patches首先配置quilt生产openwrt的补丁格式
cat > ~/.quiltrc <<EOF QUILT_DIFF_ARGS="--no-timestamps --no-index -pab --color=auto" QUILT_REFRESH_ARGS="--no-timestamps --no-index -pab" QUILT_PATCH_OPTS="--unified" QUILT_DIFF_OPTS="-p" EDITOR="nano" EOF
准备补丁修改
makepackage/example/{clean,prepare}V=s
QUILT=1
进入编译目录
cdbuild_dir/target-*/example-*
打上现有补丁
quiltpush -a
新建一个空的补丁文件
quiltnew 010-main_code_fix.patch
编辑文件
quiltedit src/main.c
查看差异
quiltdiff
更新补丁文件
quiltrefresh
返回openwrt主目录,更新openwrt补丁文件
makepackage/example/updateV=s
编译测试
makepackage/example/{clean,compile}package/index
V=s
补充:添加新文件要先quiltadd
your_file, 然后再新建并编辑文件,或则复制文件进来。
制作IMX6的u-boot补丁的整个过程如下:
1.修改package/boot/uboot-imx6/Makefile#在UBOOTS添加snapgate,
defineuboot/snapgate
TITLE:=U-Bootfor the snapget Solo 1G board
endef
2.制作补丁过程
makepackage/boot/uboot-imx6/prepare V=s QUILT=1
cdbuild_dir/target-arm_cortex-a9+vfpv3_uClibc-0.9.33.2_eabi/u-boot-snapgate/u-boot-2013.10
quiltpush -a
quilt new 120-snapgate-support.patch
quilt edit boards.cfg
quilt add include/configs/snapgate.h
quilt add board/snapgate/Makefile
quilt add board/snapgate/snapgate1g.cfg
quilt add board/snapgate/snapgate.c
quilt add board/snapgate/readme.md
quilt add board/snapgate/snapgate512m.cfg
#现在复制添加的文件进去
quiltrefresh
cd../../../../
makepackage/boot/uboot-imx6/update V=s
最终生成新的补丁文件package/boot/uboot-imx6/patches/120-snapgate-support.patch
makemenuconfig配置
BootLoaders
--->
<*>uboot-imx6-snapgate.................
U-Boot for the snapget Solo 1Gboard
相关文章推荐
- 【linux驱动分析】之dm9000驱动分析(三):sk_buff结构分析
- Linux Commands Cheat Sheet
- Exchange Server 2010 LAB Part 10.边缘传输服务器负载均衡 推荐
- Tomcat7.0.40 基于DataSourceRealm的和JDBCRealm的资源用户访问控制
- LInux CLI Commands
- soc camera子系统之初始化i2c client
- 【linux驱动分析】之dm9000驱动分析(一):dm9000原理及硬件分析
- 淘宝接口 TopAPi
- Nginx学习笔记之Nginx介绍与安装
- 【linux驱动分析】之dm9000驱动分析(二):定义在板文件中的资源和设备以及几个宏
- input_event
- linux命令
- linux 信号中断处理
- hadoop安装 步骤(linux)
- 用shell从文件中提取指定字符串的行
- urllib2模块学习--opener和handlers使用
- Cocos2d-x 学习笔记:linux环境下开发
- apache centos配置
- Creating a new Microsoft Word document from a template using OpenXml
- linux 环境下开发 常用指令