Open sven-frotscher opened 9 months ago
Running source /init_functions.sh
and then setup_usb_configfs
in the shell (if Jumpdrive reaches it) raises the fatal error Couldn't create /config/usb_gadget/g1
. Trying to escape that with ^Z briefly shows the reason:
Setting up an USB gadget through configfs...
mkdir: can't create directory '/config/usb_gadget/g1': File exists
[H[J[;0H
Couldn't create /config/usb_gadget/g1
^Zmkdir: can't create directory '/config/usb_gadget/g1/strings/0x409': File exists
Couldn't create /config/usb_gadget/g1/strings/0x409
mkdir: can't create directory '/config/usb_gadget/g1/functions/rndis.usb0': File exists
Couldn't create /config/usb_gadget/g1/functions/rndis.usb0
mkdir: can't create directory '/config/usb_gadget/g1/functions/mass_storage.0': File exists
Couldn't create /config/usb_gadget/g1/functions/mass_storage.0
mkdir: can't create directory '/config/usb_gadget/g1/functions/mass_storage.0/lun.1': File exists
Couldn't create /config/usb_gadget/g1/functions/mass_storage.0/lun.1
mkdir: can't create directory '/config/usb_gadget/g1/configs/c.1': File exists
Couldn't create /config/usb_gadget/g1/configs/c.1
mkdir: can't create directory '/config/usb_gadget/g1/configs/c.1/strings/0x409': File exists
Couldn't create /config/usb_gadget/g1/configs/c.1/strings/0x409
ln: /config/usb_gadget/g1/configs/c.1/rndis.usb0: File exists
Couldn't symlink rndis.usb0
ln: /config/usb_gadget/g1/configs/c.1/mass_storage.0: File exists
Couldn't symlink mass_storage.0
sh: write error: Device or resource busy
and then raises another fatal error (Couldn't write to UDC
), but I can escape that one with ^Z and get back to the shell.
Weirdly enough, Jumpdrive works fine when booted from megi's multi-boot image flashed to a microSD card. It then connects as an Ethernet adapter and two block devices (eMMC and microSD), as expected.
I flashed https://github.com/dreemurrs-embedded/Jumpdrive/releases/download/0.8/pine64-pinephone.img.xz onto a microSD card and booted my PinePhone from it by connecting it to my computer with a known good USB cable. Sadly, it doesn't show up as a USB device. Connecting to the serial console using a custom cable and a USB-Serial converter sometimes (still haven't found out the root cause, suspecting my USB-Serial converter or PuTTY) makes the boot hang before the command prompt and splash screen:
Sometimes, the boot finishes (especially if I connect my logic analyzer to GND, Rx and Tx as well, but that may also be GND impedance or fiddly USB cables (EDIT: I now think it's GND impedance over the 3 USB cables)) and also gives me a working command prompt after showing an exact copy of the above log.
For some reason, I now got the following output (note the difference after
Hit any key to stop autoboot
):What can I do at that point? Am I using Jumpdrive wrong? Did I somehow break my PinePhone (e.g. the USB controller(s))?