Terminology
dts Device tree source file
dtc Device tree compiler
dtb device tree blob
Bunch of dtb binaries are in /boot folder.
Overlay: allows user to be modify pin muxing.
Cape manager: load & unload overlays.
Slots : are its interface
Default overlay:
Onboard storage
HDMI
There are free slots for 4 physical capes.
To see the list of loaded slots, you can do the following
export SLOTS =/sys/devices/bone_capemgr.9/slots
where 9 varies depending on the device
echo $SLOTS
In order to add the slot during boot itself, add the line to uEnv.txt
capemgr.enable_partno=BB_ADC
Compiling Overlay
To build the dts file to dtb, use the following syntax
dtc -O dtb -o enable-uart5-00A0.dtbo -b 0 -@ enable-uart5.dts
where
–O dtb is the output format
–o output filename
–b 0 setting the physical boot cpu ( a zero)
-@ generates symbol node as part of dynamic DT loading of overlay
No comments:
Post a Comment