I’ll have to go back to buster/4.19 in order to test this - hopefully that was the problem there. I did update u-boot after I noticed the same thing that you did and no longer saw the PIN30 error. I still can’t shut down the v1.1 BBGW boards without them immediately rebooting.
Here’s what I see when I run “systemctl poweroff” on version 1.1 BBGW boards. Version 1.0 boards immediately power down:
[ 264.212466] reboot: Power down
U-Boot SPL 2022.04-g4237220b (Apr 08 2022 - 13:42:29 +0000)
Trying to boot from MMC2
CPU : AM335X-GP rev 2.1
Model: TI AM335x BeagleBone Black
DRAM: 512 MiB
Reset Source: Power-on reset has occurred.
RTC 32KCLK Source: External.
Core: 150 devices, 14 uclasses, devicetree: separate
WDT: Started wdt@44e35000 with servicing (60s timeout)
MMC: OMAP SD/MMC: 0, OMAP SD/MMC: 1
Loading Environment from EXT4… Board: BeagleBone Black
not set. Validating first E-fuse MAC
BeagleBone Black:
Model: SeeedStudio BeagleBone Green Wireless:
…
Thanks so much for what you do - you’re an incredible asset to this community.
FWIW, here’s the latest output from beagle-version under bullseye/5.10
eeprom:[A335BNLTGW1ABBGW21114679]
model:[TI_AM335x_BeagleBone_Green_Wireless]
dogtag:[BeagleBoard.org Debian Buster IoT Image 2020-05-18]
bootloader:[eMMC-(default)]:[/dev/mmcblk1]:[U-Boot SPL 2022.04-g4237220b (Apr 08 2022 - 13:42:29 +0000)]:[location: dd MBR]
UBOOT: Booted Device-Tree:[am335x-boneblack-uboot.dts]
UBOOT: Loaded Overlay:[BB-BBGW-WL1835-00A0.kernel]
UBOOT: Loaded Overlay:[BB-BONE-eMMC1-01-00A0.kernel]
UBOOT: Loaded Overlay:[uio-pruss-5.4]
kernel:[5.10.106-ti-r41]
/boot/uEnv.txt Settings:
uboot_overlay_options:[enable_uboot_overlays=1]
uboot_overlay_options:[uboot_overlay_addr4=/lib/firmware/CT-INPUT-KEYS-00A0.dtbo]
uboot_overlay_options:[uboot_overlay_addr5=/lib/firmware/CT-PWM-P8_34-00A0.dtbo]
uboot_overlay_options:[uboot_overlay_addr6=/lib/firmware/CT-EGPIO-00A0.dtbo]
uboot_overlay_options:[disable_uboot_overlay_video=1]
uboot_overlay_options:[disable_uboot_overlay_audio=1]
uboot_overlay_options:[disable_uboot_overlay_adc=1]
uboot_overlay_options:[uboot_overlay_pru=/lib/firmware/uio-pruss-5.4.dtbo]
pkg check: to individually upgrade run: [sudo apt install --only-upgrade ]
pkg:[bb-cape-overlays]:[4.14.20210821.0-0~bullseye+20210821]
pkg:[bb-customizations]:[1.20220325.0-0~bullseye+20220325]
pkg:[bb-usb-gadgets]:[1.20220316.1-0~bullseye+20220316]
pkg:[bb-wl18xx-firmware]:[1.20211222.2-0~bullseye+20211222]
pkg:[kmod]:[28-1]
WARNING:pkg:[librobotcontrol]:[NOT_INSTALLED]
pkg:[firmware-ti-connectivity]:[20210315-3]
groups: ‘debian’: no such user
groups:
cmdline:[console=ttyS0,115200n8 root=/dev/mmcblk1p1 ro rootfstype=ext4 rootwait coherent_pool=1M net.ifnames=0 lpj=1990656 rng_core.default_quality=100 quiet]
dmesg | grep remote
[ 3.848095] remoteproc remoteproc0: wkup_m3 is available
[ 30.337012] remoteproc remoteproc0: powering up wkup_m3
[ 30.337052] remoteproc remoteproc0: Booting fw image am335x-pm-firmware.elf, size 217148
[ 30.337481] remoteproc remoteproc0: remote processor wkup_m3 is now up
[ 44.158929] Bluetooth: hci0: change remote baud rate command in firmware
dmesg | grep pru
dmesg | grep pinctrl-single
[ 3.709498] pinctrl-single 44e10800.pinmux: 142 pins, size 568
dmesg | grep gpio-of-helper
lsusb
Bus 001 Device 002: ID 0424:2514 Microchip Technology, Inc. (formerly SMSC) USB 2.0 Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
END
OK, I reflashed a v1.1 BBGW board back to buster/4.19, updated u-boot, and bluetooth still doesn’t work. The board hard hangs after it fails to download the bluetooth firmware:
I also reflashed a v1.0 board back to buster/v4.19, did the same update of u-boot, and both the bluetooth and power down worked fine. It still generates the failed firmware download warning, but then recovers and bluetooth works normally. I’m attaching a picture of the v1.0 and v1.1 boards side by side, and you can see that there has been a significant redesign. I’ve found nothing online documenting these changes.
That seems to have fixed the bluetooth problem, thanks! Version 1.1 board still won’t power down though. Also see this on the console immediately after I execute systemctl poweroff:
That seems to work for 4.19. I also tried upgrading from 5.10.106-ti-r41 to 5.10.106-ti-r42, but that unfortunately broke bluetooth again on the BBGW v1.1…
Here’s the output of beagle-version just prior to upgrading the kernel with update_kernel.sh. After the kernel upgrade bluetooth no longer works and I have to reflash to go back. Let me know if you need to see the output after the upgrade.
eeprom:[A335BNLTGW1ABBGW20110520]
model:[TI_AM335x_BeagleBone_Green_Wireless]
dogtag:[BeagleBoard.org Debian Buster IoT Image 2020-05-18]
bootloader:[eMMC-(default)]:[/dev/mmcblk1]:[U-Boot SPL 2022.04-g4237220b (Apr 08 2022 - 13:42:29 +0000)]:[location: dd MBR]
UBOOT: Booted Device-Tree:[am335x-boneblack-uboot.dts]
UBOOT: Loaded Overlay:[BB-BBGW-WL1835-00A0.kernel]
UBOOT: Loaded Overlay:[BB-BONE-eMMC1-01-00A0.kernel]
UBOOT: Loaded Overlay:[uio-pruss-5.4]
kernel:[5.10.106-ti-r41]
/boot/uEnv.txt Settings:
uboot_overlay_options:[enable_uboot_overlays=1]
uboot_overlay_options:[uboot_overlay_addr4=/lib/firmware/CT-INPUT-KEYS-00A0.dtbo]
uboot_overlay_options:[uboot_overlay_addr5=/lib/firmware/CT-PWM-P8_34-00A0.dtbo]
uboot_overlay_options:[uboot_overlay_addr6=/lib/firmware/CT-EGPIO-00A0.dtbo]
uboot_overlay_options:[disable_uboot_overlay_video=1]
uboot_overlay_options:[disable_uboot_overlay_audio=1]
uboot_overlay_options:[disable_uboot_overlay_adc=1]
uboot_overlay_options:[uboot_overlay_pru=/lib/firmware/uio-pruss-5.4.dtbo]
pkg check: to individually upgrade run: [sudo apt install --only-upgrade ]
pkg:[bb-cape-overlays]:[4.14.20210821.0-0~bullseye+20210821]
pkg:[bb-customizations]:[1.20220325.0-0~bullseye+20220325]
pkg:[bb-usb-gadgets]:[1.20220316.1-0~bullseye+20220316]
pkg:[bb-wl18xx-firmware]:[1.20211222.2-0~bullseye+20211222]
pkg:[kmod]:[28-1]
WARNING:pkg:[librobotcontrol]:[NOT_INSTALLED]
pkg:[firmware-ti-connectivity]:[20210315-3]
groups: ‘debian’: no such user
groups:
cmdline:[console=ttyS0,115200n8 root=/dev/mmcblk1p1 ro rootfstype=ext4 rootwait coherent_pool=1M net.ifnames=0 lpj=1990656 rng_core.default_quality=100 quiet]
dmesg | grep remote
[ 3.852102] remoteproc remoteproc0: wkup_m3 is available
[ 29.261015] remoteproc remoteproc0: powering up wkup_m3
[ 29.261055] remoteproc remoteproc0: Booting fw image am335x-pm-firmware.elf, size 217148
[ 29.261355] remoteproc remoteproc0: remote processor wkup_m3 is now up
[ 40.501263] Bluetooth: hci0: change remote baud rate command in firmware
dmesg | grep pru
dmesg | grep pinctrl-single
[ 3.712010] pinctrl-single 44e10800.pinmux: 142 pins, size 568
dmesg | grep gpio-of-helper
lsusb
Bus 001 Device 002: ID 05e3:0610 Genesys Logic, Inc. Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
END
Bluetooth is working for me in r41 though and breaks when I update to r42 using update_kernel.sh. Running apt update/upgrade doesn’t upgrade the kernel for me. Should it?
That’s a key post that I somehow missed, and I’m happy to know about the new method. Still no bueno after upgrading using apt install bbb.io-kernel-5.10-ti-am335x though. The bluetooth light doesn’t come on. Here’s the new output of beagle-version. Don’t know how to get things working again without reflashing back to r41.
eeprom:[A335BNLTGW1ABBGW20110520]
model:[TI_AM335x_BeagleBone_Green_Wireless]
dogtag:[BeagleBoard.org Debian Buster IoT Image 2020-05-18]
bootloader:[eMMC-(default)]:[/dev/mmcblk1]:[U-Boot SPL 2022.04-g4237220b (Apr 08 2022 - 13:42:29 +0000)]:[location: dd MBR]
UBOOT: Booted Device-Tree:[am335x-boneblack-uboot.dts]
UBOOT: Loaded Overlay:[BB-BBGW-WL1835-00A0.kernel]
UBOOT: Loaded Overlay:[BB-BONE-eMMC1-01-00A0.kernel]
UBOOT: Loaded Overlay:[uio-pruss-5.4]
UBOOT: Loaded Overlay:[wl1835_bt]
kernel:[5.10.109-ti-r42]
/boot/uEnv.txt Settings:
uboot_overlay_options:[enable_uboot_overlays=1]
uboot_overlay_options:[uboot_overlay_addr4=/lib/firmware/CT-INPUT-KEYS-00A0.dtbo]
uboot_overlay_options:[uboot_overlay_addr5=/lib/firmware/CT-PWM-P8_34-00A0.dtbo]
uboot_overlay_options:[uboot_overlay_addr6=/lib/firmware/CT-EGPIO-00A0.dtbo]
uboot_overlay_options:[disable_uboot_overlay_video=1]
uboot_overlay_options:[disable_uboot_overlay_audio=1]
uboot_overlay_options:[disable_uboot_overlay_adc=1]
uboot_overlay_options:[uboot_overlay_pru=/lib/firmware/uio-pruss-5.4.dtbo]
pkg check: to individually upgrade run: [sudo apt install --only-upgrade ]
pkg:[bb-cape-overlays]:[4.14.20210821.0-0~bullseye+20210821]
pkg:[bb-customizations]:[1.20220325.0-0~bullseye+20220325]
pkg:[bb-usb-gadgets]:[1.20220316.1-0~bullseye+20220316]
pkg:[bb-wl18xx-firmware]:[1.20211222.2-0~bullseye+20211222]
pkg:[kmod]:[28-1]
WARNING:pkg:[librobotcontrol]:[NOT_INSTALLED]
pkg:[firmware-ti-connectivity]:[20210315-3]
groups: ‘debian’: no such user
groups:
cmdline:[console=ttyS0,115200n8 root=/dev/mmcblk1p1 ro rootfstype=ext4 rootwait coherent_pool=1M net.ifnames=0 lpj=1990656 rng_core.default_quality=100 quiet]
dmesg | grep remote
[ 3.852323] remoteproc remoteproc0: wkup_m3 is available
[ 28.960127] remoteproc remoteproc0: powering up wkup_m3
[ 28.960166] remoteproc remoteproc0: Booting fw image am335x-pm-firmware.elf, size 217148
[ 28.960448] remoteproc remoteproc0: remote processor wkup_m3 is now up
dmesg | grep pru
dmesg | grep pinctrl-single
[ 3.714887] pinctrl-single 44e10800.pinmux: 142 pins, size 568
dmesg | grep gpio-of-helper
lsusb
Bus 001 Device 002: ID 05e3:0610 Genesys Logic, Inc. Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
END
I tried copying /boot/dtbs/5.10.106-ti-r41/overlays/BB-BBGW-WL1835-00A0.dtbo to /boot/dtbs/5.10.109-ti-r42/overlays/BB-BBGW-WL1835-00A0.dtbo after doing the upgrade. That makes Bluetooth work again.