Has anyone made any progress on creating a whonix gateway on a raspberry pi 4? I want to route all my network traffic through a whonix gateway on a raspberry pi.
If there are any updates these should/would be posted here in this open ticket.
Okay, i successfully build 100GB sparse --raw “firmware” and i have 16GB sd-card for my RPi3B. What’s next?
“virt-df -h” says that the real size of firmware is ~4Gb
I tried to reduce the size of the firmware, but it didn’t work. System won’t start
resize2fs-size /dev/sda1 10G
qemu-img resize --shrink -f raw Whonix.raw 14G
There are options?
“There is some build option to decrease the disk size (need to look it up)”, which option?
I found this: VMSIZE=“100G”
Am i right, to build image for RPi3B i need to do next steps:
sudo apt install git time curl apt-cacher-ng lsb-release fakeroot dpkg-dev fasttrack-archive-keyring wget https://whonix.org/derivative.asc gpg --import derivative.asc git clone --depth=1 --branch 188.8.131.52-developers-only --jobs=4 --recurse-submodules --shallow-submodules https://gitlab.com/whonix/Whonix.git cd Whonix git verify-tag 184.108.40.206-developers-only git checkout --recurse-submodules -b 220.127.116.11-developers-only git status sudo ./whonix_build --target raw --flavor whonix-gateway-rpi --build --arch arm64 --kernel linux-image-arm64 --headers linux-headers-arm64 --vmsize 14G
And then i burn that raw in my sd card?
That might work.
Okay, I’ve written the image to the SD card using: dd if=Whonix.raw of=/dev/sdX
The problem is that I still get a black screen
Raspbian runs stably under the same conditions. My 16GB SD card has the following sections:
- unnalocated 2.00MiB
- /dev/sda1 14GiB (used 2.10 GiB), flags: boot
- unnalocated 875.00MiB
Something is wrong, where is the FAT32 first-stage bootloader?
Generic Bug Reproduction
i.e. how would one debug a black screen issue on Debian?
The system assembled using your own instructions does not contain the necessary to run first-stage bootloader. As you know, the initialization process of a regular ARM64 processor is different from the RPi… Nothing needs to be debugged, it’s just that at the moment your instructions for assembling the system are out of date and require serious improvement in terms of /boot
P.S. I see this issue was already discussed with Algernon in August 2018, and there did the file go? https://github.com/Whonix/Whonix/blob/master/build-steps.d/2375_build_rpi_fs
It turns out that you stopped supporting RPi due to the lack of maintainers?
That’s why I posted this link:
RPI support would need to be added here:
Whonix/2375_build-arm64-fs at master · Whonix/Whonix · GitHub
It will either be contributed or won’t be happening. I guess chances of this being contributed are slim as there’s no progress for a long time.
Maybe I can combine 2375_build-arm64-fs with the old 2375_build_rpi_fs…
@raspi I was able to build with zero errors. Yay.
But It can’t boot…
I mounted the sd card and noticed in fstab that there is only /proc and /dev/cdrom, is that normal?? No boot or root mountpoint? also in /boot/firmware/cmdline, root=/dev/mapper/loop0p1?? Should I change that?
Edit to my last post:
my mistake, actually, fstab shows dev by uuid for / (root).