Posts

Showing posts from June, 2022

Adding libraries to our image using package groups in yocto project

Image
 Hello All, In my previous article we have seen that, how we can add the different libraries to our image using yocto project. previous article here: https://learnyoctowithme.blogspot.com/2022/06/adding-libraries-pciutilsusbutils-and.html In this article we are going to see how we can add multiple libraries(packages) at the same time using the concept of package groups in yocto project Before proceeding to this, you need to  be familiar with my previous articles , as it contains the necessary steps to create the build environment for qemux86-64 and steps to create our own layer. pre-requisite: https://www.blogger.com/blog/posts/8695339245532547417?tab=rj Adding libraries to our image using package groups in yocto project: step 1: switch to our own layer (meta-mylayer/recipes-kernel) $ cd poky/meta-mylayer/recipes-kernel/ step 2: inside recipes-kernel directory, create a folder called packagegroups $ mkdir -p packagegroups step 3: switch to packagegroups directory $ c...

Adding libraries (pciutils,usbutils and util-linux) to our image using yocto project

Image
 Hello All, In this article we are going to see how we can add libraries like pciutils,usbutils and util-linux to our image using yocto project. Before proceeding to this, you need to  be familiar with my previous articles , as it contains the necessary steps to create the build environment for qemux86-64 and steps to create our own layer. pre-requisite: https://www.blogger.com/blog/posts/8695339245532547417?tab=rj Adding libraries (pciutils,usbutils and util-linux) to our image using yocto project: step 1: switch to poky folder $ cd poky step 2: now switch to the directory build_x86/conf/ $ cd build_x86/conf step 3: open local.cong file $ vi local.conf and append the following lines as  IMAGE_INSTALL_append += "util-linux pciutils usbutils" and save it step 4: now compile the image as $ bitbake core-image-minimal  step 5: now boot the image using the command $ runqemu nographic and login as root user step 6: On terminal, enter the command as $ lsblk step 7: on ...

Adding custom python script(to findout system info) to rootfs using yocto project

Image
 Hello All, In this article, we are going to see how we can add our custom python script( python script to find out the system information) to our root filesystem using yocto project Before proceeding to this, you need to familiar with my previous articles, as it gives the overview about yocto build system and setup environment pre-requisite: https://www.blogger.com/blog/posts/8695339245532547417?tab=rj Adding custom python script (to findout system information) to rootfs using yocto: step 1: switch to meta-mylayer/recipes-kernel directory $ cd poky/meta-mylayer/recipes-kernel/ step 2 : create a folder called system_info $ mkdir system_info step 3: Inside system_info folder, create another folder called files $ mkdir files step 4: Inside files folder , create a file called sytem_info.py and edit as following $ touch system_info.py $ vi system_info.py and save and exit it step 5: now switch back to system_info folder $ cd .. step 6: create a bitbake recipe to add the system_inf...