fsl-auto-yocto-bsp giving error in bitbake fsl-image-base

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

fsl-auto-yocto-bsp giving error in bitbake fsl-image-base

ソリューションへジャンプ
3,321件の閲覧回数
ashokKumar5nxp
Contributor I

Hi,

 

I am facing Invalid MACHINE and DISTRO package not found while building in yocto (bitbake fsl-image-base).

Please help me to resolve this issue

Logs:

faraday@faraday-OptiPlex-790:~/fsl-auto-yocto-bsp/sources/meta-alb/build_s32g274aevb$ bitbake fsl-image-base
WARNING: /home/faraday/fsl-auto-yocto-bsp/sources/poky/bitbake/lib/bb/server/process.py:574: DeprecationWarning: setDaemon() is deprecated, set the daemon attribute instead
self.t.setDaemon(True)

ERROR: OE-core's config sanity checker detected a potential misconfiguration.
Either fix the cause of this error or at your own risk disable the checker (see sanity.conf).
Following is the list of potential problems / advisories:

DISTRO 'fsl-auto' not found. Please set a valid DISTRO in your local.conf
MACHINE=s32g274aevb is invalid. Please set a valid MACHINE in your local.conf, environment or other configuration file.


Summary: There was 1 WARNING message shown.
Summary: There was 1 ERROR message shown, returning a non-zero exit code.

 

Regards

Ashok

0 件の賞賛
返信
1 解決策
3,264件の閲覧回数
ghennadi_procopciuc
NXP Employee
NXP Employee

Hi @ashokKumar5nxp ,

According to the Linux BSP user manual, the release validation was limited to the Ubuntu-20.04 LTS distribution. Therefore Ubuntu-22.10 is not supported as a host machine.

Regards,

Ghennadi

元の投稿で解決策を見る

タグ(1)
0 件の賞賛
返信
9 返答(返信)
3,301件の閲覧回数
ghennadi_procopciuc
NXP Employee
NXP Employee

Hi @ashokKumar5nxp ,

What Linux distribution is installed on the faraday host machine? Is it an Ubuntu 20.04/22.04 or it is something else?

Regards,

Ghennadi 

0 件の賞賛
返信
3,278件の閲覧回数
ashokKumar5nxp
Contributor I

Hi @ghennadi_procopciuc ,

 

Thanks for the reply.

It's ubuntu 22.10.

-------------------------------------------------------------------

faraday@faraday-OptiPlex-790:~$ cat /etc/os-release
PRETTY_NAME="Ubuntu 22.10"
NAME="Ubuntu"
VERSION_ID="22.10"
VERSION="22.10 (Kinetic Kudu)"
VERSION_CODENAME=kinetic
ID=ubuntu
ID_LIKE=debian
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
UBUNTU_CODENAME=kinetic
LOGO=ubuntu-logo

------------------------------------------------------------------------------

 

Regards

Ashok

0 件の賞賛
返信
3,265件の閲覧回数
ghennadi_procopciuc
NXP Employee
NXP Employee

Hi @ashokKumar5nxp ,

According to the Linux BSP user manual, the release validation was limited to the Ubuntu-20.04 LTS distribution. Therefore Ubuntu-22.10 is not supported as a host machine.

Regards,

Ghennadi

タグ(1)
0 件の賞賛
返信
3,174件の閲覧回数
ashokKumar5nxp
Contributor I

Hi @ghennadi_procopciuc @Bio_TICFSL ,

 

Now I am using Ubuntu 18.04. When I tried to build an image It is throwing below error. Please refer below logs.

faradaybattery@faradaybattery-OptiPlex-790:~$ bitbake fsl-image-base
Loading cache: 100% |#######################################################################################################################################################################| Time: 0:00:00
Loaded 1812 entries from dependency cache.
ERROR: Nothing PROVIDES 'fsl-image-base'. Close matches:
core-image-base

Summary: There was 1 ERROR message, returning a non-zero exit code.

faradaybattery@faradaybattery-OptiPlex-790:~$

 

Please give me some pointers to resolve this issue.

Please find my bblayers and local configs below.

bblayers.conf

-------------------

# POKY_BBLAYERS_CONF_VERSION is increased each time build/conf/bblayers.conf
# changes incompatibly
POKY_BBLAYERS_CONF_VERSION = "2"

BBPATH = "${TOPDIR}"
BBFILES ?= ""

BBLAYERS ?= " \
/fsl-auto-yocto-bsp/sources/poky/meta \
/fsl-auto-yocto-bsp/sources/poky/meta-poky \
/fsl-auto-yocto-bsp/sources/poky/meta-yocto-bsp \
"

 

local.conf

---------------

