docker 编译 安装 qemu
安装依赖软件
apt-get install -y zlib1g-dev pkg-config libglib2.0-dev libmount-dev libpixman-1-dev
apt-get install -y zlib1g-dev pkg-config libglib2.0-dev libmount-dev libpixman-1-dev
sudo apt-get install ptyhon3.7
sudo apt-get install libglib2.0-dev
sudo apt-get install flex
sudo apt-get install bison
下载 qemu
wget https://download.qemu.org/qemu-8.0.5.tar.xz
tar xvJf qemu-8.0.5.tar.xz
cd qemu-8.0.5
./configure --python=/usr/bin/python3.7
make
sudo make install
查看qemu版本
build$ qemu-riscv64 --version
qemu-riscv64 version 8.0.5
Copyright (c) 2003-2022 Fabrice Bellard and the QEMU Project developers
罗列 qemu程序
~/qemu/qemu-8.0.5/build$ ls qemu-system-*
qemu-system-aarch64 qemu-system-mips qemu-system-s390x
qemu-system-alpha qemu-system-mips64 qemu-system-sh4
qemu-system-arm qemu-system-mips64el qemu-system-sh4eb
qemu-system-avr qemu-system-mipsel qemu-system-sparc
qemu-system-cris qemu-system-nios2 qemu-system-sparc64
qemu-system-hppa qemu-system-or1k qemu-system-tricore
qemu-system-i386 qemu-system-ppc qemu-system-x86_64
qemu-system-loongarch64 qemu-system-ppc64 qemu-system-xtensa
qemu-system-m68k qemu-system-riscv32 qemu-system-xtensaeb
qemu-system-microblaze qemu-system-riscv64
qemu-system-microblazeel qemu-system-rx
查看qemu 支持的板卡
qemu-system-arm -M help
查看qemu 支持的cpu
qemu-system-arm -cpu help