| *** n2klb_ is now known as n2klb | 01:48 | |
| sharks_ | I'm learning things about usb-moded / usb gadgets | 09:44 |
|---|---|---|
| sharks_ | if I run `ln -s /config/usb_gadget/g1/functions/rndis.usb0 /config/usb_gadget/g1/configs/b.1/rndis.usb0`, then `echo "" > /sys/kernel/config/usb_gadget/g1/UDC`, and `echo 4e00000.dwc3 > /sys/kernel/config/usb_gadget/g1/UDC`, I get a network interface to come up at usb0, and the computer sees it. | 09:44 |
| sharks_ | No dhcp though, and it seems like some firewall rule is blocking the computer from ssh-ing or ping-ing the phone | 09:44 |
| sharks_ | So, this all comes back to usb-moded not initialising properly? My bodgey script that I wrote to fix mtp is all well and good, but whatever was broken that meant I had to do that is also the thing that is broken and causing developer mode to not make the links and directories it is supposed to make on its own | 09:45 |
| sharks_ | and I can't just add the commands I ran to make developer mode work to my fixup script, because it brings up this ghost "developer mode" regardless of what mode is actually selected in SFOS settings. And as soon as you select some other mode, the `/config/usb_gadget/g1/configs/b.1/` directory is modified and `rndis.usb0 disappears, though the usb0 interface hangs around. | 09:48 |
| sharks_ | So I need to understand what is _supposed_ to make the `g1` directory and all its subdirectories and simlinks, and work out why it is failing? Has anyone got any ideas? | 09:49 |
| T42 | <elros34> usb-moded detect correctly usb connection? On regular build init-debug script create configfs dirs but on lvm not sure maybe you need init*usb*rc or usb-moded itself. Either way you should enable more verboslogging in usb-moded and maybe take a look how usb is handled in init*usb*rc | 10:00 |
Generated by irclog2html.py 2.17.1 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!