MACHINE ??= 's32g274aevb'
DISTRO ?= 'fsl-auto'
PACKAGE_CLASSES ?= "package_rpm"
EXTRA_IMAGE_FEATURES ?= "debug-tweaks"
USER_CLASSES ?= "buildstats"
PATCHRESOLVE = "noop"
BB_DISKMON_DIRS ??= "\
STOPTASKS,${TMPDIR},1G,100K \
STOPTASKS,${DL_DIR},1G,100K \
STOPTASKS,${SSTATE_DIR},1G,100K \
STOPTASKS,/tmp,100M,100K \
HALT,${TMPDIR},100M,1K \
HALT,${DL_DIR},100M,1K \
HALT,${SSTATE_DIR},100M,1K \
HALT,/tmp,10M,1K"
PACKAGECONFIG:append:pn-qemu-system-native = " sdl"
CONF_VERSION = "2"

# Parallelism Options
BB_NUMBER_THREADS = "8"
PARALLEL_MAKE = "-j 6"
DL_DIR = "/fsl-auto-yocto-bsp/sources/meta-alb/downloads"
SSTATE_DIR = "/fsl-auto-yocto-bsp/sources/meta-alb/sstate-cache"
INHERIT += "own-mirrors"
SOURCE_MIRROR_URL ?= "http://git.freescale.com/source/"
# use xz to compress sstate
SSTATE_PKG_SUFFIX = "txz"
SSTATE_PKG_TARZIPPROG = "xz"
ACCEPT_FSL_EULA = "1"

 

Regards

Ashok

0 件の賞賛
返信
3,160件の閲覧回数
ghennadi_procopciuc
NXP Employee
NXP Employee

Hi @ashokKumar5nxp,

 

Your bblayers.conf file looks too short and there are missing layers. Did you follow the steps mentioned in the Linux BSP user manual? I mean:

mkdir fsl-auto-yocto-bsp
cd fsl-auto-yocto-bsp
repo init -u https://github.com/nxp-auto-linux/auto_yocto_bsp -b release/bsp36.0
repo sync

Regards,

Ghennadi

0 件の賞賛
返信
3,150件の閲覧回数
ashokKumar5nxp
Contributor I

Hi @ghennadi_procopciuc,

 

Thanks for sharing the details. I was running older version of bsp. Now I changed bsp36.0 and I am not seeing earlier issue. But I am facing different issue please see the below Error message for more details.

 

Error:

---------

ERROR: glibc-2.35-r0 do_unpack: Bitbake Fetcher Error: FetchError('Fetch command export PSEUDO_DISABLED=1; export PATH="/bsp_36/build_s32g274aevb/tmp/sysroots-uninative/x86_64-linux/usr/bin:/bsp_36/sources/poky/scripts:/bsp_36/build_s32g274aevb/tmp/work/cortexa53-crypto-fsl-linux/glibc/2.35-r0/recipe-sysroot-native/usr/bin/aarch64-fsl-linux:/bsp_36/build_s32g274aevb/tmp/work/cortexa53-crypto-fsl-linux/glibc/2.35-r0/recipe-sysroot/usr/bin/crossscripts:/bsp_36/build_s32g274aevb/tmp/work/cortexa53-crypto-fsl-linux/glibc/2.35-r0/recipe-sysroot-native/usr/sbin:/bsp_36/build_s32g274aevb/tmp/work/cortexa53-crypto-fsl-linux/glibc/2.35-r0/recipe-sysroot-native/usr/bin:/bsp_36/build_s32g274aevb/tmp/work/cortexa53-crypto-fsl-linux/glibc/2.35-r0/recipe-sysroot-native/sbin:/bsp_36/build_s32g274aevb/tmp/work/cortexa53-crypto-fsl-linux/glibc/2.35-r0/recipe-sysroot-native/bin:/bsp_36/sources/poky/bitbake/bin:/bsp_36/build_s32g274aevb/tmp/hosttools"; export HOME="/root"; git -c core.fsyncobjectfiles=0 -c gc.autoDetach=false -c core.pager=cat remote set-url origin git://sourceware.org/git/glibc.git failed with exit code 128, output:\nfatal: detected dubious ownership in repository at \'/bsp_36/build_s32g274aevb/tmp/work/cortexa53-crypto-fsl-linux/glibc/2.35-r0/git\'\nTo add an exception for this directory, call:\n\n\tgit config --global --add safe.directory /bsp_36/build_s32g274aevb/tmp/work/cortexa53-crypto-fsl-linux/glibc/2.35-r0/git\n', None)
ERROR: Logfile of failure stored in: /bsp_36/build_s32g274aevb/tmp/work/cortexa53-crypto-fsl-linux/glibc/2.35-r0/temp/log.do_unpack.24191
ERROR: Task (/bsp_36/sources/poky/meta/recipes-core/glibc/glibc_2.35.bb:do_unpack) failed with exit code '1'
ERROR: binutils-cross-aarch64-2.38-r0 do_unpack: Bitbake Fetcher Error: FetchError('Fetch command export PSEUDO_DISABLED=1; export PATH="/bsp_36/sources/poky/scripts/cross-intercept:/bsp_36/build_s32g274aevb/tmp/sysroots-uninative/x86_64-linux/usr/bin:/bsp_36/sources/poky/scripts:/bsp_36/build_s32g274aevb/tmp/work/x86_64-linux/binutils-cross-aarch64/2.38-r0/recipe-sysroot-native/usr/bin/aarch64-fsl-linux:/bsp_36/build_s32g274aevb/tmp/work/x86_64-linux/binutils-cross-aarch64/2.38-r0/recipe-sysroot-native/bsp_36/build_s32g274aevb/tmp/work/x86_64-linux/binutils-cross-aarch64/2.38-r0/recipe-sysroot-native/usr/bin/aarch64-fsl-linux/crossscripts:/bsp_36/build_s32g274aevb/tmp/work/x86_64-linux/binutils-cross-aarch64/2.38-r0/recipe-sysroot-native/usr/sbin:/bsp_36/build_s32g274aevb/tmp/work/x86_64-linux/binutils-cross-aarch64/2.38-r0/recipe-sysroot-native/usr/bin:/bsp_36/build_s32g274aevb/tmp/work/x86_64-linux/binutils-cross-aarch64/2.38-r0/recipe-sysroot-native/sbin:/bsp_36/build_s32g274aevb/tmp/work/x86_64-linux/binutils-cross-aarch64/2.38-r0/recipe-sysroot-native/bin:/bsp_36/sources/poky/bitbake/bin:/bsp_36/build_s32g274aevb/tmp/hosttools"; export HOME="/root"; git -c core.fsyncobjectfiles=0 -c gc.autoDetach=false -c core.pager=cat remote set-url origin git://sourceware.org/git/binutils-gdb.git failed with exit code 128, output:\nfatal: detected dubious ownership in repository at \'/bsp_36/build_s32g274aevb/tmp/work/x86_64-linux/binutils-cross-aarch64/2.38-r0/git\'\nTo add an exception for this directory, call:\n\n\tgit config --global --add safe.directory /bsp_36/build_s32g274aevb/tmp/work/x86_64-linux/binutils-cross-aarch64/2.38-r0/git\n', None)
ERROR: Logfile of failure stored in: /bsp_36/build_s32g274aevb/tmp/work/x86_64-linux/binutils-cross-aarch64/2.38-r0/temp/log.do_unpack.24190
ERROR: Task (/bsp_36/sources/poky/meta/recipes-devtools/binutils/binutils-cross_2.38.bb:do_unpack) failed with exit code '1'

 

