I am getting started with the PocketBeagle2. I have used the Black and Black Wireless units for several years under Debian Buster. I’m used to setting the pin mode with config-pin but this does not appear to be part of the distr for the PocketBeagle2 and I tried sudo apt update but that did not get config-pin. Is there a new way to set pin modes? I want to confirm that I can set the pins I’m planning to use to the modes that I expect before finishing a custom board layout. I’ve been burned by the documentation not being exactly right before! (We all make mistakes.)
The PocketBeagle is booted with Debian Trixie IOT Image 2025-09-05.
version, uName etc don’t work so I’m not able to give more details at this time.
I wrote this DTS to just configure the IO I need. It compiles and I put it in /lib/firmware and edited uEnv.txt to load it on boot and rebooted but I don’t think it’s loading. (There wasn’t a uEnv.txt in /boot so I had to create it.)
The IOs don’t appear in the file system.
I do not work with device tree overlays very often so I’m sure I’m missing something and will greatly appreciate any and all help on this!
@RobertCNelson Thank you! I am getting there!! I got the overlay to load and I can flip P2_02 and P2_04 on and off and I can bring up CAN0 and see all three I2C buses using i2cdetect.
But I am trying to also define an input switch using GPIO0_47 on P2.06 and it is not coming up. Here is the section in by dts file. The output gpio’s are working but the input is not.
My LEDS are still configured as outputs and the errors in dmseg are gone but I don’t see ‘switch’ in the tree. Is there anything wrong with this syntax?
evtest is not in the distribution and I cannot get to the internet from the PocketBeagle2 using the USB tether to my Windows 11 PC. So apt update can’t get to deb.debian.org
This has to be the single most frustrating thing about using Beagles!
Ok. So I had to take a little break but I’m back on this and no success so far.
If I enable ICS I lose connected to the PB2 over the Windows 11 wifi. ( I’m assuming I need to enable ICS on the network connection that has internet access. I think that’s what I have always done with the Black and Black Wireless)
So once I lose connection, I can’t execute sudo dhclient usb0 (assuming you meant dhclient and not dhpclient because dhpclient doesn’t exist)
Now, if I don’t enable ICS and connect to the PB2 and execute sudo dhclient usb0 I eventually get “Cannot find device “ubs0”
FYI this is running Debian Trixie IOT Imaged 2025-09-05