AnsweredAssumed Answered

What local.config was used to build the provided image?

Question asked by Vincent Hindriksen on Feb 18, 2019
Latest reply on Feb 21, 2019 by Joan Xie

We have a i.MX 8 QuadMax MEK, and I'm trying to build the default image + package-management (rpm) + git + sudo. Problem is that I cannot even build a correct image that boots.

 

This is what I currently have:

# generated by fsl-setup-release.sh
MACHINE ??= 'imx8qxpmek'
DISTRO ?= 'fsl-imx-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-native = " sdl"
PACKAGECONFIG_append_pn-nativesdk-qemu = " sdl"
CONF_VERSION = "1"

 

# some extra packages
EXTRA_IMAGE_FEATURES += " package-management"
CORE_IMAGE_EXTRA_INSTALL += " rpm git sudo"

PACKAGE_FEED_URIS = "http://build-server.local:8000/repo/"
PACKAGE_FEED_BASE_PATHS = "rpm"
PACKAGE_FEED_ARCHS = "aarch64 aarch64_mx8 imx8qxpmek noarch"


# big machine with 32 cores.
BB_NUMBER_THREADS = "32"
PARALLEL_MAKE = "-j 32"

 

# there was a parsing error when using "inherit extrausers", which was mentioned in various documents.
INHERIT += " extrausers"

# make sure ssh is not a problem by defining a non-empty password.
EXTRA_USERS_PARAMS = "usermod -P root root;"

DL_DIR ?= "${BSPDIR}/downloads/"
ACCEPT_FSL_EULA = "1"

 

These are the steps I did:

git config --global user.name "XXX"

git config --global user.email "xxx@xxx.xxx"

repo init -u https://source.codeaurora.org/external/imx/imx-manifest -b imx-linux-sumo -m imx-4.14.78-1.0.0_ga.xml

repo sync

DISTRO=fsl-imx-xwayland MACHINE=imx8qxpmek source fsl-setup-release.sh -b build-xwayland

bitbake fsl-image-qt5-validation-imx

There is one warning about a preferred package, no error.

 

The file ./imx-yocto-bsp/build-xwayland/tmp/deploy/images/imx8qxpmek/fsl-image-qt5-validation-imx-imx8qxpmek.sdcard.bz2 was then dd'ed to an sd-card of 16GB.

When booting with the provided image, two led-lights close to reset-button turn on continuously. When booting up, one led is flashing and the other one remains off - also the led next to the network-cable flashes. There is 0 output on the terminal. HDMI we did not get working with the provided image either, which is a separate problem.

 

All the above is gathered from various sources. Most from https://www.nxp.com/docs/en/user-guide/i.MX_Yocto_Project_User%27s_Guide_Linux.pdf

 

Question 1: what is the local.conf that is used for building the provided image?

Question 2: given that image, is there something I did wrong?

Outcomes