Yocto: Getting Started with the Digi ConnectCore 8M Nano Development Kit

Introduction

Documentation

Required packages (Debian 10)

sudo apt update
sudo apt install build-essential chrpath curl diffstat g++-multilib gawk \
gcc-multilib git libsdl1.2-dev minicom socat texinfo unzip wget xterm

Install Repo:

sudo curl -o /usr/local/bin/repo http://commondatastorage.googleapis.com/git-repo-downloads/repo
sudo chmod a+x /usr/local/bin/repo

Install Digi’s dey manifest:

repo init -u https://github.com/digi-embedded/dey-manifest.git -b gatesgarth
repo sync -j8 --no-repo-verify
mkdir -p workspace/ccimx8mn-dvk
cd workspace/ccimx8mn-dvk/
source ../../mkproject.sh -p ccimx8mn-dvk

Example: adding additional packages to default project:

For example, if you needed python3-pip, python3-supervisor, you can add them to the recipe by adding:

echo 'IMAGE_INSTALL_append = " git nano python3 python3-pip python3-supervisor"' >> conf/local.conf

Build base project

bitbake dey-image-qt

Setup microSD to flash files to eMMC:

Format as fat32:

Copy dey-image-qt output files to microSD

cd ./tmp/deploy/images/ccimx8mn-dvk/ ;\
sudo cp -vL ./dey-image-qt-xwayland-ccimx8mn-dvk.boot.vfat /media/voodoo/MICROSD/ ;\
sudo cp -vL ./dey-image-qt-xwayland-ccimx8mn-dvk.ext4.gz /media/voodoo/MICROSD/ ;\
sudo cp -vL ./dey-image-qt-xwayland-ccimx8mn-dvk.recovery.vfat /media/voodoo/MICROSD/ ;\
sudo cp -vL ./imx-boot-ccimx8mn-dvk.bin /media/voodoo/MICROSD/ ;\
sudo cp -vL ./install_linux_fw_sd.scr /media/voodoo/MICROSD/ ;\
sudo cp -vL ./install_linux_fw_usb.scr /media/voodoo/MICROSD/ ;\
sudo cp -vL ./install_linux_fw_uuu.sh /media/voodoo/MICROSD/ ;\
gunzip /media/voodoo/MICROSD/dey-image-qt-xwayland-ccimx8mn-dvk.ext4.gz

Board, update eMMC thru u-boot from files on microSD:

U-Boot console over J16 - Console:

flash target is MMC:0
Net:   eth0: ethernet@30be0000
Fastboot: Normal
Normal Boot
Hit any key to stop autoboot:  0 
=>  

Run install_linux_fw_sd to copy files from microSD to eMMC:

=>  run install_linux_fw_sd

Custom Kernel:

diff --git a/meta-digi-arm/conf/layer.conf b/meta-digi-arm/conf/layer.conf
index ce7a33cd..61b8fb94 100644
--- a/meta-digi-arm/conf/layer.conf
+++ b/meta-digi-arm/conf/layer.conf
@@ -35,3 +35,4 @@ DIGI_GIT	 ?= "${DIGI_LOG_GIT}"
 DIGI_PKG_SRC ?= "https://ftp1.digi.com/support/digiembeddedyocto/source"
 
 DIGI_GITHUB_GIT ?= "git://github.com/digi-embedded"
+RCN_GITHUB_GIT ?= "git://github.com/rcn-ee"
diff --git a/meta-digi-arm/recipes-kernel/linux/linux-dey-src.inc b/meta-digi-arm/recipes-kernel/linux/linux-dey-src.inc
index 407f673c..a6b228d9 100644
--- a/meta-digi-arm/recipes-kernel/linux/linux-dey-src.inc
+++ b/meta-digi-arm/recipes-kernel/linux/linux-dey-src.inc
@@ -4,11 +4,11 @@ LICENSE = "GPLv2"
 LIC_FILES_CHKSUM = "file://COPYING;md5=bbea815ee2795b2f4230826c0c6b8814"
 
 LOCALVERSION = "-dey"
-SRCBRANCH = "v5.4/dey-3.2/maint"
+SRCBRANCH = "v5.4/dey-3.2/maint-sdc30"
 SRCREV = "${AUTOREV}"
 
 # Select internal or Github Linux repo
-LINUX_GIT_URI ?= "${@oe.utils.conditional('DIGI_INTERNAL_GIT', '1' , '${DIGI_GIT}linux-2.6.git', '${DIGI_GITHUB_GIT}/linux.git;protocol=https', d)}"
+LINUX_GIT_URI ?= "${@oe.utils.conditional('DIGI_INTERNAL_GIT', '1' , '${DIGI_GIT}linux-2.6.git', '${RCN_GITHUB_GIT}/digi-embedded-linux.git;protocol=https', d)}"
 SRC_URI = "${LINUX_GIT_URI};branch=${SRCBRANCH}"
 
 S = "${WORKDIR}/git"
1 Like