BBB Won't Shutdown

I recently added an external 5V supply to the BBB barrel jack because I am going to add a relay cape.

If I issue “sudo shutdown -h now” the BBB looks like it is going to shutdown judging by the messages on the Jtag port but then re-boots?
See messages below.

I am using USB connectivity. If I unplug the 5V adapter and issue “sudo shuwdown -h now:” it works.

[ OK ] Reached target Shutdown.
[ OK ] Reached target Final Step.
[ OK ] Started Power-Off.
[ OK ] Reached target Power-Off.
[44567.694668] reboot: Power down <=== This is where it should power off

U-Boot SPL 2019.04-00002-gbb4af0f50f (Jul 08 2019 - 11:44:39 -0500) <=== This is what happens
Trying to boot from MMC2

U-Boot 2019.04-00002-gbb4af0f50f (Jul 08 2019 - 11:44:39 -0500), Build: jenkins-github_Bootloader-Builder-128

CPU : AM335X-GP rev 2.1
I2C: ready
DRAM: 512 MiB
No match for driver ‘omap_hsmmc’
No match for driver ‘omap_hsmmc’
Some drivers were not found
Reset Source: Power-on reset has occurred.
RTC 32KCLK Source: External.
MMC: OMAP SD/MMC: 0, OMAP SD/MMC: 1

BeagleBoard.org Debian IoT Image 2020-03-26
Linux beaglebone 4.19.94-ti-r41 #1buster SMP PREEMPT Sat Mar 21 03:13:40 UTC 2020 armv7l GNU/Linux

Thanks

Use:

sudo systemctl poweroff

Regards,

Sorry i can't re-produce this on a BeagleBone Green..

Please run: sudo /opt/scripts/tools/version.sh so i can more easily validate..

debian@beaglebone:~$ sudo /opt/scripts/tools/version.sh
[sudo] password for debian:
git:/opt/scripts/:[62ea733f04b46cbcc4988eb0748bddac2301ede0]
eeprom:[A335BNLT�BBG115091771]
model:[TI_AM335x_BeagleBone_Green]
dogtag:[BeagleBoard.org Debian IoT Image 2020-03-30]
bootloader:[microSD-(push-button)]:[/dev/mmcblk0]:[U-Boot
2019.04-00002-g07d5700e21]:[location: dd MBR]
UBOOT: Booted Device-Tree:[am335x-boneblack-uboot-univ.dts]
UBOOT: Loaded Overlay:[AM335X-PRU-RPROC-4-19-TI-00A0]
UBOOT: Loaded Overlay:[BB-ADC-00A0]
UBOOT: Loaded Overlay:[BB-BONE-eMMC1-01-00A0]
UBOOT: Loaded Overlay:[M-BB-BBG-00A0]
kernel:[4.19.94-ti-r41]
nodejs:[v10.15.2]
/boot/uEnv.txt Settings:
uboot_overlay_options:[enable_uboot_overlays=1]
uboot_overlay_options:[uboot_overlay_pru=/lib/firmware/AM335X-PRU-RPROC-4-19-TI-00A0.dtbo]
uboot_overlay_options:[enable_uboot_cape_universal=1]
pkg check: to individually upgrade run: [sudo apt install --only-upgrade <pkg>]
pkg:[bb-cape-overlays]:[4.14.20200330.0-0rcnee0~buster+20200330]
pkg:[bb-wl18xx-firmware]:[1.20200322.0-0rcnee0~buster+20200322]
pkg:[kmod]:[26-1]
pkg:[librobotcontrol]:[1.0.4-git20190227.1-0rcnee0~buster+20190327]
pkg:[firmware-ti-connectivity]:[20190717-2rcnee1~buster+20200305]
groups:[debian : debian adm kmem dialout cdrom floppy audio dip video
plugdev users systemd-journal bluetooth netdev i
2c gpio pwm eqep remoteproc admin spi iio docker tisdk weston-launch
xenomai cloud9ide]
cmdline:[console=ttyO0,115200n8 bone_capemgr.uboot_capemgr_enabled=1
root=/dev/mmcblk0p1 ro rootfstype=ext4 rootwait c
oherent_pool=1M net.ifnames=0 lpj=1990656 rng_core.default_quality=100]
dmesg | grep remote
dmesg | grep pru
dmesg | grep pinctrl-single
[ 0.926187] pinctrl-single 44e10800.pinmux: 142 pins, size 568
dmesg | grep gpio-of-helper
[ 0.939661] gpio-of-helper ocp:cape-universal: ready
lsusb
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
END

Regards,

Hi Ken,

Tarmo,

Thanks. That would explain why another guy does not have this issue.

My thought is to do away with the USB → P.C. cable and go with Ethernet.
That way BBB only has 1 power source. Removing USB power then
sudo shutdown -h now works.

Ken

Have you tried 'poweroff"?

Ex:
sudo poweroff

Cheers,

Jon

Jon,

Yes. Same result.

sudo poweroff

Re-boot. See my reply to Tarmo.

Oh, you were using both the USB power and the Barrel Jack power?

Is this supported?

I always thought it was one or the other; not both.

Jon

Jon,

Originally when I got the BBB I only needed power from the USB cable.

However after adding a “cape” I needed more power. So the 5V
barrel power.

After looking over the schematic for the BBB and the TI 65217 power
management IC it appears it will take power from either. And if one
drops it will use the other.

That’s why I am moving to an Ethernet connection.

Ken