Last active
February 23, 2026 13:05
-
-
Save matwey/629be97641f02c6ecb48308c0b63da79 to your computer and use it in GitHub Desktop.
u-boot overlay.dtbo
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # mkimage -A arm -T script -C none -n "Boot script" -d boot.cmd boot.scr | |
| load ${devtype} ${devnum}:${distro_bootpart} ${fdtoverlay_addr_r} ${prefix}overlay.dtbo | |
| fdt addr ${fdtcontroladdr} | |
| fdt resize 16384 | |
| fdt apply ${fdtoverlay_addr_r} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| DTC=dtc | |
| MKIMAGE=mkimage | |
| all: boot.scr overlay.dtbo | |
| clean: | |
| rm -rf boot.scr overlay.dtbo | |
| boot.scr: boot.cmd | |
| ${MKIMAGE} -A arm -T script -C none -n "Boot script" -d $< $@ | |
| overlay.dtbo: overlay.dtso | |
| ${DTC} -O dtb -o $@ $< |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* dtc -O dtb -o overlay.dtbo overlay.dtso */ | |
| /dts-v1/; | |
| /plugin/; | |
| &i2c0 { | |
| status = "okay"; | |
| }; | |
| &i2c1 { | |
| status = "okay"; | |
| }; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment