Adding packages under core-image-base image

cancel
Showing results for 
Search instead for 
Did you mean: 

Adding packages under core-image-base image

564 Views
Contributor III

Hi All,

I am working on yocto zeus (https://source.codeaurora.org/external/imx/imx-manifest  -b imx-linux-zeus -m imx-5.4.3-1.0.0.xml).I am adding some packages under core-image-base image.

I modified the core-image-base.bb files as

SUMMARY = "A console-only image that fully supports the target device hardware."

IMAGE_INSTALL = "packagegroup-core-boot ${CORE_IMAGE_EXTRA_INSTALL}"
#IMAGE_INSTALL = "packagegroup-core-boot"

IMAGE_INSTALL_append ?= "kernel-modules firmware-imx-sdma iproute2 libsocketcan canutils i2c-tools u-boot-fw-utils minicom"

IMAGE_LINGUAS = " "

LICENSE = "MIT"

inherit core-image

#IMAGE_ROOTFS_SIZE ?= "250000"
#IMAGE_ROOTFS_SIZE ?= "8192"
#IMAGE_ROOTFS_EXTRA_SPACE_append = "${@bb.utils.contains("DISTRO_FEATURES", "systemd", " + 4096", "" ,d)}"

But i am facing below error:

| scripts/kconfig/Makefile:128: recipe for target 'mx6sxsabresd_optee_defconfig' failed
| make[1]: *** [mx6sxsabresd_optee_defconfig] Error 1
| Makefile:516: recipe for target 'mx6sxsabresd_optee_config' failed
| make: *** [mx6sxsabresd_optee_config] Error 2
| ERROR: oe_runmake failed
| WARNING: exit code 1 from a shell command.
| ERROR: Execution of '/home/ubuntu/harman_zeus/build_sabresd/tmp/work/imx6sxsabresd-poky-linux-gnueabi/u-boot-fw-utils/1_2019.07-r0/temp/run.do_compile.6768' failed with exit code 1:
| make -f ./scripts/Makefile.build obj=scripts/basic
| rm -f .tmp_quiet_recordmcount
| make -f ./scripts/Makefile.build obj=scripts/kconfig mx6sxsabresd_optee_config
| scripts/kconfig/conf --defconfig=arch/../configs/mx6sxsabresd_optee_defconfig Kconfig
| ***
| *** Can't find default configuration "arch/../configs/mx6sxsabresd_optee_defconfig"!
| ***
| scripts/kconfig/Makefile:128: recipe for target 'mx6sxsabresd_optee_defconfig' failed
| make[1]: *** [mx6sxsabresd_optee_defconfig] Error 1
| Makefile:516: recipe for target 'mx6sxsabresd_optee_config' failed
| make: *** [mx6sxsabresd_optee_config] Error 2
| WARNING: exit code 1 from a shell command.
|
ERROR: Task (/home/ubuntu/sources/poky/meta/recipes-bsp/u-boot/u-boot-fw-utils_2019.07.bb:do_compile) failed with exit code '1'

Could someone please guide me what wrong i am doing here. why this defconfig is not setting as default, or any other way so that i can make these entry permanent in core-image-base.

Thanks,

Nikhil

Labels (3)
Tags (2)
15 Replies

34 Views
Contributor III

Thanks a lot karan.gajjar@volansystech.com‌. Is there any way to modify this flag in source directory so this flag will automatically update conf/local.conf.

Thanks,

Nikhil

0 Kudos

34 Views
Senior Contributor II

Hi Nikhil sahu,

We are glad we could help with your queries.

Yes, we can modify the below variable in the machine.conf file(imx6sxsabresd.conf)

UBOOT_CONFIG ??= "sd"

to

UBOOT_CONFIG ??= "emmc"

This way we do not update the conf/local.conf.

NOTE: You still need to comment out the uboot config lines from sources/meta-imx/meta-bsp/conf/layer.conf under 

# Overrides for imx6sxsabresd.conf

Regards,

Karan Gajjar

34 Views
Contributor III

Hello karan.gajjar@volansystech.com‌,

I tried the above one, but changes are not reflected under local.conf file. Any other way so this can auto reflact.

Thanks,

Nikhil

0 Kudos

34 Views
Senior Contributor II

Hi Nikhil sahu,

Following the solution stated in the last reply, the changes won't be reflected in local.conf. However, the u-boot image generated will be for eMMC, as required.

Regards,

Karan Gajjar

34 Views
Contributor III

Hi karan,

I checked your bb file but the content is totally different with my bb file. its confusing where to modify as you suggested, I am attaching my bb file here so that it can give more idea.

Even i tried to modify but after that my u-boot compilation is also failed.

can you please have a look on below thread link which i created today, where i succeed to pass from this error (sorry its a dirty hack) but facing some different issue.

compile error u-boot-fw-utils under yocto zeus 

Thanks,

Nikhil

0 Kudos

34 Views
Senior Contributor II

Hi Nikhil sahu,

It seems version of the u-boot-fw-utils is different. I hope you have downloaded the documents from this link. So can you do repo sync and then again change the u-boot-fw-utils*.bb file and clean all and recompile?

Regards,

Karan Gajjar 

0 Kudos

34 Views
Contributor III

Thanks karan.gajjar@volansystech.com‌, Compilation done u-boot configuration is copied now under u-boot-fw-utils.

Karan, I want to change my u-boot default defconfig from mx6sxsabresd_optee_config from mx6sxsabresd_emmc_config. One hack i did below change in sources/meta-imx/meta-bsp/conf/layer.conf

# Overrides for imx6sxsabresd.conf
UBOOT_CONFIG_imx6sxsabresd = "${@bb.utils.contains('MACHINE_FEATURES', 'optee', 'sd-optee', 'sd', d)}"
UBOOT_CONFIG_OPTEE_CONFIG_imx6sxsabresd = "mx6sxsabresd_optee_config" ->  mx6sxsabresd_emmc_config
OPTEE_BIN_EXT_imx6sxsabresd = "6sxsdb"
MACHINE_FEATURES_append_imx6sxsabresd = " optee bcm4339 bcm43455"

Is there any proper way to do this, I am sure you aware on this.

Thanks,

Nikhil

0 Kudos

34 Views
Senior Contributor II

Hi Nikhil sahu,

You can do u-boot for emmc by following steps:

1. Add below line in conf/local.conf of your build directory.

UBOOT_CONFIG=emmc

2. Make sure below is present in your machine.conf file(imx6sxsabresd.conf), if not, add.

UBOOT_CONFIG[emmc] = "mx6sxsabresd_emmc_config,sdcard"

3. Comment out the uboot config lines from sources/meta-imx/meta-bsp/conf/layer.conf under 

# Overrides for imx6sxsabresd.conf

4. Clean the image using bitbake -c cleansstate <image>

5. bitbake <image>

Regards,

Karan Gajjar

34 Views
Senior Contributor II

Hi Nikhil sahu

In the u-boot-fw-utils_2019.07.bb  generic u-boot is used instead of that use imx specific u-boot,for that you need to modify the .bb file.The source link of imx specific u-boot you find in  sources/meta-imx/meta-bsp/recipes-bsp/u-boot/u-boot-imx_2019.04.bb . For reference you can refer attached .bb file.

Let us know in case of any concerns.

 

Regards,

Karan Gajjar

0 Kudos

34 Views
Contributor III

Hi Nikhil

With "DISTRO=fsl-imx-fb MACHINE=imx6sxsabresd source imx-setup-release.sh -b build ", I am also getting the same error.

Seems like something is broken for fsl-imx-fb Distro.

34 Views
Contributor III

Thans for your reply guys.

@Karan

I added the flag in local.conf file but not succeeded.

@Vipul

Even on the fresh build i am getting the same error. One thing i noticed between our build, I am using the different distro and source in my build "DISTRO=fsl-imx-fb MACHINE=imx6sxsabresd source imx-setup-release.sh -b build "

Could you please try with same env.

Thanks,

Nikhil

0 Kudos

34 Views
Contributor III

Hi Nikhil

I tried to compile u-boot-fw-utils and it's compiled successfully for me.

I used following steps for the compilation:

$ repo init -u https://source.codeaurora.org/external/imx/imx-manifest -b imx-linux-zeus -m imx-5.4.3-1.0.0.xml

$ repo sync

$ MACHINE=imx6sxsabresd DISTRO=fslc-xwayland source setup-environment build

$ bitbake u-boot-fw-utils

Logs:

vipul@vipul:~/nxp-zeus/build$ bitbake u-boot-fw-utils
Loading cache: 100% |#########################################################################################################################################################| Time: 0:00:01
Loaded 3444 entries from dependency cache.
NOTE: Multiple providers are available for u-boot-fw-utils (u-boot-fw-utils, u-boot-fslc-fw-utils, u-boot-fslc-fw-utils-cross, u-boot-qoriq-fw-utils, u-boot-qoriq-fw-utils-cross, u-boot-toradex-fw-utils, u-boot-toradex-fw-utils-cross)
Consider defining a PREFERRED_PROVIDER entry to match u-boot-fw-utils
NOTE: Resolving any missing task queue dependencies

Build Configuration:
BB_VERSION           = "1.44.0"
BUILD_SYS            = "x86_64-linux"
NATIVELSBSTRING      = "universal"
TARGET_SYS           = "arm-fslc-linux-gnueabi"
MACHINE              = "imx6sxsabresd"
DISTRO               = "fslc-xwayland"
DISTRO_VERSION       = "3.0"
TUNE_FEATURES        = "arm vfp cortexa9 neon thumb callconvention-hard"
TARGET_FPU           = "hard"
meta
meta-poky            = "HEAD:0275e68b0576cdefc19718e4b1977044f9f43f48"
meta-oe
meta-multimedia
meta-python          = "HEAD:aad5b3d070cd8c58828b0975cf861d8ebc90f460"
meta-freescale       = "HEAD:0be39721cea6e04c589a419f4bb07fabd0da6704"
meta-freescale-3rdparty = "HEAD:aea3771baa77e74762358ceb673d407e36637e5f"
meta-freescale-distro = "HEAD:ca27d12e4964d1336e662bcc60184bbff526c857"

Initialising tasks: 100% |####################################################################################################################################################| Time: 0:00:00
Sstate summary: Wanted 6 Found 0 Missed 6 Current 447 (0% match, 98% complete)
NOTE: Executing Tasks
NOTE: Setscene tasks completed
NOTE: Tasks Summary: Attempted 1794 tasks of which 1780 didn't need to be rerun and all succeeded.
NOTE: Writing buildhistory
NOTE: Writing buildhistory took: 1 seconds
vipul@vipul:~/nxp-zeus/build$ cd tmp/work/imx6sxsabresd-fslc-linux-gnueabi/u-boot-f
u-boot-fslc/     u-boot-fw-utils/
vipul@vipul:~/nxp-zeus/build$ cd tmp/work/imx6sxsabresd-fslc-linux-gnueabi/u-boot-fw-utils/
vipul@vipul:~/nxp-zeus/build/tmp/work/imx6sxsabresd-fslc-linux-gnueabi/u-boot-fw-utils$ ls
1_2019.07-r0
vipul@vipul:~/nxp-zeus/build/tmp/work/imx6sxsabresd-fslc-linux-gnueabi/u-boot-fw-utils$ cd 1_2019.07-r0/
vipul@vipul:~/nxp-zeus/build/tmp/work/imx6sxsabresd-fslc-linux-gnueabi/u-boot-fw-utils/1_2019.07-r0$ ls
0001-CVE-2019-13103.patch                                0008-CVE-2019-14195.patch  package              recipe-sysroot-native             sysroot-destdir
0002-CVE-2019-13104.patch                                0009-CVE-2019-14196.patch  packages-split       sstate-install-package            temp
0003-CVE-2019-13105.patch                                configure.sstate           pkgdata              sstate-install-packagedata        u-boot-fw-utils.spec
0004-CVE-2019-13106.patch                                deploy-rpms                pkgdata-pdata-input  sstate-install-package_qa
0005-CVE-2019-14192-14193-14199.patch                    git                        pkgdata-sysroot      sstate-install-package_write_rpm
0006-CVE-2019-14197-14200-14201-14202-14203-14204.patch  image                      pseudo               sstate-install-populate_lic
0007-CVE-2019-14194-14198.patch                          license-destdir            recipe-sysroot       sstate-install-populate_sysroot
vipul@vipul:~/nxp-zeus/build/tmp/work/imx6sxsabresd-fslc-linux-gnueabi/u-boot-fw-utils/1_2019.07-r0$ cd image/sbin/
vipul@vipul:~/nxp-zeus/build/tmp/work/imx6sxsabresd-fslc-linux-gnueabi/u-boot-fw-utils/1_2019.07-r0/image/sbin$ ls -l
total 56
-rwxr-xr-x 1 vipul vipul 27888 May  9 08:45 fw_printenv
-rwxr-xr-x 1 vipul vipul 27888 May  9 08:45 fw_setenv

Have you made any modification in u-boot-fw-utils.bb file ?

0 Kudos

34 Views
Contributor III

Just want to add -> this error is only occuring when i added "u-boot-fw-utils", rest packages are added as i can see my core-image-base/1.0-r0/image_initial_manifest file as.

mip,canutils
mip,firmware-imx-sdma
mip,i2c-tools
mip,iproute2
mip,kernel-modules
mip,libsocketcan2
mip,minicom
mip,packagegroup-core-boot
mip,packagegroup-fsl-optee-imx
mip,run-postinsts

But when i added  IMAGE_INSTALL_append ?  u-boot-fw-utils  some defconfig dependency error is occuring.

0 Kudos

34 Views
NXP TechSupport
NXP TechSupport

Hello Nikhil sahu,

Let us know if Karan Gajjar’s suggestion helps. The error seems to be related to a problem with the op-tee defconfig so it could also be beneficial to look at the dependencies for the added packages.

Regards,

34 Views
Senior Contributor II

Hi Nikhil sahu,

It looks like you are trying to add u-boot-fw-utils to the image. Please refer below link for the same:

https://community.nxp.com/thread/492195 

We hope this helps. Let us know in case of any concerns.

Regards,

Karan Gajjar