Beaglebone AI consistently bricks!

Hello,

I am struggling with getting my beaglebone AI board to do much of anything besides brick. My end goal is to be able to send UART commands (with a python script) to an STM32Nucleo processor.

Here are my exact steps:

  1. Download am57xx-debian-10.11-Ixqt-tidl-armhf-2021-12-20-6gb.img.xz from Robert C Nelson directory: Index of /rootfs/bb.org/testing/2021-12-20/buster-lxqt-tidl

  2. Use Balena etcher to write image in step 1 to 32 GB SD Card

  3. Insert SD card into BBAI and power on

  4. sudo apt-get update

  5. sudo apt-get upgrade

  6. Cd ~

  7. Mkdir DeviceTrees

  8. Cd DeviceTrees

  9. Git clone GitHub - beagleboard/BeagleBoard-DeviceTrees: Linux kernel device trees and device tree overlays for BeagleBoard.org open hardware single board computers and add-on boards.

  10. cd BeagleBoard-DeviceTrees and type “make install”

  11. Verify “am5729-beagleboneai.dtb” file exists in /boot/dtbs/4.14.108-ti-r143 directory

  12. Edit the uEnv.txt file and uncomment dtb, and add dtb=am5729-beagleboneai.dtb

  13. Sudo reboot

The board never reboots and I have to reflash the image! What am I doing wrong here?

Hi @jfarrant please include a serial boot log of your device for debugging…

Regards,

When building the dtb, this seems to work for me:

First find the kernel you are booted with:
Ex:
debian@beaglebone:~$ uname -r
4.19.94-ti-r68

NOTE: This should match the ‘uname_r’ value in /boot/uEnv.txt

Then build the dtb based on the booted kernel version.
This is a 4.19 in my case.
cd /opt/source/dtb-4.19-ti/
make src/arm/am5729-beagleboneai.dtb
sudo make install
sudo reboot

This should place the am5729-beagleboneai.dtb, and others, under /boot/dtbs/4.19.x.
Ex:
/boot/dtbs/4.19.94-ti-r68/am5729-beagleboneai.dtb

Then set the uEnv.txt file according for the .dtb:
Ex:

uname_r=4.19.94-ti-r68
#uuid=
dtb=am5729-beagleboneai.dtb

This works for me.

Jon

1 Like

Sorry for the wait, I had to order the jst connector for the BBAI serial jack. Anyways, pasted below is my serial printout upon start:

U-Boot 2021.04-g702ea30b (Nov 19 2021 - 00:11:11 +0000)

CPU : DRA752-GP ES2.0
Model: BeagleBoard.org BeagleBone AI
Board: BeagleBone AI REV A
DRAM: 1 GiB
MMC: no pinctrl state for default mode
omap_hsmmc_init_setup: timedout waiting for cc2!
no pinctrl state for default mode
omap_hsmmc_init_setup: timedout waiting for cc2!
mmc@480d1000 - probe failed: -110
OMAP SD/MMC: 0, OMAP SD/MMC: 1no pinctrl state for default mode
omap_hsmmc_init_setup: timedout waiting for cc2!

BeagleBone Cape EEPROM: no EEPROM at address: 0x54
BeagleBone Cape EEPROM: no EEPROM at address: 0x55
BeagleBone Cape EEPROM: no EEPROM at address: 0x56
BeagleBone Cape EEPROM: no EEPROM at address: 0x57
Net: eth2: ethernet@48484000
Press SPACE to abort autoboot in 1 seconds
usb_boot is currently disabled
scsi_boot is currently disabled
switch to partitions #0, OK
mmc0 is current device

Partition Map for MMC device 0 – Partition Type: DOS

