What is jumpdrive?
#21
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
#22
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?
#23
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.
#24
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
#25
(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/u...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
#26
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...figfs.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.


Possibly Related Threads…
Thread Author Replies Views Last Post
  Jumpdrive broken? eMMc broken Uturn 5 2,727 04-21-2023, 12:37 AM
Last Post: Uturn
  JumpDrive isn't working phytocube 2 2,305 06-05-2022, 03:22 PM
Last Post: phytocube
  Jumpdrive not booting Kimberley van Buyten 1 1,345 05-28-2022, 01:00 AM
Last Post: Kimberley van Buyten
Question Differences in Jumpdrive images. jpaulbiss 2 3,446 09-16-2021, 06:30 PM
Last Post: jpaulbiss
  JumpDrive not working due to device busy cnxsoft 3 3,650 08-08-2021, 12:18 AM
Last Post: mouffa
  jumpdrive software might be faulty (or my pinephone hardware) zetabeta 3 3,884 07-20-2021, 03:14 PM
Last Post: zetabeta
  Jumpdrive is not jumping! Athansor 6 8,408 12-17-2020, 11:05 PM
Last Post: ronnybob

Forum Jump:


Users browsing this thread: 2 Guest(s)