T42 | <edp_17> lbt: Good morning! It looks like OBS has ran out of disk space: "No space left on device." | 08:56 |
---|---|---|
T42 | <edp_17> Does anyone know what and how create /config/usb_gadget? I don't have it on my device, so Developer mode doesn't work. | 10:58 |
T42 | <Ayman_rgab> Are you sure it's not working because of this dir didn't exist | 11:02 |
T42 | <Ayman_rgab> `systemctl status config.mount` | 11:03 |
T42 | <edp_17> It's "Active: active (mounted) since ...." | 11:04 |
T42 | <elros34> this doesn't exist probably because your device's kernel do not use configfs, that is not reason why developer mode doesn't work | 11:04 |
T42 | <elros34> I have asked you about that dir only because you wanted to add some config file related to this | 11:05 |
T42 | <Ayman_rgab> Yes also my kernel it use android0 and developer mode works (re @elros34: this doesn't exist p...) | 11:05 |
T42 | <edp_17> In defconfig and out/target/product/$DEVICE/obj/KERNEL_OBJ/.config I have CONFIG_CONFIGFS_FS=y (re @elros34: this doesn't exist p...) | 11:06 |
T42 | <edp_17> Oh, I see how you meant. | 11:07 |
T42 | <elros34> but do you have it in init*usb*rc | 11:07 |
T42 | <elros34> this is what android use by default and what you should usually follow | 11:08 |
T42 | <Ayman_rgab> It's not CONFIG_USB_CONFIGFS (re @edp_17: In defconfig and out...) | 11:08 |
T42 | <edp_17> Where should I look for init*usb*rc ? | 11:08 |
T42 | <elros34> like always if you search for android file: on device or in device repos | 11:09 |
T42 | <edp_17> Okay. | 11:09 |
T42 | <elros34> depends on android version they are in / or /system or /vendor | 11:10 |
T42 | <Ayman_rgab> Developer mode use rndis0 from android | 11:10 |
T42 | <edp_17> I have that in a few folders: https://paste.ubuntu.com/p/qJ37kCjQBN/ (re @elros34: like always if you s...) | 11:12 |
T42 | <Ayman_rgab> `init.qcom.usb.rc` | 11:12 |
T42 | <edp_17> This is what I have in there: https://paste.ubuntu.com/p/D6N8S8MNqR/ | 11:13 |
T42 | <edp_17> I need the rndis, I guess. | 11:14 |
T42 | <Ayman_rgab> `on property:sys.usb.config=rndis` | 11:15 |
T42 | <elros34> there are more usb files then this one, see all of them, check which one are importet, make sure usbd.rc doesn't start any service | 11:16 |
T42 | <elros34> than* | 11:16 |
T42 | <edp_17> When I turn Developer mode on, I get these values in there: https://paste.ubuntu.com/p/rhKhdXypC8/ | 11:17 |
T42 | <edp_17> Eventually, my PC displays a pop-up message saying "Disconnected" | 11:17 |
T42 | <elros34> then follow usb-moded | 11:17 |
T42 | <edp_17> So, it looks like the device is there but cannot reach with ssh | 11:18 |
T42 | <Ayman_rgab> `ip link show` (re @edp_17: So, it looks like th...) | 11:19 |
T42 | <edp_17> Here is usbd.rc: https://paste.ubuntu.com/p/rRmVqnV8Vh/ | 11:19 |
T42 | <edp_17> How do you mean follow usb-moded? | 11:19 |
T42 | <Ayman_rgab> `sudo ip link set <usb interface> address 46:46:6d:d0:5e:ae` | 11:20 |
T42 | <elros34> check verbose logs while you connect device | 11:20 |
T42 | <elros34> so have you checked whether usbd is running? | 11:20 |
T42 | <edp_17> No, usbd isn't running. | 11:21 |
T42 | <edp_17> Is that a service? | 11:21 |
T42 | <elros34> you just showed it in latest paste | 11:22 |
T42 | <edp_17> The ps ax says usbd isn't running. When I run it manually, and do a ps ax, it also says not running. | 11:23 |
T42 | <elros34> just make sure is not running or better whole rc file is not even imported | 11:24 |
T42 | <edp_17> Oh, so I don't need that. Got it. | 11:24 |
T42 | <edp_17> RTNETLINK answers: Device or resource busy (re @Ayman_rgab: sudo ip link set <us...) | 11:26 |
T42 | <Ayman_rgab> i had an issue that host mac address always be 0 fixed by this commit https://github.com/Exynos7880-Linux/android_kernel_samsung_universal7880/commit/47442bc7b8ee59168d354cd239f1dafe0a9cb2df not sure if this is the same issue | 11:27 |
T42 | <edp_17> It looks like the mac address is okay on this device. | 11:28 |
T42 | <Ayman_rgab> could you check if this config exist /etc/usb-moded/dyn-modes/developer_mode-android.ini | 11:28 |
T42 | <edp_17> Yes, I have that. Here its content: https://paste.ubuntu.com/p/3DH8FmPTj2/ | 11:29 |
T42 | <Ayman_rgab> mtp works ? | 11:30 |
T42 | <edp_17> Yes. | 11:30 |
T42 | <edp_17> Plus, if I don't select anything on the USB menu (when I attach the cable), all partitions are mounted on PC. 😏 | 11:31 |
T42 | <Ayman_rgab> what if you install this package usb-moded-connection-sharing-android-config ssh works with tether mode also | 11:32 |
T42 | <Ayman_rgab> wired (re @edp_17: Plus, if I don't sel...) | 11:32 |
T42 | <edp_17> Tbh, I'd like to get it working the same way as on my other devices. There must be a reason why developer mode is broken, I just need to find out what. | 11:35 |
T42 | <edp_17> Verbose log of what? usb-moded in Journal? How to set verbose logging of usb-moded? (re @elros34: check verbose logs w...) | 11:44 |
T42 | <Ayman_rgab> -D | 11:47 |
T42 | <elros34> or usb-moded --help | 11:48 |
T42 | <Ayman_rgab> i want to fix mtp 😖 | 11:48 |
T42 | <edp_17> @elros34 Verbose log : https://paste.ubuntu.com/p/vGGKyM89KG/ | 11:56 |
T42 | <Ayman_rgab> why it's usb_moded[5719]: interface = usb0 not rndis0 ? | 11:58 |
T42 | <edp_17> I don't know. | 11:59 |
T42 | <edp_17> How to set that? | 11:59 |
T42 | <Ayman_rgab> i guess you have another config | 12:00 |
T42 | <elros34> check what interface name your device use ifconfig | 12:00 |
T42 | <edp_17> On host? That is usb0 | 12:05 |
T42 | <elros34> no on device | 12:05 |
T42 | <edp_17> And the same on device too. | 12:05 |
T42 | <elros34> so try to change that network_interface = rndis0 to usb0 in config file | 12:06 |
T42 | <edp_17> In which one: developer_mode.ini or developer_mode-android.ini ? | 12:07 |
T42 | <edp_17> Ok, I got it. :D | 12:08 |
T42 | <elros34> from where do you have developer_mode.ini? | 12:09 |
T42 | <edp_17> It's in /etc/usb-moded/dyn-modes/ | 12:11 |
T42 | <edp_17> I've changed the network_interface rndis0 to usb0 in developer_mode-android.ini and restarted usb-moded. Still doesn't work. https://paste.ubuntu.com/p/qDPw4MsTSj/ | 12:11 |
T42 | <elros34> yeah but from what package | 12:12 |
T42 | <edp_17> I have no idea. How to find out? | 12:12 |
T42 | <Ayman_rgab> it's from usb-moded-developer-mode | 12:13 |
T42 | <elros34> rpm -qf <path/to/file> | 12:13 |
T42 | <edp_17> I have these usb-moded packages installed: https://paste.ubuntu.com/p/nmtTb45nz7/ | 12:13 |
T42 | <edp_17> That file is from : usb-moded-developer-mode-0.86.0+mer56-1.8.6.jolla.armv7hl | 12:14 |
T42 | <edp_17> @elros34 ^ | 12:14 |
T42 | <elros34> try to install usb-moded-defaults-android instead and see if that helps. ALso make sure really there is no init*usb*rc imports in your rc files because logs suggest they are | 12:14 |
T42 | <edp_17> In /init.rc, the "import /init.usb.rc" and "import /init.usb.configfs.rc" lines are commented out. | 12:17 |
T42 | <elros34> in init.rc this is done automatically, check other files | 12:17 |
T42 | <edp_17> It looks like there is no import in any other files. I've checked "/system/etc/init/*", "/system_root/" and "/system_root/system/etc/init/". Nothing imports usbd.rc | 12:24 |
T42 | <elros34> *usb*rc not usbd.rc | 12:25 |
T42 | <Ayman_rgab> just mount /system/vendor/etc/init/hw/init.qcom.usb.rc to /dev/null at startup | 12:26 |
T42 | <edp_17> I can't install "usb-moded-defaults-android" package. I get timeout. | 12:27 |
T42 | <edp_17> OBS is struggling today. I've tried to upload few packages but got "Disk full" error message. | 12:28 |
mal | @edp_17 which project there? | 12:29 |
T42 | <edp_17> mal : https://build.merproject.org/package/show/nemo:testing:hw:samsung:treltexx/droid-hal-treltexx | 12:30 |
mal | so you only managed to upload some file? | 12:30 |
T42 | <edp_17> Yes, only 5 of 11. | 12:30 |
T42 | <Ayman_rgab> also i can't install any package (re @edp_17: I can't install "usb...) | 12:31 |
T42 | <Ayman_rgab> Timeout exceeded when accessing 'https://releases.jolla.com/releases/4.4.0.72/jolla-hw/adaptation-common/aarch64/media.1/media' | 12:32 |
T42 | <elros34> @edp_17 silly questions: do you have ssh connection enabled in developer settings? | 13:13 |
T42 | <elros34> Can you telnet to device? | 13:14 |
T42 | <edp_17> Yes, ssh enabled in Developer settings. :) I've re-set that as also thought about that. :) | 13:18 |
T42 | <edp_17> No, telnet doesn't work either. | 13:18 |
T42 | <elros34> just to be sure it's not host side issue. When you run ifconfig -a in host, usb0 is always there or appears only for a moment | 13:37 |
T42 | <edp_17> From the same host, I can ssh into treltexx if Developer mode is set on the device. | 13:38 |
T42 | <edp_17> On host, usb0 is not there until I connect the device and select Developer mode on it. | 13:39 |
T42 | <elros34> yeah but is it there all the time device is connected or dissapears? | 13:40 |
T42 | <edp_17> Then, usb0 is always listed with ifconfig -a until I unplug the cable. | 13:40 |
T42 | <elros34> ok | 13:40 |
T42 | <edp_17> It's there even if I receive the "Disconnected" pop-up message time to time. (on host) | 13:41 |
T42 | <elros34> and ifconfig shows inet address for usb0? | 13:41 |
mal | @edp_17 obs should work again | 13:42 |
T42 | <edp_17> @elros34 : Yes, it shows inet address | 13:42 |
T42 | <edp_17> mal : Thanks! I carry on then. :D | 13:42 |
T42 | <edp_17> mal : It seems there is another problem with repos. images cannot be building because the process cannot connect to the OBS repos. (Probably the same reason why we cannot install packages on devices with zypper. The install times out.) Is it something you also can look into? | 13:54 |
mal | @edp_17 which kind of packages? from community obs or generic packages? | 14:12 |
T42 | <edp_17> mal : I've tried to install usb-moded-defaults-android. I think this is a generic package but am not sure. | 14:14 |
T42 | <edp_17> Yeah, it times out. | 14:15 |
T42 | <edp_17> Also building the sfos image (*.zip file) also stuck at "Retrieving repo metadata:" | 14:15 |
T42 | <edp_17> @elros34 : I think know why developer mode doesn't work. In patterns-*device*.inc the "Requires: usb-moded-defaults-android" and "Requires: usb-moded-developer-mode-android" are missing. | 14:22 |
T42 | <Ayman_rgab> All Jolla repo return 503 | 14:23 |
T42 | <Ayman_rgab> All Jolla repos return 503 (edited) | 14:23 |
T42 | <Ayman_rgab> It's not necessary (re @edp_17: @elros34 : I think k...) | 14:24 |
T42 | <Ayman_rgab> *504 (re @Ayman_rgab: All Jolla repos retu...) | 14:25 |
T42 | <edp_17> @Ayman_rgab : Why do you think that is not necessarily the problem? | 14:26 |
T42 | <edp_17> I've compared the devise patterns against treltexx's where this works fine. | 14:27 |
T42 | <Ayman_rgab> Because developer mode config available from jolla-developer-mode package (re @edp_17: @Ayman_rgab : Why do...) | 14:28 |
T42 | <edp_17> Oh, I see. And what are in these two packages? | 14:29 |
T42 | <edp_17> Elros has also suggested to install "usb-moded-defaults-android". | 14:30 |
T42 | <Ayman_rgab> We can't install any packages | 14:34 |
T42 | <edp_17> Something is changing. Now, when trying to install "usb-moded-developer-mode-android" on device, I am getting "Permission to access 'https://releases.jolla.com/releases/4.4.0.68/jolla/armv7hl/oss/armv7hl/usb-moded-developer-mode-android-0.86.0+mer56-1.8.6.jolla.armv7hl.rpm' denied." | 14:34 |
mal | @edp_17 I pinged internally about the repo issue | 14:34 |
T42 | <edp_17> Previously it was timeout. | 14:34 |
mal | probably some issue in server side | 14:34 |
T42 | <edp_17> mal: Many thanks for that! | 14:34 |
T42 | <edp_17> Probably. Thanks for helping with that. | 14:36 |
T42 | <elros34> @edp_17 you have probably tried these commands but if not then try: https://paste.opensuse.org/view/raw/74058434. I needed this on very picky device otherwise I lose connection all the time | 18:33 |
T42 | <Ayman_rgab> hi Elros | 18:43 |
T42 | <Ayman_rgab> i tried mtp on android when it enabled kernel use this config also "usb: config_buf f->Function FS Gadget" but on sailfish it's not | 18:45 |
T42 | <Ayman_rgab> anyway to make usb-moded enable this along side mtp | 18:46 |
T42 | <Ayman_rgab> android https://pastebin.com/K0mjNZG0 | 18:53 |
T42 | <Ayman_rgab> sailfish https://pastebin.com/Z01dCSng | 18:53 |
T42 | <elros34> with what config file | 18:56 |
T42 | <Ayman_rgab> tried with mtp_mode-droid.ini device did not show up on pc | 18:57 |
T42 | <Ayman_rgab> with mtp_mode-android.ini it show up but can't be mounted | 18:57 |
T42 | <elros34> good then read usb-moded logs to figure out why instead keep installling some other config which nobody use | 18:58 |
T42 | <Ayman_rgab> everything seems okay i couldn't found where is the problem | 19:02 |
T42 | <Ayman_rgab> https://pastebin.com/ZVfHesgP | 19:02 |
T42 | <Ayman_rgab> why it's usb: set_config_number single config num=0 on android but on sailfish set_config_number multi config_num=0(zero base) | 19:15 |
T42 | <Ayman_rgab> why it's "usb: set_config_number single config num=0" on android but on sailfish "usb: set_config_number multi config_num=0(zero base)" (edited) | 19:15 |
mal | btw, there might be some usb-moded changes coming soon to fix usb detection issues | 19:15 |
T42 | <Ayman_rgab> nice (re @SailfishFreenodeIRCBridgeBot: <mal>btw, there migh...) | 19:16 |
T42 | <elros34> does android way to use mtp instead functionfs was ever used on sailfish or can it used at all? | 19:20 |
T42 | <elros34> mal:^ | 19:20 |
T42 | <Ayman_rgab> so only ffs no mtp ? | 19:23 |
T42 | <Ayman_rgab> https://github.com/sailfishos/usb-moded/blob/7176593ab4a6289322e93f55ec6585529b28ffc9/config/dyn-modes/mtp_mode-android.ini#L7 | 19:24 |
T42 | <edp_17> Thanks Elros. Yes, I've created a similar script but didn't really helped. | 19:42 |
T42 | <edp_17> I remember, when I connected to the device with telnet, that was also dropped often. When it dropped, I had to connect in a separate command line and the connection became stable eventually. (re @elros34: @edp_17 you have pro...) | 19:42 |
T42 | <elros34> ok. telnet do not work now if you mask usb-moded and reboot? | 19:45 |
T42 | <elros34> I assume you are aware that testing images have disabled telnet | 19:48 |
T42 | <edp_17> I'll try but only tomorrow when get time for it. Thanks. | 19:52 |
T42 | <edp_17> @elros34 : I couldn't wait. :) Telnet doesn't work when I mask usb-moded and reboot. | 21:03 |
T42 | <elros34> on devel image? | 21:06 |
Generated by irclog2html.py 2.17.1 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!