How to find the current version of Yocto kernel that I am using to build the components. There is a version for poky. But i want to know the Yocto kernel version.
- To know the yocto kernel version you are using, just type
bitbake -e virtual/kernel | grep "^PV"
- And to know the kernel you are using, type
bitbake -e virtual/kernel | grep "^PN"
And if you have any kernel you want to know the version, type bitbake -e <kernel_name> | grep "^PV"
I hope this will be helpfull
How to find out Yocto version?
Check out this file it gives you full details about Yocto version
vim $POKY-DIR/meta-poky/conf/distro/poky.conf
You will get info like:
DISTRO = "poky"
DISTRO_NAME = "Poky (Yocto Project Reference Distro)"
DISTRO_VERSION = "2.7.2"
DISTRO_CODENAME = "warrior"
SDK_VENDOR = "-pokysdk"
SDK_VERSION = "${@d.getVar('DISTRO_VERSION').replace('snapshot-${DATE}', 'snapshot')}"
.....
.....
Now you will know the version you are actually using.
To find the kernel version you are using:
bitbake -e virtual/kernel | grep "^PV"
cat components/yocto/layers/core/meta-poky/conf/distro/poky.conf | grep ^DISTRO_VERSION
–
Riyadh - To know the yocto kernel version you are using, just type
bitbake -e virtual/kernel | grep "^PV"
- And to know the kernel you are using, type
bitbake -e virtual/kernel | grep "^PN"
And if you have any kernel you want to know the version, type bitbake -e <kernel_name> | grep "^PV"
I hope this will be helpfull
An easier way to get this together with some other yocto related information without launching bitbake is doing the following
cat $POKY-DIR/documentation/poky.ent | grep "DISTRO_REL_TAG"
To know DISTRO info
cat $POKY-DIR/documentation/poky.ent | grep "DISTRO*"
To know POKY info
cat $POKY-DIR/documentation/poky.ent | grep "POKY*"
To know YOCTO info
cat $POKY-DIR/documentation/poky.ent | grep "YOCTO*"
cd poky
grep "DISTRO_" meta-poky/conf/distro/poky.conf
© 2022 - 2024 — McMap. All rights reserved.