Tuesday, 2024-02-13

T42_<b100dian> mal: hadk-faq perf :) section should still work? I get Failed build dependencies: binutils-devel  bison  elfutils-devel         flex  python-devel00:05
T42_<b100dian> and `sdk-assistant target maintain asus-sake-aarch64` while trying to zypper in those: `downgrade of elfutils-libs-0.177+git2-1.7.2.jolla.aarch64 to elfutils-libs-0.177+git2-1.6.5.jolla.aarch64`00:06
T42_<b100dian> and mostly the same for the others00:06
malnot sure, need to test01:18
T42_<Endrju176> has nobody ported anything for samsung note 10+?02:46
*** Danct12 is now known as brrrrrrrrrrrrrrrrrrrrrrrrrrrrr03:38
genericv3@b100dian i'll check. didin't checked it yesterday. Maybe i can today.05:07
*** rainemak__ is now known as rainemak11:50
genericv2mal: I BOOTED TO GUI15:42
genericv2oneshot-root.service this dude was blocking the boot, stopping it immediiatly booted to gui15:43
genericv2I AM SO HAPPY15:43
genericv2i can't believe it just booted.15:47
genericv2i wasn't expecting it too boot while trying these, i just got shocked15:47
Mister_Magisternow that is correct response15:47
Mister_Magisternowadays people be getting ui easily and be like "meh no wifi wtf is this garbage", back in my day it took me half a year to get ui and i was happy with it15:48
malgenericv2: didn't I say about that in the past, the gmp-droid issue15:48
genericv2Mister_Magister: i have no wifi right now too, but debugging is a thing people can't understand.15:48
Mister_Magisterim just saying people should be happy with what they have15:49
malMister_Magister: yeah, we don't even need to patch hwcomposer anymore :D15:49
genericv2i was a fan of sfos for years, and i'll make this thing usable on my phone (maybe it is, still on setup)15:49
Mister_Magistermal: :P15:49
Mister_Magistermal: i still have your hack for my ui and nobody fixed it past 6 years, just improved.15:49
malwhich hack was that again?15:50
Mister_Magisterfor some reason you need to launch surfaceflinger before hwc and nobody bothered to fix that15:50
Mister_Magistersurfaceflinger just has to init the screen15:50
genericv2mal: thank you very much, i can't thanks enough to you, also @elros3415:50
Mister_Magistersometimes it simply just doesn't boot to ui but other than that its perfect15:50
genericv2gui is a bit small too, hehe. but i know how to fix this15:51
malgenericv2: afaik fixing minimediaservice (and minisfservice if needed) might help with oneshot-root, if it is because of gmp-droid15:51
malusually minimediaservice might need couple of symlinks in /odm15:52
malyou'll see the libs it can't find if you try to start the process manually15:52
genericv2Okaay, i'll try to fix it by myself first15:53
malhttps://github.com/mlehtima/droid-config-fp3/tree/master/sparse/odm you can see some example here, might depend on the device if those need to be in lib64 or lib, you'll see when testing15:56
genericv2unrelated to these i have a question. You know my power button is broken, can i wake up the device with dt2w or volume buttons?16:16
genericv2wifi magically fixed itself, and it's working now16:21
genericv2bt is still dead, i'll work on that16:23
maldo you see bluetooth related things in binder-list?16:26
genericv2yup, i see 2 of them16:26
malwhich ones?16:27
maldo you have bluebinder installed?16:28
genericv2oh no16:28
genericv2probably no16:28
genericv2let me check16:28
malalso check if you have the needed defconfig options https://github.com/mer-hybris/android_kernel_sony_msm/blob/hybris-sony-aosp/LA.UM.9.12.r1/arch/arm64/configs/aosp_lena_pdx213_defconfig#L92116:29
genericv2oh these are missing, rebuilding kernel now16:32
genericv2I'll also create a  proper /odm16:33
genericv2Also corrected pixel_ratio, included bluebinder etc.16:40
T42_<elros34> if you are going to build new image then build for latest sailfish release to avoid any gst-droid/droidmedia-devel mismatch16:49
genericv2v4.5.0.24 right?16:50
T42_<elros34> yes16:51
genericv2Booted, gui is way better now. Gotta check other things17:18
genericv2tried encryption but "Could not encrypt userdata :fire:"17:19
genericv2oh it's because of usb-moded okay17:21
genericv2time to risk17:22
genericv2spoiler: it died17:24
genericv2luckily it's on low battery17:28
akatsukiHello. I trying to port SailfishOS using HADK. How to solve problem while adding tooling for target (samsung-klte): https://bsd.ac/ms2gfvy ? SDK and tooling version matches. Thanks for advance.18:49
malwhich tooling did you install?18:51
malthe instructions mention setting up tooling before setting up target18:51
T42_<elros34> you can also use this command instead: https://sailfishos.wiki/link/20#bkmrk-%C2%A0%C2%A0%C2%A0-sdk-manage-targe18:51
genericv2dt2w is not working in system, not a big deal for now18:57
genericv2About bluetooth: bluebinder is failing to start18:57
genericv2   Status: "Exiting."18:57
genericv2    Error: 19 (No such device)18:57
akatsukiThanks, installed tooling and target.18:58
genericv2mal: do i need to specify a bt adapter from somewhere?19:02
genericv2huh, executing bluebinder manually fixed it. I'll fix service file then19:02
malgenericv2: probably the bt address script is failing19:03
malno need to do anything to spec file just fix the script19:03
genericv2yeah probably, i'll try19:04
genericv2niceee. "Failed to get bluetooth address!"19:04
genericv2shell script debugging time19:04
malhere is one example of such custom script https://github.com/mer-hybris/droid-config-sony-murray/blob/master/sparse/usr/bin/droid/droid-get-bt-address.sh19:04
malyou need to find which getprop command gives correct address19:05
genericv2ro.bt.bdaddr_path dont exist, it's trying to pull it19:05
genericv2ah yeah i figured it out, i'll find the right one19:05
malgrep getprop output for bt or addr or something19:05
genericv2I am searching for a path, nothing related to bluetooth here (/usr/bin/getprop | grep /)19:07
genericv2maybe a missing defconfig flag? I added those in that commit19:13
genericv2(kernel config, not script)19:14
genericv2also droid-bootctl is failing because of a library file. Must i link that lib to odm or is it okay?19:23
attahSo... i found that this is getting quite old: https://github.com/sailfishos/android-tools-hadk19:40
malgenericv2: since your device is older? maybe bootctl is not even supported19:41
attahI just happen to have a "liberated" fastboot... and mkbootimg seems to be a python script nowadays19:41
genericv2mal: maybe, so it's okay to mask it i guess19:41
malcould be19:41
genericv2Also, /vendor/bin/hw/rild seems fine but rc file from vendor is not getting executed19:41
malif you don't have issues that every 6th boot you need to reflash kernel then you can mask it19:41
malgenericv2: maybe show the output of getprop?19:42
maldoes your device have /persist partition?19:47
genericv2yup, it has19:47
malanything bt or bluetooth or mac related in there?19:47
genericv2cool things: https://paste.opensuse.org/pastes/65b8d87ca99419:48
genericv2we got bt.mac19:48
malso make a script like the one linked above but instead make it read that file and store it to proper place, should not be too difficult19:51
malmake sure the order the parts in mac address are correct19:51
malusually wlan and bt mac look quite similar and only different in last numbers (not sure if always the case)19:52
malso check what settings app shows for wlan mac now (since you said wlan works then mac is probably ok, compare to the wlan mac file in that path)19:52
genericv2wlan mac is there.19:53
genericv2bt.mac file has some strance characters19:53
genericv2oh okay nevermind19:54
genericv2it seems okay19:54
genericv2wlan mac file is the exact same one with the settings app19:58
malok, so then it should be easy to make script to provide the bt mac to correct place19:58
maljust copy the script above and edit the part in the "if" https://github.com/mer-hybris/droid-config-sony-murray/blob/master/sparse/usr/bin/droid/droid-get-bt-address.sh#L1119:59
genericv2yeah bt mac file is okay too. I can get my bt mac with checking wlan_bt/bt.mac with a hex editor20:00
genericv2mal: yeah yeah i know.20:00
malis bt mac file some binary file?20:02
genericv2yeah it is20:02
genericv2xxd -p wlan_bt/bt.mac gives the mac address20:02
genericv2but no seperators (:)20:02
malok, hopefully ou can read it somehow in the script as string20:02
genericv2okaay, did it.20:05
genericv2adapted it to the shell file, it's working perfectly20:10
genericv2lets reboot20:10
genericv2YAY. bluebinder didin't fail this time. and it's working. we fixed bluetooth20:11
genericv2now, we gotta fix radio20:13
malremember to add to config repo20:13
genericv2added now20:15
genericv2next issue is radio. ofono is starting without problems but /vendor/bin/hw/rild is not starting on boot, so ofono basically does nothing.20:17
genericv2system parses the rild.rc file tho, i'll check that20:18
genericv2mal: https://paste.opensuse.org/pastes/ba0c81deb4e8 nothing looks wrong to20:21
genericv2nothing related to radio in logcat20:21
genericv2tried a fix, lets see20:23
genericv2nope, will continue tomorrow. no time now20:29
genericv2thank you very much mal, bye20:29
T42_<b100dian> genericv2: since you're using a xiaomi device you might want to try this d2tw commit, maybe you have the same fts_521 driver? https://github.com/sailfishos-on-tucana/droid-config-tucana/commit/1bca470ee34c520a5f97e2500bba7aaefed77f9221:19
T42_<b100dian> attah: what are you using android-tools-hadk, first time I hear about that repo21:21
T42_<b100dian> genericv2: also: time to make you repos public, I don't know what your kernel is like :)21:22
attahb100dian: no, i'm not... but apparently people are21:22
T42_<b100dian> I see, so sfos people would use that and nowadays might fail21:23
attahIt seems to be part of some hadk chroot environment21:24
attahThaodan is poking at the repo as we speak21:25
T42_<b100dian> oh, so people who build under ubu-chroot would use that to flash.. again, first time I hear this :D21:26
attahWell... i am just guessing that it has some use since it is kept around21:26
attahI once built half an image of some officially supported device - that's all the hadk-ing i have ever done21:27
T42_<b100dian> But I guess I am just ingorant, better to have Thaodan take care of it, he surely knows better21:27
attahFor completeness/easy access: https://github.com/attah/my_fastboot21:28
akatsukiHm, when I trying to build droid-hal-version-klte.spec I have package conflicts, but how I can solve them or make "force" package install? Logs: https://bsd.ac/lgp943j . Thanks for advance.23:22
T42_<elros34> check hadk-hot, it should have some tips for both binder and bluez configs23:28

Generated by irclog2html.py 2.17.1 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!