summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--docs/extra-build-config.md10
-rw-r--r--recipes-bsp/bootfiles/rpi-config_git.bb6
2 files changed, 15 insertions, 1 deletions
diff --git a/docs/extra-build-config.md b/docs/extra-build-config.md
index 35abbdf..806c238 100644
--- a/docs/extra-build-config.md
+++ b/docs/extra-build-config.md
@@ -221,7 +221,7 @@ needs a fixed core frequency and enable_uart wil set it to the minimum. Certain
221operations - 60fps h264 decode, high quality deinterlace - which aren't 221operations - 60fps h264 decode, high quality deinterlace - which aren't
222performed on the ARM may be affected, and we wouldn't want to do that to users 222performed on the ARM may be affected, and we wouldn't want to do that to users
223who don't want to use the serial port. Users who want serial console support on 223who don't want to use the serial port. Users who want serial console support on
224RaspberryPi3 will have to explicitely set in local.conf: 224RaspberryPi3 will have to explicitly set in local.conf:
225 225
226 ENABLE_UART = "1" 226 ENABLE_UART = "1"
227 227
@@ -229,6 +229,14 @@ Ref.:
229* <https://github.com/raspberrypi/firmware/issues/553> 229* <https://github.com/raspberrypi/firmware/issues/553>
230* <https://github.com/RPi-Distro/repo/issues/22> 230* <https://github.com/RPi-Distro/repo/issues/22>
231 231
232## Enable USB Peripheral (Gadget) support
233
234The standard USB driver only supports host mode operations. Users who
235want to use gadget modules like g_ether should set the following in
236local.conf:
237
238 ENABLE_DWC2_PERIPHERAL = "1"
239
232## Manual additions to config.txt 240## Manual additions to config.txt
233 241
234The `RPI_EXTRA_CONFIG` variable can be used to manually add additional lines to 242The `RPI_EXTRA_CONFIG` variable can be used to manually add additional lines to
diff --git a/recipes-bsp/bootfiles/rpi-config_git.bb b/recipes-bsp/bootfiles/rpi-config_git.bb
index e21872e..9440897 100644
--- a/recipes-bsp/bootfiles/rpi-config_git.bb
+++ b/recipes-bsp/bootfiles/rpi-config_git.bb
@@ -172,6 +172,12 @@ do_deploy() {
172 echo "hdmi_drive=1" >> ${DEPLOYDIR}/bcm2835-bootfiles/config.txt 172 echo "hdmi_drive=1" >> ${DEPLOYDIR}/bcm2835-bootfiles/config.txt
173 fi 173 fi
174 174
175 # DWC2 USB peripheral support
176 if [ "${ENABLE_DWC2_PERIPHERAL}" = "1" ]; then
177 echo "# Enable USB peripheral mode" >> ${DEPLOYDIR}/bcm2835-bootfiles/config.txt
178 echo "dtoverlay=dwc2,dr_mode=peripheral" >> ${DEPLOYDIR}/bcm2835-bootfiles/config.txt
179 fi
180
175 # Append extra config if the user has provided any 181 # Append extra config if the user has provided any
176 echo "${RPI_EXTRA_CONFIG}" >> ${DEPLOYDIR}/bcm2835-bootfiles/config.txt 182 echo "${RPI_EXTRA_CONFIG}" >> ${DEPLOYDIR}/bcm2835-bootfiles/config.txt
177} 183}