Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Overlays in U-boot for beaglebone #126

Open
GauravChoube opened this issue Jun 27, 2019 · 2 comments
Open

Overlays in U-boot for beaglebone #126

GauravChoube opened this issue Jun 27, 2019 · 2 comments

Comments

@GauravChoube
Copy link

Hi,
I have build uboot and kernel from https://www.digikey.com/eewiki/display/linuxonarm/BeagleBone+Black
and create SD card as per instrucution.This one having minimal image.
i want to add overlays in order to do change status of some pin(High to low).
I dont want to build kernel again.
When searched the inertnet all are old one slote base overlay.
but in my image there in bb_cap_manager in /etc/device/ and not slot file.
After read some thread,got to know and overlays is shifted uboot and there is not kernel overlays.
Can anyone explain me how to create overlays first all and how to add in uboot.
Any help will be appreciated.

@tehkillerbee
Copy link

tehkillerbee commented Jun 28, 2019

A really good starting point is https://elinux.org/Beagleboard:BeagleBoneBlack_Debian#U-Boot_Overlays
Take a look at "U-Boot Override external capes"

Creating your own overlays requires writing your own .dts files and compiling them to .dtbo. I suggest using the existing sources as a starting point and then modifying them according to your needs. Find examples here:
https://github.com/beagleboard/bb.org-overlays/tree/master/src/arm

  1. Clone this git repository (https://github.com/beagleboard/bb.org-overlays) and install it (look at the readme.md for instructions). This includes the toolchain for compiling the dts to dtbo. I cloned it on my beaglebone as it was easier so I have not tested using my PC to compile the files.

  2. Create your own dts source file/modify existing sources and save it in your local clone of the repository (eg. save it in ~/bb.org-overlays/src/arm/BB-XYZ-00A0.dts)

  3. Compile it:
    cd ~/bb.org-overlays
    make
    sudo cp src/arm/BB-XYZ-00A0.dtbo /lib/firmware/BB-XYZ-00A0.dtbo

@jadonk
Copy link
Member

jadonk commented Jul 8, 2019

@GauravChoube can this issue be closed?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants