Hi,
I’m trying to integrate Mender with iMX6UL EVK and got errors (mmc not found) along the way. The versions I’m currently trying are,
-
Yocto - Warrior from
https://source.codeaurora.org/external/imx/imx-manifest/tree/?h=imx-linux-warrior
-
Mender - 2.3.1 from
https://github.com/mendersoftware/meta-mender/tree/warrior
NOTE: Error log - https://github.com/danie007/imx6/blob/master/imx_build_warrior19052020.txt
And my local.conf
is as follows,
# IP of local server
MENDER_DEMO_HOST_IP_ADDRESS = "192.168.1.6"
MENDER_STORAGE_DEVICE = "/dev/mmcblk1"
# MENDER_STORAGE_TOTAL_SIZE_MB = "7416"
MENDER_ARTIFACT_NAME = "release-1"
MENDER_IMAGE_BOOTLOADER_BOOTSECTOR_OFFSET = "2"
MENDER_IMAGE_BOOTLOADER_FILE = "u-boot.imx"
INHERIT += "mender-full"
MENDER_FEATURES_ENABLE_append = " mender-uboot mender-image-sd"
MENDER_FEATURES_DISABLE_append = " mender-growfs-data"
MENDER_FEATURES_DISABLE_append = " mender-grub mender-image-uefi"
MACHINE ??= 'imx6ulevk'
DISTRO ?= 'fslc-xwayland'
PACKAGE_CLASSES ?= 'package_rpm'
EXTRA_IMAGE_FEATURES ?= "debug-tweaks"
USER_CLASSES ?= "buildstats image-mklibs image-prelink"
PATCHRESOLVE = "noop"
BB_DISKMON_DIRS ??= "\
STOPTASKS,${TMPDIR},1G,100K \
STOPTASKS,${DL_DIR},1G,100K \
STOPTASKS,${SSTATE_DIR},1G,100K \
STOPTASKS,/tmp,100M,100K \
ABORT,${TMPDIR},100M,1K \
ABORT,${DL_DIR},100M,1K \
ABORT,${SSTATE_DIR},100M,1K \
ABORT,/tmp,10M,1K"
PACKAGECONFIG_append_pn-qemu-system-native = " sdl"
PACKAGECONFIG_append_pn-nativesdk-qemu = " sdl"
CONF_VERSION = "1"
DL_DIR ?= "/home/ux/.yocto/warrior/downloads/"
ACCEPT_FSL_EULA = "1"
The file changes are,
u-boot-fslc_2019.07.bb
require recipes-bsp/u-boot/u-boot-mender.inc
RPROVIDES_${PN} += "u-boot"
u-boot-fslc_2019.07.bbappend
do_compile_append() {
if [ -n "${UBOOT_CONFIG}" ]
then
unset i j
for config in ${UBOOT_MACHINE}; do
i=$(expr $i + 1);
for type in ${UBOOT_CONFIG}; do
j=$(expr $j + 1);
if [ $j -eq $i ]
then
dd if="${B}/${config}/SPL" of="${B}/${config}/u-boot-${type}.imx"
dd if="${B}/${config}/u-boot.img" of="${B}/${config}/u-boot-${type}.imx" obs=1K seek=68
fi
done
unset j
done
unset i
else
dd if="${B}/SPL" of="${B}/u-boot.imx"
dd if="${B}/u-boot.img" of="${B}/u-boot.imx" obs=1K seek=68
fi
}
do_deploy_append () {
if [ -n "${UBOOT_CONFIG}" ]
then
for config in ${UBOOT_MACHINE}; do
i=$(expr $i + 1);
for type in ${UBOOT_CONFIG}; do
j=$(expr $j + 1);
if [ $j -eq $i ]
then
install -d ${DEPLOYDIR}
install -m 644 ${B}/${config}/u-boot-${type}.imx ${DEPLOYDIR}/u-boot-${type}-${PV}-${PR}.imx
cd ${DEPLOYDIR}
ln -sf u-boot-${type}-${PV}-${PR}.imx u-boot-${type}.imx
ln -sf u-boot-${type}-${PV}-${PR}.imx u-boot.imx
fi
done
unset j
done
unset i
else
install -d ${DEPLOYDIR}
install -m 644 ${B}/u-boot.imx ${DEPLOYDIR}/u-boot-${PV}-${PR}.imx
cd ${DEPLOYDIR}
rm -f u-boot*.imx
ln -sf u-boot-${PV}-${PR}.imx u-boot.imx
fi
}
It would be grateful if you could,
- Guide me with your build versions and patches so that I’ll try the tested version
- Provide some steps to start with
- Warn me about the pitfalls
Looking forward for helping hands, thanks in advance.