Docs and bb-boot for USB Internet Sharing for the Pocket Beagle 2

Currently, I am trying Armbian on the Pocket Beagle 2.

I see there is a way, from the docs pages, to use Linux and iptables to handle USB network sharing.

I am getting stuck.

/etc/default/ files have no such file called bb-boot. In the /sbin/ files, there is also no /route file.

#!/bin/sh -e
#

if ! id | grep -q root; then
        echo "must be run as root"
        exit
fi

if [ -f /etc/default/bb-boot ] ; then
        . /etc/default/bb-boot
fi

if [ "x${USB_CONFIGURATION}" = "x" ] ; then
        USB0_SUBNET=192.168.7
        DNS_NAMESERVER=8.8.8.8
fi

/sbin/route add default gw ${USB0_SUBNET}.1 || true

ping -c1 ${DNS_NAMESERVER}
echo "nameserver ${DNS_NAMESERVER}" >> /etc/resolv.conf

#

The file with errors I am coming across is via an Armbian release. Has anyone figured out what to do so far to gain Internet Sharing via USB for the rolling release of Armbian?

Seth

side note: is bb-boot a dpkg installable package I can install via debian and do things with it?

Off to check. Also, I guess I could add/subtract a bit with my file usage instead of plain-Jane here and not making any advancements on my own.

Seth

P.S. Anyway, my com port is iffy but works with tio /dev/ttyACM0 on Linux and not COM ports on Windows 11. Heads up…

gaining ground...

I found this tidbit: https://github.com/RobertCNelson/boot-scripts/blob/39e66ba124a2f42838e6069e16f1f394b2bdef6c/boot/default/bb-boot#L4

But, I see it is five years old and the last post was a Gargantuan of a time ago. So, off to relocate more ideas and preserve my sainness in this muck I call life. On a happier note, bananas are delicious.

bb-boot is optional and not required, but the USB0_SUBNET variable would need to be set appropriate to your situation.

The route command would undoubtably be part of a package of networking tools. Perhaps the iproute2 toolset?

Yes. iproute2 is available and the SUBNET when I get UP instead of DOWN seems to brick it.

Seth

P.S. Armbian is what I am using but…

  1. The board is powering down on its own now.
  2. I have not control outside of /boot/.
  3. I guess I have to reflash and try again?
I will flash once more. The board has become odd with a Capital O!

anyway, until another day!

https://github.com/beagleboard/repos-arm64/tree/main/bb-usb-gadgets/suite/trixie/debian

Regards,

1 Like

Okay. I am going to flash a new image and try again. Maybe I did not read the correct data for the Linux set up of USB networking and sharing.

Seth