I am starting with Yocto Project.
I wish to control GPIOs of BeagleBone Black with the image built with Yocto. Please help me. I simply find it hard to arrange the puzzles. Believe me I have "googled", but did not find something to glue the practical steps and understand the concepts.
I figure out it is something related to meta-yocto-bsp or I should build a BSP layer from scratch with the Boot modified for this.
Practically, I want to fire an LED when powering on the board,leave it on during the boot process and switch it to flash mode after the Operating System has been loaded.
I got some up and running knowledge of Yocto. Built several types of images, included an app in a Linux Image, did modifications to images.
I understood the notion of GPIOs and controlled these by
echo 48 > /sys/class/gpio/export
echo 'out' > /sys/class/gpio/gpio48/direction
toggle the GPIOs
echo 1 > /sys/class/gpio/gpio48/value
echo 0 > /sys/class/gpio/gpio48/value
But I do not know how to modify the U-boot to set up the GPIO in Yocto Project before baking the actual Linux Image.
Thank you very much for your help.
George