🛠 Stockage : déborder des 16 Go d'eMMC (microSD, NVMe M.2, migration)

BeagleBone AI-64 (TI TDA4VM / J721E) · avance · Schéma : IMG-beaglebone-ai64-avance-3-etendre-stockage-au-dela-des-16go-emmc.svg — BeagleBone AI-64 entourée de ses trois stockages : puce eMMC 16 Go, microSD 128 Go, SSD NVMe sur adaptateur M.2, flèches de migration rsync de l'eMMC vers la microSD.

Objectives

The embedded eMMC is only 16 GB and the TI Edge AI stack (SDK, models, datasets) devours it. You will learn how to boot from the microSD, migrate an existing rootfs, and use an NVMe SSD in the M.2 E-key connector — while being aware of the K3 boot chain pitfalls and the documented PCIe 2.4 Gbps limitation.

Hardware

Complete code

# 1. État des lieux
df -h / ; lsblk ; findmnt -no SOURCE /

# 2. Graver la MÊME image sur la grosse microSD, booter dessus :
#    maintenir BOOT enfoncé pendant la mise sous tension.
sudo bmaptool copy BBAI-64-Debian-xxx.img /dev/sdX

# 3. Migrer les données de l'eMMC vers la microSD (booté sur eMMC, SD insérée)
sudo mkdir -p /mnt/sd && sudo mount /dev/mmcblk1p2 /mnt/sd
sudo rsync -aHAXx --info=progress2 / /mnt/sd/   # hors fichiers virtuels /proc /sys /dev
sudo umount /mnt/sd

# 4. NVMe sur M.2 E-key (carte éteinte, puis boot)
sudo nvme list
sudo mkfs.ext4 /dev/nvme0n1
sudo mkdir /opt/datasets && sudo mount /dev/nvme0n1 /opt/datasets
echo '/dev/nvme0n1 /opt/datasets ext4 defaults,noatime 0 2' | sudo tee -a /etc/fstab

# 5. Désigner le stockage racine retenu : reflasher/graver puis valider
sudo reboot   # avec BOOT enfoncé pour forcer la microSD

Expected verification

findmnt -no SOURCE / shows the new storage device, df -h displays the expected capacity, and the Edge AI SDK installation completes without space errors. The NVMe appears in nvme list and remounts automatically after reboot (no "cannot mount root" panic).

Common errors

Other tutorials for this board

Code examples for this board

← Back to the board 🛠 All tutorials