radio24/TorBox

Modifying debian/mini script to create fully open source TorBox-Mini using an Orange Pi Zero 2

PapiJalopy opened this issue · 2 comments

If you have time it would be beneficial to the open source/foss community and individuals if you could make a modified version of the Debian install script to include configurations to produce a torbox-mini variant for Orange Pi Zero 2.

The Raspberry Pi is not fully open source and parts of it such as the Broadcom SoC, GPU firmware, camera and display interface, first and second stage bootloaders, firmware blobs, and binary only drivers, as well as parts of the kernel are proprietary.

Ill be happy to help in any way I can.

From what I understand that needs to be done is adding the config.txt and cmdline.txt parameters and modifying the script to point to the "mini" configured files such as interfaces, dhcpd, iptables, rclocal, etc. or possibly just modifying the run_install_mini.sh script instead of the Debian script and removing any raspberry pi specific kernel updates and stuff like that and changing the repositories to Debian ones. I'm not sure if the first run script applies to a normal Debian install but if it can we can possibly edit that too.

Ill try to start working on it and see if can hack together both the mini and Debian scripts to make a functional script that will work with the orange pi. To my understanding on the Orange Pi its just a bare bones Debian install but the same functionality with RNDIS and CDC_ETHER will still work. If it comes down to it ill do a manual install once I get the Orange Pi Zero 2 W in the mail just as a proof of concept.

If you download a raw Debian image for Orange Pi Zero, TorBox's Debian install script should work without problem.

We are currently focusing on the TorBox mini based on Raspberry Pi. If we are finished successfully integrating the Raspberry Pi Zero 2 W specific code into the main TorBox install script for Raspberry Pi OS, then we can migrate the changes to the Debian install script.

The question is if this is necessary. According to this article, Raspberry Pi OS is also running on some Orange Pi modells.

If possibly I have no problem using Pi OS, I have been testing the images provided by OrangePi, and have come across an "issue" that may cause a slight inconvenience.
0825-zero2w-img01-697581249

Only the top left USB0 port can be changed between host and device mode, while the right USB1 is fixed as host mode.

This means that USB adapters such as these ones -

Sfa3d0bdfbc3d4d36b6bf68b2d3ed9d8aK jpg_640x640Q90

Zero-key-USB-Adapter-Raspberry-Pi-Zero-BadUSB-Expasion-Board-3-3020644937

will not work because they are piggy backing off of the USB1 pads on the rear of the device.