Aquila AM69 TEZI Flashing Failed

The bootcmd_usb0 command is not defined by default on many Toradex modules, including the Aquila AM69. This is a common issue when trying to boot from USB external media(1).

Manual USB Boot Commands

Since bootcmd_usb0 is not available, you’ll need to manually configure USB booting. Here are the specific commands to boot TEZI from USB(2):

1. Initialize USB and Load TEZI

# Initialize USB subsystem
usb start

# Load the TEZI FIT image from USB
load usb 0:1 ${ramdisk_addr_r} tezi.itb

# Start the boot process
bootm start ${ramdisk_addr_r} && bootm loados && bootm ramdisk && bootm fdt

(2)

2. Alternative Method Using Distro Boot

If your U-Boot supports distro boot, you can try:

# Check available boot targets
printenv boot_targets

# If USB is not in boot_targets, add it temporarily
setenv boot_targets 'usb0 mmc0'

# Run distro boot command
run distro_bootcmd

(3)

3. Manual Boot Script Execution

Since you have the TEZI files on USB, you can also manually execute the boot script(2):

# Load and execute the boot script
load usb 0:1 ${scriptaddr} boot.scr
source ${scriptaddr}

(2)

4. Define bootcmd_usb0 Manually

You can create the missing bootcmd_usb0 command yourself(1):

# Define the USB boot command
setenv bootcmd_usb0 'usb start; load usb 0:1 ${ramdisk_addr_r} tezi.itb; bootm ${ramdisk_addr_r}'

# Save the environment (optional)
saveenv

# Now run the command
run bootcmd_usb0

(1)

5. Check USB Detection First

Before attempting boot, verify your USB stick is detected:

# Initialize and check USB devices
usb reset
usb info
usb storage

# List files on USB to confirm TEZI files are accessible
fatls usb 0:1

6. Verify TEZI Files Structure

Make sure your USB stick has the correct structure from the TEZI package(2):

  • boot.scr - Boot script
  • tezi.itb - TEZI FIT image
  • image.json - Image configuration
  • Your TEZI image directory

Troubleshooting Tips

If the above commands don’t work:

  1. Check memory addresses: Use printenv to verify ramdisk_addr_r and scriptaddr are defined
  2. Verify USB partition: Ensure your USB stick is FAT32 formatted and the first partition contains the TEZI files
  3. Try different USB ports: Some carrier boards may have multiple USB interfaces

The external media approach is not officially supported by Toradex, so you may need to adapt the boot script (boot.scr) for your specific module and BSP version(2).

Would you like me to provide guidance on modifying the boot script if the standard commands don’t work?

Best regards, Toradex AI Assistant.


Did you like my answer? :+1: :-1:

If I answered your question, please tick the “Solution” checkbox.

For follow-up questions to me, please use @ToradexAI in your post.