| T42 | <nc1x72> Still no luck here even after rebuilding everything. | 02:08 |
|---|---|---|
| T42 | <nc1x72> | 02:08 |
| T42 | <nc1x72> I did try running usb_moded from /usr/bin and got these errors: | 02:08 |
| T42 | <nc1x72> ``` | 02:08 |
| T42 | <nc1x72> W: ANDROID0 not detected | 02:08 |
| T42 | <nc1x72> W: MODULES not detected | 02:08 |
| T42 | <nc1x72> C: No supported usb control mechanisms found``` | 02:08 |
| T42 | <nc1x72> | 02:08 |
| T42 | <nc1x72> Maybe a missing kernel config? | 02:08 |
| *** xmn_ is now known as xmn | 02:56 | |
| T42 | <elros34> Did you read "usb cable detection" from hadk-hot, especially about usb peripheral mode needed on some devices? | 09:08 |
| T42 | <nc1x72> No, do you have link? | 10:47 |
| T42 | <elros34> https://sailfishos.wiki/books/hardware/page/hadk-hot | 11:30 |
| Mister_Magister | can someone PLEASE fix the links in topic | 11:41 |
| mal | the udc path is also important for usb to work correctly | 11:50 |
| *** amccarthy is now known as Guest5546 | 12:46 | |
| *** amccarthy_ is now known as amccarthy | 12:46 | |
| T42 | <nc1x72> Okay, thanks for the link! This is actually useful! | 13:10 |
| T42 | <nc1x72> In fact, I think the problem might be in the init-script. | 13:10 |
| T42 | <nc1x72> I booted stable UT on Spacewar (with hybris-boot, same that boots SFOS; of course with the necessary changes regarding binders and apparmor). The system boots fine and I gathered everything I could find about usb. Strange but the correct path on UT is /sys/kernel/config/usb_gadget/g1. I monitored changes with "watch" tool and yes, changes happened in /sys/class/extcon/extcon3/state. This eliminates the possibility of a kernel issue. | 13:10 |
| T42 | <nc1x72> | 13:10 |
| T42 | <nc1x72> Is the init-script in hybris-boot repo the one transferred to te rootfs as init-debug on root partition ? | 13:10 |
| T42 | <elros34> yeah it's both in first stage initramfs and / but do you even use it? I don't know these lvm builds. Check init*usb*rc files on device, they might give you some ideas about usb initialization | 13:29 |
| mal | @nc1x72 did you verify the udc path? | 13:34 |
| T42 | <nc1x72> @elros34 It's not in neither of the initramfs (hybris-boot or vendor_boot). I did find a file called init-debug on the root of the rootfs which corresponds to init-script on hybris-boot repo | 15:31 |
| T42 | <nc1x72> udc path is /sys/kernel/config/usb_gadget/g1 | 15:31 |
| T42 | <nc1x72> udc device name is a600000.dwc3 | 15:31 |
| T42 | <elros34> @nc1x72 I am still not sure you even use it. Do you have /init.log file in rootfs? If not then its not used | 16:12 |
| T42 | <nc1x72> @elros34 no such file on root dir | 20:37 |
| T42 | <elros34> yeah so no init-script, ignore it | 20:40 |
| T42 | <nc1x72> Btw, I just noticed that my last local changes weren’t picked up despite cleaning and rebuilding. For instance, I made some changes to usb-moded configs and disabled home encryption (temporarily). New build still has encryption and checking usb-moded configs, I found the previous values instead. What’s the proper way of cleaning and rebuilding? | 20:40 |
| T42 | <elros34> did you rebuild droid-config? I guess you made changes in sparse right? | 20:41 |
| T42 | <nc1x72> Yes I removed droid-local-repo folder and rebuilt everything (droid-media, droid-hal, configs, patterns, everything) | 20:43 |
| T42 | <elros34> that is way too much | 20:43 |
| T42 | <nc1x72> I didn’t want to have to deal with leftovers | 20:44 |
| T42 | <nc1x72> I have a server setup. In builds fast | 20:44 |
| T42 | <nc1x72> So no issue | 20:44 |
| T42 | <elros34> still doesn't make sense. Make change in sparse/, rebuild droid-config, then unpack built droid-config rpm and see if there are changes there | 20:45 |
| T42 | <nc1x72> Didn’t think about that. But yeah, just removed droid-config and rebuilt. Changes weren’t picked up | 20:50 |
| T42 | <elros34> details? show past of your steps or/and repo with changes on git | 20:51 |
| T42 | <elros34> are you sure you are not mixing upper/lower case $DEVICE so it builds in wrong place or wrong package? | 20:52 |
| T42 | <nc1x72> I made changes locally. And no, I made sure to not mix codenames, otherwise build would have failed. | 20:54 |
| mal | do you have your latest changes in github? | 21:11 |
| T42 | <nc1x72> No | 21:22 |
Generated by irclog2html.py 2.17.1 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!