Technical requirements
To follow along with the examples, make sure you have the following:
- A Linux-based host system with
e2fsprogs
,genext2fs
,mtd-utils
,squashfs-tools
, andutil-linux
or their equivalents installed - A microSD card reader and card
- balenaEtcher for Linux
- The U-Boot source tree from Chapter 3
- The Linux kernel source tree from Chapter 4
- A USB to TTL serial cable with 3.3V logic-level pins
- A BeaglePlay
- A 5V USB-C power supply capable of delivering 3A
You should have already downloaded and built U-Boot for the BeaglePlay back in Chapter 3. You should have obtained the Linux kernel source tree from Chapter 4.
Ubuntu provides packages for most of the tools needed to create and format various filesystems. To install the tools on an Ubuntu 24.04 LTS system, use the following command:
$ sudo apt install e2fsprogs genext2fs mtd-utils squashfs-tools util-linux
The mtd-utils
package includes mtdinfo
, mkfs...