Skip to content

Latest commit

 

History

History
52 lines (44 loc) · 2 KB

README.md

File metadata and controls

52 lines (44 loc) · 2 KB

Japanese follows English. 日本語は,英語に続きます.

What's this?

A QEMU fork to emulate LEGO Education SPIKE Prime Hub machine model. This is used to test and debug SPIKE-RT.

Installation

Build from source

Prepare a build environment according to Hosts/Linux - QEMU.
An example for Ubuntu:

sudo apt install build-essential git libglib2.0-dev libfdt-dev libpixman-1-dev zlib1g-dev ninja-build

To compile, execute the commands below.

git clone [email protected]:spike-rt/qemu.git
cd qemu
mkdir build && cd build
../configure --target-list=arm-softmmu
ninja qemu-system-arm

By adding --static option to the configure command, you can build a statically linked binary.
But some environment may fail to build because static versions of some dependent libraries are not provided. For example, it seems to be possible to build on Ubuntu 20.04, but not on Ubuntu 22.04.

これは何?

QEMUにLEGO Education SPIKE Prime Hub のマシンモデルを追加したもの. SPIKE-RTのテストとデバッグに使用している.

導入

ソースからのビルド

Hosts/Linux - QEMU にしたがってビルド環境を構築する.
Ubuntu の例

sudo apt install build-essential git libglib2.0-dev libfdt-dev libpixman-1-dev zlib1g-dev ninja-build

以下を実行し,コンパイル.

git clone [email protected]:spike-rt/qemu.git
cd qemu
mkdir build && cd build
../configure --target-list=arm-softmmu
ninja qemu-system-arm

なお,configure時に,--staticを指定することで,スタティンクリンクされたバイナリをビルド可能である.
しかし,環境によっては,依存ライブラリの静的ライブラリが用意されていないためにビルドできないことがある. 例えば,Ubuntu 20.04ではビルド可能だが,Ubuntu 22.04ではビルドできないようである.