Wednesday, 2024-11-20

ecrnok, so I have to try something else01:14
ecrnit is android 12 base, and for some reason pulseaudio crashes with the module-droid-card and the like01:15
ecrnthere is an alsa device detected with thousands of controls and no sample format supported01:16
ecrnso I guess direct support by alsa plugin is out of question01:16
ecrnanother serious thing is kernel panic on bluetooth socket creation01:50
ecrnwhich I patched out just after starting the porting because it was impossible to proceed01:50
ecrnbut kernel panic on socket() seems indicative of the quality of the driver01:51
ecrnor the kernel sources in general01:51
ecrnalso the kernel is definitely not the one they used in the device despite it is labelled as such on the opensource.samsung.com01:52
ecrnalso what kind of silliness is doing chmod 0777 on the kernel source dir04:00
rinigus@b100dian: no luck on my side either. I have compilation errors with Sony copyleft kernel, but that would need some more investigation. Used configs that were either started in the corresponding readme or pulled from kernel image itself05:19
rinigusAlso05:19
rinigusAlso tried kernelsu gki kernel, but that bootlooped. But patching boot image with kernelsu via their app worked.05:20
rinigusWhen extracting kernel and ramdisk from stock, I get way smaller total size than not image itself. Reassembling it back also leads to image that's way smaller than original. Haven't tried to boot it yet, will try tonight05:23
rinigus@b100dian: note that with aosp13 images, we have different os-level/patch level used to make them during aosp13 builds by mkbootimg. there could be some roll back protection kicking in. although then it should be on some level that doesn't prevent booting into aosp13.06:20
rinigusmaybe small size of stock kernel+ramdisk is ok. when getting info regarding the image using avbtool, it reports similar size06:33
rinigus@b100dian: I managed to boot GKI kernel (kernelsu to be more specific). in my case, I repacked it as described at the end of https://github.com/sailfishos-sony-nagara/main/wiki/Extracting-data-from-stock-ROM to follow stock as close as possible17:30
rinigusinteresting, even fastbootD works with it17:32
rinigusso, now we just have to get the kernel built that we could use17:33
T42<b100dian> rinigus: nice! - is this a generic kernel? And is it supporting all the hardware after booting?17:46
rinigusdon't know whether it supports all features. but camera, wifi, bt seem to work17:50
rinigusdownloading gki sources right now and want to see how to change its config. but maybe sfos hybris changes are too large for vendor modules to be happy about it17:51
T42<b100dian> very cool - audio included, right?18:04
T42<b100dian> Not sure about hybris patches vs modules, what do you think would be the problem? Ah, I see, you re-used the modules from the system. But we can ship our own modules in rootfs18:04
T42<b100dian> rinigus: looks like you're on a way to generic sfos image 😉18:05
rinigus@b100dian: no, its mainly experimenting and getting ready for stock/lineage port :)18:06
rinigusre audio and others - will test a bit later. will try to spin up gki build and will be back after a break18:07
rinigus@b100dian: I am sure its not gonna work in terms of generic builds. otherwise it would have been done already18:08
rinigus@b100dian: audio, camera, gps, bt, wifi works. gsm didn't test20:06
rinigusthat's with gki kernel20:06
rinigusmodules are reused from vendor, but that seems to be the point of gki to offload hardware to vendor partitions20:07
rinigusfp works as well20:12
T42<b100dian> ah, makes sense, thanks for reminding me. But this is great nonetheless! That you can boot with a such packaged kernel20:14
T42<b100dian> So there's the fear that adding kernel configs might 1. change the vermagic (I now have 5.10.168-gki-g926524f66307-dirty) and 2. worse, change the ABI for modules20:15
malrinigus: indeed interesting to know if existing modules in vendor_boot would work with a kernel with hybris patches, I think nobody has tried that before20:22
mal*hybris defconfig changes20:22
T42<b100dian> According to this KMI (Kernel Module Interface) should be stable https://source.android.com/docs/core/architecture/kernel/generic-kernel-image#fragmentation-fix-gki20:23
rinigus@b100dian: vermagick? I am currently booting with vbmeta --disable... options20:24
rinigusre ABI - I think that's a main concern. as mal pointed out, if kernel config would change it so much that vendor_xxx cannot be used20:25
T42<b100dian> No, I mean the version magic string in modules - if you run modino on one e.g,. modinfo /vendor/lib/modules/ipam.ko20:25
T42<b100dian> A mismatch in that magic string would prevent them to load without 'force'20:26
malsome devices like C2 require very early loading of modules to get anything working so it really follows the way of having all hw features in vendor_boot20:26
riniguspermission denied :( . would have to flash gsi-lineage to test that.20:27
malcompared to sony which doesn't have any modules20:27
malwell at least not in vendor_boot20:27
malor was it so that sonys don't have modules at all by default20:27
rinigusmal: I still have vendor_boot same as in stock.20:28
malthat is different question, how different is vendor kernel vs aosp kernel20:28
rinigusand seems like gki kernel builds cleanly for a change :) . when using simplified build instructions from here https://kernelsu.org/guide/how-to-build.html20:29
rinigusmal: don't know how different it is from aosp. but we couldn't boot stock with aosp boot images (5.10 and 5.15).20:31
rinigusmaybe some avb data was different or something else. hard to say20:31
T42<b100dian> Yeah, I have not tried very hard, just using an existing voot/vendor boot/vbmeta I had from previous weeks20:34
riniguswhile I could build gki kernel, something was off in the image with it and it rebooted. so, before hybris config, would have to fix that. well, one step in a time and will continue tomorrow20:43
rinigusboot looped basically.20:43
T42<b100dian> even with that manual packaging step?20:44
rinigus@b100dian: yes, with that manual packing. I think I used ramdisk from older gki kernel, they didn't match. Hopefully that's a reason. Afk  now and could check it tomorrow.21:04
T42<b100dian> got it, thanks.21:05
rinigusKernel was also newer than the one used by kernelsu. As that worked, will have to look and check out the differences. Probably some silly mistake on my side21:10

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