Raspberry Pi Zero improvements
While trying to install postmarketOS to my Raspberry Pi Zero W (v1.1), I discovered some issues:
-
linux-rpi
package from alpine installs the modules in the wrong folder, and our device-raspberry-pi-kernel-rpi.post-install fails.
I've already opened a bug at alpine (link) -
When the
device-raspberry-pi
package were created, it has been decided to not configure the ethernet and disable thedhcpd
on the initramfs mainly because someone would just connect his rpi to the ethernet with the cable.
The Raspberry Pi Zero W doesn't have an ethernet port (photo), so this makes it quite complicated (impossible?) to connect to the device from a fresh install, because wifi/bluetooth/serial/... are not configured.
After playing around with the raspberry boot config, dt overlays, cables, plunger clips, usb to serial adapter and changing postmarketOS inittab, I've managed to get access to the console
Only later I've discovered that is possible to configure the second micro usb port with the USB/ethernet gadget (tutorial for raspbian)
So my suggestion is to configure it as default for the Raspberry Pi Zero, what do you think?
Questions/ToDos:
- Create a specific
device-raspberry-pi0
package? - Reuse the same package but prompt for
Zero
,1
and2 & 3
separately? (like if it's a different kernel) - deviceinfo will need
deviceinfo_disable_dhcpd="false"
, maybe works with devicepkg-dev and the multiple options based on selected kernel - Add in the
/boot/config.txt
file to add the dt overlaydtoverlay=dwc2
- Include the required modules in the initramfs (
dwc2
andg_ether
) - Configure network (probably already works with the code in initramfs's init_functions.sh script)