Various Pre-Setup Options
Pi Zero g_ether Mode
- Download the latest image.
-
Setup partitions from it.
sudo kpartx -av 2020-02-13-raspbian-buster-lite.g_ether.img -
Mount the FAT filesystem.
sudo mount /dev/mapper/loop0p1 /tmp/boot -
Enable Overlays in
/tmp/bootecho 'dtoverlay=dwc2,dr_mode=peripheral' >> config.txt -
Enable Kernel Options for
g_ether.sed -i 's/$/ modules-load=dwc2,g_ether/' cmdline.txt -
Enable sshd
touch ssh -
Unmount and cleanup.
cd ..;umount boot;kpartx -d 2020-02-13-raspbian-buster-lite.g_ether.img - If no DHCP server is available, the pi will start with a link-local IP
address. (
169.254.0.0/16)