AnsweredAssumed Answered

imx6ul - how to select the right dts for sdcard image?

Question asked by Alfredo Di Maria on Apr 9, 2019
Latest reply on Apr 11, 2019 by Alfredo Di Maria

I'm building my first yocto release.

 

All packages build well and I can build my dts. In fact I have a lot of dtb in my images folder.

 

This is my build configuration.

 

    Build Configuration:
    BB_VERSION           = "1.36.0"
    BUILD_SYS            = "x86_64-linux"
    NATIVELSBSTRING      = "ubuntu-18.04"
    TARGET_SYS           = "arm-poky-linux-gnueabi"
    MACHINE              = "pico-imx6ul-itl"
    DISTRO               = "fsl-imx-fb"
    DISTRO_VERSION       = "4.9.88-2.0.0"
    TUNE_FEATURES        = "arm armv7ve vfp neon callconvention-hard cortexa7"
    TARGET_FPU           = "hard"
    meta
    meta-poky            = "HEAD:0ec241873367e18f5371a3ad9aca1e2801dcd4ee"
    meta-oe
    meta-multimedia      = "HEAD:dacfa2b1920e285531bec55cd2f08743390aaf57"
    meta-freescale       = "HEAD:49ac225a38f6d84519798e3264f2e4d19b84f70a"
    meta-freescale-3rdparty = "HEAD:1d6d5961dbf82624b28bb318b4950a64abc31d12"
    meta-freescale-distro = "HEAD:0ec6d7e206705702b5b534611754de0787f92b72"
    meta-bsp
    meta-sdk             = "HEAD:d65692ecb3a4136fc1cc137152634e8633ddb3c6"
    meta-browser         = "HEAD:d6f9aed41c73b75a97d71bff060b03a66ee087b1"
    meta-gnome
    meta-networking
    meta-python
    meta-filesystems     = "HEAD:dacfa2b1920e285531bec55cd2f08743390aaf57"
    meta-qt5             = "HEAD:32bb7d18a08d1c48873d7ab6332d4cc3815a4dff"
    meta-edm-bsp-release = "added-wifi-drivers:10f5373fedd09c19ffb1a393272e3f3ed83b643a"

 

This is my machine configuration

#@TYPE: Machine
#@NAME: pico-imx6ul-itl
#@SOC: i.MX6UL
#@DESCRIPTION: Machine configuration for PICO-IMX6UL/ULL with QCA(Qualcomm)/BRCM(Broadcom) WLAN module

include conf/machine/include/imx-base.inc
include conf/machine/include/tune-cortexa7.inc
include conf/machine/include/imx6ul-common.inc

MACHINEOVERRIDES = "mx6:mx6ul:"
SOC_FAMILY = "mx6ul"

PREFERRED_PROVIDER_u-boot = "u-boot-edm"
PREFERRED_PROVIDER_u-boot_mx6ul = "u-boot-edm"
PREFERRED_PROVIDER_virtual/bootloader = "u-boot-edm"
PREFERRED_PROVIDER_virtual/bootloader_mx6ul = "u-boot-edm"
UBOOT_MAKE_TARGET = ""
UBOOT_SUFFIX = "img"
SPL_BINARY = "SPL"
UBOOT_MACHINE = "pico-imx6ul_spl_defconfig"
#UBOOT_MACHINE = "./pico-imx6ul_defconfig"

# Ensure uEnv.txt will be available at rootfs time
do_rootfs[depends] += "u-boot-uenv:do_deploy"

UENV_FILENAME = "uEnv.txt"
BOOT_SCRIPTS = "${UENV_FILENAME}:uEnv.txt"

PREFERRED_PROVIDER_virtual/kernel ?= "linux-tn-imx"
PREFERRED_PROVIDER_virtual/kernel_mx6ul = "linux-tn-imx"

# Add kernel modules
MACHINE_EXTRA_RRECOMMENDS += "\
    kernel-module-qcacld-tn \
"

KERNEL_DEVICETREE = "imx6ul-pico-qca_dwarf.dtb imx6ul-pico-qca_hobbit.dtb \
                     imx6ul-pico-qca_nymph.dtb imx6ul-pico-qca_pi.dtb \
                     imx6ul-pico_dwarf.dtb imx6ul-pico_hobbit.dtb \
                     imx6ul-pico_nymph.dtb imx6ul-pico_pi.dtb \
                     imx6ull-pico-qca_dwarf.dtb imx6ull-pico-qca_hobbit.dtb \
                     imx6ull-pico-qca_nymph.dtb imx6ull-pico-qca_pi.dtb \
                     imx6ull-pico_dwarf.dtb imx6ull-pico_hobbit.dtb \
                     imx6ull-pico_nymph.dtb imx6ull-pico_pi.dtb"

KERNEL_IMAGETYPE = "zImage"

MACHINE_FEATURES += "bluetooth pci wifi touchscreen"

MACHINE_EXTRA_RRECOMMENDS += " \
  broadcom-bluetooth \
  openssh-sftp-server \
  libsocketcan \
  bash hostapd dnsmasq haveged create-ap iptables \
"
MACHINE_FIRMWARE_remove = "firmware-imx-brcm"

SERIAL_CONSOLE = "115200 ttymxc5"

MACHINE_FEATURES += " usbgadget usbhost "

 

At the moment I use dd to flash the content of this archive:

core-image-base-pico-imx6ul-itl.sdcard.bz2

u-boot is using this device tree:

imx6ul-pico-qca_pi.dts

But I want this one:

imx6ul-pico_pi.dtb

 

Can you help me to fix the dts? I can't find a tutorial/documentation for this scenario.

Outcomes