| *** n2klb_ is now known as n2klb | 01:50 | |
| *** xmn_ is now known as xmn | 01:59 | |
| T42 | <adampigg> Mal: maybe I'll move user/group creation to a post install of the kernel package | 07:53 |
|---|---|---|
| Mister_Magister | mal: 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 glue | 07:55 |
| Mister_Magister | if i get display, audio, and wifi that'll be sweet | 07:56 |
| Mister_Magister | if i get mobile data that'll be extra sweet | 07:56 |
| Mister_Magister | could i just package op6 kernel and learn to do mainline sfos that way? mmmmmmmmmmmm yeah but like, that's boring xd | 07: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_Magister | i'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 members | 08:05 |
| Mister_Magister | got 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 that | 08:06 |
| Mister_Magister | and 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 xd | 08:07 |
| Mister_Magister | i 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 die | 08: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 today | 08:14 |
| Mister_Magister | i'm not saying no my longest-supported-sfos-port-ever is well… still supported | 08:16 |
| Mister_Magister | but it doesn't mean 3.4 will work indefinitely, and 6.16 has MUCH better chance at working than 3.4 | 08:16 |
| Mister_Magister | + is more secure | 08:16 |
| Mister_Magister | + i can run nemo | 08:17 |
| Mister_Magister | + its way more cooler to have sfos withouht android | 08: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 anymore | 11:58 |
| T42 | <Herrie1982> No just force cgroupv1 | 12:00 |
| T42 | <Herrie1982> That is the key | 12:00 |
| T42 | <Herrie1982> And some bits and pieces on kernel side | 12:00 |
| T42 | <Mister_Magister> syscalls i assume | 12: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 needed | 12:06 |
| sharks[m] | Herrie1982: what device are you talking about here? A halium GSI based SFOS port? | 12:08 |
| Mister_Magister | sharks[m]: ofc you're interested | 12:09 |
| sharks[m] | You know why | 12: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_Magister | sharks[m]: thats why i said ofc xd | 12:11 |
| Mister_Magister | sharks[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_Magister | brooo im telling ya you don't need halium or GSI | 12: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 now | 12:14 |
| sharks[m] | Battery life improvement is huge though | 12:14 |
| Mister_Magister | sharks[m]: solution proooooooooobably belongs in connman suspend plugin, but i'll look into it today | 12: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 that | 12:17 |
| T42 | <Herrie1982> Mal: https://gist.github.com/Herrie82/95d4aa444c6b42974e244b7475f15fdd | 12:17 |
| T42 | <Herrie1982> That has everything we do and what was needed for these ancient 3.4 incl links to the kernel patches etc | 12:18 |
| T42 | <Mister_Magister> knew it was syscalls | 12:22 |
| mal | I need to think when to drop support for very old kernels, not sure if we can keep old systemd forever | 12:25 |
| mal | of course if someone want it would be possible to force custom older systemd on such old devices | 12:26 |
| T42 | <Herrie1982> 257.8 is not ancient at least | 12:31 |
| T42 | <Herrie1982> Not latest but also not that old | 12:31 |
| Mister_Magister | mal: we gotta support g2 for as long as possible | 12:31 |
| Mister_Magister | it's political statement not a port at this point xd | 12:31 |
| mal | @Herrie1982 my current plan is to first go to 250.14 which still works well on old devices and doesn't need hacks | 12: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 always | 12:42 |
| T42 | <Herrie1982> Mal as you could see the hacks we needed to systemd itself were minimal | 12:49 |
| T42 | <Herrie1982> And this is with 3.4 on Nexus 4/5 and HP TouchPad as oldest ones we have | 12: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 most | 12:52 |
| mal | yeah, systemds seems ok, I do consider adding env var support for the cgroup mode selection | 13:02 |
| mal | @Herrie1982 do you know is android kernels always have CLOCK_BOOTTIME? systemd 251 removed support for kernels which don't have that | 13: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 them | 13:32 |
| Mister_Magister | mal: i can check across my devices | 13:38 |
| mal | fp2 kernel has commit from 2013 adding boottime support, authors from google | 13:46 |
| mal | so maybe I don't have to care about that part then | 13:46 |
| Mister_Magister | if anything it should be easy to backport | 13:48 |
| Mister_Magister | mal: with mainline kernel there's no DHD? | 17:18 |
| Mister_Magister | i mean… it kinda makes sense… | 17:19 |
| Mister_Magister | its just kernel-adaptation | 17:21 |
| Mister_Magister | so there's no build_packages.sh… that's scary | 17:23 |
| Mister_Magister | mal: holdup, mer-kernel-check doesn't have to pass fully because some errors are there due to droid-hal no? | 17:43 |
| mal | yeah, might be | 17:48 |
| mal | what kind of errors do you get? | 17:48 |
| Mister_Magister | https://paste.opensuse.org/pastes/bf14bd1a90ce enjoy | 17:49 |
| Mister_Magister | I've fixed all the errors and most of warnings | 17:49 |
| Mister_Magister | can't hurt | 17:49 |
| Mister_Magister | well… maybe it can | 17:50 |
| Mister_Magister | I'm building 6.16 kernel btw | 17:50 |
| Mister_Magister | from 3.4 to 6.16, 12 years jump | 17:51 |
| Mister_Magister | honesetly using LLM saves everyones time because i'm not bothering pmos guys about basic stuff | 17:58 |
| Mister_Magister | sorry nura guys | 17:58 |
| Mister_Magister | my 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 there | 18:00 |
| T42 | <Herrie1982> Should be doable | 19: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 etc | 19: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 available | 19:40 |
| T42 | <Herrie1982> Only under QCom NDA which I don't have | 19:40 |
| Mister_Magister | naah | 19:40 |
| T42 | <Herrie1982> Anyway tis SoC has better mainline support to start with so should be fairly easy :) | 19:41 |
| Mister_Magister | pmos guys said its shit soc to mainline | 19:42 |
| T42 | <Herrie1982> Apq8060 is worse believe me | 19:42 |
| mal | Mister_Magister: which platform is that? | 19:58 |
| Mister_Magister | moto x2 | 19:59 |
| mal | I mean which qcom platform | 19:59 |
| Mister_Magister | same soc as fp2 | 19:59 |
| mal | so msm8974 | 19:59 |
| Mister_Magister | yes | 19:59 |
| Mister_Magister | i'll be stealing mostly from fp2 | 19:59 |
| Mister_Magister | but i have chance for having audio working | 19:59 |
| Mister_Magister | and fp2 is out of luck | 19:59 |
| Mister_Magister | so it might be actually usable | 19:59 |
| Mister_Magister | currently buliding kernel https://github.com/VerdandiTeam/kernel-adaptation-victara | 20:00 |
| Mister_Magister | mb2 makes it so slow, it uses like 20% of my cpu | 20:01 |
| mal | why is fp2 out of luck? | 20:09 |
| Mister_Magister | audio doesn't work on there no? | 20:09 |
| mal | yeah, not enough time to fix it | 20:09 |
| Mister_Magister | claude said its because of proprietary audio device/driver whatever while x2 has already opensource driver | 20:09 |
| Mister_Magister | thats why i'll have much easier time | 20:09 |
| Mister_Magister | mal: remember the iw dev wlan0 set power_save on? I added it as ExecStartPost on init-done and seems to be working | 20:12 |
| Mister_Magister | sharks[m]: ^ | 20:12 |
| Mister_Magister | https://paste.opensuse.org/pastes/a2220d85f9c0 | 20:15 |
| mal | ok | 20:16 |
| mal | so it has to be done that late, quite strange | 20:16 |
| Mister_Magister | i mean it could probably have been done earlier but i don't know of any good spot to put it | 20:16 |
| Mister_Magister | this is simple and works, and we don't NEED to do it earlier | 20:16 |
| Mister_Magister | it's not like there's any benefit to doing it earlier | 20:17 |
| sharks[m] | @Mister_Magister looks promising, I'll confirm that works for me too later today | 20:18 |
| Mister_Magister | sharks[m]: its basically same as after=init-done just like, less lines | 20:19 |
| Mister_Magister | mal: how's mainline sfos ramdisk built? | 20:24 |
| Mister_Magister | it's really not clear to me how pinephone builds actual flashable kernel image | 20:27 |
| mal | I just extracted the ramdisk from a normal kernel and reassembled the boot image | 20:28 |
| Mister_Magister | but that's not automated | 20:29 |
| Mister_Magister | i feel like i'll have to cook up rpm that does that | 20:29 |
| Mister_Magister | kay it goes into ramdisk and makes storage device named "bootmode=debug" for some reason xd hosts rndis but can't telnet | 20:39 |
| Mister_Magister | it then bootloops but thats fine | 20:39 |
| Mister_Magister | so it didn't get worse | 20:39 |
| Mister_Magister | mal: AAAAAAAAA https://paste.opensuse.org/pastes/7fc1ae6d4a30 | 20:47 |
| sharks[m] | Mister_Magister: looks like X2 will live forever after all | 20:49 |
| Mister_Magister | ofc it will, it's the best device ever made | 20:49 |
| Mister_Magister | it should win nobel price for design | 20:49 |
| Mister_Magister | prize | 20:49 |
| Mister_Magister | okay, uhhh, how do i build rootfs | 20:50 |
| Mister_Magister | uhh i need to run mic but i need to also build dcd and dhv | 20:59 |
| Mister_Magister | mal: 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 things | 21:17 |
| mal | bms is one of the missing things in msm8974 | 21:19 |
| Mister_Magister | but You can read battery voltage, that's something | 21:20 |
| Mister_Magister | i'm sure i can get bored enough and port downstream driver | 21:20 |
| Mister_Magister | claude, make me a driver | 21:20 |
| Mister_Magister | oh oh mal i guess i have to %define have_ffmemless 1 now right? | 21:21 |
| Mister_Magister | mainline uses ffmemless only right? | 21:22 |
| mal | trying to remember if there was some wip bms somewhere | 21:23 |
| Mister_Magister | dont' worry about that i don't even have screen working | 21:23 |
| Mister_Magister | i just like to talk a lot | 21:23 |
| Mister_Magister | i guess i need to remove droid-hal packages from droid-configs | 21:24 |
| mal | https://github.com/z3ntu/linux/commits/qcom-msm8974-6.1.y-bms/ :) a bit old one and wip | 21:24 |
| Mister_Magister | thank you! | 21:24 |
| T42 | <Mister_Magister> but the ffmemless is correct right? | 21:25 |
| mal | yes, probably if there is vibra driver available | 21:25 |
| Mister_Magister | it is i even enabled it, will test it before i even boot rootfs | 21:25 |
| Mister_Magister | fp2 also has haptics | 21:26 |
| mal | https://github.com/z3ntu/linux-mainline-files/blob/main/fp2-hw-support.md | 21:26 |
| Mister_Magister | i'm adjusting my pattern against droid-config-pinephone | 21:26 |
| Mister_Magister | oh i didn't even think to test power button xd | 21:27 |
| Mister_Magister | storage does work | 21:27 |
| Mister_Magister | i enabled led and vibrator and will see if they work | 21:28 |
| Mister_Magister | but the fact that modem is working is amazing (on fp2) | 21:28 |
| Mister_Magister | I'm so excited! | 21:30 |
| Mister_Magister | new claude corrected old claude and apparently there's no driver for audio xd | 21:41 |
| Mister_Magister | sosad | 21:41 |
| mal | it should be doable but quite much work | 21:43 |
| Mister_Magister | I MUST have audio for me memes | 21:45 |
| Mister_Magister | and i'm very patient guy, i've been doing mainline off and on again for some years now | 21:45 |
Generated by irclog2html.py 2.17.1 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!