RPi-Distro / pi-gen

Tool used to create the official Raspberry Pi OS images
BSD 3-Clause "New" or "Revised" License
2.64k stars 1.65k forks source link

RNDIS / g_ether not working #810

Open jayofelony opened 2 days ago

jayofelony commented 2 days ago

I edited my /boot/firmware/config.txt and /boot/firmware/cmdline.txt how I always did, with dtoverlay=dwc2 and modules-load=dwc2,g_ether. Than I add a usb0-cfg configuration file to /etc/network/interfaces.d, but apparently I have missed some commit or change somewhere I fear.

This does not seem to work anymore, any help would be greatly appreciated in getting this to work. So I can connect to my RPi Zero 2W again over usb with the latest kernel.

Please excuse me for the lack of logs, but I cannot login to my 02w for reasons mentioned above and see them.

edit: setting managed = true in NetworkManager.conf doesn't help either.

XECDesign commented 2 days ago

I believe the issue is that ifupdown has been removed from the latest image. An appropriate configuration file would need to be added for NetworkManager or systemd-networkd instead.

The reason ifupdown was taken out was because it's not used on a default install, but eats up some boot time.

If it's not possible to do this without ifupdown, maybe the solution is to keep ifupdown in the image, but disable the services by default. I don't see why ifupdown would be required, but I also see that it's not nice to break things that used to work. It's just a matter of whether or not it's justified in this case and how easy it is to work around it...

jayofelony commented 2 days ago

I'll install ifupdown and try again, I don't mind a prolonged boot time. But I do require rndis for my images.

jayofelony commented 1 day ago

I installed ifupdown and now everything is working as it was. I did disable ifup@wlan0.service.