Skip to main content

Storage & boot

Mo62A boots from the microSD card. The boot ROM starts the bootloader chain from the card, U-Boot reads a text configuration from the BOOT partition, and the Linux kernel mounts the Debian root file system from the same card. This page explains that layout, what the first boot changes, and how to pick a different boot entry.

Tested software

This page was tested on Mo62A image V1.1.0 (built 2026-08-19), with Debian 13 (Trixie) and Linux 6.12.35, on a 32 GB microSD card. Sizes shown in the examples depend on the card.

Boot sequence​

  1. The boot ROM in the AM62A SoC is strapped to boot from the microSD card (MMC1, 4-bit) with Ethernet as the fallback. There is no on-board eMMC or flash, so the card must be present.
  2. The boot ROM loads tiboot3.bin to start the SPL boot chain, which continues with tispl.bin and u-boot.img from the BOOT partition.
  3. U-Boot reads extlinux/extlinux.conf and loads the kernel Image, base device tree and overlays for the selected default entry. The current supplied configuration does not request an interactive menu; do not assume a countdown or numbered menu appears on the debug UART.
  4. The kernel mounts the third partition as / and systemd starts Mo OS.

Boot progress is printed on the debug UART at 115200 baud. Nothing appears on HDMI until the kernel has started.

Partition layout​

The flashing tool creates three MBR partitions:

PartitionDeviceFile systemSizeLabelContents
1/dev/mmcblk1p1FAT32255 MiBBOOTBootloaders, kernel, device trees, boot menu, sysconfig.txt
2/dev/mmcblk1p2swap4 GiBswapSwap space
3/dev/mmcblk1p3ext4Remaining spacerootfsDebian root file system

BOOT holds tiboot3.bin, tispl.bin, u-boot.img, the kernel Image, the device trees in ti/ and the boot menu extlinux/extlinux.conf. It is mounted at /boot/firmware on the running system, so the menu and device trees can be edited from Mo OS. The terminal output below shows the layout on the tested card; / is already expanded to the end of the card.

lsblk -o NAME,SIZE,FSTYPE,LABEL,MOUNTPOINT /dev/mmcblk1
df -h / /boot/firmware
swapon --show
Mo62A terminal listing the three microSD partitions with lsblk, the free space with df and the active swap partition

What the first boot changes​

On the first boot, Mo OS runs mo-62a-firstboot-install.service once. It:

  1. installs the packages bundled with the image that are not part of the base system;
  2. grows the root partition to the end of the card and expands the ext4 file system online, so a 32 GB card gives about 25 GB for /;
  3. processes sysconfig.txt from the BOOT partition and then removes the file. Deletion is not secure erasure of flash media; change any temporary or default password after setup.

Do not treat the appearance of the login screen as proof that every first-boot step completed. Check the service status, logs and resulting settings. The logs are /var/log/mo-62a-firstboot-install.log and /var/log/mo-62a-auto-config.log. The settings themselves are described in sysconfig.txt reference.

Boot entries​

extlinux/extlinux.conf on the BOOT partition contains one label per boot entry and a default line that selects the entry U-Boot loads automatically. Every entry loads the same kernel and base device tree; they differ only in the device tree overlay that enables peripherals on the 40-pin header or the CSI camera.

List the entries and the current default with the bootcfg tool:

bootcfg list
bootcfg show

To make another entry the default, run sudo bootcfg switch LABEL. The tool backs up extlinux.conf to extlinux.conf.bak, asks for confirmation and reboots immediately.

Mo62A terminal listing the boot entries with bootcfg, then switching the default to microSD-uart5 and rebooting

The entries supplied with the image and the pins they use are listed in Device tree overlays. Use bootcfg from a running system, or edit the default line with a text editor on a computer that can read the BOOT partition. Older images may present an interactive U-Boot menu; the current configuration must not be documented as always doing so.

note

The CSI camera overlay is part of the microSD-default entry only. Peripheral entries such as microSD-uart5 or microSD-spi0 boot without the camera.

Back up and clone the card​

The whole card can be copied as an image from a computer. Shut the board down first, move the card to a card reader, and use the same tool you flashed with, or on Linux:

sudo dd if=/dev/sdX of=mo62a-backup.img bs=4M status=progress conv=fsync

Replace /dev/sdX with the card reader's device. A copy of the card boots on another Mo62A with the same host name, accounts and SSH host keys. For a fresh identity, flash the image again and use sysconfig.txt.

Troubleshooting​

SymptomWhat to check
Debug UART silent after power-onFirst check power, the UART adapter voltage, wiring, serial port and 115200 8N1 settings. Silence alone does not identify a bootloader failure. Re-seat the card until it clicks, check that the BOOT partition contains tiboot3.bin, tispl.bin and u-boot.img, and re-flash if in doubt.
U-Boot starts but the kernel does notCheck extlinux/extlinux.conf: the default label must exist, and Image and the device tree files it names must be present in BOOT. Restore extlinux.conf.bak if a change broke the menu.
A 40-pin peripheral is missingRun bootcfg show; the default entry may not include the overlay you need. See Device tree overlays.
The camera is not detectedThe current entry is not microSD-default. Switch back with sudo bootcfg switch microSD-default.
/ is smaller than the cardSome difference is expected: BOOT and swap use space, and advertised GB differs from GiB. Compare the card and partition layout with lsblk and df -h. If unused space remains after the root partition, inspect /var/log/mo-62a-firstboot-install.log before considering the resize script; back up important data first.
The file system is reported read-onlyInspect findmnt / and sudo journalctl -k -b for I/O or ext4 errors. Back up readable data before further writes; check power and the card, and repair the file system offline from another system if appropriate. Do not force it writable or assume a reboot repairs corruption.

Source: inhandnet/mo-docs · 7ba0dc46