Saturday, 2023-07-01

T42<smatkovi> @elros34 is in these locations but is expected here somehow: ./out/target/product/j5xnlte/system/apex/
T42<smatkovi> @elros34 is in these locations but is expected here somehow: ./out/target/product/j5xnlte/system/apex/
T42<elros34> What is latest android version from samsung on your device? What about other libs:, and Are they also only in system/lib?08:44
T42<smatkovi> no they are also in subfolders of SHARED_LIBRARIES in out for example out/target/product/j5xnlte/obj/SHARED_LIBRARIES/libc_intermediates/libc.so09:16
T42<smatkovi> and there is also lineage os 18 available for it, but camera doesn't work there. or do you mean official release from the manufacturer?09:17
T42<elros34> yeah from samsung09:23
T42<elros34> show same search from out/ for those mentioned libs09:24
T42<smatkovi> 7.1.109:27
T42<smatkovi> maybe it is because i didn't build the kernel with selinux09:32
T42<smatkovi> i'm trying now but it says unknown variable '$(PATH_OVERRIDE_SOONG)'09:32
T42<smatkovi> i had that already and don't know if only make clean helped here or something else09:33
T42<elros34> no09:33
T42<elros34> also I told you to search only in out/ not in whole system...09:33
T42<smatkovi> oh sry09:33
T42<elros34> remove "dl_android" from here:
T42<smatkovi> thanks i'm trying now09:40
T42<smatkovi> shouldn't i rebuild the kernel with selinux enabled?09:40
T42<elros34> wasn't it enable by default?09:41
T42<smatkovi> at least CONFIG_SECURITY_SELINUX=y wasn't in the defconfig before, i don't know if it could be enabled somewhere else09:42
T42<elros34> was it in .config?09:43
T42<smatkovi> sorry which config?09:44
T42<elros34> .config file in out/. That file which you should check via mer-kernel-check according to hadk pdf09:45
T42<smatkovi> i see, would it show up as error or warning here?09:50
T42<smatkovi> okay warning WARNING: CONFIG_SECURITY_SELINUX_BOOTPARAM_VALUE is invalid09:51
T42<smatkovi> i guess CONFIG_SECURITY_SELINUX_BOOTPARAM should be set to y. should also CONFIG_SECURITY_SELINUX be set to y?09:55
malwhich device is that again?09:56
T42<smatkovi> j5xnlte or samsung galaxy j5 201609:57
T42<smatkovi> oh breakfast brings in this environment variable. rebuilding the kernel now and reporting back afterwars10:08
malyou always need to run those source and breakfast commands before building when you re-enter the build environmen10:14
malI mean before running make hybris-hal for example for android side build10:14
T42<elros34> SECURITY_SELINUX_BOOTPARAM* is irrelevant for you. About CONFIG_SECURITY_SELINUX: again check .config file, I bet it was already enabled10:16
T42<elros34> basically if you do not touch anything selinux related then it's probably all correct10:17
T42<smatkovi> okay thanks now it is enabled correctly11:14
T42<smatkovi> okay now it gives the same error as when i copied the file there File not found: /home/sebastian/hadk/installroot/default.prop i found a default.prop and put it there but it gets overwritten everytime i build droid-hal11:22
T42<smatkovi> or more correctly the directory gets deleted before building11:22
T42<elros34> if you do not have default.prop somewhere in out/ then remove it from droid-hal-device.inc11:25
T42<elros34> you can't put files in installroot/ it's cleared/created during rpm creation11:26
T42<smatkovi> YES: * Building of droid-hal-j5xnlte finished successfully11:35
T42<smatkovi> nice thanks11:35
T42<smatkovi> okay now i have some missing dependencies in building —config11:53
T42<smatkovi> community-adaptation is needed by droid-config-jmxnlte-1-202307011146.armv7hl11:53
T42<smatkovi>   pkgconfig(android-headers) is needed by droid-config-jmxnlte-1-202307011146.armv7hl11:53
T42<smatkovi>   ssu-kickstart-configuration is needed by droid-config-jmxnlte-1-202307011146.armv7hl11:53
T42<smatkovi> are they installed or built before that?11:53
T42<smatkovi> but this is also strange: Building target platforms: armv7hl-meego-linux11:54
T42<smatkovi> Building for target armv7hl-meego-linux11:54
T42<smatkovi> shouldn't it be a target with the device name?11:54
T42<elros34> run script without any arguments11:57
T42<smatkovi> okay so i'm running this now rpm/dhd/helpers/build_packages.sh11:57
T42<smatkovi> unfortunately the same. maybe it's because of these warnings before the error?
T42<elros34> read whole log, not just few lines which in fact are irrelevant12:02
T42<elros34> first error in log: " DB_VERSION_MISMATCH: Database environment version mismatch". Solution is available in channel logs and even in hadk-hot12:06
mal"sb2 -t $VENDOR-$DEVICE-$PORT_ARCH -R -m sdk-install rpm --rebuilddb"12:08
T42<smatkovi> it seebs you provided the solution: sb2 -t <target> -m sdk-install -R rm -rf /var/lib/rpm/__db.00*12:10
T42<smatkovi> okay thanks mal i will try your command first12:10
malboth probably work, the one I just gave is cleaner way12:10
T42<smatkovi> okay thanks. now i'm unsure the package is successfully built but there are some errors about bluez missing maybe i can proceed ignoring those?:
T42<smatkovi> at building mw it asks to build libhybris, so i said yes to all12:15
malthat error in config package build is strange12:17
T42<smatkovi> yes version also doesn't build successfully:
T42<elros34> do you see which line is the problemthe problem12:26
T42<smatkovi> maybe the ofono-configs conflict?12:28
T42<smatkovi> i could delete ofono-configs-binder12:28
T42<smatkovi> and keep droid config-jmxnlte12:29
T42<elros34> great find but now search in existing docs you have for correct solution12:29
T42<elros34> ctrl+f and you will find it faster then you can write about it in this chat12:30
maldo you have these 4 lines
malin droid-config spec file12:32
T42<TheVancedGamer> mal: recalling yesterday, do you have any idea about that media.c2 issue?12:32
mal@TheVancedGamer not right now, maybe I should try to get my latest android 13 based build running again12:34
T42<smatkovi> no i only added %define android_version_major 1012:34
T42<TheVancedGamer> mal: i'll wait then, in the meanwhile I was trying to figure out why it requests c2 but sadly no progress12:35
T42<smatkovi> but i added these 4 lines now12:35
T42<smatkovi> running the buildscript without arguments gives me this in the config log
T42<elros34> typos in spec file?12:48
T42<smatkovi> i had one where i wrote j5xnlet instead of j5xnlte but that was earlier, yes maybe there are more...12:49
T42<elros34> I am talking about your latest changes, do you read logs you put here? "error: File must begin with "/": ofono-configs"12:50
T42<smatkovi> yes but i think that is strange12:53
T42<smatkovi> it was without / in the linked spec file12:54
T42<smatkovi> should i just put / infront of every ofono-configs*?12:54
T42<elros34> error may be misleading but it indicates some mistake in file related to that change12:54
T42<smatkovi> okay i changed these lines to: # Device-specific ofono configuration12:56
T42<smatkovi> Provides: droid-configs-j5xnlte12:56
T42<smatkovi> Obsoletes: ofono-configs-binder12:56
T42<elros34> no, show your changes if you do not know what is wrong12:57
T42<smatkovi> i was asked if i have these 4 (3) lines: Provides: ofono-configs12:58
T42<smatkovi> Obsoletes: ofono-configs-mer12:58
T42<smatkovi> Obsoletes: ofono-configs-binder12:58
T42<smatkovi> and i just added those12:58
T42<elros34> Then show the file12:59
T42<smatkovi> so this section# Device-specific ofono configuration12:59
T42<smatkovi> ok here is my spec file
T42<elros34> remove everything after: %include patterns/ and then add these 3 lines before %include droid-configs-device/droid-configs.inc13:02
T42<smatkovi> okay thanks13:04
T42<smatkovi> cool it seems to have built it. i wonder if setting RELEASE variable in .hadk.env is mandatory13:12
T42<smatkovi> okay it seem to work to just export it13:15
T42<smatkovi> i get these errors building mic grep: /home/sebastian/hadk/hybris/droid-configs/installroot/usr/share/kickstarts/Jolla-@RELEASE@-j5xnlte-@ARCH@.ks: No such file or directory13:15
T42<smatkovi> sed: can't read /home/sebastian/hadk/hybris/droid-configs/installroot/usr/share/kickstarts/Jolla-@RELEASE@-j5xnlte-@ARCH@.ks: No such file or directory13:15
T42<smatkovi> do i have to write a kickstart file?13:15
T42<smatkovi> i don't know how to do that13:15
T42<elros34> I see some mismatch jmxnlte and j5xnlte, make sure you use correct name everywhere13:20
T42<smatkovi> where do you see that?13:22
T42<elros34> all over your logs13:22
T42<elros34> even in your latest paste: %define device jmxnlte and WHich on eis correct13:22
T42<smatkovi> oh thanks13:23
T42<smatkovi> j5xnlte13:23
T42<smatkovi> i have a zip file :)13:41
T42<smatkovi> flashing with twrp it says failed to extract filesystem. maybe the zip file isn't correctly copied onto the disk from that i install it?13:49
T42<smatkovi> i will take a break now and see if i can flash it later13:49
T42<smatkovi> and i also get error 7 after failed to extract filesystem14:14
T42<smatkovi> maybe my fixup-mountpoints is wrong?14:15
T42<neochapay> ```14:30
T42<neochapay> Jul 01 02:58:21 T1100 sh[982]: nohup: can't execute '/sbin/droid-hal-init': No such file or directory14:30
T42<neochapay> ```14:30
T42<neochapay>  i think it's not good...14:30
T42<elros34> probably missing /system14:31
Mister_Magisterany clues on debugging suspend when in dmesg theres not even an indication of trying to go into suspend?15:54
Mister_Magisterrinigus: ping15:56
riniguspong. re question above - check that there is no wakelock up.15:57
rinigusif it is still valid these days15:57
T42<Mister_Magister> how do i do that? I just pinged you cause you seemed to ask "looks like CONFIG_PM_AUTOSLEEP is deprecated" in android 10 which I have android 1115:58
T42<TheVancedGamer> isn't it something like /sys/power/wake_lock15:59
T42<TheVancedGamer> and /sys/power/wake_unlock15:59
T42<Mister_Magister> sry i never dealed with sleep issues before15:59
T42<Mister_Magister> /sys/power/wake_lock seems to return dsme_iphb_wakeup16:00
T42<Mister_Magister> whatever that is16:00
T42<Mister_Magister> unlock has dsme_iphb_wakeup dsme_rtc_input hal_bluetooth_lock lowirpcd:6284 mce_mux mce_rtc_wakeup psensor_domain rmt_storage_507833830592 rmt_storage_507834870976 rpmb_access_wakelock sensorfwd_pass_data sscrpcd:5552 tftp_server_wakelock usb_moded_input usb_moded_state16:00
T42<TheVancedGamer> try doing `echo dsme_iphb_wakeup > /sys/power/wake_unlock` for funsies16:00
T42<TheVancedGamer> and see if it suspends16:00
T42<Mister_Magister> i mean its already in unlock but okai16:01
T42<Mister_Magister> yep it didn't scream at me16:01
T42<Mister_Magister> now its only in unlock16:01
T42<TheVancedGamer> try and see if it sleeps lol16:01
T42<TheVancedGamer> if not I forgot how this works16:01
T42<Mister_Magister> nope, doesn't seem to be sleeping16:03
T42<Mister_Magister> but ill try without wifi16:03
T42<Mister_Magister> nope no suspend without wifi either16:04
T42<Mister_Magister> biggest problem is that there's absolutely no info in dmesg about suspend, not even failign16:15
T42<Mister_Magister> any clues welcome16:18
T42<Mister_Magister> i'll try to enable autosuspend16:19
T42<elros34> does it sleep at all? Systemdatascope shows nice graphs including sleeping16:20
T42<Mister_Magister> not at all16:20
T42<Mister_Magister> i'm using systemmonitor16:20
T42<Mister_Magister> it has -0% sleep and like nothing in dmesg at all not even trying not even failing16:21
Mister_Magisterit doesn't even try to fail16:22
T42<elros34> maybe kill this related process  hal_bluetooth_lock? You didn't disable sleep in mce and forget about it:P16:30
T42<Mister_Magister> nah i don't think sleep was disabled in mce16:31
T42<Mister_Magister> what did hal_bluetooth_lock do? lol16:32
T42<elros34> who knows but I think wifi/bluetooth are first to eliminate16:34
T42<Mister_Magister> i mean they're off16:34
T42<Mister_Magister> bt is off16:34
T42<Mister_Magister> i'll try enabling the pm_autosuspend16:38
rinigus@Mister_Magister: do you have autosuspend enabled in kernel? I think in android they may suspend somewhat differently now. but you have to search on what is used now if kernel autosuspend will refuse to work16:42
rinigusI think it was something in userspace that was suspending16:42
T42<Mister_Magister> ye like i said i'm gonna try enabling it so its disabled :P16:42
rinigusas android doesn't use kernel autosuspend anymore, you may get some weird bugs as well. that was a problem that I had with sony tama.16:43
T42<Mister_Magister> thats why i pinged u cause u said its deprecated but its still there lol16:43
T42<Mister_Magister> ah16:43
T42<Mister_Magister> but i should be using it right?16:43
rinigusas far as I know, yes, you should in SFOS16:43
riniguslet's hope it works for you16:44
T42<Mister_Magister> aight16:45
T42<Mister_Magister> it takes solid 30 minutes to rebuild this trashy kernel so gimme a moment16:45
T42<Mister_Magister> now droid-hal doesn't want to build letsgo16:56
T42<Mister_Magister> aaand no suspend with autosuspend either17:14
rinigus@Mister_Magister: pity.17:18
T42<Mister_Magister> ill try suspend patch i had on 5z in android 917:18
T42<Mister_Magister> first need to figure out why droid-hal doesn't build properly17:20
T42<Mister_Magister> ayy wiat withuot wifi there is sleep18:14
T42<Mister_Magister> 83% so not  great but there is something18:14
T42<Mister_Magister> ayy after patch got some wifi suspend too18:25
T42<Mister_Magister> /sys/power/wake_lock has only mce_mux mce_pwrkey_stm sensorfwd_pass_data18:25
T42<Mister_Magister> tho with wifi there's  lot of suspend failed18:26
T42<Mister_Magister> but its a start18:26
T42<Mister_Magister> btw any clues how to stop wpa_supplicant from spamming dmesg?
T42<smatkovi> bard says:19:08
T42<smatkovi> /etc/wpa_supplicant/wpa_supplicant.conf file:19:08
T42<smatkovi> Code snippet19:08
T42<smatkovi> ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev19:08
T42<smatkovi> or You can also add the following line to your /etc/default/wpa_supplicant file:19:08
T42<smatkovi> quiet=119:08
T42<Mister_Magister> ah thank19:10
T42<smatkovi> but beware that this could be wrong too19:11
T42<Mister_Magister> huh?19:11
T42<smatkovi> it's a response from a large language model from google19:12
T42<Mister_Magister> ew19:12
T42<Mister_Magister> thats 99.99999% wrong19:12
T42<Mister_Magister> scratch that make it 10019:13
T42<Mister_Magister> in 95% of cases any language model is just plain wrong19:14
T42<smatkovi> you can try it and then tell us if one of these "solutions" worked19:18
T42<smatkovi> so if i get failed to extract filesystem and error 7 when flashing sailfish os it could be that system is missing?19:29
T42<Mister_Magister> no19:30
T42<Mister_Magister> error 7 means you mostlikely don't have bzip219:30
T42<Mister_Magister> hence it can't extract19:30
T42<smatkovi> so twrp might not have bzip2?19:49
T42<Mister_Magister> no19:49
T42<Mister_Magister> it DOESNT have it19:49
T42<Mister_Magister> thats not even a question, newer twrp just doesn't have it19:49
T42<Mister_Magister> So about the suspend. Without wifi i'm getting steady 83% sleep without fails, with wifi, i'm getting also around 83% but with some fails20:48
T42<Mister_Magister> should i worry? iirc it should be more like 95-99% sleep20:48
T42<Mister_Magister> ye my g2 gets close to 100% sleep20:48
T42<smatkovi> thanks @mister_magister i extacted it to a tar and changed the scripts accordingly, now i can flash it21:56
T42<Mister_Magister> np21:56
T42<smatkovi> unfortunately i get kernel is not seandroid enforcing before even booting, so it must have to do with selinux i guess21:57
T42<smatkovi> i will try by setting selinux to permissive22:09

Generated by 2.17.1 by Marius Gedminas - find it at!