Monday, 2021-12-13

Mister_Magistermal: can you remember what's this all about?03:48
Mister_Magisteri have it in my moto x 2014/victara port and i don't remember why03:48
T42<rodrisola> Mal: lineage os for my device not support ext4... And think about of bootloop04:01
Mister_Magisteryou can add ext4 support in kernel04:02
Mister_Magister ahh04:31
Mister_Magistertbh this faq should be linked in topid04:34
T42<rodrisola> In defconfig? (re @SailfishFreenodeIRCBridgeBot: <Mister_Magister>you...)04:37
T42<foxclore> mal: @elros34 regarding yesterday's issue: I did "make clean" then rebuilt droidmedia, but issue still remains. There is no libdroidmedia in out (07:25
Mister_Magisteryeah xperias had some fix for the wlan because wlan was blocking the sleep and i had it applied in my 5z previously but i no longer have and my phone never sleeps08:45
Mister_Magistermal: do you remember it maybe?08:45
malMister_Magister: well there have been some suspend fixed, one if the connman suspend plugin, then in some new kernels enabling auto suspend in kernel was needed etc08:46
Mister_Magistermal: i think its the first one08:47
Mister_Magistermy kernel is 4.9 and only the connman plugin rings some bell08:47
malMister_Magister: the bluetooth backports is to use bluez5 on old kernel which doesn't have support for it08:47
Mister_Magistermhm found it08:47
malMister_Magister: connman plugin is probably in adaptation-common08:48
Mister_Magisterwill add it to patterns08:49
Mister_Magisterlets see if it suspends now08:49
Mister_Magisterhmm its second device i'm OTA'ing to 4.2 and 4.3 and kernel doesn't get flashed09:04
Mister_Magisterfor whatever reason09:04
Mister_Magisterseems like its sleeping, thanks mal <309:06
Mister_Magistermal: trying to boot 4.3 on 3.4 kernel and i only see this in logcat i'm not sure if i didn't miss some patches in kernel or something09:09
Mister_Magisteryeah dmesg confirms that its just that09:09
Mister_Magisteridk what i broke :/09:12
Mister_Magisterlooking into kernel config changes09:16
Mister_Magistercan't find anything obvious09:18
Mister_Magisterwhat the hell did you do magister09:23
Mister_Magistermal: do you remember some patch that was changing fget to fget_raw09:25
malyes, there was some fix for that needed in some kernel versions09:26
Mister_Magistermal: yeah i do know that but i don't know the patch, my g2 had it only changed in one place09:27
Mister_Magisterthey're both 3.4 kernel09:28
Mister_Magisteri suspect i need to change it in some more places but the patch would be useful09:28
Mister_Magisteras a reference09:28
Mister_Magistercan't find anything in logs about it tho09:28
malthat depends a bit on the exact kernel version afaik09:29
Mister_Magisterdo i just need to replace all fget with fget_raw?09:30
Mister_Magisternah doesn't seem so09:30
malfp2 kernel has something related to that, the hybris-21.05.0-rel branch09:30
Mister_Magisterbut maybe i'm searching in wrong place, do you have any issue about adsprpc issue?09:31
Mister_Magisterany clue*09:31
Mister_Magisterits getting permission issue :/09:32
Mister_Magisteri don't think that fget is issue for the adspprpc its sailjail fix09:34
Mister_Magisterso i'm looking in wrong place09:35
Mister_Magisteridk what the hell changed09:36
Mister_Magisteri'm so confused09:38
Mister_Magistermal: here's strace, it cannot open the device for some reason
Mister_Magisterlets do sanity check and boot older kernel even tho it doesn't have fixes for sailjail09:46
malare the permissions of that device node correct?09:48
Mister_Magisteri thought they're weird but when i changed them, nothing changed09:50
Mister_Magisteron old kernel same issue09:51
Mister_Magisterso it isn't kernel then09:52
Mister_Magistereven when, as root, i do cat /dev/adsprpc-smd i get permission denied09:54
Mister_Magistersomething's not right09:54
Mister_Magisterits not selinux as selinux is disabled09:55
Mister_Magisterwhile doing cat /dev/adsprpc-smd on other devices it returns invalid argument which would be correct09:59
Mister_Magistereven on 4.309:59
T42<elros34> @foxclore but what was the output? It was al about output, after make droidmedia, you should have printed path to built library like I said10:02
Mister_Magistermal: could it be sailjail causing issue?10:04
malMister_Magister: sailjail is only relevant for UI apps10:05
Mister_Magistermal: oh :< any idea then? You're my only hope :<10:05
T42<elros34> have you tired most obvious chmod a+rw /dev/adsprpc-smd? what is the owner of it?10:06
Mister_Magister@elros34 i tried chmod 777 and changing owner to system:system, for some reason the owner is     media camera while my other device has system:system10:07
Mister_Magisterand since i'm root permissions shouldn't matter10:08
Mister_Magisterso there is something else blocking access i thimk10:08
Mister_Magisteri removed the line that chages it to media:camera10:12
Mister_Magisterand no change10:13
T42<elros34> I would search in init*rc files for adsp and in kernel. Could be that it needs some initialization or special group when started10:16
T42<foxclore> But there was nothing in output regarding droidmedia, that the thing (re @elros34: @foxclore but what w...)10:18
T42<elros34> its hard to believe that make droidmedia finished without any related output. Btw did you apply hybris patches?10:19
malMister_Magister: sorry, maybe later today, I need to work10:20
T42<foxclore> Yes (re @elros34: its hard to believe ...)10:21
Mister_Magistermal: ahh its okay no worries :)10:21
T42<foxclore> Well I'll paste all logs once I'll get home (re @elros34: its hard to believe ...)10:21
Mister_Magister@elros34 at that point i might as well turn the kernel upside down, worst part is that on previous kernel same issue happens so it's related to the fs and not kernel10:22
Mister_Magisterhmm might as well build zip and diff them10:36
T42<foxclore> @elros34
T42<foxclore> Logs13:52
T42<rodrisola> A question, when creating the zip, of course there is no error, I install it on my phone, when I finish installing of course it does not give me an error, start the phone and seconds it enters fast boot, it does not start. Why do you think?14:46
mal@rodrisola which android base? are you sure kernel contains valid init15:22
T42<rodrisola> Mmm 18.1 (re @SailfishFreenodeIRCBridgeBot: <mal>@rodrisola whic...)15:39
T42<rodrisola> Mal: android base 18.115:40
T42<rodrisola> Mal: How do I check if you have a valid init?15:40
malmostly two ways, trying to see from build log if it complains about cpio or other way is to break apart hybris-boot.img using bootimgtools or something to see the size of the init15:42
poetastermal: it looks like FF port, like the volla port, have issues with Sailjail and GPS?15:44
malpoetaster: ? has anyone checked strace for what it tries to open?15:52
poetastermal: was actually two issues; Starting it from terminal i got an error about the ‘ApplicationName’.15:55
poetastermai: I changed it at /usr/share/applications/harbour-dwd.desktop from harbour-dwd to HarbourDWD and now it works as expexted. I15:55
malI'm confused15:55
poetastertwo issues: one, on FF, nameing seems to be an issue (works elsewhere), two GPS doesn't work. but it also doesn't work on volla.15:56
poetastermal: the FF info I got via private chat.15:57
Thaodanpoetaster: If there's a path needs to be whitelist that could be an issue16:01
ThaodanThat's why I said run the app with sailjail --trace16:01
poetasterThaodan: --trace didn't provide any further data. Network was available.16:04
ThaodanAh meh. I thought there will be access denied on some of those vendor libs or paths that's that are only used on volla16:05
poetasterThaodan: I've pinged piggz, but it seems to be the same issue on FF2 (but that's 4.2!)16:05
ThaodanWe did something similar here: some16:06
poetastermal: I'll try strace on Jailconfiged app later.16:08
poetastermal: problem is my FF2 is still 3.4 and I'm snowed under.16:08
T42<elros34> @foxclore why do refuse to include command you use/ command prompt? How do I know what you have done: make droimedia or hybris-hal, did you export required env variable and so on16:13
T42<foxclore> make droidmedia (re @elros34: @foxclore why do ref...)16:15
T42<foxclore> The only thing exported was that disable path thingy in hadk-faq16:16
T42<elros34> and that was right after make clean?16:16
T42<foxclore> Yes (re @elros34: and that was right a...)16:16
T42<elros34> do you have PORT_ARCH set? echo prints something?16:45
T42<rodrisola> mal: i installed bootimgtool.. but what extract… kernel, ramdisk? (re @SailfishFreenodeIRCBridgeBot: <mal>mostly two ways...)17:29
T42<elros34> use abootimg -i hybris-boot.img17:30
piggzpoetaster: so, whats not workin, puremaps?17:31
poetasterpiggz: no it's just Location in Sailjail context. puremaps is fine. I had just released harbour-dwd with sailjail the other day on chum.17:36
Mister_Magisterpoetaster: ping, you got time now?17:39
Mister_Magistersorry i mean mal17:39
piggzpoetaster: best idea is strace the process while running in jail to see whats going wrong17:40
malMister_Magister: so what exactly are you trying to fix?17:41
T42<rodrisola> mal: this is my init.rc
malI just meant that if the init is something else than empty then it's fine17:42
malmaybe you need the usual revert in kernel for skip init thingy17:42
malsomething like this
malso you need to find the commit in your kernel which adds skip_initramfs option and then revert it17:43
Mister_Magistermal: so, i have my moto x 2014, it was on 3.4 so i wanted to update it to 4.3. I've updated packages on obs, updated the kernel for 4.3, updated droidmedia, updated audioflingerglue, the base is 13.0, when i was still on 3.4 i booted the new kernel to confirm fdinfo, everything worked fine, so i updated to 4.3 and now adsprpc is not starting blocking entire droid-hal-init and  i can't open /dev/adsprpc-smd which is created by17:43
Mister_Magisterkernel, but even with the 3.4 kernel i can't open it so something else than kernel is blocking it i think17:43
malwhat problems does that cause?17:44
Mister_Magisterem, droid-hal-init is not working so nothing is working17:44
Mister_Magisterits like if you tried to boot with masked dhi17:45
Mister_Magisternot going to happen17:45
Mister_Magisterlike, adsprpc is needed for dhi to start17:47
Mister_Magisterquestion is why can't i open/access it17:47
Mister_Magisterlike the only thing that changed in this whole equation is dhd package and sfos version17:50
* Mister_Magister that's quite a lot17:50
malhow did you update to 4.3? directly from old version or did you reflash?17:53
malanything in logs about firmware loading?17:53
Mister_Magisterill get you full dmesg asap17:54
malskipping stop releases is not a good idea17:54
Mister_Magistermal: oh but isn't like every version after 4.0 a stop release17:54
malyeah, it's been a bit more common recently, there is always some reason for it17:55
Mister_Magisteri've updated g2 from 3.4 to 4.2 without issues17:55
Mister_Magistertho doubt that would cause the problem really17:55
T42<rodrisola> mal: I just noticed an error in my init.rc, My partition data Sda34, in the init is as /dev/sda34, but when making ls -l in /dev/ No partition exists Sd*, if it is not existing in /dev/block18:00
T42<rodrisola> I have to change...  Fixmountpoint18:00
malwhere did you check that?18:01
malI'm a bit confused what is working and what is not on your device18:01
T42<elros34> init.rc is not same as init-scripts you are probably talking. Even with wrong partition you would not boot directly to fastboot mode. Can you show abootimg output?18:02
mal@elros34 direct boot to fastboot mode sounds like it needs that skip_initramfs revert so it can boot to sfos kernel18:05
T42<elros34> could be or more likely missing initramfs, that is why I asked about: abootimg -i hybris-boot.img but in vain18:06
mal@elros34 I assumed the init shown earlier was from the initramfs18:07
T42<elros34> it could be but it can be also from out/ so we can guess until @rodrisola  clarify it18:08
T42<rodrisola> mal: in the init.rc log, it indicates that the data partition is / dev / SDA34, in my fixmountpoin, it is SDA34, but when in TWRP, I execute the command "ls -l / dev / *", there is no SD *, but I run "ls -l / dev / block / *" there if the SD* partitions exist18:10
T42<elros34> again this is not your issue and there is no such a thing as init.rc log18:12
mal@rodrisola also comparing what you see in recovery is not always accurate when you compare to other environments18:22
mal@rodrisola did you check the initramfs you extracted from kernel, assuming you did that18:22
T42<rodrisola> abootimg -i hybris-boot.img
T42<elros34> looks good enough to boot, try dmesg -w on host, then flash hybris-boot.img and check whether you get any log at first boot18:30
T42<rodrisola> mal: yes i extract18:39
T42<rodrisola> @elros34 when you mean host, do you mean my ubuntu, or device?18:40
T42<elros34> your pc: ubuntu or whatever you use, it shhould show some usb related messages which can give some hints whether device try to boot android init, hybris init or just directly boot to fastboot18:44
T42<rodrisola> @elros34
T42<rodrisola> just reboot in fastboot18:52
T42<elros34> which line is 1th boot?18:58
T42<elros34> not sure but: 'New USB device found, idVendor=18d1, idProduct=d00d and Product: Android' looks more like android init than fastboot mode. Have you tired advice from mal about skip_initramfs?19:03
T42<rodrisola> first in twrp mode for flash adb sideload, and reboot19:04
T42<elros34> @rodrisola  why don't you use fastboot flash boot hybris-boot.img?19:05
Mister_Magister error while handling import on line '11' in '/init.rc'19:07
Mister_Magisteror more like "/init.rc: 30: invalid command 'setcon'"19:17
Mister_Magistermal: ^ i think that breaks init.rc19:17
Mister_Magisterand it would make sense as its the userspace change19:17
T42<rodrisola> @elros34 Because I had deleted all the system and data, now fastboot flash boot hybris-boot.img, how can I disable the skip_initramfs. I do not find information on the internet, excuse the ignorance19:18
Mister_Magisterhmmm maybe too new libhybris?19:19
Mister_Magisteror something19:19
T42<elros34> @rodrisola: mal explained it to you less than 1h ago, you can also find instruction in hadk-hot. I do not understand why you deleted system? You need it to boot lineage and to boot sfos also.19:24
Mister_Magistermal: why would setcon not be available?19:27
Mister_Magisteror is it just warning?19:27
Mister_Magister heres longer dmesg19:31
T42<elros34> maybe this one:  "adsp: Failed to locate adsp.mdt"19:39
Mister_Magister@elros34 how did i miss it19:40
Mister_Magister@elros34 ill investigate it and i'll get back to you on that19:40
Mister_Magisteri think its valid clue19:40
Mister_Magisterit's in /firmware/image/adsp.mdt19:41
T42<elros34> maybe it would be easier to notice error if you would disable audit19:44
Mister_Magisterit is disabled twice19:45
Mister_Magisterbut anyway, @elros34 do you maybe know where can i check what locations its checking?19:45
T42<elros34> no but this source match other adsp errors:
Mister_Magisteri found the function where it returns failed to locate19:54
korppiMister_Magister: cat /lib/udev/rules.d/* |grep firmware20:01
Mister_Magisterkorppi: nothing20:02
korppiso you are missing udev rule20:02
Mister_Magisterwould seem so, hold i got an idea20:02
korppiMister_Magister: SUBSYSTEM=="firmware", ACTION=="add", RUN="/usr/bin/droid/"20:03
T42<elros34> droid-load-firmware always prints firmware loading attempts, so if it fails you should have it in journal20:05
Mister_Magister@elros34 the problem is that its not being run20:06
Mister_Magisteris what korppi is saing20:06
Mister_Magisterquestion is why is that udev rule missing20:06
Mister_Magisterwho adds it20:06
Mister_Magisteryeah last line is missing for whateve reason20:07
Mister_Magisterits present in the package so why…20:09
korppiI had that too...20:10
Mister_Magisteri know why20:10
Mister_MagisterI'm such a fucking idiot20:10
Mister_Magisteri had obs repo set to 3.420:11
Mister_Magisterso it  didn't update any device-specific package20:11
Mister_Magisterhow do i recover from this hmmm20:12
korppiOk. Different reason for my device then.20:12
Mister_Magisteri need internet but the wlan module won't load xd20:13
Mister_Magisteralso jsut adding that line didn't fix it xd20:13
korppiNice. Usb with some firewall magic then...20:14
Mister_Magisteryeah the firewall magic is the real struggle20:15
Mister_Magisterback in the day hadk had tips on the usb routing20:38
Mister_Magisterbut it doesn't work anymore20:39
Mister_Magisteroh it works20:40
Mister_Magisterwe are going places20:41
Mister_Magisterif it didn't reboot while im refreshing repos that would be ultra helpful20:43
Mister_Magisterhmm i think i can mask shi20:43
Mister_Magisternothing provides 'gmp-droid' needed by the to be installed patterns-sailfish-device-adaptation-victara-1.1+master.20211213072731.19.ga8d660a-1.24.2.jolla.armv7hl20:45
Mister_Magisterim missing a repo am i not20:45
Mister_Magisteryep, adaptation-common is missing20:47
Mister_Magisterbut why, it is present in /usr/share/ssu/repos.d/10-jolla.ini20:49
Mister_Magisterwhy nothing provides gmp-droid even with adaptation-common20:52
Mister_Magisterwasn't gmp-droid supposed to be provided by adaptation-common since 4.3?20:55
Mister_Magisteron my other 4.3 device it is in adaptation-common20:55
Mister_Magisterwhat the heck is going on20:55
Mister_Magistermaybe just adding repo url wasn't the solution then20:56
T42<elros34> why did you add repo? Didn't we figure out why repo is missing several days ago?20:57
T42<elros34> tip: ssu cache20:57
Mister_Magisterno i don't think we did, maybe you got wrong person20:57
Mister_Magisterbut yes rm -rf /var/cache/ssu/ ssu ur is the solutin20:58
T42<elros34> :) I remeber it good because I was supprised that bug was ignore even with your report and release was out then20:58
Mister_Magisteri haven't talked about it in "several days ago" timeline, more like "several months ago"20:59
Mister_Magisterbut ye, it got me thinking about that issue so i went and read logs and fixed it properly20:59
T42<elros34> right it was more than several days21:00
Mister_Magisteri'm now worried about how users are supposed to upgrade to 4.3 without destroying everything21:00
Mister_Magisterlike me21:00
Mister_Magisterseems like its not the end of my issues tho21:03
Mister_Magisteroh we got ui, thats something21:03
Mister_Magisternice anything about media just crashes apps21:14
Mister_Magisterah i had old gstdroid21:15
Mister_Magisterhmm vibrations don't work21:18
T42<adampigg> perms (re @SailfishFreenodeIRCBridgeBot: <Mister_Magister>hmm...)21:18
Mister_Magister@adampigg elaborate plz21:19
Mister_Magisteri seen it somewhere but couldn't find it21:19
Mister_Magisterlike i remember doing something about it but i don't remember where21:20
Mister_Magister@adampigg ?21:23
Mister_Magister found it21:23
Mister_Magisterugh i can't build any zip now22:22

Generated by 2.17.1 by Marius Gedminas - find it at!