Not created a kernel in ages myself, and for sure not one in need of xz or zstd compression, but does the above mean this version Porteus Kernel Builder (Post by Blaze #80931) should be updated to include the 0009-add-zstd-compressed-modules.patch ?
Porteus Kernel Builder
- Rava
- Contributor
- Posts: 5424
- Joined: 11 Jan 2011, 02:46
- Distribution: XFCE 5.01 x86_64 + 4.0 i586
- Location: Forests of Germany
Porteus Kernel Builder
Cheers!
Yours Rava
Yours Rava
- Blaze
- DEV Team
- Posts: 3994
- Joined: 28 Dec 2010, 11:31
- Distribution: ⟰ Porteus current ☯ all DEs ☯
- Location: ☭ Russian Federation, Lipetsk region, Dankov
- Contact:
Porteus Kernel Builder
No, it does not need. Its experimental patch for very faster booting Porteus.
Linux 6.6.11-porteus #1 SMP PREEMPT_DYNAMIC Sun Jan 14 12:07:37 MSK 2024 x86_64 Intel(R) Xeon(R) CPU E3-1270 v6 @ 3.80GHz GenuineIntel GNU/Linux
MS-7A12 » [AMD/ATI] Navi 23 [Radeon RX 6600] [1002:73ff] (rev c7) » Vengeance LPX 16GB DDR4 K2 3200MHz C16
MS-7A12 » [AMD/ATI] Navi 23 [Radeon RX 6600] [1002:73ff] (rev c7) » Vengeance LPX 16GB DDR4 K2 3200MHz C16
-
- Full of knowledge
- Posts: 428
- Joined: 02 Jan 2011, 18:41
- Distribution: Porteus v5.01.....PorteuX v1.4
- Location: In the bush now
Porteus Kernel Builder
When compiling the kernel to include zstd module compression, the system you're using must have the patched kmod in place and working. The reason for this is that when is executed, depmod is run at the end on the newly installed modules. If you're using the standard kmod version in Porteus, then depmod doesn't recognize the .zst modules.
The result of this is that the files in /lib/modules/5.10.4-porteus are not updated and modules.dep is in fact empty. So, when you boot with your shiny new modules, modprobe doesn't recognize them and can't load them. This is one of the reasons my kernel isn't acting nice, I've yet to find the others........but on the bright side, it only took an entire day to figure this out.
EDIT: This still doesn't fix the depmod problem, there are a couple of other files that still aren't updated, I've yet to figure out why they're not.
Code: Select all
make modules && make modules_ install
The result of this is that the files in /lib/modules/5.10.4-porteus are not updated and modules.dep is in fact empty. So, when you boot with your shiny new modules, modprobe doesn't recognize them and can't load them. This is one of the reasons my kernel isn't acting nice, I've yet to find the others........but on the bright side, it only took an entire day to figure this out.
EDIT: This still doesn't fix the depmod problem, there are a couple of other files that still aren't updated, I've yet to figure out why they're not.
- babam
- Warlord
- Posts: 528
- Joined: 16 Nov 2016, 10:30
- Distribution: Porteus 5.0rc3 Xfce K6.1.1
- Location: Rainy city
Porteus Kernel Builder
You must use kmod with zstd support, try to compile kmod with zstd support.
kmod zstd support
Good luck.
Sorry, my English is bad.
-
- Full of knowledge
- Posts: 428
- Joined: 02 Jan 2011, 18:41
- Distribution: Porteus v5.01.....PorteuX v1.4
- Location: In the bush now
Porteus Kernel Builder
babam,babam wrote: ↑09 Jan 2021, 12:49You must use kmod with zstd support, try to compile kmod with zstd support.
kmod zstd support
Good luck.
Yes, it has to be a patched kmod, and I'm using kmod-28 which was released a couple of days ago. It does work to modprobe a .zst module. The problem seems to be that kmod and udev are not playing together nicely. The kernel boots well, udev finds all the hardware, but modprobe isn't called for some reason.
The system works as far as functioning well. If the modules were loaded when they should be, then it would boot to the desktop like any other. It does with gzipped modules, as well as xz compressed modules, no problems with either one. It's the zstd compressed ones that give trouble, and I have to think it's because kmod isn't doing what it should be doing.
I tried the patch at the link you show with kmod-27, but it wouldn't compile properly whereas kmod-28 built well and is already patched. It wouldn't take any patches I tried to apply, saying that those files were already done. As I said, it handles the compressed modules fine when you call it manually, it just doesn't do it during the boot process when it should. I'll try building kmod-27 again with the Arch patch and see if there's a difference.
- babam
- Warlord
- Posts: 528
- Joined: 16 Nov 2016, 10:30
- Distribution: Porteus 5.0rc3 Xfce K6.1.1
- Location: Rainy city
-
- Full of knowledge
- Posts: 428
- Joined: 02 Jan 2011, 18:41
- Distribution: Porteus v5.01.....PorteuX v1.4
- Location: In the bush now
Porteus Kernel Builder
Thanks babam, but that one isn't finding the modules with modprobe. I recompiled kmod-28 with the same results, it loads the modules manually, but not when booting.
Code: Select all
root@porteus:/home/guest# kmod -V
kmod version 28
+ZSTD +XZ +ZLIB -LIBCRYPTO -EXPERIMENTAL
Code: Select all
Module has invalid ELF header
I use the same .config to compile for zstd as for the others, just changing the compression algorithm, nothing else. It's frustrating in that zstd is the only thing different, yet it won't work properly. I'm posting this from the zstd version and everything seems fine, I can modprobe whatever I need, no errors show.
Code: Select all
ls /lib/modules/5.10.4-porteus/kernel/drivers/hid
hid-lg-g15.ko.zst hid-logitech-hidpp.ko.zst hid-multitouch.ko.zst
hid-logitech-dj.ko.zst hid-logitech.ko.zst i2c-hid/
-
- Full of knowledge
- Posts: 428
- Joined: 02 Jan 2011, 18:41
- Distribution: Porteus v5.01.....PorteuX v1.4
- Location: In the bush now
Porteus Kernel Builder
Finally, it's working.
I rebuilt 001-core.xzm to update the kmod files which I think were being messed with by the Porteus version. The kmod-28 locates the library files in /usr/lib rather than lib64 which is where Porteus has them. It boots to the desktop with no errors and seems to run good, too early to tell. I also went to 5.10.5 for the kernel, I doubt that makes a difference as I used the same .config as for 5.10.4.
Now, on to the next shiny thing.
I rebuilt 001-core.xzm to update the kmod files which I think were being messed with by the Porteus version. The kmod-28 locates the library files in /usr/lib rather than lib64 which is where Porteus has them. It boots to the desktop with no errors and seems to run good, too early to tell. I also went to 5.10.5 for the kernel, I doubt that makes a difference as I used the same .config as for 5.10.4.
Code: Select all
guest@porteus:~$ uname -r
5.10.5-porteus
Code: Select all
guest@porteus:~$ ls /lib/modules/5.10.5-porteus/kernel/drivers/hid
hid-lg-g15.ko.zst hid-logitech-hidpp.ko.zst hid-multitouch.ko.zst
hid-logitech-dj.ko.zst hid-logitech.ko.zst i2c-hid/
- Blaze
- DEV Team
- Posts: 3994
- Joined: 28 Dec 2010, 11:31
- Distribution: ⟰ Porteus current ☯ all DEs ☯
- Location: ☭ Russian Federation, Lipetsk region, Dankov
- Contact:
Porteus Kernel Builder
Code: Select all
Sat Jan 9 20:53:30 UTC 2021
a/kmod-28-x86_64-1.txz: Upgraded.
Built using --with-zstd to support zstd compressed modules. This means that
this package depends on libzstd or it will not function.
Thanks to Robby Workman
Linux 6.6.11-porteus #1 SMP PREEMPT_DYNAMIC Sun Jan 14 12:07:37 MSK 2024 x86_64 Intel(R) Xeon(R) CPU E3-1270 v6 @ 3.80GHz GenuineIntel GNU/Linux
MS-7A12 » [AMD/ATI] Navi 23 [Radeon RX 6600] [1002:73ff] (rev c7) » Vengeance LPX 16GB DDR4 K2 3200MHz C16
MS-7A12 » [AMD/ATI] Navi 23 [Radeon RX 6600] [1002:73ff] (rev c7) » Vengeance LPX 16GB DDR4 K2 3200MHz C16
-
- Shogun
- Posts: 434
- Joined: 02 May 2017, 09:51
- Distribution: v3.2.2-32 and Porteus-Artix-64
- Location: Chennai,India
Porteus Kernel Builder
I don think there will be any noticeable speed boost. As discussed long ago , Porteus boots to Desktop in 12 seconds(AUFS), and 10 seconds with Nekoś overlay and with application modules compressed with zstd.
If you see dmesg, Kernel completes its main job in under 2 seconds further delay of 4-7 seconds is only due to device enumeration and network related
activity.
So kernel,initrd and kernel modules compression with zstd, may not result in any benefits.
3-4 seconds of boot time is consumed by xorg, after init 4.
If you see dmesg, Kernel completes its main job in under 2 seconds further delay of 4-7 seconds is only due to device enumeration and network related
activity.
So kernel,initrd and kernel modules compression with zstd, may not result in any benefits.
3-4 seconds of boot time is consumed by xorg, after init 4.
Linux Kernel-4.4.272 -32 bit; Linux Kernel-5.4.185 - 64 bit
-
- Full of knowledge
- Posts: 428
- Joined: 02 Jan 2011, 18:41
- Distribution: Porteus v5.01.....PorteuX v1.4
- Location: In the bush now
Porteus Kernel Builder
Thanks babam,
I wish I could say it's blazing fast, but it's not much different to anything else. It might take 1 second off the boot time compared to xz, but that's it. We have to look elsewhere for it.
-
- Full of knowledge
- Posts: 428
- Joined: 02 Jan 2011, 18:41
- Distribution: Porteus v5.01.....PorteuX v1.4
- Location: In the bush now
Porteus Kernel Builder
fortix,
I'm not using the modified core, I built a module instead. I like to keep the base files original so they don't cause problems when testing stuff.
https://www.mediafire.com/file/gvs1eg8c ... s.xzm/file