SiFuh changed the topic of #crux-social to: Offtopic Talks | Project https://crux.nu/ | Logs: https://libera.irclog.whitequark.org/crux-social/
<remiliascarlet> SiFuh: I call it a "router", but it's really just a relayd server.
serpente has quit [Remote host closed the connection]
lavaball has joined #crux-social
lavaball has quit [Remote host closed the connection]
<SiFuh> This one also didn't cover the dowels with the dragonfly emblem. Hmmmm
zorz has joined #crux-social
<farkuhar> SiFuh: stenur has been promoting zstd compression on the mailing list (at least in regards to pkgmk/bsdtar), so I thought I'd try out compressing the kernel modules with zstd. But I never successfully got them to load, even after activating the option "support in-kernel decompression". I notice that your modular kernel config sets module compression to "None", which is the setting I restored after the zstd experiment failed.
<SiFuh> farkuhar: I always use ZSTD compression in my kernels on my systems. I set it to default because if you set it to ZSTD CRUX would always complain that you didn't have ZSTD installed. But I think now ZSTD is CRUX core now
<farkuhar> The kernel decompresses itself just fine using the zstd algorithm, but it fails to load any *.zstd files under /lib/modules, so only the hardware supported by compiled-in drivers is available on boot. The error message is ENOENT, as if modprobe couldn't find a file of the intended name.
<SiFuh> You will need an initramfs with it included
<farkuhar> But wouldn't the option "support in-kernel decompression" make an initramfs unnecessary? It's not decompressing in userspace, if I understand the documentation correctly, so there's no need for zstd to be in $PATH.
<SiFuh> Not sure if builds it into the kernel with the ability to run the command within itself
<SiFuh> Okay, my repo server has this https://dpaste.com/36UTW5JUY.txt
<SiFuh> Also that machine has no initramfs
<farkuhar> If your repo server has module compression mode="None" (i.e., # CONFIG_MODULE_COMPRESS_ZSTD is not set), then of course it wouldn't need an initramfs. I'm wondering whether you can get away with no initramfs, using the "in-kernel decompression" feature to load the modules, or whether it requires a rebuild of kmod too.
<SiFuh> farkuhar: I am compressing the kernel, not the modules.
<farkuhar> SiFuh: I don't have any problem with the kernel decompressing itself, but if I wanted to save disk space under /lib/modules, it would be nice to know what else is needed to get zstd compression working there too. According to the kmod ./configure script, you need to pass the option --with-zstd, and our kmod Pkgfile doesn't do that.
<farkuhar> So if our kmod binary does not recognize *.zstd as a valid module filename, that would explain the ENOENT failure in dmesg. The kernel itself would probably be able to perform the decompression (after toggling the appropriate option in make menuconfig), but it never sees the file because of kmod's strict filename globbing.
<SiFuh> Alright. Building the kernel. Will be done in 5 days or so
<SiFuh> Hahaha and I have --with-zstd in my kmod so that is all good
<farkuhar> It looks like our kmod port doesn't build in support for _any_ compression, even though xz zlib and zstd are all in core. Why wouldn't we enable those features by default for everybody?
<farkuhar> Hahaha you have --with-zstd in your kmod, but not in the package you built for the CRUX-MUSL iso? Why should others have to reconfigure and rebuild a core port, when you could just package it with all the compression modes enabled?
<SiFuh> Because I use it
<SiFuh> And I am not going to do a linux-pam maneuver
<SiFuh> Oh wait, you want me to try on the MUSL machine. Okay. That kmod shouldn't have with zstd
<farkuhar> Is there a known issue with enabling zstd in the kmod package on CRUX-MUSL? It wouldn't be a "linux-pam maneuver" to tweak the Pkgfile on a forked distro; you're already assuming responsibility for all the core ports, so why not configure them more sensibly than the official CRUX does?
<zorz> farkuhar: i think at the end official will be the crux-musl and not the CRUX :-)
lavaball has joined #crux-social
<SiFuh> farkuhar: I did not take responsibility. I just built it. It's up to everyone else now to do as they will.
<farkuhar> SiFuh: I stupidly rebuilt kmod and updated it without backing up the original package. Now I'm experiencing the segfault that emmett1 already fixed, and I don't remember where to find his musl patch.
<SiFuh> farkuhar: I just looked at the musl port of kmod and it has with-xz and with-zlib
<farkuhar> But not with-zstd? So I guess my experiment would have worked, if I had chosen a different compression mode for the modules.
<SiFuh> Hmm this one doesn't have xz or zlib
<SiFuh> farkuhar: I remember what I did. I took only the patches for the ports and kept pretty much everything as identical as possible that CRUX uses
<SiFuh> farkuhar: 75M /lib/modules/6.6.21
emmett1 has joined #crux-social
<SiFuh> Zstandard is a lossless data compression algorithm developed by Yann Collet at Facebook. Zstd is the corresponding reference implementation in C, released as open-source software on 31 August 2016.
<farkuhar> Gitlab's JS-heavy frontend has the drawback of not being very navigable in lynx. On the plus side, it does allow the nifty feature of downloading only a subdirectory of someone's repo (in contrast to standard command-line git, which doesn't support subdirectory checkout, as ukky reminded us a few days ago).
<SiFuh> I moved to gitlab because github was too slow. I'd upload new ports or modify ports and sometimes several hours later before it would let me pull it.
<farkuhar> ironically, it was lynx that managed to fetch the url https://gitlab.com/SiFuh/Documentation/-/archive/master/Documentation-master.tar.bz2?path=musl , while my naive invocation of curl hanged indefinitely, as if waiting for a server response that never came.
<SiFuh> And I hate Bill Gates
<SiFuh> farkuhar: How is that?
<SiFuh> added xz, zlib, zstd and openssl support
<SiFuh> farkuhar: Also I think it was around 280mb and with zstd it is now 75mb
<farkuhar> SiFuh: thanks for updating the kmod Pkgfile. Now we can all enjoy the smaller footprint of /lib/modules, without having to rebuild a core port ourselves.
<SiFuh> But you will have to ;-) Because I never updated the ISO
<SiFuh> I can't find my beer... Hmm. Must have finished it
<SiFuh> 5.54 saying the same shit over and over and over again
ppetrov^ has joined #crux-social
<ppetrov^> hey, the native speakers...
<ppetrov^> question about English
<ppetrov^> can I say that a niche is void. As in "empty".
<ppetrov^> or vacant?
<SiFuh> It's French to begin with, but I wouldn't use vacant. I'd use empty if it is suppose to have something in it.
<SiFuh> Or could have something in it.
<ppetrov^> ok, thanks SiFuh
<ppetrov^> trying to sound sophisticated...
<SiFuh> If you were to use void, then you need some more words explaining it. Like the lack of the "Samurai Sword makes the niche appear void."
<SiFuh> the "S/"The S*
<SiFuh> Ahh for fuck sake....
<SiFuh> "The lack of the Samurai Sword makes the niche appear void."
<ppetrov^> it's more like: "we believe that our program occupies an analysis niche that has been surprisingly void."
<SiFuh> Hmmm you invented a new sentence?
<ppetrov^> hehhheh
<ppetrov^> doesn't make much sense, does it
<SiFuh> It kind of does
<ppetrov^> that happens when I think I sound fancy
<SiFuh> I mean "analysis niche" has been used before
<ppetrov^> aah, bioinformatics analyses
<ppetrov^> analysis niche <-- maybe that's nonsence
<ppetrov^> oh well, I may put "niche" in quotation marks and voilá
<SiFuh> We believe that our programme occupies an analytical niche. Which has been surprisingly void.
<SiFuh> program if you use US English
<ppetrov^> we are submitting to a UK journal, so...
<ppetrov^> thanks a lot man
<SiFuh> It isn't a computer program right?
<ppetrov^> yes
<ppetrov^> it is
<SiFuh> Hmm might be best to switch to Program then
<ppetrov^> ok
<SiFuh> Let me check
<ppetrov^> i use "application" because saying that R is programming is a bit bold
<ppetrov^> or at least compared to C or C++ :P
<SiFuh> Says programme in UK English is a verb. So use program instead for the noun
<SiFuh> "application" can mean 'apply'
<ppetrov^> sigh...
<SiFuh> 'Application of my progamme' vs 'Application of my computer program'
<ppetrov^> "Computer application"
<ppetrov^> or as the youngsters like to say "apps"
<SiFuh> Alright, you'll be fine
<SiFuh> ppetrov^: By the way, you may have missed out on the creation of CRUX-MUSL.
<ppetrov^> cool, man
<ppetrov^> no PAM, right?
<ppetrov^> :D
<SiFuh> Fuck no...
<SiFuh> It's only core and a few opt but it is basically the foundations for anyone who wishes to take it and run.
ppetrov^ has left #crux-social [Leaving]
emmett1 has quit [Quit: emmett1]
<farkuhar> SiFuh: 20M /lib/modules/6.6.30 (Zstd compression) versus 66M /lib/modules/6.6.30.bak (no compression).
<SiFuh> Not bad
<SiFuh> So Facebooks compression is what you plan on using now
<SiFuh> That was suppose to be a question. Hahaha
<farkuhar> I now have a kmod that handles both compressed and uncompressed kernel modules, but alas the internal soundcard is not fully initialized. At least on Linux we have the alsa-info script, which gives useful troubleshooting output: http://sprunge.us/27UQD3
<SiFuh> farkuhar: Compressive!
<farkuhar> The 1.515412 dmesg is suggestive ("0000:00:1f.3: iDisp hw present but no driver", followed immediately by the codec probe error). I've been reconfiguring and recompiling the kernel for several days already, and I thought by now I would have stumbled upon the right driver. Surely the hardware is not too new to be unsupported by the 6.6.30 kernel?
<SiFuh> Scroll to the very bottom farkuhar
<ukky> farkuhar: I might be wrong, but it seems like your HW needs this firmware: /lib/firmware/intel/sof/sof-jsl.ri
<ukky> farkuhar: Check these structures in sound/soc/sof/intel/pci-icl.c : sof_pci_ids and jsl_desc. Your HW is PCI_DEVICE_DATA(INTEL, HDA_JSL_N, &jsl_desc)
<farkuhar> ukky: thanks. I think I installed the sof-bin firmware in the correct path, but I'll check again.
<farkuhar> ukky: I downloaded a release of sof-bin that doesn't populate all the directories listed in pci-icl.c, only the directories satisfying the SOF_IPC bitmask: http://dpaste.org/SAKMh Maybe that firmware tarball is meant to be used with a different kernel, or I have to reconfigure the 6.6.30 kernel so that SOF_IPC4 isn't matched.
<ukky> farkuhar: Could you upload full boot log and `lspci -nnk`?
zorz has quit [Quit: leaving]
<farkuhar> ukky: https://dpaste.org/og9Gc
lavaball has quit [Remote host closed the connection]
DesRoin has quit [Ping timeout: 268 seconds]
DesRoin has joined #crux-social
<ukky> farkuhar: Check function sof_pci_probe() in sound/soc/sof/sof-pci-dev.c, it decides which directory and file to load firmware from. Maybe you can play with <module>.{fw_path,tplg_path,fw_filename,tplg_filename}
<ukky> farkuhar: Not exactly your situation, but might give you some ideas: https://bugzilla.redhat.com/show_bug.cgi?id=1772498