emulate some hardware use for run firmware.
aw is allwiner mt is mediatek
mt7628 | aw-d1 | |
---|---|---|
INTC | v | |
TIMER | ||
UART | v | |
GPIO | ||
SPI | v | |
MMC | ||
I2C | ||
USB | v | |
SATA | x | x |
PCIE | x | |
ETHERNET | v | |
DISPLAY | x | |
AUDIO | ||
BROM | x | |
BOOT FROM SPI | v | |
BOOT FROM MMC | x | |
BOOT FROM UART | x | x |
SPL | v | |
LINUX | v | |
UBOOT | v | |
NETBSD | ||
9FRONT |
git clone https://gitlab.com/qemu-project/qemu /path/to/qemu
git clone https://github.com/newluhux/qemu-hui/
cd qemu
for i in ../qemu-hui/*.patch
do
git am $i
done
cd /path/to/qemu/
./configure --target-list=arm-softmmu,mipsel-softmmu,riscv64-softmmu
make -j$(nproc)
make check
./build/qemu-system-mipsel \
-M mt7628_evb \
-nographic \
-object filter-dump,id=f1,netdev=hub0port0,file=mt7628net.pcap \
-drive if=mtd,file=./flash.bin,format=raw
same with qemu