express_ca9x4 uboot分析

1.vexpress-ca9x4和qemu介绍

vexpress-ca9x4是arm公司的模拟开发板,

官方资料是:

ARM® CoreTile Express A9×4 Technical Reference Manual Cortex®-A9 MPCore (V2P-CA9)

http://infocenter.arm.com/help/index.jsp?topic=/com.arm.doc.dui0448i/index.html

RealView® Platform Baseboard Explore for Cortex™-A9 User Guide HBI-0182 (baseboard) and HBI0183 (daughterboard)

http://infocenter.arm.com/help/index.jsp?topic=/com.arm.doc.home/index.html

qemu是一个模拟器

2.环境搭建

编译器,qemu,uboot,

详见这篇文章:http://blog.chinaunix.net/uid-21273033-id-3276237.html

uboot(2017.07)编译:

CROSS_COMPILE=arm-linux-gnueabi- make mrproper O=…/t

CROSS_COMPILE=arm-linux-gnueabi- make vexpress_ca9x4_defconfig O=…/t

CROSS_COMPILE=arm-linux-gnueabi- make vexpress_ca9x4_defconfig all O=…/t

运行:

qemu-system-arm -M vexpress-a9 -m 256M -nographic -kernel …/t/u-boot
C-a h print this help
C-a x exit emulator

qemu-system-arm -M vexpress-a9 -m 256M -nographic -kernel …/t/u-boot -s -S

/usr/local/arm-gdb/bin/arm-linux-gdb …/t/u-boot

target remote :1234

arm-linux-gdb的安装
http://blog.csdn.net/kangear/article/details/8635029

3.makefile分析

阅读readme,CONFIG_,CONFIG_SYS_,make <board_name>_defconfig

CONFIG_SYS:depend on the hardware etc,

info命令输出和man一样,需要安装doc。u跳到上层的小节 “p”跳到上一节,按键“n”跳到下一节。

LC_ALL=C 是为了去除所有本地化的设置,让命令能正确执行。

shell中,文件分界符(通常写成EOF,你也可以写成FOE或者其他任何字符串)紧跟在<<符号后,意思是分界符后的内容将被当做标准输入传给<<前面的命令,直到再次在独立的一行遇到这个文件分界符(EOF或者其他任何字符

MAKEFLAGS += -rR --no-print-directory
#-r禁止使用build-in规则
#–no-print-directory是:不要再屏幕上打印"Entering directory…"

有一个 make 的环境变量叫“MAKECMDGOALS”,这个变量中会存放你所指定的终极目标的列表,如果在命令行上,你没有指定目标,那么,这个变量是空值

linux顶层Makefile(不错)

Kernel顶层Makefile文件分析

http://blog.csdn.net/hushup/article/details/26105333

http://www.cnblogs.com/heaad/archive/2010/07/17/1779806.html

http://www.cnblogs.com/amanlikethis/archive/2013/11/17/3427682.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值