Part Start Sector Num Sectors UUID Type
1 8192 11051008 481f9879-01 83 Boot
Scanning mmc device 0
Checking for: /uEnv.txt …
Checking for: /boot/uEnv.txt …
1420 bytes read in 3 ms (461.9 KiB/s)
Loaded environment from /boot/uEnv.txt
debug: [dtb=am5729-beagleboneai.dtb] …
Checking if uname_r is set in /boot/uEnv.txt …
debug: [uname_r=4.14.108-ti-r143] …
loading /boot/vmlinuz-4.14.108-ti-r143 …
9761280 bytes read in 422 ms (22.1 MiB/s)
loading /boot/dtbs/4.14.108-ti-r143/am5729-beagleboneai.dtb …
253052 bytes read in 16 ms (15.1 MiB/s)
uboot_overlays: add [enable_uboot_overlays=1] to /boot/uEnv.txt to enable…
loading /boot/initrd.img-4.14.108-ti-r143 …
12198824 bytes read in 528 ms (22 MiB/s)
debug: [console=ttyS0,115200n8 root=/dev/mmcblk0p1 ro rootfstype=ext4 rootwait coherent_pool=1M net.ifnames=0 rng_core.default_quality=100 quiet] …
debug: [bootz 0x82000000 0x88080000:ba23a8 0x88000000] …

Flattened Device Tree blob at 88000000

Booting using the fdt blob at 0x88000000
Loading Ramdisk to 8f45d000, end 8ffff3a8 … OK
Loading Device Tree to 8f41c000, end 8f45cc7b … OK

Starting kernel …

Then it just hangs up at starting kernel…

please open /boot/uEnv.txt and remove “quiet”… then see should see more…

Regards,

Here is the new output:

U-Boot 2021.04-g702ea30b (Nov 19 2021 - 00:11:11 +0000)

CPU : DRA752-GP ES2.0
Model: BeagleBoard.org BeagleBone AI
Board: BeagleBone AI REV A
DRAM: 1 GiB
MMC: no pinctrl state for default mode
omap_hsmmc_init_setup: timedout waiting for cc2!
no pinctrl state for default mode
omap_hsmmc_init_setup: timedout waiting for cc2!
mmc@480d1000 - probe failed: -110
OMAP SD/MMC: 0, OMAP SD/MMC: 1no pinctrl state for default mode
omap_hsmmc_init_setup: timedout waiting for cc2!

BeagleBone Cape EEPROM: no EEPROM at address: 0x54
BeagleBone Cape EEPROM: no EEPROM at address: 0x55
BeagleBone Cape EEPROM: no EEPROM at address: 0x56
BeagleBone Cape EEPROM: no EEPROM at address: 0x57
Net: eth2: ethernet@48484000
Press SPACE to abort autoboot in 1 seconds
usb_boot is currently disabled
scsi_boot is currently disabled
switch to partitions #0, OK
mmc0 is current device

Partition Map for MMC device 0 – Partition Type: DOS

Part Start Sector Num Sectors UUID Type
1 8192 11051008 481f9879-01 83 Boot
Scanning mmc device 0
Checking for: /uEnv.txt …
Checking for: /boot/uEnv.txt …
1398 bytes read in 2 ms (682.6 KiB/s)
Loaded environment from /boot/uEnv.txt
Checking if uname_r is set in /boot/uEnv.txt …
debug: [uname_r=4.14.108-ti-r143] …
loading /boot/vmlinuz-4.14.108-ti-r143 …
9761280 bytes read in 423 ms (22 MiB/s)
loading /boot/dtbs/4.14.108-ti-r143/am5729-beagleboneai.dtb …
150333 bytes read in 12 ms (11.9 MiB/s)
uboot_overlays: add [enable_uboot_overlays=1] to /boot/uEnv.txt to enable…
loading /boot/initrd.img-4.14.108-ti-r143 …
11738778 bytes read in 508 ms (22 MiB/s)
debug: [console=ttyS0,115200n8 root=/dev/mmcblk0p1 ro rootfstype=ext4 rootwait coherent_pool=1M net.ifnames=0 rng_core.default_quality=100 quiet] …
debug: [bootz 0x82000000 0x88080000:b31e9a 0x88000000] …

