Hello,
I'm trying to build Linux image using yocto with the following build configuration. Ubuntu 20.04.3
Build Configuration:
BB_VERSION = "1.50.0"
BUILD_SYS = "x86_64-linux"
NATIVELSBSTRING = "ubuntu-20.04"
TARGET_SYS = "aarch64-poky-linux"
MACHINE = "imx8mm-lpddr4-evk"
DISTRO = "fsl-imx-xwayland"
DISTRO_VERSION = "5.10-hardknott"
TUNE_FEATURES = "aarch64 armv8a crc cortexa53 crypto"
TARGET_FPU = ""
meta
meta-poky = "HEAD:269265c00091fa65f93de6cad32bf24f1e7f72a3"
meta-oe
meta-multimedia
meta-python = "HEAD:f44e1a2b575826e88b8cb2725e54a7c5d29cf94a"
meta-freescale = "HEAD:469d6c958c76ea235b3d3c1527e797ce3a7392e3"
meta-freescale-3rdparty = "HEAD:f8150f3b37cb83cba1f9e2378e57bb63e02d4610"
meta-freescale-distro = "HEAD:e6daa26ba1f748326546063d63a085ae671827d9"
meta-bsp
meta-sdk
meta-ml
meta-v2x = "HEAD:320638350cb4c4cc8e7a2db49d5eae0d8a0bdc01"
meta-nxp-demo-experience = "HEAD:9dcc11ea9f525cffedbb28895e0abb443e56c3e0"
meta-chromium = "HEAD:8be1d3a0ba0cf32e61144900597207af5698c10d"
meta-clang = "HEAD:b0d805060791006d651efd3d7ae3dd5add8f70fe"
meta-gnome
meta-networking
meta-filesystems = "HEAD:f44e1a2b575826e88b8cb2725e54a7c5d29cf94a"
meta-qt5 = "HEAD:43f8f539d40070a70fe89136db89bf5bb1dfe7ed"
meta-python2 = "HEAD:8db9e4f6ceae33d7a4f55453d31e69f9858af4eb"
meta-virtualization = "HEAD:7f719ef40896b6c78893add8485fda995b00d51d"
I started with bitbake imx-image-full. But then build fail in u-boot-imx. Then I start building bitbake u-boot-imx and get the error. I have attached the complete error log with this post. Please, have a glance and let me know what I'm missing. I'm following i.MX Yocto Project User's Guide (nxp.com) guild.
ERROR: u-boot-imx-2021.04-r0 do_compile: oe_runmake failed
ERROR: u-boot-imx-2021.04-r0 do_compile: Execution of '/home/haider/imx-yocto-bsp/build2-xwayland/tmp/work/imx8mm_lpddr4_evk-poky-linux/u-boot-imx/2021.04-r0/temp/run.do_compile.3024380' failed with exit code 1
ERROR: Logfile of failure stored in: /home/haider/imx-yocto-bsp/build2-xwayland/tmp/work/imx8mm_lpddr4_evk-poky-linux/u-boot-imx/2021.04-r0/temp/log.do_compile.3024380
.
.
ERROR: Task (/home/haider/imx-yocto-bsp/sources/meta-imx/meta-bsp/recipes-bsp/u-boot/u-boot-imx_2021.04.bb:do_compile) failed with exit code '1'
Solved! Go to Solution.
if i were you i will start to build for imx8qxpmek , see how?
or build 5.10.52 even 5.10.35 then compare the results ?
thank you
why u got build2-xwayland ??you build how many times? r you clean the eviroment?
Hello Joseph,
Thank you for your response. I gave my build folder a different name as it was my second time to build it. I'm believe it's fine. In the first time I try to build machine imx8mm-evk and not imx8mm-LPDDR4-evk. Can you explain me what do you mean by clean the environment. Even on the first time when I try to build imx8mm-evk machine, it gave me the same error. Please, let me know if there is something wrong I'm woding.
Thanks
i nthnk it is uboot problem; see,
This board uses CONFIG_SPL_FIT_GENERATOR. Please migrate
| to binman instead, to avoid the proliferation of
| arch-specific scripts with no tests.
Hello Joseph,
I really appreciate your help. I'm new to this complete Linux build process using Yocto. Can you tell me how can I use Binman instead. What exactly I need to do. Do I just have to comment out all CREATE_ARCH_SYMLINK under all of the file you have mention. Do I have to add something so it will use binman.
Thank you
if i were you i will start to build for imx8qxpmek , see how?
or build 5.10.52 even 5.10.35 then compare the results ?
thank you
Thank you Joseph for your help. I'm able to build latest kernel for imx8mm-lpddr4-evk. After you mentioned about the environment clean. So, I start complete process from the beginning. But when I install the following packages
sudo apt-get install gawk wget git-core diffstat unzip texinfo gcc-multilib \
build-essential chrpath socat cpio python python3 python3-pip python3-pexpect \
xz-utils debianutils iputils-ping python3-git python3-jinja2 libegl1-mesa libsdl1.2-dev \
pylint3 xterm rsync curl
I found out three packages weren't up to date. So, I update those packages and restart the complete process. And it help to build my u-boot.
Thanks
I'm having a similar issue. By any chance do you remember which packages had to be updated ?
Thanks !
Hello,
I don't remember exactly which packages were those right now. But Once you install all of the below packages.
sudo apt-get install gawk wget git-core diffstat unzip texinfo gcc-multilib \
build-essential chrpath socat cpio python python3 python3-pip python3-pexpect \
xz-utils debianutils iputils-ping python3-git python3-jinja2 libegl1-mesa libsdl1.2-dev \
pylint3 xterm rsync curl
Run-> sudo apt-get update and sudo apt-get upgrade. In case it did not update the package. It will tell you and then you can update it separately.
1 cmd
$ sudo apt update && sudo apt upgrade -y
(sudo apt-get update )
2 u also can go ubuntu desktop search and run "software updater"
3hope can .
thanks