Boot From Emmc; Preparing Emmc; Running Linux From Emmc - Kontron SMARC-sAMX8 User Manual

Table of Contents

Advertisement

Note: If board tries to boot from other media then perform the following steps
Stop at Uboot prompt and enter the following commands to set the U-boot environment variables to boot kernel
and rootfs from SD card
Command to set boot argument variables for serial console port for boot logs, baud rate of console port and
root file system path is as given below:
=> setenv bootargs console=ttyLP0,115200 earlycon=lpuart32,0x5a060000,115200 root=/dev/mmcblk1p2 rootwait
Commands to set the load address of FDT (Flattened Device Tree) file and Kernel Image from SD partition
mmcblk1p1 is as below
=> setenv loadfdt 'fatload mmc ${mmcdev}:${mmcpart} ${fdt_addr} ${fdt_file}'
=> setenv loadkernel 'fatload mmc ${mmcdev}:${mmcpart} ${loadaddr} Image'
Command to set and save the Boot Command environment variable for Booting kernel and DTB from
and
is as given below
fdt_addr
=> setenv bootcmd 'mmc dev ${mmcdev}; run loadkernel; run mmcargs; run loadfdt; booti ${loadaddr} -
${fdt_addr};'
=> saveenv
=> boot

8.3. Boot from eMMC

8.3.1.

Preparing eMMC

Using UUU Tool (Download from https://github.com/NXPmicro/mfgtools/releases)
Follow these instructions to use the Universal Update Utility (UUU)
1. Connect a USB cable from a computer to USB port3 (bottom) on the carrier
2. Connect a serial cable from the UART0 port tot he computer for console output
3. Open terminal emulator program (115200,8,0,1,None)
4. Assert signal FORCE_RECOV# (pin# S155) on your SMARC carrier. The board will then be in Serial
download mode for the UUU Tool
Execute the command line tools from the computer (Windows or Linux)
- Burn uboot into emmc
uuu -b emmc bootloader
- Burn rootfs image into emmc
uuu -b emmc_all bootloader rootfs.sdcard
- Decompress rootfs image and burn into emmc
uuu -b emmc_all bootloader rootfs.sdcard.bz2/*
8.3.2.

Running Linux from eMMC

Make sure the Boot switch is configured for eMMC boot
Stop at Uboot prompt and give the following commands to set the boot environment variables
Command to set boot argument variables for serial console port for boot logs, baud rate of console port and
root file system path MMC0 Partition 2 is as given below:
=> setenv bootargs console=ttyLP0,115200 earlycon=lpuart32,0x5a060000,115200 root=/dev/mmcblk0p2 rootwait
www.kontron.com
Kontron SMARC-sAMX8 - Rev. 1.2
loadaddr
// 58

Advertisement

Table of Contents
loading

Table of Contents