Aquila AM69 Custom OS works properly from SD how to copy it to eMMC

Hello I have an ubuntu OS that works properly from µSD on Aquila TDA4 and a clover board. I would like to port the OS to eMMC, is there any tutorial or guidelines to achieve this? I do not have a wic file. Is it possible to copy the rootfs and bootfs partitions et resize them on eMMC?

Hi, I’m the Toradex AI Assistant.

I might make mistakes or occasionally get you wrong. Our support team will step in if needed.


I can help guide you through copying your custom Ubuntu OS from the SD card to eMMC on your Aquila TDA4 module with Clover board.

Identifying the eMMC Device

First, you need to identify the eMMC block device. The Aquila AM69/TDA4 exposes the eMMC as a /dev/mmcblk<id> block device(1). To find which device corresponds to your eMMC versus your SD card, boot from your SD card and check the available block devices:

ls -l /dev/mmcblk*

The SD card will typically be /dev/mmcblk1 and the eMMC will be a different mmcblk device (likely /dev/mmcblk0)(1).

Manual Partition Copy Approach

Since you don’t have a wic file, you can manually copy your partitions:

1. Partition the eMMC

Create matching partitions on the eMMC similar to your SD card layout. You’ll need:

  • A FAT32 partition for boot files (kernel, device trees)
  • An ext4 partition for rootfs(2)
sudo parted -s /dev/mmcblk<emmc-id> mklabel gpt mkpart primary fat32 1MiB 100MiB mkpart ext4 100MiB 100%

2. Format the Partitions

sudo mkfs.fat -n boot /dev/mmcblk<emmc-id>p1
sudo mkfs.ext4 -L rootfs /dev/mmcblk<emmc-id>p2

3. Copy the Data

Mount both source (SD) and destination (eMMC) partitions, then copy:

sudo mount /dev/mmcblk<sd-id>p1 /mnt/sd_boot
sudo mount /dev/mmcblk<sd-id>p2 /mnt/sd_rootfs
sudo mount /dev/mmcblk<emmc-id>p1 /mnt/emmc_boot
sudo mount /dev/mmcblk<emmc-id>p2 /mnt/emmc_rootfs

