[IMX6Q]u-boot_v2009.08移植
2015-12-28 16:00
260 查看
u-boot版本: v2009.08
1. 参考一样平台其他目录copy一个
$cp -rf board/freescale/mx6_<reference board name> board/freescale/mx6_<custom board name>
2. copy一个平台相关mx6_<custom board name>.h文件
$cp include/configs/mx6_<referencename>.h include/configs/mx6_<custom board name>.h
3.在顶层Makefile中添加config
mx6_<custom board name>_config: unconfig
@$(MKCONFIG) $(@:_config=) arm arm_cortexa8 mx6_<custom board name> freescale mx6
4. 重命名/mx6_<reference board name>.c
$ mv board/freescale/mx6_<reference board name>/mx6_<reference board name>.c
board/freescale/mx6_<custom board name>/mx6_<custom board name>.c.
5. 修改board/freescale/mx6_<customboard name>/u-boot.lds
把
board/freescale/mx6_<reference board name>/flash_header.o
改为
board/freescale/mx6_<custom board name>/flash_header.o
把
board/freescale/mx6_<reference board name>/libmx6_<reference board name>.a
改为
board/freescale/mx6_<custom board name>/libmx6_<custom board name>.a
6. 修改custom目录下Makefile
修改 board/freescale/mx6_<custom board name >/Makefile
把
board/freescale/mx6_<custom board
改为
COBJS := mx6_<custom board name>.o
7. 修改ddr配置
修改 board/freescale/mx6_<custom board name>/flash_header.S
修改 PHYS_SDRAM_1_SIZE, CONFIG_NR_DRAM_BANKS
8. 修改clock, iomux, gpio
路径: board/freescale/mx6_<customer_board>/mx6_<customer_board>.c
9. 修改machine type,如果不兼容,kernel将无法起来
board_init()@board/freescale/mx6_<customer_board>/mx6_<customer_board>.c
/* board id for linux */
gd->bd->bi_arch_number = MACH_TYPE_MX6_<reference board name>;
machine id 参考:
http://www.arm.linux.org.uk/developer/machines/
10. 编译
#!/bin/bash
export ARCH=arm
export CROSS_COMPILE=<path to cross compiler prefix>
make distclean
make mx6_<custom board name>_config
make
Refer to: i.MX_6Dual6Quad_BSP_Porting_Guide
1. 参考一样平台其他目录copy一个
$cp -rf board/freescale/mx6_<reference board name> board/freescale/mx6_<custom board name>
2. copy一个平台相关mx6_<custom board name>.h文件
$cp include/configs/mx6_<referencename>.h include/configs/mx6_<custom board name>.h
3.在顶层Makefile中添加config
mx6_<custom board name>_config: unconfig
@$(MKCONFIG) $(@:_config=) arm arm_cortexa8 mx6_<custom board name> freescale mx6
4. 重命名/mx6_<reference board name>.c
$ mv board/freescale/mx6_<reference board name>/mx6_<reference board name>.c
board/freescale/mx6_<custom board name>/mx6_<custom board name>.c.
5. 修改board/freescale/mx6_<customboard name>/u-boot.lds
把
board/freescale/mx6_<reference board name>/flash_header.o
改为
board/freescale/mx6_<custom board name>/flash_header.o
把
board/freescale/mx6_<reference board name>/libmx6_<reference board name>.a
改为
board/freescale/mx6_<custom board name>/libmx6_<custom board name>.a
6. 修改custom目录下Makefile
修改 board/freescale/mx6_<custom board name >/Makefile
把
board/freescale/mx6_<custom board
改为
COBJS := mx6_<custom board name>.o
7. 修改ddr配置
修改 board/freescale/mx6_<custom board name>/flash_header.S
修改 PHYS_SDRAM_1_SIZE, CONFIG_NR_DRAM_BANKS
8. 修改clock, iomux, gpio
路径: board/freescale/mx6_<customer_board>/mx6_<customer_board>.c
9. 修改machine type,如果不兼容,kernel将无法起来
board_init()@board/freescale/mx6_<customer_board>/mx6_<customer_board>.c
/* board id for linux */
gd->bd->bi_arch_number = MACH_TYPE_MX6_<reference board name>;
machine id 参考:
http://www.arm.linux.org.uk/developer/machines/
10. 编译
#!/bin/bash
export ARCH=arm
export CROSS_COMPILE=<path to cross compiler prefix>
make distclean
make mx6_<custom board name>_config
make
Refer to: i.MX_6Dual6Quad_BSP_Porting_Guide
相关文章推荐
- C#(去、过滤)掉字符中的换行符
- Debugger Exception Notification
- MVC登录
- S3C2440看门狗定时器原理
- 【转】什么是堆和栈,它们在哪儿?
- applicationContext.xml文件如何调用外部properties等配置文件
- 文件下载之使用AsyncTask并在进度对话框中显示下载进度
- JMeter(二)——使用Jmeter进行压测
- 兄弟连兄弟会
- 关于C#timer 时间精确度的问题
- UITableView 基本使用方法总结
- layout_gravity设置无效
- 智能家居网络系统设计(五)
- 从菜鸟到Android资深工程师的进阶之路
- 试用vSphere 6(三):安装vCenter 6(独立数据库)之:数据库服务器安装与配置
- Hash哈希类型
- spring 注入一个以枚举类型对象
- 5_微信公众平台开发教程第5篇-----网页授权获取用户基本信息
- 形象的讲解angular中的$q与promise
- /etc/php-fpm.d/www.conf 配置注意