P1010rdb新单板u-boot移植过程总结
更新时间:2024-05-02 08:22:01 阅读量: 综合文库 文档下载
新单板P1010rdb的u-boot移植讲解 一、yocto project的建立
1. 搭建linux环境,ubuntu 12.04 2. QorIQ SDK 1.7 Documentation
(1)SDK 简介参考freescale的网站
http://www.freescale.com/infocenter/index.jsp?topic=/QORIQSDK/2880375.html
(2)安装SDK
1. Mount the ISO on your machine:
$ sudo mount -o loop QorIQ-SDK-
2. As a non-root user, install Yocto Project:
$ /mnt/cdrom/install
3. When you are prompted to input the install path, ensure that the current user has the
correct permission for the install path. (3)配置sdk的环境
1、$ cd
3、安装python-2.7.6, export PATH=/opt/python-2.7.6/bin:$PATH 4、建立p1010rdb的开发环境: $ source ./fsl-setup-poky -m p1010rdb
将生产build_p1010rdb_release的目录,用于p1010rdb相关的开发,包括u-boot, kernel,rootfs等
(4)编译工具链
1、$ cd
(5)编译u-boot
1、获取u-boot源码 $ bitbake -c patch u-boot
2、修改u-boot代码,u-boot代码放在路径下,获取的方法
$ bitbake -e .
3、修改编译u-boot的配置文件
meta-fsl-ppc/conf/machine/p1010rdb.conf 主要是UBOOT_MACHINES = \的宏变量,这个变量的值决定了编译出来的u-boot的值。 4、编译
? $ cd build_
Note: U-Boot image can be found in
build_
? $ bitbake -c cleansstate u-boot
二、P1010RDB启动必备知识
1、内存映射
(1)Configuration, control, and status registers(CCSR)
默认的CCSRBAR的地址为0x0_FF70_0000 可以被修改,修改CCSRBAR的地址为0x0_FF70_0000,即它自身地址。
(2)Local access windows(LAW)
a、P1010rdb定义了12个LAW, Each of these windows maps a programmable 4-Kbyte to 32-Gbyte region of the local36-bit address space to a specified target interface, such as the DDR controller, integrated flash controller, PCI Express controllers, or other targets.
b、If two or more LAWs overlap, the lower numbered window takes precedence.For instance, consider two LAWs, set up as shown in the table below.
c、Each LAW is defined by a base address register which specifies the starting address for the window, and an attribute register which specifies whether the mapping is enabled, the size of the window, and the target interface for that window. The LAW registers are accessed by reading and writing to an address comprised of the base address
(specified in the CCSRBAR) LAW_LAWBAR0和LAW_LAWBAR1
(3)Address translation and mapping units(ATMU)
To facilitate flexibility in defining the address maps for external interfaces such as PCIExpress, the device provides ATMUs.The following types of translation and mapping operations are performed by the ATMUs:
? Translating the local 36-bit address to an external address space ? Translating external addresses to the local 36-bit address space ? Assigning attributes to transactions
? Mapping a local address to a target interface
2、Reset, Clocking, and Initialization
(1)Reset memory map/register definition
a. CCSRBAR
The set of configuration, control, and status registers occupies a 1-Mbyte region ofmemory. Their location is programmable using the CCSR base address register(CCSRBAR). The default base address for the configuration, control, and status registersis 0x0_FF70_0000 (CCSRBAR = 0x000F_F700). CCSRBAR itself is part of the localaccess block of CCSR memory, which begins at offset 0x0 from CCSRBAR. BecauseCCSRBAR is at offset 0x0 from the beginning of the local access registers, CCSRBARalways points to itself. The contents of CCSRBAR are broadcast internally in the deviceto all functional units that need to be able to identify or create configuration transactions.
b. Boot page
When e500 core comes out of reset, its MMU has one 4-Kbyte page defined at 0x0_FFFF_Fnnn. The core begins execution with the instruction at effective address 0x0_FFFF_FFFC. To get this instruction, the core's first instruction fetch is a burst read of boot code from effective address 0x0_FFFF_FFE0.
(2)Power-on reset sequence(POR)
The device defines the default boot ROM address range to be 8 Mbytes at address 0x0_FF80_0000 to 0x0_FFFF_FFFF.
正在阅读:
方舟在线07-11
论提升高职高专思政课程的教学实效性以《思想道德修养与法律基础05-13
公路路基冲击碾压技术的应用分析05-28
fluent UDF第六章 工具04-18
1989人生的困境与存在的勇气——论《围城》的现代性 解志熙08-28
中式面点师中级理论知识试卷05-12
汽泵抢水的分析 - 图文04-13
让压岁钱更有意义作文03-12
中国传媒大学南广学院文化管理学院03-19
- 多层物业服务方案
- (审判实务)习惯法与少数民族地区民间纠纷解决问题(孙 潋)
- 人教版新课标六年级下册语文全册教案
- 词语打卡
- photoshop实习报告
- 钢结构设计原理综合测试2
- 2014年期末练习题
- 高中数学中的逆向思维解题方法探讨
- 名师原创 全国通用2014-2015学年高二寒假作业 政治(一)Word版
- 北航《建筑结构检测鉴定与加固》在线作业三
- XX县卫生监督所工程建设项目可行性研究报告
- 小学四年级观察作文经典评语
- 浅谈110KV变电站电气一次设计-程泉焱(1)
- 安全员考试题库
- 国家电网公司变电运维管理规定(试行)
- 义务教育课程标准稿征求意见提纲
- 教学秘书面试技巧
- 钢结构工程施工组织设计
- 水利工程概论论文
- 09届九年级数学第四次模拟试卷
- 单板
- 移植
- P1010rdb
- 过程
- 总结
- boot