Salam, Great video, I am new to yocto to build system and learning a lot from your videos. They are on point and provide the right amount of information. One thing that I want to know about the "MACHINE" tag. If I want to build for some other board like for nxp, rockchip where can I find their provided meta layer and how to include that here so that I can use that. Can you make a video about some other board thats not included already here and just show the process on how to add files for that board to build an image.
Wa elykum mussalam, For others boards, you can visit the website of the the respective board. They usually provide the link to there meta-layer, as well as how to build them. Furthermore you can visit Open-Embedded layer repository. There you can find most of the meta-layers. Open-Embedded repo is jus repo, they do not show how to build for a certain board. In future, I will try to build for different boards.
Hello Munawar, Thanks for the video detaild explanations. I learnt a lot. However, I am still wondering on how to write own receipe from scrach for something beyong "helloWorld" thingy. For example, writing receipe for a small C project having dependancies such as pthread or memcached DB or SSL for that matter. Also, It would be good to know about do_install do_compile do_fetch functions and their use. Big thanks Kunal
Hi Munawar, Thanks for such a wonderful video. I followed the video and was successfully able to boot for BBB, but I am unable to access the GPIO in sys/class/gpio, and there is no GPIO directory. Any help is appreciated.
Here are some steps to enable sysfs Gpios. 1) Execute bitbake -c menuconfig linux-yocto. 2) In menuconfig, go to "General setup" and press Enter. 3) In General setup, go to " Configure standard kernel features (expert user)" and press y. 4) Using arrow keys select save press Enter thrice. 5) Go to exit and press Enter. 6) Go to "Device Drivers --> GPIO Support --> /sys/class/gpio" and press y. 7) Go to Save and press Ennter thrice. 8) Now Exit the menuconfig by selecting Exit thrice. 9) Execute bitbake core-image-full-cmdline. 10) Install image to BBB and try to access sysfs Gpios
@@techabyte8 Thanks for help. After executing menuconfig, there is no option to select /sys/class/gpio.Please check the settings below. config - Linux/arm 5.15.54 Kernel Configuration > Device Drivers > GPIO Support ──────────────┐ │ │ │ --- GPIO Support │ │ (512) Maximum number of GPIOs for fast path │ │ │ │ [ ] Debug GPIO calls │ │ -*- Character device (/dev/gpiochipN) support │ │ [*] Support GPIO ABI Version 1
@@anujkumar-no1mv The /sys/calss/gpio systen has been officially deprecated and the new libgpiod system is now used which you can see in your menuconfig as /dev/gpiochipN. Search about libgpiod and you will understand.
Hello, If you're wondering whether Python 3 recipe is in one of the layers, try this command: *bitbake-layers show-recipes | grep python3* If you see *python3* in the list, it means the recipe is there. Now, in your local.conf, just add: *IMAGE_INSTALL += "python3"* After that, build the entire image. Python 3 should be in your image. Furthermore, you can refer to my following Video: ruclips.net/video/naszh2WoHAM/видео.html Hope this helps!
Salam,
Great video, I am new to yocto to build system and learning a lot from your videos. They are on point and provide the right amount of information. One thing that I want to know about the "MACHINE" tag. If I want to build for some other board like for nxp, rockchip where can I find their provided meta layer and how to include that here so that I can use that. Can you make a video about some other board thats not included already here and just show the process on how to add files for that board to build an image.
Wa elykum mussalam,
For others boards, you can visit the website of the the respective board. They usually provide the link to there meta-layer, as well as how to build them.
Furthermore you can visit Open-Embedded layer repository. There you can find most of the meta-layers. Open-Embedded repo is jus repo, they do not show how to build for a certain board.
In future, I will try to build for different boards.
@@techabyte8 Thanks, Looking forward to more great videos (y)
Nice tutorial
Glad you think so!
Hello Munawar,
Thanks for the video detaild explanations. I learnt a lot.
However, I am still wondering on how to write own receipe from scrach for something beyong "helloWorld" thingy. For example, writing receipe for a small C project having dependancies such as pthread or memcached DB or SSL for that matter.
Also, It would be good to know about do_install do_compile do_fetch functions and their use.
Big thanks
Kunal
Hi Kunal,
Your welcome, I appreciate that. In future I would definitely be making videos on the topics you mentioned.
Hi Munawar,
Thanks for such a wonderful video. I followed the video and was successfully able to boot for BBB, but I am unable to access the GPIO in sys/class/gpio, and there is no GPIO directory. Any help is appreciated.
Hi Anuj,
You need to configure the Kernel to get sysfs for GPIOs.
Here are some steps to enable sysfs Gpios.
1) Execute bitbake -c menuconfig linux-yocto.
2) In menuconfig, go to "General setup" and press Enter.
3) In General setup, go to " Configure standard kernel features (expert user)" and press y.
4) Using arrow keys select save press Enter thrice.
5) Go to exit and press Enter.
6) Go to "Device Drivers --> GPIO Support --> /sys/class/gpio" and press y.
7) Go to Save and press Ennter thrice.
8) Now Exit the menuconfig by selecting Exit thrice.
9) Execute bitbake core-image-full-cmdline.
10) Install image to BBB and try to access sysfs Gpios
@@techabyte8 Thanks for help. After executing menuconfig, there is no option to select /sys/class/gpio.Please check the settings below.
config - Linux/arm 5.15.54 Kernel Configuration
> Device Drivers > GPIO Support ──────────────┐ │
│ │ --- GPIO Support
│ │ (512) Maximum number of GPIOs for fast path │ │
│ │ [ ] Debug GPIO calls
│ │ -*- Character device (/dev/gpiochipN) support
│ │ [*] Support GPIO ABI Version 1
Hi Anuj,
I think you missed step 2 to 5.
First you need to go to General Setup and enable the expert mode.
@@anujkumar-no1mv The /sys/calss/gpio systen has been officially deprecated and the new libgpiod system is now used which you can see in your menuconfig as /dev/gpiochipN. Search about libgpiod and you will understand.
nice video ... I have one question ... That if I want to add python3.10 support to my image the how and from where I will get the .bb files
Hello,
If you're wondering whether Python 3 recipe is in one of the layers, try this command:
*bitbake-layers show-recipes | grep python3*
If you see *python3* in the list, it means the recipe is there.
Now, in your local.conf, just add:
*IMAGE_INSTALL += "python3"*
After that, build the entire image. Python 3 should be in your image.
Furthermore, you can refer to my following Video:
ruclips.net/video/naszh2WoHAM/видео.html
Hope this helps!
DISTRO 'qti-distro-rb-debug' not found. Please set a valid DISTRO in your local.conf I am continously getting this error,please help me regarding this
Hi there,
are you building for beagle-bone black or some other board.
Could you please share the content of local.conf file.
damn many ads..