Skip to content

Debian Recovery SD Card

Variscite provides a recovery SD card image that can be used to install the pre-built Debian image into the SOM internal storage.

Download the Recovery SD Card Image

Download the recovery SD card image:

wget https://variscite-public.nyc3.cdn.digitaloceanspaces.com/VAR-SOM-MX7/Software/debian/mx7-debian-bookworm-6.6.y_24.12-v1.0.img.zst

Write the Image to an SD Card

Writing the SD card image erases all files and partitions from the target device. Double-check the target device before writing the image.

Linux Host

Plug the SD card into your Linux host PC, then use dmesg or lsblk to find the device node, for example /dev/sdX or /dev/mmcblkX.

Unmount any mounted SD card partitions:

sudo umount /dev/sdX?*

Write the image:

zstdcat mx7-debian-bookworm-6.6.y_24.12-v1.0.img.zst | \
  sudo dd of=/dev/sdX bs=1M && sync

Replace /dev/sdX with your actual SD card device.

Windows Host

  • Download and install Win32 Disk Imager: https://sourceforge.net/projects/win32diskimager/.
  • Extract the downloaded image. For .zst files, use a tool such as WinRAR.
  • Insert the SD card into the PC.
  • Run Win32DiskImager.exe as administrator.
  • Select the extracted image and the SD card device.
  • Click Write.

macOS Host

Use a tool such as the dd Utility for Mac OS X to flash the extracted image to the SD card.

Recover the SOM Internal Storage

  • Power off the board.
  • Insert the SD card into the carrier board SD card slot.
  • Configure the boot-mode switches for SD card boot.
  • Power up the board. It boots Linux from the SD card.

Log in as root with password root, then run:

install_debian.sh

Follow the script instructions to flash Debian to the SOM internal storage.

The install_debian.sh script is located at /usr/sbin/.