shutdown/reboot do not shut down or reboot

I’ve had my BBAI-64 for a couple weeks now. I’ve tried two SD cards and two Bullseye EdgeAI images.

When I sudo poweroff, sudo shutdown now or sudo shutdown -h now, my SSH connection disconnects and the device drops off the network as reported by my router but the power lights stay on and it continues to generate heat. When I sudo reboot, the device disappears as with “shutdown” but never comes back.

I don’t have a serial console hooked up to be able to monitor it more closely. I also haven’t been able to get the display output to work despite trying three Mini DP adapters (including two which claim to be active).

Is this intended behavior? How can I work around it and/or what should I do to troubleshoot?

Maybe try the non EdgeAI image? I have been using the XFCE image with great success. I do see the device stay on after a shutdown. I believe there is one last shutdown step that is not fully implemented yet.

I am using a MiniDP to VGA adapter. Works fine.

Shutdown is not fully implemented, it needs to be finished in a lower layer then the kernel.

Regards,

Hmm, OK, interesting. Is there any plan to implement that? Does this also apply to reboots?

sudo reboot should work as-is…

When you try to shutdown… sudo systemctl poweroff you’ll get this message:

ERROR:   System Off: operation not handled.

I’m pretty sure the ATF firmware has to do this (the kernel has halted), as we are working to bump from ti’s sdk 8.2 → 8.4 this might (fingers crossed) be working…

Regards,

OK, that’s good to hear. Thank you!

I also have a related problem.

At the next boot, my board can’t boot up successfully, just a blinking pointer on the screen.

I am booting from eMMC, if I boot from an SD card the board works normally.

I also tried loading a flasher image and rewriting it to eMMC but the problem persists.

This is the result list of devices when I boot from the SD card 32GB.

