![Kontron SMARC-sAL28 User Manual Download Page 45](http://html1.mh-extra.com/html/kontron/smarc-sal28/smarc-sal28_user-manual_1996505045.webp)
SMARC-sAL28 User Guide. Rev. 1.0
// 45
7.2.
Deploying created images to SD card or USB flash/disk and booting from it
Note: Kernel image, device tree images and kernel modules are automatically integrated into rootfs and sd/usb
images.
1.
Attach installation media (SD card or USB flash/disk) to Linux host computer and determine a device node
by analyzing system logs:
dmesg | tail | grep sd
Note: an SD/USB storage should greater than 4 GB.
2.
Extract a previously built SD/USB image from archive:
gunzip sal28-machine-test-kontron-sal28.wic.gz
Note: more information about WIC images can be found in official Yocto documentation:
https://www.yoctoproject.org/docs/2.5.3/dev-manual/dev-manual.html#creating-partitioned-images-using-wic
3.
Deploy this image to SD/USB storage using a dd command. E.g.:
dd if=sal28-machine-test-kontron-sal28.wic of=/dev/sdb bs=4M oflag=direct
Note: all information on SD/USB storage will be erased!
4.
Configure serial connection on SER1 port, then connect the installation media to SMARC-sAL28 and power
on/reset the board.
5.
(Option #1: semi-automatic boot) When a U-Boot prompt will appear, a boot device and device tree should
be selected by setting following variables:
boot_targets, which can be set to:
mmc0: to boot from SD;
mmc1: to boot from eMMC;
nvme0: to boot from NVMe disk;
usb0: to boot from USB storage.
carrier, which can be set to:
ads2: if variant 3 or variant 4 with Kontron SMARC Evaluation Carrier 2.0 is used;
s1914: if variant 3 or variant 4 with Kontron KBox A-230-LS Carrier is used;
var2_on_ads2: if variant 2 on Kontron SMARC Evaluation Carrier 2.0 is used.
E.g. to boot variant 3 on Kontron SMARC Evaluation Carrier 2.0 from SD a following commands should be executed:
setenv boot_targets mmc0
setenv carrier ads2
run bootcmd
6.
(Option #2: manual boot) Interrupt the boot process and check U-boot environment variables with
“printenv”. If needed, modify paths to kernel image and device tree table. E.g:
setenv image /Image
setenv fdt_file /sl28-var34-ads2.dtb
To boot the board, execute the following commands depending on which type of installation media is used:
For USB flash/disk:
setenv bootargs root=/dev/sda2 rootwait default_hugepagesz=2m hugepagesz=2m hugepages=256 video=1920x1080
cma=256M
usb start
usb dev 0
fatload usb 0:1 ${fdt_addr_r} ${fdt_file}
fatload usb 0:1 ${kernel_addr_r} ${image}
run hdpload
booti ${kernel_addr_r} - ${fdt_addr_r}
For SD card:
setenv bootargs root=/dev/mmcblk0p2 rootwait default_hugepagesz=2m hugepagesz=2m hugepages=256
video=1920x1080 cma=256M
mmc dev 0
fatload mmc 0:1 ${fdt_addr_r} ${fdt_file}
fatload mmc 0:1 ${kernel_addr_r} ${image}
Summary of Contents for SMARC-sAL28
Page 1: ...USER GUIDE 1 SMARC sAL28 Doc Rev 1 0 Doc ID 1064 6120...
Page 2: ...SMARC sAL28 Rev 1 0 www kontron com 2 This page has been intentionally left blank...
Page 22: ...SMARC sAL28 User Guide Rev 1 0 www kontron com 22 Figure 4 Bottom View 3 Product label 3...
Page 28: ...SMARC sAL28 User Guide Rev 1 0 www kontron com 28...