...
URL:
git://git.kernel.org/pub/scm/linux/kernel/git/vireshk/linux.git
Branch:
virtio/msg-v1
Commit: 1e5e683a3d1aa8b584f279edd144b4b1d5aad45c
...
Branch: master (at the time)
Commit:
b7890a2c3d6949e8f462bb3630d5b48ecae8239f
This QEMU has support for I2C needed belowbuild of QEMU is necessary to use the I2C device with the argument -device ds1338,address=0x20
as described later in the document.
Build as:
Code Block |
---|
git clone https://github.com/vireshk/qemu mkdir -p build/qemu mkdir -p build/qemu-install cd build/qemu ../../qemu/configure \ --target-list="aarch64-softmmu" \ --prefix="$(cd ../qemu-install; pwd)" \ --enable-fdt --enable-slirp --enable-strip \ --disable-docs \ --disable-gtk --disable-opengl --disable-sdl \ --disable-dbus-display --disable-virglrenderer \ --disable-vte --disable-brlapi \ --disable-alsa --disable-jack --disable-oss --disable-pa make -j10 make install |
...
If guestfish
is not available, as a last resort you can scp
the files while QEMU is running with scp -p P 8022 file root@localhost:/root/
. To get an ssh login use ssh -p root@loclahost (Capitol P
for scp and lowercase p
for ssh.). The Debian nocloud image recommended at the next step has the default credentials root
and no password. You will need to install an OpenSSH server apt update && apt install -y openssh-server
then enable it by:
edit
/etc/ssh/sshd_config
and un-comment the lines:Code Block Port 22 AddressFamily any ListenAddress 0.0.0.0 ListenAddress :: HostKey /etc/ssh/ssh_host_rsa_key HostKey /etc/ssh/ssh_host_ecdsa_key HostKey /etc/ssh/ssh_host_ed25519_key PermitRootLogin yes PasswordAuthentication yes PermitEmptyPasswords yes
service ssh restart
...