Monday, 2022-11-21

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 exist11: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 work11:04
T42<elros34> I have asked you about that dir only because you wanted to add some config file related to this11: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*rc11:07
T42<elros34> this is what android use by default and what you should usually follow11: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 repos11:09
T42<edp_17> Okay.11:09
T42<elros34> depends on android version they are in / or /system or /vendor11:10
T42<Ayman_rgab> Developer mode use rndis0 from android11:10
T42<edp_17> I have that in a few folders: (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:
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 service11:16
T42<elros34> than*11:16
T42<edp_17> When I turn Developer mode on, I get these values in there:
T42<edp_17> Eventually, my PC displays a pop-up message saying "Disconnected"11:17
T42<elros34> then follow usb-moded11:17
T42<edp_17> So, it looks like the device is there but cannot reach with ssh11:18
T42<Ayman_rgab> `ip link show` (re @edp_17: So, it looks like th...)11:19
T42<edp_17> Here is usbd.rc:
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 device11: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 paste11: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 imported11: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 not sure if this is the same issue11: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.ini11:28
T42<edp_17> Yes, I have that. Here its content:
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 also11: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> -D11:47
T42<elros34> or usb-moded --help11:48
T42<Ayman_rgab> i want to fix mtp 😖11:48
T42<edp_17> @elros34  Verbose log :
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 config12:00
T42<elros34> check what interface name your device use ifconfig12:00
T42<edp_17> On host? That is usb012:05
T42<elros34> no on device12: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 file12:06
T42<edp_17> In which one: developer_mode.ini  or developer_mode-android.ini ?12:07
T42<edp_17> Ok, I got it. :D12: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.
T42<elros34> yeah but from what package12:12
T42<edp_17> I have no idea. How to find out?12:12
T42<Ayman_rgab> it's from usb-moded-developer-mode12:13
T42<elros34> rpm -qf <path/to/file>12:13
T42<edp_17> I have these usb-moded packages installed:
T42<edp_17> That file is from : usb-moded-developer-mode-0.86.0+mer56-1.8.6.jolla.armv7hl12: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 are12: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 files12: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.rc12:24
T42<elros34> *usb*rc not usbd.rc12:25
T42<Ayman_rgab> just mount /system/vendor/etc/init/hw/init.qcom.usb.rc to /dev/null at startup12: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 :
malso 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 ''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 moment13: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> ok13: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 again13:42
T42<edp_17> @elros34 : Yes, it shows inet address13:42
T42<edp_17> mal : Thanks! I carry on then. :D13: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 50314: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 packages14: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 '' denied."14:34
mal@edp_17 I pinged internally about the repo issue14:34
T42<edp_17> Previously it was timeout.14:34
malprobably some issue in server side14: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: I needed this on very picky device otherwise I lose connection all the time18:33
T42<Ayman_rgab> hi Elros18: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 not18:45
T42<Ayman_rgab> anyway to make usb-moded enable this along side mtp18:46
T42<Ayman_rgab> android
T42<Ayman_rgab> sailfish
T42<elros34> with what config file18:56
T42<Ayman_rgab> tried with mtp_mode-droid.ini device did not show up on pc18:57
T42<Ayman_rgab> with mtp_mode-android.ini it show up but can't be mounted18:57
T42<elros34> good then read usb-moded logs to figure out why instead keep installling some other config which nobody use18:58
T42<Ayman_rgab> everything seems okay i couldn't found where is the problem19: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
malbtw, there might be some usb-moded changes coming soon to fix usb detection issues19: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<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 telnet19: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 2.17.1 by Marius Gedminas - find it at!