Black Wireless powers up on its own after shutdown

Ah there’s the issue for Bluetooth…

Since it’s using the *bb.org-overlays"…

UBOOT: Booted Device-Tree:[am335x-boneblack-uboot.dts]
UBOOT: Loaded Overlay:[BB-BBGW-WL1835-00A0.bb.org-overlays]
UBOOT: Loaded Overlay:[BB-BONE-eMMC1-01-00A0.bb.org-overlays]
UBOOT: Loaded Overlay:[uio-pruss-5.4]

I’d first try updating u-boot, as this will use the kernel path for overlays…

sudo apt update
sudo apt install bb-u-boot-am335x-evm
sudo /opt/u-boot/bb-u-boot-am335x-evm/install.sh
sudo reboot

Then retest beagle-version

Edit it should look similar to this…

UBOOT: Booted Device-Tree:[am335x-bonegreen-wireless-uboot-univ.dts]
UBOOT: Loaded Overlay:[BB-ADC-00A0.kernel]
UBOOT: Loaded Overlay:[BB-BBGW-WL1835-00A0.kernel]
UBOOT: Loaded Overlay:[BB-BONE-eMMC1-01-00A0.kernel]
kernel:[5.15.29-bone22]

Regards,

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

U-Boot 2022.04-g4237220b (Apr 08 2022 - 13:42:29 +0000)

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:

[ 36.489141] Bluetooth: hci0: command 0xfd06 tx timeout
[ 44.521116] Bluetooth: hci0: send command failed
[ 44.525891] Bluetooth: hci0: download firmware failed, retrying…

I did manage to capture the output of version.sh before it locked up:

git:/opt/scripts/:[2338ea72e66525937309923c4bf22bc7cbb450b9]
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 2019.04-g923f8b8 (Jan 02 2022 - 19:05:15 +0000)]:[location: dd MBR]
bootloader:[eMMC-(default)]:[/dev/mmcblk1]:[U-Boot 2019.04-g923f8b8]:[location: dd MBR]
UBOOT: Booted Device-Tree:[am335x-boneblack-uboot.dts]
UBOOT: Loaded Overlay:[AM335X-PRU-UIO-00A0]
UBOOT: Loaded Overlay:[BB-BBGW-WL1835-00A0.kernel]
UBOOT: Loaded Overlay:[BB-BONE-eMMC1-01-00A0.kernel]
kernel:[4.19.94-ti-r72]
/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/AM335X-PRU-UIO-00A0.dtbo]
pkg check: to individually upgrade run: [sudo apt install --only-upgrade ]
pkg:[bb-cape-overlays]:[4.14.20210821.0-0~buster+20210821]
pkg:[bb-customizations]:[1.20220325.0-0~buster+20220325]
pkg:[bb-usb-gadgets]:[1.20220316.1-0~buster+20220316]
pkg:[bb-wl18xx-firmware]:[1.20211222.2-0~buster+20211222]
pkg:[kmod]:[26-1]
WARNING:pkg:[librobotcontrol]:[NOT_INSTALLED]
pkg:[firmware-ti-connectivity]:[20190717-2rcnee1~buster+20200305]
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
[ 26.432221] remoteproc remoteproc0: wkup_m3 is available
[ 26.583569] remoteproc remoteproc0: powering up wkup_m3
[ 26.583603] remoteproc remoteproc0: Booting fw image am335x-pm-firmware.elf, size 217148
[ 26.583883] remoteproc remoteproc0: remote processor wkup_m3 is now up
[ 28.428980] Bluetooth: hci0: change remote baud rate command in firmware
dmesg | grep pru
dmesg | grep pinctrl-single
[ 0.863336] pinctrl-single 44e10800.pinmux: 142 pins, size 568
dmesg | grep gpio-of-helper
[ 0.864603] gpio-of-helper ocp:cape-universal: ready
lsusb
Bus 001 Device 002: ID 0424:2514 Standard Microsystems Corp. USB 2.0 Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
END

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.
IMG_6400

ugh… that was the same bug that affected the BeagleBone Green Gateway…

I’ve pinged Seeed for a 1.1 schematic change… Where did you get your 1.1 board? i need to order one…

i’m thinking i’ll need to move the bluetooth initialization back out of the kernel again to the hciattch script…

Regards,

I ordered it direct from Seeed.

I have extras and can send you one if you’d like.

No Worries, i’ll wait on Seeed…

Ps give this a try… You’ll have to install it first on the one that boots, then move the card over…

git clone -b v4.19.x-ti-overlays https://github.com/beagleboard/BeagleBoard-DeviceTrees
cd ./BeagleBoard-DeviceTrees/
make
sudo make install

Regards,

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:

[ 39.619097] Bluetooth: hci0: sending frame failed (-49)

Just a quick update on this, i’ve merged the Device Tree change, so 4.19.94-ti-r73 is now safe for you to upgrade too…

Regards,

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…

hi @ridgelift that’s disappointing, ‘r42’ has the same changes… please run…

sudo beagle-version

Regards,

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

This Bluetooth issue was fixed in ‘r42’…

sudo apt update
sudo apt upgrade

Regards,

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?

has been replaced by: [ARMHF] Debian 10.x/11.x/12.x Kernel Updates

Regards,

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.

ah fun…

So what works on v5.10.x broke v4.19.x and what works on v4.19.x breaks v5.10.x :wink:

edit: so 5.10.109-ti-r43 is now out… with what was r41…

Regards,

Curious behavior indeed! Did you hear back from Seeed on the BBGW v1.1 changes? I haven’t seen anything new posted on their github or wiki pages.

edit: 5.10.109-ti-r43 works great, thanks!