Please find my build configurations below.

Build Configuration:
BB_VERSION = "2.0.0"
BUILD_SYS = "x86_64-linux"
NATIVELSBSTRING = "universal"
TARGET_SYS = "aarch64-fsl-linux"
MACHINE = "s32g274aevb"
DISTRO = "fsl-auto"
DISTRO_VERSION = "36.0"
TUNE_FEATURES = "aarch64 armv8a crc cortexa53 crypto"
TARGET_FPU = ""
meta
meta-poky
meta-yocto-bsp = "HEAD:2e79b199114b25d81bfaa029ccfb17676946d20d"
meta-oe
meta-multimedia
meta-python = "HEAD:744a4b6eda88b9a9ca1cf0df6e18be384d9054e3"
meta-python2 = "HEAD:f02882e2aa9279ca7becca8d0cedbffe88b5a253"
meta-networking
meta-gnome
meta-filesystems
meta-webserver
meta-perl
meta-xfce = "HEAD:744a4b6eda88b9a9ca1cf0df6e18be384d9054e3"
meta-virtualization = "HEAD:9a487c1851aa2021cf24f951957e22fd429c8025"
meta-security = "HEAD:c79262a30bd385f5dbb009ef8704a1a01644528e"
meta-freescale = "HEAD:3747641f1e71d8e4edd5b587b49d09dc2d243942"
meta-alb = "HEAD:bda579ee5c65b3156b78c952ecde98dc92673e31"

 

Regards

Ashok

0 件の賞賛
返信
3,257件の閲覧回数
ashokKumar5nxp
Contributor I

Hi @ghennadi_procopciuc,

 

Thank you so much for the Info. I am gonna try on Ubuntu 20.04 machine.

 

Regards

Ashok

0 件の賞賛
返信
3,307件の閲覧回数
Bio_TICFSL
NXP TechSupport
NXP TechSupport

Hello,

Please erase everything before you are going to build yocto bsp and make sure that you have all the module host that yocto need to build.

https://docs.yoctoproject.org/2.6/kernel-dev/kernel-dev.html

 

Regards

タグ(1)
0 件の賞賛
返信
3,277件の閲覧回数
ashokKumar5nxp
Contributor I

Hi,

 

Thanks.

Sure, I will give a try today.

 

Regards

Ashok

0 件の賞賛
返信