Skip to content

InstallSDcard

Marek Belisko edited this page Nov 8, 2024 · 1 revision

Installing remix image on SD card

Preparation

After successful build please navigate to: build/tmp-<DISTRO_CODENAME>/deploy/images/<MACHINE> where DISTRO_CODENAME is one which was selected during configuration (kirkstone/scarthgap) and MACHINE is one also selected during configuration. e.g. path can look like: build/tmp-scarthgap/deploy/images/raspberrypi-armv8

when scarthgap + raspberrypi-armv8 options was selected.

We will use pantavisor-remix-raspberrypi-armv8.rootfs.wic.bz2 for flashing to SD card.

For faster flashing we use bmaptool utility. Please install it on your host system.

Flashing

Insert SD card to host computer and run following commands (sdX must be replaced by your SD card device):

  1. first unmount SD card sudo umount /dev/sdX*
  2. copy image sudo bmaptool copy pantavisor-remix-raspberrypi-armv8.rootfs.wic.bz2 /dev/sdX

output look like:

umount: /dev/sdf: not mounted.
umount: /dev/sdf1: not mounted.
umount: /dev/sdf2: not mounted.
bmaptool: info: discovered bmap file 'pantavisor-remix-raspberrypi-armv8.rootfs.wic.bmap'
bmaptool: info: block map format version 2.0
bmaptool: info: 76083 blocks of size 4096 (297.2 MiB), mapped 37312 blocks (145.8 MiB or 49.0%)
bmaptool: info: copying image 'pantavisor-remix-raspberrypi-armv8.rootfs.wic.bz2' to block device '/dev/sdf' using bmap file 'pantavisor-remix-raspberrypi-armv8.rootfs.wic.bmap'
bmaptool: info: 100% copied
bmaptool: info: synchronizing '/dev/sdf'
bmaptool: info: copying time: 11.5s, copying speed 12.7 MiB/sec

Then you can unplug SD card and plug it to target device and boot it.

Clone this wiki locally