1 Overview
- Background
- RUN U-BOOT on QEMU Platform
- Statement
- QEMU 5.1.50
- U-BOOT 2017.11
- Ubuntu 18.04
2 STEPS
STEP 1 – Compile glib-2.48
- Required Software
- pcre-8.20.tar.gz
- libffi-3.3.tar.gz
- glib-2.48.0.tar.bz2
tar -xzvf pcre-8.20.tar.gz
cd pcre-8.20
./configure --enable-unicode-properties --enable-utf8
make && make install
tar -zxvf libffi-3.3.tar.gz
cd libffi-3.3
./configure
make && make install
cd glib-2.48.0
./autogen.sh --with-pcre=internal
make && make install
STEP 2 – Compile QEMU
- Required Software
- pixman-0.40.0.tar.gz
- zlib-1.2.11.tar.gz
- qemu-5.1.50.tar.bz2
tar -xvzf pixman-0.40.0.tar.gz
cd pixman-0.40.0
./configure
make && make install
tar -xvzf zlib-1.2.11.tar.gz
cd zlib-1.2.11
./configure
make && make install
cd qemu/
mkdir build
cd build
../configure
make
STEP 3 – Compile U-Boot
make vexpress_ca9x4_defconfig
make ARCH=arm CROSS_CMPILE=arm-linux-gnueabi-
STEP 4 – Run U-Boot on QEMU
./qemu-system-arm -M vexpress-a9 -nographic -m 512 -kernel xx/u-boot-2017.11/u-boot
3 Extend
3.1 Qemu Command Line
- (ctrl + a) + x: Quit QEMU
- (ctrl + a) + c: enter into QEMU monitor
3.2 Install glib by using Meson
- (1) Install meson and ninja
python3 -m pip install meson
python3 -m pip install ninja
- (2) build implementation
//meson setup <source directory> <build directory>
//cd <source root>
//meson setup builddir
cd glib-xxx
meson setup _install
ninja -C _install
ninja -C _install install