簡體   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