Page 1 of 1

SABnzbd on Ubuntu on emulated RISC-V / riscv64: howto

Posted: May 1st, 2021, 2:16 pm
by sander
SABnzbd on Ubuntu on emulated RISC-V / riscv64 is easy:

Based on

Get stuff:

Code: Select all

sudo apt install qemu-system-misc opensbi u-boot-qemu qemu-utils

xz -dk ubuntu-20.04.2-preinstalled-server-riscv64.img.xz
Start the Ubuntu on RISC64:

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
... even sabyenc for RISC64 gets installed.

Code: Select all

[email protected]:~$ file /usr/lib/python3/dist-packages/
/usr/lib/python3/dist-packages/ ELF 64-bit LSB shared object, UCB RISC-V, version 1 (SYSV), dynamically linked, BuildID[sha1]=bc08631364832c0836639b1e23e18d17510fdb01, stripped
SAB is reachable from the host on