Flattened Device Tree blob at 88000000

Booting using the fdt blob at 0x88000000
Loading Ramdisk to 8f4ce000, end 8ffffe9a … OK
Loading Device Tree to 8f4a6000, end 8f4cdb3c … OK

Starting kernel …

[ 0.002599] /cpus/cpu@0 missing clock-frequency property
[ 0.002622] /cpus/cpu@1 missing clock-frequency property
[ 0.395241] omap-mailbox 4a0f4000.mailbox: no available mbox devices found
[ 0.395309] omap-mailbox 4883a000.mailbox: no available mbox devices found
[ 0.395373] omap-mailbox 4883c000.mailbox: no available mbox devices found
[ 0.395437] omap-mailbox 4883e000.mailbox: no available mbox devices found
[ 0.396060] omap-mailbox 48844000.mailbox: no available mbox devices found
[ 0.396127] omap-mailbox 48846000.mailbox: no available mbox devices found
[ 0.396189] omap-mailbox 4885e000.mailbox: no available mbox devices found
[ 0.396251] omap-mailbox 48860000.mailbox: no available mbox devices found
[ 0.396314] omap-mailbox 48862000.mailbox: no available mbox devices found
[ 0.396376] omap-mailbox 48864000.mailbox: no available mbox devices found
[ 0.396438] omap-mailbox 48802000.mailbox: no available mbox devices found
[ 1.102610] sdhci-omap 4809c000.mmc: failed to set system capabilities
[ 1.109831] sdhci-omap 480b4000.mmc: failed to set system capabilities
[ 1.119867] tpd12s015 encoder@0: failed to find video source
[ 1.125868] connector-hdmi connector@0: failed to find video source
[ 1.252219] dwc3 488d0000.usb: failed to initialize core
[ 1.287155] omap_voltage_late_init: Voltage driver support not added
[ 1.411788] sdhci-omap 4809c000.mmc: no pinctrl state for ddr_1_8v mode
[ 1.418474] sdhci-omap 4809c000.mmc: no pinctrl state for hs200_1_8v mode
[ 3.440321] systemd[1]: System cannot boot: Missing /etc/machine-id and /etc is mounted read-only.
[ 3.449361] systemd[1]: Booting up is supported only when:
[ 3.454923] systemd[1]: 1) /etc/machine-id exists and is populated.
[ 3.461276] systemd[1]: 2) /etc/machine-id exists and is empty.
[ 3.467245] systemd[1]: 3) /etc/machine-id is missing and /etc is writable.
[ OK ] Started Tell Plymouth To Write Out Runtime Data.
[ OK ] Started udev Kernel Device Manager.
[ OK ] Started udev Coldplug all Devices.
Starting Show Plymouth Boot Screen…
Starting Helper to synchronize boot up for ifupdown…
[ OK ] Started Create Volatile Files and Directories.
Starting Update UTMP about System Boot/Shutdown…
Starting Network Time Synchronization…
[ OK ] Started Entropy daemon using the HAVEGE algorithm.
[ OK ] Started Helper to synchronize boot up for ifupdown.
Starting Raise network interfaces…
[ OK ] Started Show Plymouth Boot Screen.
[ OK ] Started Forward Password R…s to Plymouth Directory Watch.
[ OK ] Reached target Local Encrypted Volumes.
[ OK ] Reached target Paths.
[ OK ] Started Update UTMP about System Boot/Shutdown.
[ OK ] Started Network Time Synchronization.
[ OK ] Reached target System Time Synchronized.
[ OK ] Reached target System Initialization.
[ OK ] Listening on D-Bus System Message Bus Socket.
[ OK ] Listening on Avahi mDNS/DNS-SD Stack Activation Socket.
[ OK ] Started Daily Cleanup of Temporary Directories.
[ OK ] Listening on bonescript.socket.
[ OK ] Listening on Cloud9 Socket.
[ OK ] Listening on Node-RED Socket.
[ OK ] Reached target Sockets.
[ OK ] Reached target Basic System.
Starting Avahi mDNS/DNS-SD Stack…
[ OK ] Started D-Bus System Message Bus.
Starting Connection service…
Starting Disk Manager…
Starting System Logging Service…
[ OK ] Started Regular background program processing daemon.
Starting BBAI brcmfmac tether Service…
Starting rc_battery_monitor…
Starting cmemk kernel modules…
Starting robotcontrol…
[ OK ] Started Bonescript autorun.
Starting LSB: Start daemon at boot time…
Starting BB WL18xx wlan0 Service…
Starting LSB: Load kernel …d to enable cpufreq scaling…
Starting Login Service…
Starting WPA supplicant…
[ OK ] Started Daily rotation of log files.
[ OK ] Reached target Timers.
[ OK ] Started System Logging Service.
[ OK ] Started Raise network interfaces.
[ OK ] Started rc_battery_monitor.
[ OK ] Started cmemk kernel modules.
[ OK ] Started robotcontrol.
[ OK ] Started BB WL18xx wlan0 Service.
[ OK ] Started Login Service.
[ OK ] Started WPA supplicant.
[ OK ] Started Avahi mDNS/DNS-SD Stack.
[ OK ] Started LSB: Start daemon at boot time.
Starting Authorization Manager…
Starting Hostname Service…
Starting TI MultiCore Tools Daemon…
[ OK ] Started Connection service.
[ OK ] Reached target Network.
Starting Generic Board Startup…
Starting A high performanc… and a reverse proxy server…
Starting OpenBSD Secure Shell server…
Starting Permit User Sessions…
[ OK ] Started TI MultiCore Tools Daemon.
[ OK ] Stopped OpenBSD Secure Shell server.
[ OK ] Started Permit User Sessions.
Starting Hold until boot process finishes up…
Starting Light Display Manager…
[ OK ] Started LSB: Load kernel m…ded to enable cpufreq scaling.
Starting LSB: set CPUFreq kernel parameters…
[ OK ] Started Authorization Manager.
[ OK ] Started Hostname Service.
[ 7.071998] cpu cpu0: _get_optimal_vdd_voltage: Failed optimized voltage match for 860000

