This repository has been archived by the owner on Sep 30, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 494
FBTFT RPI overlays
Alexander Lehmann edited this page Jan 27, 2016
·
28 revisions
How to make your own Device Tree overlay for the Raspberry Pi
Get dtc compiler with overlay support:
wget -c https://raw.githubusercontent.com/RobertCNelson/tools/master/pkgs/dtc.sh
chmod +x dtc.sh
./dtc.sh
Compile dtb and put it directly into it's destination:
sudo dtc -@ -I dts -O dtb -o /boot/overlays/foo-overlay.dtb foo-overlay.dts
Load the overlay by adding this to /boot/config.txt:
dtoverlay=foo
Then reboot to load the overlay.
Refs:
- Example FBTFT overlays
- This is from my earlier work on DT, and can be used as a source for info on displays that don't have an overlay yet: https://github.com/notro/fbtft/blob/master/dts/rpi.dts
- Device Trees, Overlays and Parameters
- /boot/overlays/README
If you have made an overlay and want to share it, add a link here. GitHub Gist can be used to store the overlay.
- JBTEK 3.5" LCD: https://github.com/acidjazz/jbtekoverlay
- Waveshare 3.2"/3.5": https://github.com/swkim01/waveshare-dtoverlays
- Elecfreaks 2.2" LCD: https://github.com/philenotfound/rpi_elecfreaks_22_tft_dt_overlay
- Adafruit 13m: https://github.com/kenrestivo/linux/blob/3d61a22b05cbf7ac2f6b620dcd45c2fb49fb9442/arch/arm/boot/dts/overlays/adafruit13m-overlay.dts
- Sainsmart 3.2": https://github.com/Flugtiger/sainsmart32-dtoverlay