The quick start guide is confusing and there seems to be typos at the crucial stage as well, but am I right that in order to connect the pocketbeagle 2 to the internet when you use MACOS (or windows) that you need a rpi debug probe? Or are there other methods as well?
Run sudo systemctl restart systemd-networkd.service
On your windows 11 pc, press WIN+R.
Type ncpa.cpl and press enter
Note down what Ethernet # your PocketBeagle2 is being detected as. In my case its Ethernet 5
Right click the adapter that you are using for your PCs internet connection(most likely WiFi) and click Properties
Click the Sharing tab, then check āAllow other network users to connectā¦ā and in the drop down box select the Ethernet # of your PocketBeagle2 and press OK. It might pop up a warning saying that the LAN adapter will be set to use a random IP address. Press Yes to continue.
Now right click the Ethernet adapter of your PocketBeagle2 like in step #6 and press properties.
There should be an item called Internet Protocol Version 4 in the list and it should be checked/enabled. Click this text(Not the checkbox as doing so will disable it) and press properties.
Enter the following information following by pressing the OK button.
Thanks all, but on MAC this does not seem to work yet. I modified usb0.network as suggested. I connect manually with the pocketbeagle in the network settings on the MAC using 192.168.7.1 for both IP-address and router address.
I have enabled internetsharing for 192.168.7.1 and then ssh into the board (ssh debian@192.168.7.2). When I subsequently ping 8.8.8.8 there is no response. I can ping within the local debian network (192.168.7.1) and the IP adresses connected to my WiFi connection, but not my WiFi router. I guess that the Ethernet number thingy mentioned in the Windows recipe isnāt relevant since I see the PocketBeagle2 as a choseable connection in the sharing tab (internet sharing, share connection from WiFi to devices using PocketBeagle2).
I already made sure that the PocketBeagle2 is at the bottom of the service order list. (if it is above the internet service you use, it brakes the internet connection).
Should I perhaps try to modify usb1 as well or any of the others?
Ok, I had it working, but just for one (the first) session. I used the distro from the WEBpage and not the one that comes automatically in the imager software. And I also purely followed the instructions here and not this one from the quick start guide: āFirst you have to create pb2-internet.sh file on PocketBeagle 2 with the following content.ā
And after reboot it was again stuck⦠As in, no ping response.
I again installed from scratch and it worked until the first reboot. Now I also did update and upgrade, which fixed the reboot problem. āsudo dhclient usb0ā was used again and I also restarted the network service.
Finally, If I change /etc/systemd/network/usb0.network back to what it was originally, restart the service and then change it back again with sudo dhclient usb0, ping works again. Is that similar to what pb2-internet.sh is supposed to do? (but which does not work)
Maybe there is a service that is not starting up automatically at boot that the board needs for this to work (but somehow is triggered automatically when changing usb0.network) and that is somehow invisible? Or maybe something doesnāt run as root?
Although I now have a workaround, I hope there is a quicker way to make this work or better to let it work permanently after a reboot.
Just to document this (maybe for myself in the future). Steps to rewake up network connection when you canāt reach internet while you have internet sharing enabled on MacOs (Sonoma in this case).
Ok, this can be done much easier of course. Still I am curious how to do this automatically. After having done the steps above to configure usb0, the board will not connect automatically to the internet when you reboot the board. This is a fairly quick workaround to (re)awaken that connection:
Connect the board and SSH into it using debian@beaglebone.local or username@beaglebone.local