sudo cp -a /mnt/sd_boot/* /mnt/emmc_boot/
sudo cp -a /mnt/sd_rootfs/* /mnt/emmc_rootfs/

4. Update Boot Configuration

You’ll need to configure U-Boot to boot from eMMC instead of SD card. At the U-Boot prompt during boot, run:

run bootcmd_mmc0

This command boots from eMMC(2).

Important Considerations

Before proceeding, could you clarify which version of Torizon OS or BSP you’re running on your Aquila TDA4? This will help ensure the instructions are appropriate for your specific setup. You can check this using the tdx-info command on your running system(3).

Also, ensure your carrier board doesn’t have any SD card detection mechanisms that might interfere with eMMC boot priority.

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.

Unfortunately, the sd card is not used anymore for booting here’s the printenv of uboot. Could you tell if this set up is correct?

Aquila AM69 # printenv
arch=arm
baudrate=115200
board=aquila-am69
board_name=aquila-am69
boot_rprocs=if test ${dorprocboot} -eq 1 && test ${boot} = mmc; then rproc init; run boot_rprocs_mmc; fi;
boot_rprocs_mmc=env set rproc_id; env set rproc_fw; env set secure_suffix; if test ${secure_rprocs} -eq 1; then env set secure_suffix -sec; fi; for i in ${rproc_fw_binaries} ; do if test -z "${rproc_id}" ; then env set rproc_id $i; else env set rproc_fw $i${secure_suffix}; run rproc_load_and_boot_one; env set rproc_id; env set rproc_fw; fi; done
boot_script_dhcp=boot.scr
boot_targets=mmc1 mmc0 dhcp
bootcmd=bootflow scan -b
bootcount=1
bootdelay=1
carrier_serial#=36315003
console=ttyS2
cpu=armv8
dfu_alt_info_ram=tispl.bin ram 0x80080000 0x200000; u-boot.img ram 0x81000000 0x400000; loadaddr ram 0x88200000 0x80000; scriptaddr ram 0x90280000 0x80000; ramdisk_addr_r ram 0x90300000 0x8000000
dorprocboot=0
eth1addr=00:14:2d:96:cf:35
ethact=ethernet@46000000port@1
ethaddr=00:14:2d:86:cf:35
ethprime=eth0
fdt_addr_r=0x90200000
fdt_board=dev
fdtcontroladdr=ffacd480
fdtfile=k3-am69-aquila-dev.dtb
kernel_addr_r=0x88200000
kernel_comp_addr_r=0x80200000
kernel_comp_size=0x08000000
loadaddr=0x88200000
preboot=test -n ${fdtfile} || setenv fdtfile k3-am69-aquila${variant}-${fdt_board}.dtb
ramdisk_addr_r=0x90300000
rproc_fw_binaries= 2 /lib/firmware/j784s4-main-r5f0_0-fw 3 /lib/firmware/j784s4-main-r5f0_1-fw 4 /lib/firmware/j784s4-main-r5f1_0-fw 5 /lib/firmware/j784s4-main-r5f1_1-fw 6 /lib/firmware/j784s4-main-r5f2_0-fw 7 /lib/firmware/j784s4-main-r5f2_1-fw 8 /lib/firmware/j784s4-c71_0-fw 9 /lib/firmware/j784s4-c71_1-fw 10 /lib/firmware/j784s4-c71_2-fw 11 /lib/firmware/j784s4-c71_3-fw
rproc_load_and_boot_one=if load mmc ${bootpart} $loadaddr ${rproc_fw}; then if rproc load ${rproc_id} ${loadaddr} ${filesize}; then rproc start ${rproc_id}; fi; fi
rprocsemmcboot=env set boot mmc; env set bootpart 0:2; rproc init; run boot_rprocs_mmc; env set bootpart;
scriptaddr=0x90280000
serial#=08834869
soc=k3
stderr=serial@2880000
stdin=serial@2880000
stdout=serial@2880000
update_tiboot3=askenv confirm Did you load tiboot3.bin (y/N)?; if test $confirm = y; then setexpr blkcnt ${filesize} + 0x1ff && setexpr blkcnt ${blkcnt} / 0x200; mmc dev 0 1; mmc write ${loadaddr} 0x0 ${blkcnt}; fi
update_tispl=askenv confirm Did you load tispl.bin (y/N)?; if test $confirm = y; then setexpr blkcnt ${filesize} + 0x1ff && setexpr blkcnt ${blkcnt} / 0x200; mmc dev 0 1; mmc write ${loadaddr} 0x400 ${blkcnt}; fi
update_uboot=askenv confirm Did you load u-boot.img (y/N)?; if test $confirm = y; then setexpr blkcnt ${filesize} + 0x1ff && setexpr blkcnt ${blkcnt} / 0x200; mmc dev 0 1; mmc write ${loadaddr} 0x1400 ${blkcnt}; fi
vendor=toradex
ver=U-Boot 2024.04-ti-g3eafd228d8e0 (Aug 20 2026 - 13:50:58 +0000)

Looking at your U-Boot environment, I can see several important details about your setup:

Current Boot Configuration Analysis

Your boot_targets variable shows:

boot_targets=mmc1 mmc0 dhcp

This means U-Boot will attempt to boot from:

  1. mmc1 first (typically the SD card)
  2. mmc0 second (typically the eMMC)
  3. dhcp as fallback

Since you mentioned the SD card is no longer used for booting, U-Boot is likely failing to find a bootable image on mmc1 and falling through to mmc0 (eMMC).

Remote Processor Configuration Issue

I notice your environment has:

dorprocboot=0

This is critical for the Aquila AM69. According to the documentation, you need to initialize the remote processors (R5F cores and C7x DSP cores) properly to avoid race conditions when running applications(1).

The boot_rprocs variable is defined but won’t execute because dorprocboot=0. For proper operation, you should configure U-Boot to initialize the remote processors(1):

> env set dorprocboot 1
> env save

Recommended U-Boot Configuration for eMMC Boot

To ensure your system boots reliably from eMMC with proper remote processor initialization, I recommend the following configuration:

> env set boot_targets 'mmc0 dhcp'
> env set dorprocboot 1
> env save

This configuration:

  • Removes mmc1 (SD card) from the boot sequence entirely
  • Prioritizes mmc0 (eMMC) as the primary boot device
  • Enables remote processor initialization (dorprocboot=1)

Verifying Your Setup

To confirm your eMMC contains the necessary boot files, you can check:

> mmc dev 0
> ls mmc 0:1

This should show your boot partition contents (kernel, device trees, etc.).

Could you clarify which OS version you’re running? The tdx-info command would help identify this. Also, have you experienced any issues with applications failing to run, particularly those involving Machine Learning or hardware acceleration? The dorprocboot=0 setting could cause such problems(1).

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.

Hello @tolliug,

Strictly speaking, you should be able to get the rootfs from your SD Card and prepare an archive so that it can be flashed with the Toradex Easy Installer (TEZI).
You could even provide a custom u-boot environment to fit your boot configuration.
For that, looking at the examples in our existing images can be useful.
Additionally, you could have a look at our documentation on TEZI here:

The Toradex Easy Installer is the only recommended path to install images to the boards.
All SoMs are pre-flashed with it and it is intended to be used for flashing the boards during development and also production programming.

While preparing your ubuntu to be installed via TEZI is a viable option, it is not the recommended path.
We support and maintain a Yocto BSP for the Aquila TDA4, and using it to generate your production OS image would be the recommended path here.

Best Regards,
Bruno