Debian GNU/Linux 10 beaglebone ttyS0

BeagleBoard.org Debian Buster LXQt TIDL Image 2021-12-20
Support: BeagleBoard.org - debian
default username:password is [debian:temppwd]

beaglebone login: [ 54.321123] HDMI: omapdss HDMI error: hdmi_audio_stop: Video mode does not support audio

[ 1163.644061] HDMI: omapdss HDMI error: hdmi_audio_stop: Video mode does not support audio
[ OK ] Unmounted /run/user/1000/gvfs.
[ OK ] Stopped Login Service.
[ OK ] Started Show Plymouth Reboot Screen.
[ OK ] Stopped User Manager for UID 1000.
Stopping User Runtime Directory /run/user/1000…
[ OK ] Unmounted /run/user/1000.
[ OK ] Stopped User Runtime Directory /run/user/1000.
[ OK ] Removed slice User Slice of UID 1000.
Stopping Permit User Sessions…
[ OK ] Reached target Unmount All Filesystems.
[ OK ] Stopped Permit User Sessions.
[ OK ] Stopped target Remote File Systems.
[ OK ] Stopped target Network.
Stopping Connection service…
Stopping WPA supplicant…
Stopping Raise network interfaces…
[ OK ] Stopped WPA supplicant.
[ OK ] Stopped Connection service.
Stopping D-Bus System Message Bus…
[ OK ] Stopped D-Bus System Message Bus.
[ OK ] Stopped target Basic System.
[ OK ] Stopped target Sockets.
[ OK ] Closed Node-RED Socket.
[ OK ] Closed Avahi mDNS/DNS-SD Stack Activation Socket.
[ OK ] Closed Syslog Socket.
[ OK ] Closed bonescript.socket.
[ OK ] Closed Cloud9 Socket.
[ OK ] Stopped Forward Password R…s to Plymouth Directory Watch.
[ OK ] Stopped target Slices.
[ OK ] Removed slice User and Session Slice.
[ OK ] Stopped target Paths.
[ OK ] Closed D-Bus System Message Bus Socket.
[ OK ] Stopped target System Initialization.
Stopping Update UTMP about System Boot/Shutdown…
Stopping Restore / save the current clock…
[ OK ] Stopped target Local Encrypted Volumes.
[ OK ] Stopped Forward Password R…uests to Wall Directory Watch.
[ OK ] Stopped target Swap.
Stopping Network Time Synchronization…
Stopping Load/Save Random Seed…
[ OK ] Stopped Raise network interfaces.
[ OK ] Stopped Apply Kernel Variables.
[ OK ] Stopped Load Kernel Modules.
[ OK ] Stopped Network Time Synchronization.
[ OK ] Stopped Restore / save the current clock.
[ OK ] Stopped Load/Save Random Seed.
[ OK ] Stopped Update UTMP about System Boot/Shutdown.
[ OK ] Stopped Create Volatile Files and Directories.
[ OK ] Stopped target Local File Systems.
[ OK ] Stopped target Local File Systems (Pre).
[ OK ] Stopped Create Static Device Nodes in /dev.
[ OK ] Stopped Create System Users.
[ OK ] Stopped Remount Root and Kernel File Systems.
[ OK ] Stopped File System Check on Root Device.
[ OK ] Reached target Shutdown.
[ OK ] Reached target Final Step.
[ OK ] Started Reboot.
[ OK ] Reached target Reboot.
[ 1165.092336] watchdog: watchdog0: watchdog did not stop!
[ 1165.648627] reboot: Restarting system with command ‘now’

