Skip to content

Instantly share code, notes, and snippets.

View hschnegg's full-sized avatar

Herve Schnegg hschnegg

View GitHub Profile
@nichtsfrei
nichtsfrei / setup_pi4_manjaro_usb_gadget.sh
Last active October 24, 2022 13:29
sets up manjaro raspberry pi 4 as a usb_gadget
#!/bin/sh
# shamelessly stolen from https://www.hardill.me.uk/wordpress/2019/11/02/pi4-usb-c-gadget/
# main difference is that I use ip to set the device and don't use dnsmasq.
# Instead I setup 'Raspberry PI4 USB Device' within iPad (or whatever you use) manual to
# 10.55.0.2 255.255.255.248
# so that I don't have to deal with dnsmasq at all.
# I also use modprobe in the initialization script so that I don't load the modules when I don't execute usb-network.sh
echo 'dtoverlay=dwc2' >> /boot/config.txt