8/ Linux Os; Software Images; Boot From Sd; Preparing Sd Card - Kontron SMARC-sAMX8 User Manual

Table of Contents

Advertisement

8/ Linux OS

8.1. Software Images

SMARC sAMX8QM Linux BSP is derived from the IMX8 Yocto Linux Framework. The sAMX8QM BSP images
consists of Uboot based bootloader, kernel image, device tree binary and a root filesystem image. To boot Linux
on sAMX8 board the below images are needed:
Bootloader which includes U-Boot, Arm Trusted Firmware, DCD file, System controller firmware and the
SECO firmware since B0
Linux kernel image (Image)
A device tree file (.dtb) for the board being used
A root file system (rootfs) for the Linux image
The graphical backend for the sAMX8QM Linux OS is the XWayland

8.2. Boot from SD

This section describes the steps to copy the BSP images to the boot media and deploy it on the sAMX8QM board.
The BSP images are built from the Yocto build framework that generates combined as well as individual BSP
images
8.2.1.

Preparing SD card

This section describes the steps to copy the image when all images U-boot, kernel and the Root filesystem are
loaded from the SD card. The Yocto project build generates an integrated SD card image (.sdcard) that can be
flashed directly onto the SD card. The .sdcard image contains all images (U-boot, kernel and RootFS) properly
configured for an SD card. Below are the steps to prepare the SD card using a Linux Host PC
Insert a 4GB SD card to the Linux Host PC using a SD card reader
Check the mount point by giving the command
=> mount
(or)
=> cat /proc/partitions
major minor #blocks name
8
0
8
1
8
2
8
5
8
16
8
18
Execute the following command to copy the SD card image to the SD/MMC card. Change
match the one used by the SD card sdc or sdb
=> sudo dd if=<image name>.sdcard of=/dev/sdx bs=1M && sync
Example image name can be either kci-image-qt5-validation-smx-kci_smx8qm.sdcard or kci-image-
validation-smx-kci_smx8qm.sdcard
Note: The Yocto build environment generates the compressed. sdcard image and it needs to be
uncompressed by using the below command before copying to the SD card
=> bunzip2 -dk -f <image_name>. sdcard.bz2
8.2.2.

Running Linux from SD

Insert the SD card after all images are copied as per the previous steps in the designated SD card slot on
board
Make sure the Boot switch is configured for SD boot
www.kontron.com
78125000 sda
75095811 sda1
1
sda2
3028221 sda5
3921920 sdc
3905535 sdc1
Kontron SMARC-sAMX8 - Rev. 1.2
below to
sdx
// 57

Advertisement

Table of Contents
loading

Table of Contents