Selecting A Device Tree Binary; Kernel Boot Log; Running Arm Cortex-M4 Images - Kontron SMARC-sAMX8 User Manual

Table of Contents

Advertisement

8.5. Selecting a Device Tree Binary

sAMX8QM Linux BSP provides option for the user to select a specific DTB file based on the PIN configuration and
GPIO mux selection to enable a particular interface. The below list provides the different DTB files available to the
user to load before booting of the kernel. To select the DTB file stop at Uboot prompt and enter the below
command
# setenv fdt_file <DTB filename>
# saveenv
Example
# setenv fdt_file kontron-samx8-qm-enet2.dtb
DTB File Name
kontron-samx8-qm.dtb
kontron-samx8-qm-enet2.dtb
kontron-samx8-qm-usbotg3-peripheral.dtb
kontron-samx8-qm-edp.dtb

8.6. Kernel Boot Log

Linux OS boot logs can be viewed on a Serial console in Host PC connected to the sAMX8QM board on the
SER_0 port of the SMARC carrier board. Common serial communication programs such as HyperTerminal, Tera
Term, or PuTTY can be used. Configure the serial line using 115200 baud, 8 data bits, 1 stop bit, no parity.
Once the kernel starts the below messages shall appear on the console
Starting kernel ...
[
0.000000] Booting Linux on physical CPU 0x0
[
0.000000] Linux version 4.14.78-imx_4.14.78_1.0.0_ga+g94da7bd (oe-user@oe-host) (gcc version 7.3.0 (GCC)) #1
SMP PREEMPT Th9
[
0.000000] Boot CPU: AArch64 Processor [410fd034]
[
0.000000] Machine model: Kontron SMX8QM i.MX8QM
[
0.000000] earlycon: lpuart32 at MMIO 0x000000005a060000 (options '115200')

8.7. Running ARM Cortex-M4 Images

SMARC sAMX8QM Uboot supports booting of Cortex-M4 cores using the bootaux commands. U-Boot supports loading
the Arm Cortex-M4 image from the FAT partitions of the SD card.
Copying M4 Binaries to SD card
Refer to section 9.2.2 for partitioning of SD card
Copy m4_0_image.bin and m4_1_image to <vfat> partition of the SD Card using the below commands by inserting the
SD card to a Host PC using a USB card reader
=> sudo mkdir /media/<vfat_mountpoint>
=> sudo mount /dev/sdx1 /media/<vfat_mountpoint>
where sdx1 is the mount point and partition number (can also be sdc1 or sdb1 depending on the mount point detected
in Host PC)
=> cp m4_0_image.bin /media/<vfat_mountpoint>
=> cp m4_1_image.bin /media/<vfat_mountpoint>
=> sync
=> sudo umount /dev/sdx1
Loading M4 images from Uboot
www.kontron.com
Kontron SMARC-sAMX8 - Rev. 1.2
BSP Feature Supported
Default DTB file with most interfaces enabled
DTB file with ENET2 interface enabled
DTB file with USB3.0 defined in peripheral or device mode
DTB with eDP support
// 61

Advertisement

Table of Contents
loading

Table of Contents