U-Boot 2021.04-g702ea30b (Nov 19 2021 - 00:11:11 +0000)

CPU : DRA752-GP ES2.0
Model: BeagleBoard.org BeagleBone AI
Board: BeagleBone AI REV A
DRAM: 1 GiB
MMC: no pinctrl state for default mode
omap_hsmmc_init_setup: timedout waiting for cc2!
no pinctrl state for default mode
omap_hsmmc_init_setup: timedout waiting for cc2!
mmc@480d1000 - probe failed: -110
OMAP SD/MMC: 0, OMAP SD/MMC: 1no pinctrl state for default mode
omap_hsmmc_init_setup: timedout waiting for cc2!

BeagleBone Cape EEPROM: no EEPROM at address: 0x54
BeagleBone Cape EEPROM: no EEPROM at address: 0x55
BeagleBone Cape EEPROM: no EEPROM at address: 0x56
BeagleBone Cape EEPROM: no EEPROM at address: 0x57
Net: eth2: ethernet@48484000
Press SPACE to abort autoboot in 1 seconds
usb_boot is currently disabled
scsi_boot is currently disabled
switch to partitions #0, OK
mmc0 is current device

Partition Map for MMC device 0 – Partition Type: DOS

Part Start Sector Num Sectors UUID Type
1 8192 11051008 481f9879-01 83 Boot
Scanning mmc device 0
Checking for: /uEnv.txt …
Checking for: /boot/uEnv.txt …
1414 bytes read in 2 ms (690.4 KiB/s)
Loaded environment from /boot/uEnv.txt
debug: [dtb=am5729-beagleboneai.dtb] …
Checking if uname_r is set in /boot/uEnv.txt …
debug: [uname_r=4.14.108-ti-r143] …
loading /boot/vmlinuz-4.14.108-ti-r143 …
9761280 bytes read in 422 ms (22.1 MiB/s)
loading /boot/dtbs/4.14.108-ti-r143/am5729-beagleboneai.dtb …
253052 bytes read in 16 ms (15.1 MiB/s)
uboot_overlays: add [enable_uboot_overlays=1] to /boot/uEnv.txt to enable…
loading /boot/initrd.img-4.14.108-ti-r143 …
12197053 bytes read in 528 ms (22 MiB/s)
debug: [console=ttyS0,115200n8 root=/dev/mmcblk0p1 ro rootfstype=ext4 rootwait coherent_pool=1M net.ifnames=0 rng_core.default_quality=100] …
debug: [bootz 0x82000000 0x88080000:ba1cbd 0x88000000] …

