繁体   English   中英

在Mac OS X的qemu中启动u-boot

[英]Booting u-boot in Mac OS X's qemu

我正在尝试构建u-boot,并在Mac OS X上的qemu中运行它。我找到了此站点,并按照说明进行操作: http : //imvoid.wordpress.com/2013/05/17/booting-uboot-在-QEMU /

对于Mac OS X上的交叉编译,我可以构建工具- 如何在Mac OS X上进行ARM交叉编译(错误:无效的列表选项'r'-交叉编译错误)

对于u-boot,我尝试了导致内核转储的最新版本(2014),以及一些无法编译的早期版本(2010),因此我使用了2013/10版本( https://dl.dropboxusercontent.com/ u / 1234/2014 / u-boot-2013.10.tar.bz2 )以获取uboot.bin。

但是,当我使用qemu-system-arm -M versatilepb -m 128M -nographic -kernel u-boot.bin;运行二进制文件时qemu-system-arm -M versatilepb -m 128M -nographic -kernel u-boot.bin; ,没有崩溃,但是我从屏幕上看不到任何东西。

可能是什么问题? 我上传了二进制文件。

https://dl.dropboxusercontent.com/u/1234/2014/u-boot.bin

以及2014年崩溃的版本。

https://dl.dropboxusercontent.com/u/1234/2014/u-boot_2014.bin

尝试使用ELF格式文件u-boot而不是u-boot.bin

$ qemu-system-arm -M versatilepb -m 128M -nographic -kernel u-boot


U-Boot 2014.10-rc2-00312-g9169305 (Oct 06 2014 - 20:43:26)

DRAM:  128 MiB
WARNING: Caches not enabled
Flash: Flash protect error at address 37ec0000
Flash protect error at address 37fc0000
64 MiB
*** Warning - bad CRC, using default environment

In:    serial
Out:   serial
Err:   serial
Net:   SMC91111-0
Warning: SMC91111-0 using MAC address from net device

Warning: Your board does not use generic board. Please read
doc/README.generic-board and take action. Boards not
upgraded by the late 2014 may break or be removed.
VersatilePB #

我在OS X 10.9.5系统上构建了u-boot提交91693055995733e268874ae75568ae316233e116 我使用了此处提供的ARM工具链二进制文件。 在任何地方(例如$HOME )解压缩gcc-arm-none-eabi-4_8-2014q3-20140805-mac.tar.bz2

$ git clone http://git.denx.de/u-boot.git
$ cd u-boot
$ make versatilepb_config
$ make CROSS_COMPILE=~/gcc-arm-none-eabi-4_8-2014q3/bin/arm-none-eabi-

我用的是Homebrew Qemu

$ qemu-system-arm --version
QEMU emulator version 2.1.2, Copyright (c) 2003-2008 Fabrice Bellard

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM