Regarding to package manager installation and configuration in yocto project

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Regarding to package manager installation and configuration in yocto project

2,177 Views
devendrasinghba
Contributor II

Hi All

Can anyone tell me how to install OPKG package manager in yocto build for imx6dlsabresd and imx6ulevk and how to configure opkg to install packages.

Thanks in Advance

Labels (3)
3 Replies

1,590 Views
gusarambula
NXP TechSupport
NXP TechSupport

Hello Devendra Singh Baghel,

You would need to add the package classes for ipk. You may add this to the already existing PACKAGE_CLASSES variable in the local.conf file.

PACKAGE_CLASSES ?= "package_rpm package_ipk"

You would also need to add the package-management feature to the EXTRA_IMAGE_FEATURES variable.

EXTRA_IMAGE_FEATURES += " package-management"

And also the opkg recipe:

IMAGE_INSTALL_append = " opkg

These are the main packages required for OPKG. After this you would need to setup the repositories in order for OPKG to work.

I hope this helps!

Regards,

1,105 Views
Tsai1234555
Contributor I

Hello gusarambula !I try to modify my local.config as your steps,but when I bitbake core-image-minimal it shows a error message as follow. Do you know what is wrong?

The attached file is my local.conf. Thanks for help!

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

ERROR: linux-imx-4.14.98-r0 do_package_write_ipk: Error executing a python function in exec_python_func() autogenerated:

The stack trace of python calls that resulted in this exception/failure was:
File: 'exec_python_func() autogenerated', lineno: 2, function: <module>
0001:
*** 0002:do_package_ipk(d)
0003:
File: '/home/syntec/WorkSpace_4.14/imx-yocto-bsp/sources/poky/meta/classes/package_ipk.bbclass', lineno: 87, function: do_package_ipk
0083:
0084: os.chdir(oldcwd)
0085:
0086: if error:
*** 0087: raise error
0088:}
0089:do_package_ipk[vardeps] += "ipk_write_pkg"
0090:do_package_ipk[vardepsexclude] = "BB_NUMBER_THREADS"
0091:
Exception: subprocess.CalledProcessError: Command 'PATH="/home/syntec/WorkSpace_4.14/imx-yocto-bsp/sources/poky/scripts:/home/syntec/WorkSpace_4.14/imx-yocto-bsp/build-x11/tmp/work/imx6dlsabresd-poky-linux-gnueabi/linux-imx/4.14.98-r0/recipe-sysroot-native/usr/bin/arm-poky-linux-gnueabi:/home/syntec/WorkSpace_4.14/imx-yocto-bsp/build-x11/tmp/work/imx6dlsabresd-poky-linux-gnueabi/linux-imx/4.14.98-r0/recipe-sysroot/usr/bin/crossscripts:/home/syntec/WorkSpace_4.14/imx-yocto-bsp/build-x11/tmp/work/imx6dlsabresd-poky-linux-gnueabi/linux-imx/4.14.98-r0/recipe-sysroot-native/usr/sbin:/home/syntec/WorkSpace_4.14/imx-yocto-bsp/build-x11/tmp/work/imx6dlsabresd-poky-linux-gnueabi/linux-imx/4.14.98-r0/recipe-sysroot-native/usr/bin:/home/syntec/WorkSpace_4.14/imx-yocto-bsp/build-x11/tmp/work/imx6dlsabresd-poky-linux-gnueabi/linux-imx/4.14.98-r0/recipe-sysroot-native/sbin:/home/syntec/WorkSpace_4.14/imx-yocto-bsp/build-x11/tmp/work/imx6dlsabresd-poky-linux-gnueabi/linux-imx/4.14.98-r0/recipe-sysroot-native/bin:/home/syntec/WorkSpace_4.14/imx-yocto-bsp/sources/poky/bitbake/bin:/home/syntec/WorkSpace_4.14/imx-yocto-bsp/build-x11/tmp/hosttools" opkg-build -Z xz kernel-module-snd-usbmidi-lib-4.14.98-imx_4.14.98_2.0.0_ga+g5d6cbeafb80c /home/syntec/WorkSpace_4.14/imx-yocto-bsp/build-x11/tmp/work/imx6dlsabresd-poky-linux-gnueabi/linux-imx/4.14.98-r0/deploy-ipks/imx6dlsabresd' returned non-zero exit status 1.

Subprocess output:
kernel-module-snd-usbmidi-lib-4.14.98-imx_4.14.98_2.0.0_ga+g5d6cbeafb80c
*** Error: Package name kernel-module-snd-usbmidi-lib-4.14.98-imx_4.14.98_2.0.0_ga+g5d6cbeafb80c contains illegal characters, (other than [a-z0-9.+-])

opkg-build: Please fix the above errors and try again.

ERROR: linux-imx-4.14.98-r0 do_package_write_ipk: Function failed: do_package_ipk
ERROR: Logfile of failure stored in: /home/syntec/WorkSpace_4.14/imx-yocto-bsp/build-x11/tmp/work/imx6dlsabresd-poky-linux-gnueabi/linux-imx/4.14.98-r0/temp/log.do_package_write_ipk.41244
ERROR: Task (/home/syntec/WorkSpace_4.14/imx-yocto-bsp/sources/meta-fsl-bsp-release/imx/meta-bsp/recipes-kernel/linux/linux-imx_4.14.98.bb:do_package_write_ipk) failed with exit code '1'
NOTE: Tasks Summary: Attempted 2364 tasks of which 2360 didn't need to be rerun and 1 failed.

0 Kudos

1,590 Views
atakanakbulut
Contributor II

Really nice.. Also if you want install dpkg apt-get apply this ones

PACKAGE_CLASSES ?= "package_rpm package_deb"

EXTRA_IMAGE_FEATURES += " package-management"

IMAGE_INSTALL_append = " apt"

0 Kudos