We have already explained in the documentation how to use Device Tree Overlays.
Update System
You can refer to this document.
Configure DTS Overlays
1.open/boot/env.txt
film:
1 | khadas@khadas:~$ sudo vim /boot/env.txt |
uart3 pwm_f i2c3 os08a10
are enabled by default.
2.addotg-device
tooverlays
node to make USB OTG Device enable:
1 | overlays=uart3 pwm_f i2c3 os08a10 --> overlays=uart3 pwm_f i2c3 os08a10 otg-device |
Enable service
1 | khadas@khadas:~$ sudo systemctl enable usb-gadget-khadas.service |
Save file and reboot the board
1 | khadas@khadas:~$ sync |