Monday, 2026-10-12

*** n2klb_ is now known as n2klb01:50
*** xmn_ is now known as xmn01:59
T42<adampigg> Mal: maybe I'll move user/group creation to a post install of the kernel package07:53
Mister_Magistermal: i've decided to work on my mainline for x2 (same soc as fp2) and i have high hopes since fp2 got basically everything i want. audio doesn't work on fp2 mainline but claude seems to think that there's a chance to get it to work on x2 because x2's audio uses drivers that are opensource it just needs some glue07:55
Mister_Magisterif i get display, audio, and wifi that'll be sweet07:56
Mister_Magisterif i get mobile data that'll be extra sweet07:56
Mister_Magistercould i just package op6 kernel and learn to do mainline sfos that way? mmmmmmmmmmmm yeah but like, that's boring xd07:56
T42<Herrie1982> Mister_Magister: Claude can do magic, but it can take time and you need to be persistent... I got the full apq8060/msm8660 SoC ported including all features to 7.1 kernel.08:05
Mister_Magisteri'm patient, i've been doing the mainline port off and on again for some years now, without claude previously and with just the help of lovely pmos members08:05
Mister_Magistergot it as far as to spit dmesg to screen so thats good, now claude spoofed the charger to say it's connected so pmos ramdisk hosts the drive with logs and stuff so i don't even need that08:06
Mister_Magisterand last time pmos guys told me i'm at the point where i need real OS to test stuff like touch etc so it could be pmos, it can be sfos, i pick sfos xd08:07
Mister_Magisteri want mainline based port on x2 because it was never used for calls anyway and i want it to last forever and by forever i mean until I die08:07
T42<Herrie1982> FWIW I have Android 16.0 based Halium GSI working with ancient 3.4 kernels for LuneOS with systemd 257.8 so even with ancient bits can still do things today08:14
Mister_Magisteri'm not saying no my longest-supported-sfos-port-ever is well… still supported08:16
Mister_Magisterbut it doesn't mean 3.4 will work indefinitely, and 6.16 has MUCH better chance at working than 3.408:16
Mister_Magister+ is more secure08:16
Mister_Magister+ i can run nemo08:17
Mister_Magister+ its way more cooler to have sfos withouht android08:19
T42<Herrie1982> I agree with all of above :)08:26
mal@Herrie1982 did you need to revert some things in systemd? I know there are things in new systemd that don't work in old kernels anymore11:58
T42<Herrie1982> No just force cgroupv112:00
T42<Herrie1982> That is the key12:00
T42<Herrie1982> And some bits and pieces on kernel side12:00
T42<Mister_Magister> syscalls i assume12:01
T42<Herrie1982> Let me provide a quick overview :)12:02
T42<Herrie1982> Just we were on different Halium basis, so converted everything to 16.0 GSI now with some shims etc and treble conversions for non-treble devices. Some a bit hacky but all works in general hardware wise.12:03
T42<Herrie1982> But device specific images reduced to a generic armv7 and aarch64 mostly now. With just kernel and some device specific overlays where needed12:06
sharks[m]Herrie1982: what device are you talking about here? A halium GSI based SFOS port?12:08
Mister_Magistersharks[m]: ofc you're interested12:09
sharks[m]You know why12:10
T42<Herrie1982> Sharks: These were all LuneOS ports but we share a lot of internals with SFOS (except for the Halium approach part).12:11
Mister_Magistersharks[m]: thats why i said ofc xd12:11
Mister_Magistersharks[m]: what ever happened to the issue with setting wifi powersavign?12:12
sharks[m]Herrie1982: thanks, hopefully soon I'm starting a SFOS port likely based on Halium GSI, just trying to get a feel for what I'm up against.12:13
Mister_Magisterbrooo im telling ya you don't need halium or GSI12:13
sharks[m]Mister_Magister: I wrote a hacky systemd service that tried 20 times to set power saving on, it usually succeeds around the 7th attempt. I need a better solution but it works for now12:14
sharks[m]Battery life improvement is huge though12:14
Mister_Magistersharks[m]: solution proooooooooobably belongs in connman suspend plugin, but i'll look into it today12:15
sharks[m]Ok cool, let me know how you go. If you look at the logs from yesterday / the day before you'll see it seems to be some sort of race condition I was chasing, but yeah I didn't get much further than that12:17
T42<Herrie1982> Mal: https://gist.github.com/Herrie82/95d4aa444c6b42974e244b7475f15fdd12:17
T42<Herrie1982> That has everything we do and what was needed for these ancient 3.4 incl links to the kernel patches etc12:18
T42<Mister_Magister> knew it was syscalls12:22
malI need to think when to drop support for very old kernels, not sure if we can keep old systemd forever12:25
malof course if someone want it would be possible to force custom older systemd on such old devices12:26
T42<Herrie1982> 257.8 is not ancient at least12:31
T42<Herrie1982> Not latest but also not that old12:31
Mister_Magistermal: we gotta support g2 for as long as possible12:31
Mister_Magisterit's political statement not a port at this point xd12:31
mal@Herrie1982 my current plan is to first go to 250.14 which still works well on old devices and doesn't need hacks12:34
mal@Herrie1982 I'm thinking which way is the best for the glibc issues, forcing old kernel headers or patching glibc to keep the fallbacks always12:42
T42<Herrie1982> Mal as you could see the hacks we needed to systemd itself were minimal12:49
T42<Herrie1982> And this is with 3.4 on Nexus 4/5 and HP TouchPad as oldest ones we have12:49
T42<Herrie1982> There is little extra patches that anything needs for the newer systemds really the whole ns batch that was required already in 219 or so we carried already for many years, BT stack backports as well for most12:52
malyeah, systemds seems ok, I do consider adding env var support for the cgroup mode selection13:02
mal@Herrie1982 do you know is android kernels always have CLOCK_BOOTTIME? systemd 251 removed support for kernels which don't have that13:14
T42<Herrie1982> @mal to be honest not sure, my experience with about 2 dozen devices says it's there since systemd works on all of them13:32
Mister_Magistermal: i can check across my devices13:38
malfp2 kernel has commit from 2013 adding boottime support, authors from google13:46
malso maybe I don't have to care about that part then13:46
Mister_Magisterif anything it should be easy to backport13:48
Mister_Magistermal: with mainline kernel there's no DHD?17:18
Mister_Magisteri mean… it kinda makes sense…17:19
Mister_Magisterits just  kernel-adaptation17:21
Mister_Magisterso there's no build_packages.sh… that's scary17:23
Mister_Magistermal: holdup, mer-kernel-check doesn't have to pass fully because some errors are there due to droid-hal no?17:43
malyeah, might be17:48
malwhat kind of errors do you get?17:48
Mister_Magisterhttps://paste.opensuse.org/pastes/bf14bd1a90ce enjoy17:49
Mister_MagisterI've fixed all the errors and most of warnings17:49
Mister_Magistercan't hurt17:49
Mister_Magisterwell… maybe it can17:50
Mister_MagisterI'm building 6.16 kernel btw17:50
Mister_Magisterfrom 3.4 to 6.16, 12 years jump17:51
Mister_Magisterhonesetly using LLM saves everyones time because i'm not bothering pmos guys about basic stuff17:58
Mister_Magistersorry nura guys17:58
Mister_Magistermy first goal is to build kernel, have it boot with sfos ramdisk and telnet to it, that'll be nice. Then probably screen and we start party from there18:00
T42<Herrie1982> Should be doable19:38
T42<Herrie1982> Make a proper plan, use cavekit in Claude for example and some other bits to do it structured, let him audit legacy kernel vs mainline identify gaps, make the plan etc19:39
T42<Herrie1982> With apq8060/msm8660 needed to do a lot of legacy dumps of registers while running stuff because there was simply 0 documentation available19:40
T42<Herrie1982> Only under QCom NDA which I don't have19:40
Mister_Magisternaah19:40
T42<Herrie1982> Anyway tis SoC has better mainline support to start with so should be fairly easy :)19:41
Mister_Magisterpmos guys said its shit soc to mainline19:42
T42<Herrie1982> Apq8060 is worse believe me19:42
malMister_Magister: which platform is that?19:58
Mister_Magistermoto x219:59
malI mean which qcom platform19:59
Mister_Magistersame soc as fp219:59
malso msm897419:59
Mister_Magisteryes19:59
Mister_Magisteri'll be stealing mostly from fp219:59
Mister_Magisterbut i have chance for having audio working19:59
Mister_Magisterand fp2 is out of luck19:59
Mister_Magisterso it might be actually usable19:59
Mister_Magistercurrently buliding kernel https://github.com/VerdandiTeam/kernel-adaptation-victara20:00
Mister_Magistermb2 makes it so slow, it uses like 20% of my cpu20:01
malwhy is fp2 out of luck?20:09
Mister_Magisteraudio doesn't work on there no?20:09
malyeah, not enough time to fix it20:09
Mister_Magisterclaude said its because of proprietary audio device/driver whatever while x2 has already opensource driver20:09
Mister_Magisterthats why i'll have much easier time20:09
Mister_Magistermal: remember the iw dev wlan0 set power_save on? I added it as ExecStartPost on init-done and seems to be working20:12
Mister_Magistersharks[m]: ^20:12
Mister_Magisterhttps://paste.opensuse.org/pastes/a2220d85f9c020:15
malok20:16
malso it has to be done that late, quite strange20:16
Mister_Magisteri mean it could probably have been done earlier but i don't know of any good spot to put it20:16
Mister_Magisterthis is simple and works, and we don't NEED to do it earlier20:16
Mister_Magisterit's not like there's any benefit to doing it earlier20:17
sharks[m]@Mister_Magister looks promising, I'll confirm that works for me too later today20:18
Mister_Magistersharks[m]: its basically same as after=init-done just like, less lines20:19
Mister_Magistermal: how's mainline sfos ramdisk built?20:24
Mister_Magisterit's really not clear to me how pinephone builds actual flashable kernel image20:27
malI just extracted the ramdisk from a normal kernel and reassembled the boot image20:28
Mister_Magisterbut that's not automated20:29
Mister_Magisteri feel like i'll have to cook up rpm that does that20:29
Mister_Magisterkay it goes into ramdisk and makes storage device named "bootmode=debug" for some reason xd hosts rndis but can't telnet20:39
Mister_Magisterit then bootloops but thats fine20:39
Mister_Magisterso it didn't get worse20:39
Mister_Magistermal: AAAAAAAAA https://paste.opensuse.org/pastes/7fc1ae6d4a3020:47
sharks[m]Mister_Magister: looks like X2 will live forever after all20:49
Mister_Magisterofc it will, it's the best device ever made20:49
Mister_Magisterit should win nobel price for design20:49
Mister_Magisterprize20:49
Mister_Magisterokay, uhhh, how do i build rootfs20:50
Mister_Magisteruhh i need to run mic but i need to also build dcd and dhv20:59
Mister_Magistermal: claude says battery is charging so usb is working, to which i'm like "can we check battery percentage", to which answer was no, because there's no driver for the BMS xd Mainline things21:17
malbms is one of the missing things in msm897421:19
Mister_Magisterbut You can read battery voltage, that's something21:20
Mister_Magisteri'm sure i can get bored enough and port downstream driver21:20
Mister_Magisterclaude,  make me a driver21:20
Mister_Magisteroh oh mal i guess i have to %define have_ffmemless 1 now right?21:21
Mister_Magistermainline uses ffmemless only right?21:22
maltrying to remember if there was some wip bms somewhere21:23
Mister_Magisterdont' worry about that i don't even have screen working21:23
Mister_Magisteri just like to talk a lot21:23
Mister_Magisteri guess i need to remove droid-hal packages from droid-configs21:24
malhttps://github.com/z3ntu/linux/commits/qcom-msm8974-6.1.y-bms/ :) a bit old one and wip21:24
Mister_Magisterthank you!21:24
T42<Mister_Magister> but the ffmemless is correct right?21:25
malyes, probably if there is vibra driver available21:25
Mister_Magisterit is i even enabled it, will test it before i even boot rootfs21:25
Mister_Magisterfp2 also has haptics21:26
malhttps://github.com/z3ntu/linux-mainline-files/blob/main/fp2-hw-support.md21:26
Mister_Magisteri'm adjusting my pattern against droid-config-pinephone21:26
Mister_Magisteroh i didn't even think to test power button xd21:27
Mister_Magisterstorage does work21:27
Mister_Magisteri enabled led and vibrator and will see if they work21:28
Mister_Magisterbut the fact that modem is working is amazing (on fp2)21:28
Mister_MagisterI'm so excited!21:30
Mister_Magisternew claude corrected old claude and apparently there's no driver for audio xd21:41
Mister_Magistersosad21:41
malit should be doable but quite much work21:43
Mister_MagisterI MUST have audio for me memes21:45
Mister_Magisterand i'm very patient guy, i've been doing mainline off and on again for some years now21:45

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