09-29-2020, 05:53 AM
If you can use jumpdrive to flash then the USB hardware is working as that's what it uses to expose the sd and emmc to the pc. To do that it uses the mass storage gadget driver, g_mass_storage. For ssh you need to use the network gadget driver g_ether, then configure the network correctly on both the phone and the pc so they can talk to each other. Finally you have to make sure the ssh daemon is running on the phone and listening on that network interface. That's the generic low-level description - some of the distros will have easy ways to do some or all of this, like using NetworkManager to look after the network config.
https://linux-sunxi.org/USB_Gadget/Ethernet
There's also the g_multi multifunction gadget driver which can provide mass storage, ethernet and other gadget functions at the same time. This is often avoided as Windows has wanted a 'driver' (actually just an INF file) before it recognises these devices.
https://www.kernel.org/doc/html/latest/u...multi.html
https://linux-sunxi.org/USB_Gadget/Ethernet
There's also the g_multi multifunction gadget driver which can provide mass storage, ethernet and other gadget functions at the same time. This is often avoided as Windows has wanted a 'driver' (actually just an INF file) before it recognises these devices.
https://www.kernel.org/doc/html/latest/u...multi.html