This topic explains how to boot Digi Embedded Yocto images without updating the firmware on the internal eMMC. This is helpful during the development phase, as it preserves the original firmware on the SOM.
Open a serial connection
You must open a serial connection to communicate with your device.
Open a serial connection using any terminal program such as Tera Term, Minicom, Coolterm, or HyperTerminal. This documentation demonstrates using Minicom to work with the device command line.
Use the following settings:
Serial port where the device is connected
Reset the device by pressing the reset button on the board. Then immediately press any key in the serial terminal to stop the auto-boot process. The U-Boot bootloader prompt displays:
U-Boot dub-2020.04-r1.2 (Oct 20 2020 - 09:34:48 +0000) CPU: NXP i.MX8QXP RevB A35 at 1200 MHz DRAM: 2 GiB MCA: HW_VER=1 FW_VER=0.18 MMC: FSL_SDHC: 0, FSL_SDHC: 1 In: serial Out: serial Err: serial Model: Digi International ConnectCore 8X SBC Pro Board. ConnectCore 8X SOM variant 0x02: 2 GiB LPDDR4, Wi-Fi, Bluetooth, MCA, Crypto-auth Board: ConnectCore 8X SBC Pro, version 1, ID 135 Boot: MMC0 BuildInfo: - SCFW 732e719a, SECO-FW 376e3c15, IMX-MKIMAGE 6745ccdc, ATF 0645021 - U-Boot dub-2020.04-r1.2 flash target is MMC:0 Net: eth0: ethernet@5b040000 [PRIME], eth1: ethernet@5b050000 Fastboot: Normal Normal Boot Hit any key to stop autoboot: 0 =>
Boot the system from network
This shows how to transfer the images to the target via TFTP or NFS, and mount an NFS root file system.
|This requires that you set up your PC workstation as explained in Set up your development workstation.|
1. Prepare the device artifacts
Get the Yocto firmware images to boot from network:
After building the Yocto firmware, you can find the image files inside the project directory at:
You can download Digi provided pre-built images from:
For ConnectCore 8X SBC Pro:
Untar the root filesystem tarball (*.rootfs.tar.bz2) in the NFS exported directory of your development workstation. See Set up your development workstation.
~> sudo tar xvfp image.rootfs.tar.bz2 -C /exports/nfsroot-ccimx8x_sbc_pro
Copy the kernel *.bin file to the TFTP exported directory of your development workstation.
~> sudo cp image.bin /tftpboot
Copy the device tree *.dtb file to the TFTP exported directory of your development workstation.
~> sudo cp image.dtb /tftpboot
Read the board_id of your platform from U-Boot to find out the appropriate device tree file for your platform. For example:
=> printenv board_id board_id=135 =>
The dtb file name of your device device tree for your platform follows the format: <platform>-id<board_id>--4.14-r0.2-<platform>-<date>.dtb
2. Configure your device’s network settings
Get a dynamic IP for your target:
=> setenv autoload no => dhcp
or you can set a static IP:
=> setenv ipaddr 192.168.115.222
Configure the IP of the development workstation with TFTP and NFS servers installed. See Set up your development workstation:
=> setenv serverip 192.168.115.1
3. Boot from network
Boot from TFTP+NFS
Set the directory with the rootfs to mount. This directory is the one exported via NFS in your development workstation. See Set up an NFS server.
=> setenv rootpath /exports/nfsroot-ccimx8x_sbc_pro
Specify the device tree (*.dtb) file name. This is the name of the *.dtb file you copied to the TFTP exported directory of your development workstation.
=> setenv fdt_file image.dtb
Establish the kernel file (*.bin) name. This is the name of the *.bin file you copied to the TFTP exported directory of your development workstation.
=> setenv imagegz image.bin
Save the changes.
Boot from TFTP.
=> dboot linux tftp
You can make these changes persistent by writing the following command:
=> setenv bootcmd 'dboot linux tftp' => saveenv
The target now loads the kernel and device tree from the TFTP server and the root filesystem from the NFS server.
Boot entirely from NFS
To avoid using TFTP for kernel and device tree files and boot everything from NFS, copy the kernel *.bin and device tree *.dtb files to the NFS-exported directory of your development workstation (instead of to the TFTP directory). See Set up an NFS server.
=> dboot linux nfs
Boot from microSD card
U-Boot can start a complete Yocto system from a microSD card. To boot a system from a microSD card, follow these steps:
1. Create a bootable microSD card from a Yocto image
Root/Administrator permissions in your development computer
A microSD card with a minimum capacity of 2 GB
|The following procedure will destroy existing data in the microSD card.|
To create a bootable microSD card from an existing Yocto image:
Download the bootable Yocto image from this URL: https://ftp1.digi.com/support/digiembeddedyocto/2.6/r3/images/ccimx8x-sbc-pro/xwayland/.
Extract the .sdcard file from the zip you downloaded into a folder of your choice.
Insert the microSD card into your computer and check the node Linux assigns to it (/dev/[sdcard]) using dmesg:
$ dmesg [1413652.901270] sd 41:0:0:0: [sdc] 7744512 512-byte logical blocks: (3.96 GB/3.69 GiB) [1413652.903140] sd 41:0:0:0: [sdc] No Caching mode page present [1413652.903144] sd 41:0:0:0: [sdc] Assuming drive cache: write through [1413652.905638] sd 41:0:0:0: [sdc] No Caching mode page present [1413652.905642] sd 41:0:0:0: [sdc] Assuming drive cache: write through [1413652.915154] sdc: sdc1
Do not mount any partitions the card might contain (or unmount any partition if automatically mounted) as you will be writing to the entire block device.
Using an incorrect device node in the next step might destroy all data on your computer hard drive.
Raw write the image file to the microSD card with this command:
sudo dd if=<path/filename.sdcard> of=/dev/<sdcard> bs=64K && sync
In this example:
You must substitute <path/filename.sdcard> with the path and filename to the SD card image.
You must substitute <sdcard> with the device node Linux assigned to your microSD card.
The microSD card is now ready.
2. Boot Yocto from the microSD card
Power off the device.
Insert the microSD card into the microSD card holder (bottom side of the board).
Change the boot source configuration to boot from the microSD card. To do so, set the boot mode micro-switches as follows:
Power on the device. Digi Embedded Yocto boots from the microSD card.