Skip to content

toemmc.conf

Calin Crisan edited this page Dec 26, 2023 · 1 revision

File Location And Role

The file lives at /boot/toemmc.conf.

It contains settings used to automatically flash an OS from an SD card onto the eMMC internal memory.

File Format

This is a simple shell script that should contain only NAME="value" lines. The file is sourced by the S01toemmc init script.

Available Variables

EMMC_DEV

Represents the destination eMMC device, e.g. /dev/mmcblk1.

POST_CMD

Is a shell command to be run after flashing finished. It could be, for example, an infinite while loop flashing an LED, indicating that the flashing process finished:

POST_CMD='i=0; while true; do echo ${i} > /sys/class/leds/status_led/brightness; usleep 250000; i=$((1-i)); done'
Clone this wiki locally