10-01-2020, 07:53 AM
(09-29-2020, 05:53 AM)wibble Wrote: 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.@wibble - thanks so much. As an enthusiast who has been happily insulated from the complexities of networking by the 'It just works' approach of Network Manager I have been spiralling down a time drain with my usb/ssh issue. Jumpdrive reflashes the eMMC so now I know my issue IS configuration. Thanks also for the subsequent pointers.
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