Progress on Whonix for arm64 (but none for RPi) was made. If interested in Whonix for arm64, subscribe to Whonix on Mac M1 (ARM) - User Support (still unsupported at time of writing). Forum title includes
mac but the pull request being discussed in generic for arm64. Unspecific to
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 18.104.22.168-developers-only --jobs=4 --recurse-submodules --shallow-submodules https://gitlab.com/whonix/Whonix.git cd Whonix git verify-tag 22.214.171.124-developers-only git checkout --recurse-submodules -b 126.96.36.199-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:
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?