目的:安裝 qemu linaro 版
說明:qemu linaro 版是第三方協力廠商所開發的 qemu 版,其功能較原始官方版本更強,例如支援 beagle 模擬,因此在此我們介紹如何下載、編譯、安裝 qemu linaro 版。
下載:qemu linaro 版下載網址如下:
https://launchpad.net/qemu-linaro/
請下載最新版本,以本例來說,其檔名是 qemu-linaro-1.7.0-2014.01.tar.gz
wget ftp://120.117.72.71/files/qemu-linaro-1.7.0-2014.01.tar.gz
解開:tar xfva qemu-linaro-1.7.0-2014.01.tar.gz
解開後會出現一個名為 qemu-linaro-1.7.0-2014.01 的目錄,請切換至此目錄中。
要編譯前要先安裝底下套件:
zlib1g-dev
pkg-config
libcurl4-openssl-dev
libsdl-dev
libsasl2-dev
libaio-dev
libvde-dev
libvdeplug2-dev
uuid-dev
libcap-ng-dev
libpixman-1-dev
編譯:
./configure
若是 ./configure 出現底下錯誤的話:
ERROR: DTC not present. Your options:
(1) Preferred: Install the DTC devel package
(2) Fetch the DTC submodule, using:
git submodule update --init dtc
其解決方法在:
http://lists.gnu.org/archive/html/qemu-devel/2013-11/msg03494.html
請再安裝底下套件
device-tree-compiler
libfdt-dev
time make -j N
若有錯誤訊息,請設法解決。
安裝:
# make install
驗證:
在 /usr/local/bin 目錄下有一堆 qemu-system-???? 的檔案,如下所示:
/usr/local/bin/qemu-system-alpha /usr/local/bin/qemu-system-or32
/usr/local/bin/qemu-system-arm /usr/local/bin/qemu-system-ppc
/usr/local/bin/qemu-system-cris /usr/local/bin/qemu-system-ppc64
/usr/local/bin/qemu-system-i386 /usr/local/bin/qemu-system-ppcemb
/usr/local/bin/qemu-system-lm32 /usr/local/bin/qemu-system-s390x
/usr/local/bin/qemu-system-m68k /usr/local/bin/qemu-system-sh4
/usr/local/bin/qemu-system-microblaze /usr/local/bin/qemu-system-sh4eb
/usr/local/bin/qemu-system-microblazeel /usr/local/bin/qemu-system-sparc
/usr/local/bin/qemu-system-mips /usr/local/bin/qemu-system-sparc64
/usr/local/bin/qemu-system-mips64 /usr/local/bin/qemu-system-unicore32
/usr/local/bin/qemu-system-mips64el /usr/local/bin/qemu-system-x86_64
/usr/local/bin/qemu-system-mipsel /usr/local/bin/qemu-system-xtensa
/usr/local/bin/qemu-system-moxie /usr/local/bin/qemu-system-xtensaeb
我們可以執行
/usr/local/bin/qemu-system-arm -version
或是
/usr/local/bin/qemu-system-x86_64 --version
其輸出如下:
QEMU emulator version 1.7.0 (qemu-linaro 2014.01), Copyright (c) 2003-2008 Fabrice Bellard
我們可以看過上述字串有 qemu-linaro 2014.01,這表示我們所安裝的 qemu linaro 已經是最新版了。
沒有留言:
張貼留言