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.
Asked
Active
Viewed 2.7k times
4 Answers
16
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"

Mark Rotteveel
- 100,966
- 191
- 140
- 197

Jitender
- 331
- 3
- 4
11
- 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

john madieu
- 1,209
- 12
- 16
1
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*"

Dharman
- 30,962
- 25
- 85
- 135