Flattened Device Tree blob at 88000000

Booting using the fdt blob at 0x88000000
Loading Ramdisk to 8f45e000, end 8ffffcbd … OK
Loading Device Tree to 8f41d000, end 8f45dc7b … OK

Starting kernel …

Also to note, after each reboot after the first, I only get the following readout:

U-Boot 2021.04-g702ea30b (Nov 19 2021 - 00:11:11 +0000)

CPU : DRA752-GP ES2.0
Model: BeagleBoard.org BeagleBone AI
Board: BeagleBone AI REV A
DRAM: 1 GiB
MMC: no pinctrl state for default mode
omap_hsmmc_init_setup: timedout waiting for cc2!
no pinctrl state for default mode
omap_hsmmc_init_setup: timedout waiting for cc2!
mmc@480d1000 - probe failed: -110
OMAP SD/MMC: 0, OMAP SD/MMC: 1no pinctrl state for default mode
omap_hsmmc_init_setup: timedout waiting for cc2!

BeagleBone Cape EEPROM: no EEPROM at address: 0x54
BeagleBone Cape EEPROM: no EEPROM at address: 0x55
BeagleBone Cape EEPROM: no EEPROM at address: 0x56
BeagleBone Cape EEPROM: no EEPROM at address: 0x57
Net: eth2: ethernet@48484000
Press SPACE to abort autoboot in 1 seconds
usb_boot is currently disabled
scsi_boot is currently disabled
switch to partitions #0, OK
mmc0 is current device

Partition Map for MMC device 0 – Partition Type: DOS

Part Start Sector Num Sectors UUID Type
1 8192 11051008 481f9879-01 83 Boot
Scanning mmc device 0
Checking for: /uEnv.txt …
Checking for: /boot/uEnv.txt …
1414 bytes read in 2 ms (690.4 KiB/s)
Loaded environment from /boot/uEnv.txt
debug: [dtb=am5729-beagleboneai.dtb] …
Checking if uname_r is set in /boot/uEnv.txt …
debug: [uname_r=4.14.108-ti-r143] …
loading /boot/vmlinuz-4.14.108-ti-r143 …
9761280 bytes read in 422 ms (22.1 MiB/s)
loading /boot/dtbs/4.14.108-ti-r143/am5729-beagleboneai.dtb …
253052 bytes read in 15 ms (16.1 MiB/s)
uboot_overlays: add [enable_uboot_overlays=1] to /boot/uEnv.txt to enable…
loading /boot/initrd.img-4.14.108-ti-r143 …
12197053 bytes read in 527 ms (22.1 MiB/s)
debug: [console=ttyS0,115200n8 root=/dev/mmcblk0p1 ro rootfstype=ext4 rootwait coherent_pool=1M net.ifnames=0 rng_core.default_quality=100] …
debug: [bootz 0x82000000 0x88080000:ba1cbd 0x88000000] …

Flattened Device Tree blob at 88000000

Booting using the fdt blob at 0x88000000
Loading Ramdisk to 8f45e000, end 8ffffcbd … OK
Loading Device Tree to 8f41d000, end 8f45dc7b … OK

Starting kernel …

Thanks Jon, I will give this a shot next. Any chance you have gotten uart working? Any tips or gotchas before I attempt to tackle that beast?

I tried your steps but with a 4.14 kernel and the BBAI would no longer boot. I do not have a serial connect to it so no output.

However, with the 4.19 kernel, I do not see an issue with the BeagleBoard-DeviceTree files.

Jon