PINE64
What is jumpdrive? - Printable Version

+- PINE64 (https://forum.pine64.org)
+-- Forum: PinePhone (https://forum.pine64.org/forumdisplay.php?fid=120)
+--- Forum: General Discussion on PinePhone (https://forum.pine64.org/forumdisplay.php?fid=127)
+--- Thread: What is jumpdrive? (/showthread.php?tid=10964)

Pages: 1 2 3


RE: What is jumpdrive? - hiimtye - 08-18-2020

on Linux I dd the image to the eMMC exposed by jumpdrive, and then I gksu gparted to grow the partition (because I'm lazy and it works)
lastly, I use gparted to run a check on the new partition and if it doesn't find any errors, it's a good flash


RE: What is jumpdrive? - --- - 09-26-2020

I am attempting to 'reactivate' the usb for pc ssh access to my pPhone (lost after a July update).
No standard combination of OS & eMMC/SD installation enables the usb interface.
However, Jumpdrive and 'UBports update mode' (with the screen instruction 'Awaiting command') allows pc usb access to my pPhone.
Is this an indication the the pPhone usb is physically functional?


RE: What is jumpdrive? - --- - 09-28-2020

Does Jumpdrive u-boot provide usb access?
If so would this demonstrate usb functionality for SSH access?
It would be nice to know because I'm spending a lot of time trying to establish whether there is an SSH usb hardware failure.


RE: What is jumpdrive? - wibble - 09-29-2020

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/usb/gadget_multi.html


RE: What is jumpdrive? - --- - 10-01-2020

(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.

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/usb/gadget_multi.html
@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. Smile


RE: What is jumpdrive? - wibble - 10-02-2020

I don't think I did anything special to get the USB networking going on Mobian - I installed to emmc via jumpdrive some time back and have applied upgrades via apt since then. It's using the configfs based gadget configuration:
https://www.kernel.org/doc/html/v5.8/usb/gadget_configfs.html
The config appears under /sys/kernel/config/usb_gadget/g1/ while the network device is usb0 on the pinephone, visible in nmcli. When plugged into my Ubuntu desktop the pinephone shows this in dmesg:
IPv6: ADDRCONF(NETDEV_CHANGE): usb0: link becomes ready

For openssh I manually installed openssh-server via apt in the terminal while connected to wifi. I usually ssh into the wifi address too. Since the password is necessarily fairly weak on the phone due to the lock screen you really ought to disable password access and use keys see the wiki entry if you don't already know how:
https://wiki.mobian-project.org/doku.php?id=security

For PmOS if you use pmbootstrap I think it'll ask you about using ssh and setting up to use your key. It's a while since I've tried that, but I think the USB networking worked out of the box with that too, at least with an ubuntu desktop.

One thought about the USB networking - it's usually set up with the phone providing dhcp for the PC, with the expectation that it'll be used for tethering. This means that the routing isn't set up to allow the phone to access the internet via your PC and its network connection. If you want to use it that way round it's possible, but it'll probably need some manual configuration. It's usually easier to use wifi.