| *** n2klb_ is now known as n2klb | 01:51 | |
| sharks__ | @mal I really can't talk here for another 5 hours or so, but have just changed 99-usb-moded-xqcc72.ini to point to b.1 and updated my usb-moded-fixup.sh from last night's commit. | 04:24 |
|---|---|---|
| sharks__ | No difference to MTP behaviour when the directory is b.1 rather than c.1 | 04:25 |
| sharks__ | Developer mode spits out the following in journal: | 04:25 |
| sharks__ | "/sys/kernel/config/usb_gadget/g1/UDC: write failure: Invalid argument", | 04:26 |
| sharks__ | "mode developer_mode: network interface usb0 does not exist", | 04:26 |
| sharks__ | "mode setting failed, try charging_only" | 04:26 |
| sharks__ | `/sys/class/net` does not contain any interface to do with rdnis or usb, and `usb_gadget/g1/functions/rndis.usb0/ifname` gives "(unnamed net_device)" | 04:28 |
| T42 | <edp_17> mal, keto Can somebody help me with OBS please? I tried to use osc but used wrong password and now I cannot log in on the website either. build.sailfishos.org says "Authentication failed". My user is edp17. (I know the last password, so, if you just enable the user if it got disabled, that'd be fine.) Thank you. | 08:01 |
| T42 | <edp_17> mal, keto It works again now. Panic is over, thanks. | 08:06 |
| sharks_ | Hey @Mister_Magister, are you still around and willing to teach me about ncm if you still think that will help? | 10:02 |
| sharks_ | Or @mal, if you know anything else I can try besides just renaming a directory from "c.1" to "b.1" - what was the idea of that, anyway? | 10:42 |
| sharks_ | Is it possible I have some interference from the Android side - `android.hardware.usb.gadget-service.qti`? | 10:59 |
| sharks_ | I ask because I have `/sys/class/android_usb/android0/` and `/etc/usb-moded/dyn-modes/mtp_mode-droid.ini` - so maybe mtp works because Android is handling it? But then it required my usb-moded-fixup service and all the configfs things that go with it, so perhaps not | 11:11 |
| sharks__ | I don't think I can hang around much longer, and I won't be around tomorrow night, but if anyone could give me any more pointers overnight so I have some idea where to look next, I'd appreciate it. | 12:22 |
| mal | did you try again with /config path? | 12:49 |
| mal | which interface do you see for usb in ifconfig -a? | 12:49 |
| mal | on device | 12:49 |
| mal | what is you that usb-moded-fixup service you mentioned? | 12:52 |
| sharks__ | Hey Mal, hang on, let me fire up the laptop again. usb-moded-fixup is in the commit link I sent in this IRC chat approx 24 hours ago | 12:53 |
| sharks_ | https://github.com/sharks-dev/droid-config-pdx225/commit/911220f5d92316d47462fea94ae7a2108c0b62d0 | 12:54 |
| sharks_ | If these commands are run every boot, I can be sure that MTP works at least. | 12:55 |
| mal | do you have /usr/lib/systemd/system/config.mount ? | 12:56 |
| sharks_ | ifconfig -a --> https://paste.opensuse.org/pastes/10728abec01f | 12:56 |
| mal | that means usb is not up at all | 12:57 |
| sharks_ | Yes, I do have `/usr/lib/systemd/system/config.mount` | 12:57 |
| mal | so the mount in you hack service is not needed | 12:57 |
| sharks_ | So perhaps I don't need to mount /config every boot, but I certainly need to make the directories | 12:57 |
| mal | there is something else wrong | 12:58 |
| mal | there should be no need to manually create such directories | 12:58 |
| sharks_ | I agree, but I do not know how to debug it | 12:59 |
| mal | you had working usb in init ramdisk when doing early debugging? | 12:59 |
| sharks_ | Only if usb-moded was masked | 12:59 |
| mal | did you verify the udc in usb-moded config is correct? | 13:00 |
| sharks_ | 4e00000.dwc3? Yes, I can't remember where it comes from but it is right. If you remind me where I find it I'll paste the output to prove it | 13:00 |
| mal | from /sys/class/udc/ | 13:01 |
| sharks_ | `ls /sys/class/udc` --> "4e00000.dwc3 dummy_udc.0" | 13:01 |
| mal | try again removing gadget_base_directory or changing it back to /config/usb_gadget/g1 ? also you didn't mention anything about checking extcon? | 13:03 |
| mal | which is /sys/class/extcon/extcon0/state or with different numbers in the path | 13:04 |
| sharks_ | Sorry, I missed the extcon discussion. `/sys/class/extcon/extcon0/state1 --> "USB=0 SDP=0". `/sys/class/extcon/extcon1/state` --> "USB=1 USB-HOST=0 DP=0" | 13:06 |
| sharks_ | Note, device is currently plugged into usb if that matters. | 13:06 |
| mal | https://github.com/mer-hybris/droid-config-sony-murray/blob/master/sparse/etc/usb-moded/usb-moded-murray.ini | 13:08 |
| mal | like I said before, you should be configuring that udev part like that | 13:08 |
| mal | I have no idea why you are not using the official port configs as example | 13:08 |
| mal | which sailfish version did you build? | 13:09 |
| sharks_ | Okay, fair point, I don't know how I landed with the usb-moded.ini that I've got now either. I will put the official one in there and see if that helps, hangon | 13:10 |
| sharks_ | SFOS 5.1.0.11 | 13:11 |
| sharks_ | Forgive me if I've done the wrong thing, it is late and I'm blindly following instructions. I replaced my 99-usb-moded-xqcc72.ini contents with that of usb-moded-murray.ini, now usb-moded outputs the following in journal when connected in developer mode: https://paste.opensuse.org/pastes/a51e97d41eb6 | 13:13 |
| sharks_ | MTP is broken again, possibly because I have disabled my hack as well | 13:14 |
| mal | does ifconfig -a show anything now? | 13:16 |
| mal | usb0 or rndis0 | 13:17 |
| mal | no need to paste all | 13:17 |
| sharks_ | No, cannot see usb0 or rndis0 | 13:17 |
| sharks_ | `ifconfig -a | grep -iE "usb|rndis"` --> no output | 13:18 |
| mal | you did keep the 4e00000.dwc3 udc in config? | 13:18 |
| sharks_ | No, I blindly copied and pasted exactly what was in usb-moded-murray.ini, will fix that now | 13:18 |
| sharks_ | https://paste.opensuse.org/pastes/1dcef52398e4 | 13:20 |
| sharks_ | Still no change | 13:20 |
| sharks_ | ifconfig -a still missing any mention of usb or rndis | 13:20 |
| mal | try running this: echo peripheral > /sys/class/udc/4e00000.dwc3/device/../mode | 13:23 |
| mal | any change? | 13:23 |
| sharks_ | I ran `echo peripheral > /sys/class/udc/4e00000.dwc3/device/../mode`, do I need to restart usb-moded or anything else? No change so far | 13:24 |
| sharks_ | Can't see it's made any difference | 13:25 |
| mal | no interface still in ifconfig? | 13:25 |
| sharks_ | No, even after restarting usb-moded and replugging device | 13:26 |
| mal | nothing in journal from usb moded? | 13:28 |
| sharks_ | Nothing new, just the same lines from the most recent paste link with later timestamps | 13:29 |
| mal | try running manually "mkdir -p /config/usb_gadget/g1/strings/0x409" and "mkdir -p /config/usb_gadget/g1/functions" then restart usb moded | 13:32 |
| sharks_ | functions directory already exists. Strings directory is part of my hack, making that certainly helps. New journal output: https://paste.opensuse.org/pastes/6f1051657bdb | 13:33 |
| sharks_ | FWIW functions directory contains: "ffs.mtp", "mass_storage.usb0", "rndis.usb0" | 13:34 |
| mal | still no usb0 or rndis0? | 13:34 |
| sharks_ | No | 13:35 |
| sharks_ | MTP is working again though now the strings directory is there, but still no network in developer mode, falls back to charging only | 13:35 |
| mal | add something like this https://github.com/mer-hybris/s19mps-droid-configs/blob/master/sparse/etc/connman/main.conf.d/10-s19mps.conf | 13:36 |
| mal | then maybe reboot so we are sure everyhing is clean | 13:36 |
| sharks_ | Sure, file has been added, reboot in progress. My hack is disabled so usb-moded is on its own | 13:38 |
| sharks_ | Nope, we killed it. The /config/usb_gadget/g1 directory doesn't get made automatically, so usb-moded fails with "No supported usb control mechanisms found" | 13:42 |
| sharks_ | Yeah, and making it manually it next complains the b.1 directory is missing | 13:43 |
| sharks_ | And making the b.1 directory manually, we're back to square one --> https://paste.opensuse.org/pastes/3ae5dfbff90d | 13:44 |
| sharks_ | ifconfig still has no sign of usb or rndis | 13:45 |
| mal | I wonder if there is something wrong in android side startup | 13:49 |
| mal | did you do any hacks in that side+ | 13:49 |
| sharks_ | No, only the usual disabled_services.rc | 13:50 |
| sharks_ | https://github.com/sharks-dev/droid-config-pdx225/blob/master/sparse/usr/libexec/droid-hybris/system/etc/init/disabled_services.rc | 13:51 |
| sharks_ | It has vendor.usb-hal-1-3, don't know if that's related | 13:51 |
| mal | we don't want android side usb services running | 13:52 |
| mal | those are useless for us | 13:52 |
| sharks_ | From `ps -A | grep -i usb` I found "/vendor/bin/hw/android.hardware.usb-service.qti", so I also added to disabled_services "service vendor.usbgadget-hal /vendor/bin/hw/android.hardware.usb.gadget-service.qti_HYBRIS_DISABLED" hoping that would help, but it didn't fix anything so I removed it again. | 13:54 |
| mal | maybe modify your hack script to do things like is done here https://github.com/mer-hybris/hybris-boot/blob/a16/init-script#L215 | 13:58 |
| mal | except the useless parts like skip rndis_bam.rndis | 13:58 |
| sharks_ | Okay, thanks mal, that looks like a later problem though. Midnight now, I can't keep going tonight. I will look into that in a day or two when I can next sit down for a few hours. Thanks for your help | 14:00 |
| sharks_ | Before I go, idk if Keto is back yet but friendly reminder for when they return, the Zambezi port still needs Jolla store please. "Device Model: Xperia 10 V (xqdc72 / community)" | 14:01 |
| sharks_ | I appreciate your time tonight Mal, will let you know how I get on by adapting the hybris-boot init script bits another time | 14:02 |
Generated by irclog2html.py 2.17.1 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!