はじめに
この記事は、Raspberry Pi OS上で、Couchbase Lite C/C++ SDKの挙動を確認するために、QEMUエミュレーターを使用しようとした際の記録です。
結局、参考にした情報では、Raspberry Pi OSのバージョンが、SDKのサポート対象と異なっていたことから、実機を用いた検証に切り替えましたが、エミュレーターとしての利用自体は確認できたため、記録として残します。
そのような経緯から、記録/覚書以上のものにするモチベーションは失ってしまいましたが、何らかの参考になれば幸いです。ちなみに実機を用いた上記検証については、以下に整理しています。
確認環境
- macOS Catalina Version 10.15.7
- Homebrew 3.3.7
実行履歴
brew install qemu
brew install wget
wget http://ftp.jaist.ac.jp/pub/raspberrypi/raspios_armhf/images/raspios_armhf-2021-11-08/2021-10-30-raspios-bullseye-armhf.zip
wget http://ftp.jaist.ac.jp/pub/raspberrypi/raspios_armhf/images/raspios_armhf-2021-05-28/2021-05-07-raspios-buster-armhf.zip
unzip 2021-10-30-raspios-bullseye-armhf.zip
$ ls -l
total 7790008
-rw-r--r-- 1 yoshiyuki.kono staff 3972005888 Oct 30 20:36 2021-10-30-raspios-bullseye-armhf.img
-rw-r--r-- 1 yoshiyuki.kono staff 3814920 Dec 7 10:55 kernel-qemu-4.19.50-buster
-rw-r--r-- 1 yoshiyuki.kono staff 8573 Dec 7 10:55 versatile-pb-buster.dtb
$ qemu-img resize 2021-10-30-raspios-bullseye-armhf.img +2G
WARNING: Image format was not specified for '2021-10-30-raspios-bullseye-armhf.img' and probing guessed raw.
Automatically detecting the format is dangerous for raw images, write operations on block 0 will be restricted.
Specify the 'raw' format explicitly to remove the restrictions.
Image resized.
pi@raspberrypi:~ $ sudo apt install -y gnome-disk-utility
pi@raspberrypi:~ $ cat /etc/debian_version
10.9
pi@raspberrypi:~ $ cat /etc/issue
Raspbian GNU/Linux 10 \n \l
pi@raspberrypi:~ $ lsb_release -a
No LSB modules are available.
Distributor ID: Raspbian
Description: Raspbian GNU/Linux 10 (buster)
Release: 10
Codename: buster
```![uploading...0]()
### 関連情報
https://qiita.com/yaju/items/9bb341c1b222590a92ba
https://www.webdevqa.jp.net/ja/networking/qemu%E3%82%92%E4%BD%BF%E7%94%A8%E3%81%97%E3%81%A6%E3%83%9B%E3%82%B9%E3%83%88%E3%81%8B%E3%82%89%E3%82%B2%E3%82%B9%E3%83%88%E3%81%ABssh%E3%81%A7%E6%8E%A5%E7%B6%9A%E3%81%99%E3%82%8B%E6%96%B9%E6%B3%95%E3%81%AF%EF%BC%9F/960827749/