xref: /OK3568_Linux_fs/buildroot/board/qemu/aarch64-sbsa/readme.txt (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593SmuzhiyunIntro
2*4882a593Smuzhiyun=====
3*4882a593Smuzhiyun
4*4882a593SmuzhiyunThe QEMU sbsa-ref machine is primarily meant for firmware development
5*4882a593Smuzhiyunand testing according to ARM's SBSA and SBBR standards.
6*4882a593Smuzhiyun
7*4882a593SmuzhiyunBuild
8*4882a593Smuzhiyun=====
9*4882a593Smuzhiyun
10*4882a593Smuzhiyun  $ make qemu_aarch64_sbsa_defconfig
11*4882a593Smuzhiyun  $ make
12*4882a593Smuzhiyun
13*4882a593SmuzhiyunEmulation
14*4882a593Smuzhiyun=========
15*4882a593Smuzhiyun
16*4882a593SmuzhiyunRun the emulation with:
17*4882a593Smuzhiyun
18*4882a593Smuzhiyun  qemu-system-aarch64 \
19*4882a593Smuzhiyun    -M sbsa-ref \
20*4882a593Smuzhiyun    -cpu cortex-a57 \
21*4882a593Smuzhiyun    -smp 4 \
22*4882a593Smuzhiyun    -m 1024 \
23*4882a593Smuzhiyun    -nographic \
24*4882a593Smuzhiyun    -pflash output/images/SBSA_FLASH0.fd \
25*4882a593Smuzhiyun    -pflash output/images/SBSA_FLASH1.fd \
26*4882a593Smuzhiyun    -hda output/images/disk.img # qemu_aarch64_sbsa_defconfig
27*4882a593Smuzhiyun
28*4882a593SmuzhiyunNote that if you want to run sbsa-ref emulation with QEMU provided by
29*4882a593Smuzhiyunyour distro (i.e., not host-qemu by Buildroot) then you may need to
30*4882a593Smuzhiyuninstall the SeaBIOS package for some required drivers. On Debian:
31*4882a593Smuzhiyun
32*4882a593Smuzhiyun  # apt install seabios
33