debian@BeagleBone:~$ df -h
Filesystem      Size  Used Avail Use% Mounted on
udev            991M     0  991M   0% /dev
tmpfs           215M  1.9M  213M   1% /run
/dev/mmcblk1p2   30G  7.6G   21G  28% /
tmpfs           1.1G     0  1.1G   0% /dev/shm
tmpfs           5.0M     0  5.0M   0% /run/lock
/dev/mmcblk1p1  127M   49M   78M  39% /boot/firmware
tmpfs           215M   28K  215M   1% /run/user/1000
debian@BeagleBone:~$ lsblk
NAME        MAJ:MIN RM  SIZE RO TYPE MOUNTPOINT
mmcblk1     179:0    0 29.7G  0 disk 
|-mmcblk1p1 179:1    0  128M  0 part /boot/firmware
`-mmcblk1p2 179:2    0 29.6G  0 part /

I don’t see the eMMC.

Please help, thanks.

Please run:

sudo beagle-version

Regards,

I still don’t see eMMC, the mmcblk1 is an SD card with 32GB

debian@BeagleBone:~$ sudo beagle-version
eeprom:[BBONEAI-64-B0-B0007801B00001643422BBBBBB2219]
model:[BeagleBoard.org_BeagleBone_AI-64]
dogtag:[BeagleBoard.org Debian Bullseye Xfce Image 2022-06-14]
strings: '/dev/mmcblk0boot0': No such file
bootloader:[/dev/mmcblk1]:[/boot/firmware/tiboot3.bin]:[U-Boot SPL 2021.01-g09210092 (Jun 01 2022 - 16:48:34 +0000)]
bootloader:[/dev/mmcblk1]:[/boot/firmware/tispl.bin]:[U-Boot SPL 2021.01-g09210092 (Jun 01 2022 - 16:48:34 +0000)]
bootloader:[/dev/mmcblk1]:[/boot/firmware/u-boot.img]:[U-Boot 2021.01-g09210092 (Jun 01 2022 - 16:48:34 +0000)]
UBOOT: Booted Device-Tree:[k3-j721e-beagleboneai64.dts]
kernel:[5.10.109-ti-arm64-r49]
nodejs:[v12.22.12]
pkg check: to individually upgrade run: [sudo apt install --only-upgrade <pkg>]
pkg:[bb-customizations]:[1.20221108.0-0~bullseye+20221108]
pkg:[bb-usb-gadgets]:[1.20220816.0-0~bullseye+20220816]
cmdline:[console=ttyS2,115200n8 earlycon=ns16550a,mmio32,0x02800000 root=/dev/mmcblk1p2 ro rootfstype=ext4 rootwait net.ifnames=0]
dmesg | grep remote
[    5.834447] remoteproc remoteproc0: b034000.pru is available
[    5.848290] remoteproc remoteproc1: b004000.rtu is available
[    5.862752] remoteproc remoteproc2: b00a000.txpru is available
[    5.869245] remoteproc remoteproc3: b038000.pru is available
[    5.875460] remoteproc remoteproc4: b006000.rtu is available
[    5.881596] remoteproc remoteproc5: b00c000.txpru is available
[    5.887877] remoteproc remoteproc6: b134000.pru is available
[    5.894014] remoteproc remoteproc7: b104000.rtu is available
[    5.900174] remoteproc remoteproc8: b10a000.txpru is available
[    5.906408] remoteproc remoteproc9: b138000.pru is available
[    5.912544] remoteproc remoteproc10: b106000.rtu is available
[    5.918774] remoteproc remoteproc11: b10c000.txpru is available
[   12.257613] k3-dsp-rproc 4d80800000.dsp: configured DSP for remoteproc mode
[   12.306599] remoteproc remoteproc12: 4d80800000.dsp is available
[   12.432050] remoteproc remoteproc12: powering up 4d80800000.dsp
[   12.438067] remoteproc remoteproc12: Booting fw image vision_apps_eaik/vx_app_rtos_linux_c6x_1.out, size 1461044
[   12.465332] k3-dsp-rproc 4d81800000.dsp: configured DSP for remoteproc mode
[   12.472542]  remoteproc12#vdev0buffer: assigned reserved memory node vision-apps-c66-dma-memory@a9000000
[   12.485349]  remoteproc12#vdev0buffer: registered virtio0 (type 7)
[   12.493067] remoteproc remoteproc13: 4d81800000.dsp is available
[   12.503854] remoteproc remoteproc12: remote processor 4d80800000.dsp is now up
[   12.550942] k3-dsp-rproc 64800000.dsp: configured DSP for remoteproc mode
[   12.560543] remoteproc remoteproc14: 64800000.dsp is available
[   12.590254] remoteproc remoteproc13: powering up 4d81800000.dsp
[   12.598087] remoteproc remoteproc13: Booting fw image vision_apps_eaik/vx_app_rtos_linux_c6x_2.out, size 1461012
[   12.631479]  remoteproc13#vdev0buffer: assigned reserved memory node vision-apps-c66-dma-memory@a8000000
[   12.648107]  remoteproc13#vdev0buffer: registered virtio1 (type 7)
[   12.658721] remoteproc remoteproc13: remote processor 4d81800000.dsp is now up
[   13.017007] remoteproc remoteproc14: powering up 64800000.dsp
[   13.022904] remoteproc remoteproc14: Booting fw image vision_apps_eaik/vx_app_rtos_linux_c7x_1.out, size 13242432
[   13.035945] remoteproc remoteproc14: unsupported resource 65538
[   13.060572]  remoteproc14#vdev0buffer: assigned reserved memory node vision-apps-c71-dma-memory@aa000000
[   13.070192]  remoteproc14#vdev0buffer: registered virtio2 (type 7)
[   13.076422] remoteproc remoteproc14: remote processor 64800000.dsp is now up
[   13.096757] remoteproc remoteproc15: 41000000.r5f is available
[   13.102712] remoteproc remoteproc15: attaching to 41000000.r5f
[   13.115517]  remoteproc15#vdev0buffer: assigned reserved memory node vision-apps-r5f-dma-memory@a0000000
[   13.125097]  remoteproc15#vdev0buffer: registered virtio3 (type 7)
[   13.131297] remoteproc remoteproc15: remote processor 41000000.r5f is now attached
[   13.148291] platform 5c00000.r5f: configured R5F for remoteproc mode
[   13.221250] remoteproc remoteproc16: 5c00000.r5f is available
[   13.232594] platform 5d00000.r5f: configured R5F for remoteproc mode
[   13.245083] remoteproc remoteproc16: powering up 5c00000.r5f
[   13.251452] remoteproc remoteproc16: Booting fw image vision_apps_eaik/vx_app_rtos_linux_mcu2_0.out, size 572788
[   13.289620]  remoteproc16#vdev0buffer: assigned reserved memory node vision-apps-r5f-dma-memory@a2000000
[   13.294736] remoteproc remoteproc17: 5d00000.r5f is available
[   13.305010]  remoteproc16#vdev0buffer: registered virtio4 (type 7)
[   13.312778] remoteproc remoteproc17: powering up 5d00000.r5f
[   13.318480] remoteproc remoteproc17: Booting fw image vision_apps_eaik/vx_app_rtos_linux_mcu2_1.out, size 297932
[   13.319279] remoteproc remoteproc16: remote processor 5c00000.r5f is now up
[   13.343880] platform 5e00000.r5f: configured R5F for remoteproc mode
[   13.346085]  remoteproc17#vdev0buffer: assigned reserved memory node vision-apps-r5f-dma-memory@a4000000
[   13.371943]  remoteproc17#vdev0buffer: registered virtio5 (type 7)
[   13.393242] remoteproc remoteproc17: remote processor 5d00000.r5f is now up
[   13.448124] remoteproc remoteproc18: 5e00000.r5f is available
[   13.454802] remoteproc remoteproc18: Direct firmware load for j7-main-r5f1_0-fw failed with error -2
[   13.465266] remoteproc remoteproc18: powering up 5e00000.r5f
[   13.476027] remoteproc remoteproc18: Direct firmware load for j7-main-r5f1_0-fw failed with error -2
[   13.488323] platform 5f00000.r5f: configured R5F for remoteproc mode
[   13.494758] remoteproc remoteproc18: request_firmware failed: -2
[   13.543403] remoteproc remoteproc19: 5f00000.r5f is available
[   13.585594] remoteproc remoteproc19: Direct firmware load for j7-main-r5f1_1-fw failed with error -2
[   13.595677] remoteproc remoteproc19: powering up 5f00000.r5f
[   13.601432] remoteproc remoteproc19: Direct firmware load for j7-main-r5f1_1-fw failed with error -2
[   13.612851] remoteproc remoteproc19: request_firmware failed: -2
[ 1268.036483] Modules linked in: pvrsrvkm(O) xt_conntrack nft_chain_nat xt_MASQUERADE nf_nat nf_conntrack_netlink nf_conntrack nf_defrag_ipv6 nf_defrag_ipv4 xfrm_user xfrm_algo nft_counter xt_addrtype nft_compat nf_tables nfnetlink br_netfilter bridge stp llc aufs af_alg bnep rpmsg_char virtio_rpmsg_bus btusb btrtl btbcm btintel bluetooth cdns_csi2rx nls_ascii nls_cp437 iwlmvm mac80211 ti_am335x_adc libarc4 ti_k3_r5_remoteproc iwlwifi irq_pruss_intc sa2ul authenc cfg80211 ti_k3_dsp_remoteproc vxe_enc vxd_dec pci_endpoint_test j721e_csi2rx videobuf2_dma_sg videobuf2_dma_contig v4l2_mem2mem ov5640 v4l2_fwnode extcon_usbc_tusb322 rti_wdt uio_pdrv_genirq uio gb_uart(C) gb_spi(C) gb_raw(C) gb_netlink gb_loopback(C) gb_log(C) gb_i2c(C) gb_hid(C) gb_gpio(C) gb_gbphy(C) gb_firmware(C) gb_spilib(C) gb_bootrom(C) greybus wpanusb ieee802154_socket mac802154 ieee802154 ip_tables x_tables pru_rproc icss_iep crct10dif_ce ti_j721e_cpsw_virt_mac ti_am335x_tscadc tidss pruss cdns_dsi cdns_dphy spidev
dmesg | grep pru
[    5.834447] remoteproc remoteproc0: b034000.pru is available
[    5.862752] remoteproc remoteproc2: b00a000.txpru is available
[    5.869245] remoteproc remoteproc3: b038000.pru is available
[    5.881596] remoteproc remoteproc5: b00c000.txpru is available
[    5.887877] remoteproc remoteproc6: b134000.pru is available
[    5.900174] remoteproc remoteproc8: b10a000.txpru is available
[    5.906408] remoteproc remoteproc9: b138000.pru is available
[    5.918774] remoteproc remoteproc11: b10c000.txpru is available
[ 1268.036483] Modules linked in: pvrsrvkm(O) xt_conntrack nft_chain_nat xt_MASQUERADE nf_nat nf_conntrack_netlink nf_conntrack nf_defrag_ipv6 nf_defrag_ipv4 xfrm_user xfrm_algo nft_counter xt_addrtype nft_compat nf_tables nfnetlink br_netfilter bridge stp llc aufs af_alg bnep rpmsg_char virtio_rpmsg_bus btusb btrtl btbcm btintel bluetooth cdns_csi2rx nls_ascii nls_cp437 iwlmvm mac80211 ti_am335x_adc libarc4 ti_k3_r5_remoteproc iwlwifi irq_pruss_intc sa2ul authenc cfg80211 ti_k3_dsp_remoteproc vxe_enc vxd_dec pci_endpoint_test j721e_csi2rx videobuf2_dma_sg videobuf2_dma_contig v4l2_mem2mem ov5640 v4l2_fwnode extcon_usbc_tusb322 rti_wdt uio_pdrv_genirq uio gb_uart(C) gb_spi(C) gb_raw(C) gb_netlink gb_loopback(C) gb_log(C) gb_i2c(C) gb_hid(C) gb_gpio(C) gb_gbphy(C) gb_firmware(C) gb_spilib(C) gb_bootrom(C) greybus wpanusb ieee802154_socket mac802154 ieee802154 ip_tables x_tables pru_rproc icss_iep crct10dif_ce ti_j721e_cpsw_virt_mac ti_am335x_tscadc tidss pruss cdns_dsi cdns_dphy spidev
dmesg | grep pinctrl-single
[    1.393051] pinctrl-single 4301c000.pinctrl: 94 pins, size 376
[    1.399301] pinctrl-single 11c000.pinctrl: 173 pins, size 692
dmesg | grep gpio-of-helper
lsusb
Bus 002 Device 002: ID 0451:8140 Texas Instruments, Inc. TUSB8041 4-Port Hub
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 005: ID 8087:0025 Intel Corp. Wireless-AC 9260 Bluetooth Adapter
Bus 001 Device 004: ID 1c4f:0026 SiGma Micro Keyboard
Bus 001 Device 003: ID 046d:c52b Logitech, Inc. Unifying Receiver
Bus 001 Device 002: ID 0451:8142 Texas Instruments, Inc. TUSB8041 4-Port Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
END
debian@BeagleBone:~$ df -h
Filesystem      Size  Used Avail Use% Mounted on
udev            991M     0  991M   0% /dev
tmpfs           215M  1.9M  213M   1% /run
/dev/mmcblk1p2  9.7G  8.1G  1.1G  89% /
tmpfs           1.1G     0  1.1G   0% /dev/shm
tmpfs           5.0M     0  5.0M   0% /run/lock
/dev/mmcblk1p1  127M   46M   81M  37% /boot/firmware
tmpfs           215M   32K  215M   1% /run/user/1000
debian@BeagleBone:~$ lsblk
NAME        MAJ:MIN RM  SIZE RO TYPE MOUNTPOINT
mmcblk1     179:0    0 29.7G  0 disk 
|-mmcblk1p1 179:1    0  128M  0 part /boot/firmware
`-mmcblk1p2 179:2    0 29.6G  0 part /
debian@BeagleBone:~$ 

Same behaviour when powering off with the power switch.