用Qemu模拟vexpress-a9 (二) --- 搭建u-boot调试环境
- UID
- 1029342
- 性别
- 男
|
用Qemu模拟vexpress-a9 (二) --- 搭建u-boot调试环境
下载、编译u-boot代码
u-boot从下面的网址获得:
http://ftp.denx.de/pub/u-boot/
取得是最新的代码。我使用的是u-boot-2015.05, 解压后,配置,编译:
make ARCH=arm CROSS_COMPILE=arm-linux-gnueabi- vexpress_ca9x4_defconfig
make ARCH=arm CROSS_COMPILE=arm-linux-gnueabi-
使用qemu测试
qemu-system-arm -M vexpress-a9 \
-kernel u-boot \
-nographic \
-m 512M
打印出u-boot的启动信息:
复制代码
U-Boot 2015.07-rc3-00092-gf3edfd3-dirty (Dec 05 2015 - 22:00:46 -0800)
DRAM: 512 MiB
WARNING: Caches not enabled
Flash: 128 MiB
MMC: MMC: 0
*** Warning - bad CRC, using default environment
In: serial
Out: serial
Err: serial
Net: smc911x-0
Warning: smc911x-0 using MAC address from net device
Hit any key to stop autoboot: 0 |
|
|
|
|
|