SABnzbd on Ubuntu on emulated RISC-V / riscv64: howto
Posted: May 1st, 2021, 2:16 pm
SABnzbd on Ubuntu on emulated RISC-V / riscv64 is easy:
Based on https://wiki.ubuntu.com/RISC-V
Get stuff:
Start the Ubuntu on RISC64:
Within the Ubuntu:
... even sabyenc for RISC64 gets installed.
SAB is reachable from the host on http://127.0.0.1:18080/sabnzbd/
Based on https://wiki.ubuntu.com/RISC-V
Get stuff:
Code: Select all
sudo apt install qemu-system-misc opensbi u-boot-qemu qemu-utils
wget https://cdimage.ubuntu.com/releases/20.04.2/release/ubuntu-20.04.2-preinstalled-server-riscv64.img.xz
xz -dk ubuntu-20.04.2-preinstalled-server-riscv64.img.xz
Code: Select all
qemu-system-riscv64 -machine virt -nographic -m 2048 -smp 4 -bios /usr/lib/riscv64-linux-gnu/opensbi/generic/fw_jump.elf -kernel /usr/lib/u-boot/qemu-riscv64_smode/uboot.elf -device virtio-net-device,netdev=eth0 -netdev user,id=eth0,hostfwd=tcp::18080-:8080 -drive file=ubuntu-20.04.2-preinstalled-server-riscv64.img,format=raw,if=virtio
Within the Ubuntu:
Code: Select all
sudo apt update
sudo apt install sabnzbdplus
sabnzbdplus -l2 -b0 -s 0.0.0.0
Code: Select all
ubuntu@ubuntu:~$ file /usr/lib/python3/dist-packages/sabyenc3.cpython-38-riscv64-linux-gnu.so
/usr/lib/python3/dist-packages/sabyenc3.cpython-38-riscv64-linux-gnu.so: ELF 64-bit LSB shared object, UCB RISC-V, version 1 (SYSV), dynamically linked, BuildID[sha1]=bc08631364832c0836639b1e23e18d17510fdb01, stripped