Porteus Kernel Builder

Here is a place for your projects which are not officially supported by the Porteus Team. For example: your own kernel patched with extra features; desktops not included in the standard ISO like Gnome; base modules that are different than the standard ISO, etc...
keczko.z
White ninja
White ninja
Posts: 5
Joined: 24 May 2021, 14:56
Distribution: Porteus5.01_XFCE

Porteus Kernel Builder

Post#1441 by keczko.z » 22 Nov 2021, 08:21

Hello,
Where can I download the latest APorteus release?
I love these distros. Thanks for your jobs!
I cannot wait for slackware based Porteus, but my favourite Linux.

User avatar
Ed_P
Contributor
Contributor
Posts: 8341
Joined: 06 Feb 2013, 22:12
Distribution: Cinnamon 5.01 ISO
Location: Western NY, USA

Porteus Kernel Builder

Post#1442 by Ed_P » 22 Nov 2021, 14:29

keczko.z wrote:
22 Nov 2021, 08:21
Where can I download the latest APorteus release?
Hello keczko.z, welcome to the forum. :)

I believe the current APorteus releases are posted here:
But I could be wrong. :hmmm:
Ed

beny
Full of knowledge
Full of knowledge
Posts: 2086
Joined: 02 Jan 2011, 11:33
Location: italy

Porteus Kernel Builder

Post#1443 by beny » 22 Nov 2021, 14:56

hi neko, "strange" behavior after you choose the version of kernel and start the build the kernel config do not link to the directory of build, the kernel config start again insted to load the choose one,maybe am i a bit rusty.

User avatar
Blaze
DEV Team
DEV Team
Posts: 3869
Joined: 28 Dec 2010, 11:31
Distribution: ⟰ Porteus current ☯ all DEs ☯
Location: ☭ Russian Federation, Lipetsk region, Dankov
Contact:

Porteus Kernel Builder

Post#1444 by Blaze » 22 Nov 2021, 19:05

neko wrote:
21 Nov 2021, 13:23
Could you please test it again using new the r8188eu.ko.zst?
you are genius - TP-Link TL-WN722N (chip r8188eu) Wireless adapter is work fine for me
Image

Thanks.

AcnapyxoB, I have this diff kernel config log

Code: Select all

https://pastebin.com/Q0f9DtNw
https://pastebin.com/Q0f9DtNw
and I don't found in it activated - CONFIG_CRYPTO_AES_X86_64: AES cipher algorithms (x86_64).
In slackware/slackware64-current/source/k/kernel-configs too https://mirrors.slackware.com/slackware ... l-configs/

How about to update cryptsetup-2.4.2-x86_64-1.txz and test it?
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

neko
DEV Team
DEV Team
Posts: 2109
Joined: 09 Feb 2013, 09:55
Distribution: APorteus-FVWM-ja-x86_64.iso
Location: japan

Porteus Kernel Builder

Post#1445 by neko » 23 Nov 2021, 05:44

@Blaze
Thank you very much for your testing report.
I think that the kernel source "drivers/staging/r8188eu/os_dep/os_intfs.c" will be updated.

@keczko.z
Please refer to @Ed_P's response.

@Ed_P
Thank you for your help.

<"ISO Builder"> and <Examples ISOs built with "ISO Builder"> are updated neary every weekly depending on kernel updating.
These ISOs that have the most recent kernel are uploaded in the 3rd article of "ArchLinux packages manager for Porteus" thread,
whose URL was pointed out by you.

@beny
Image
"Kernel Builder"

"choose the version of kernel and start the build the kernel config"
---->
Did you download kernel source?
Did you expand kernel source?

Would you upload it's error message?


Thanks.

User avatar
AcnapyxoB
Samurai
Samurai
Posts: 191
Joined: 24 Dec 2014, 10:15
Distribution: Porteus 5.01
Location: Planet Earth

Porteus Kernel Builder

Post#1446 by AcnapyxoB » 23 Nov 2021, 06:01

Blaze what do you mean "to update cryptsetup-2.4.2-x86_64-1.txz and test it?"
May be to "txz2xzm" ryptsetup-2.4.2-x86_64-1.txz and load it like module!?
Porteus v5.01 KDE x86_64

keczko.z
White ninja
White ninja
Posts: 5
Joined: 24 May 2021, 14:56
Distribution: Porteus5.01_XFCE

Porteus Kernel Builder

Post#1447 by keczko.z » 24 Nov 2021, 08:15

Thanks Ed_P!
I found it.

User avatar
Ed_P
Contributor
Contributor
Posts: 8341
Joined: 06 Feb 2013, 22:12
Distribution: Cinnamon 5.01 ISO
Location: Western NY, USA

Porteus Kernel Builder

Post#1448 by Ed_P » 24 Nov 2021, 16:18

keczko.z wrote:
24 Nov 2021, 08:15
I found it.
:good: It's quite a scroll to get to it but it's there. :)
Ed

User avatar
Blaze
DEV Team
DEV Team
Posts: 3869
Joined: 28 Dec 2010, 11:31
Distribution: ⟰ Porteus current ☯ all DEs ☯
Location: ☭ Russian Federation, Lipetsk region, Dankov
Contact:

Porteus Kernel Builder

Post#1449 by Blaze » 27 Nov 2021, 06:40

AcnapyxoB, I checked kernel config on

Code: Select all

Device Drivers  --->
  [*] Multiple devices driver support (RAID and LVM)  --->
    <*>   Device mapper support
    <*>     Crypt target support

-*- Cryptographic API  --->
  <*>   AES cipher algorithms (x86_64)
Image Image
as you can see we have 'AES cipher algorithms' without (x86_64)
modinfo doesn't know about aes_x86_64 module, but aes module (alias: crypto-aes) he knows (AES cipher algorithms)

I applyed this fix for initrd.xz

1) open /initrd/init > linuxrc
2) find

Code: Select all

		for x in dm_crypt cryptd cbc sha256_generic aes_generic aes_x86_64; do modprobe $x 2>/dev/null; done
3) replace with

Code: Select all

		for x in dm_crypt cryptd cbc sha256_generic aes_generic aes; do modprobe $x 2>/dev/null; done
find

Code: Select all

		/opt/000-kernel/sbin/cryptsetup luksOpen /dev/loop2 crypt
replace with

Code: Select all

		/sbin/cryptsetup luksOpen /dev/loop2 crypt
  • Make a backup of /boot/syslinux/initrd.xz
  • Copy the new initrd.xz, reboot and be happy
A new :url: initrd.xz UPDATED

Another hack try kernel 5.15.3 from this post Porteus Kernel Builder (Пост Blaze #85754)
but use a new 000-kernel.xzm :url: https://www.mediafire.com/file/njcoxp7m ... l.xzm/file
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

User avatar
AcnapyxoB
Samurai
Samurai
Posts: 191
Joined: 24 Dec 2014, 10:15
Distribution: Porteus 5.01
Location: Planet Earth

Porteus Kernel Builder

Post#1450 by AcnapyxoB » 27 Nov 2021, 08:04

Blaze, I will try later and report.
Porteus v5.01 KDE x86_64

User avatar
babam
Warlord
Warlord
Posts: 526
Joined: 16 Nov 2016, 10:30
Distribution: Porteus 5.0rc3 Xfce K6.1.1
Location: Rainy city

Porteus Kernel Builder

Post#1451 by babam » 27 Nov 2021, 14:33

The problem is simple, modprobe ( busybox ) in initrd is not able to work on compressed modules ( dm-crypt.ko.zst ).
Sorry, my English is bad.

User avatar
ncmprhnsbl
DEV Team
DEV Team
Posts: 3924
Joined: 20 Mar 2012, 03:42
Distribution: v5.0-64bit
Location: australia
Contact:

Porteus Kernel Builder

Post#1452 by ncmprhnsbl » 28 Nov 2021, 05:12

babam wrote:
27 Nov 2021, 14:33
The problem is simple, modprobe ( busybox ) in initrd is not able to work on compressed modules ( dm-crypt.ko.zst ).
good point, which also raises the question: why are these kernel modules compressed?
presumably this became a kernel compilation default at some point, which makes sense on a conventionally installed system (to save space?)
but generally with a porteus module (.xzm) the practice is to extract all archives before compressing the squashfs, which achieves a more efficient compression.
(basically because you can't compress an archive any more than it already is..)
so, i suppose.. would be in config :

Code: Select all

CONFIG_MODULE_COMPRESS_NONE=y
# CONFIG_MODULE_COMPRESS_GZIP is not set
# CONFIG_MODULE_COMPRESS_XZ is not set
# CONFIG_MODULE_COMPRESS_ZSTD is not set
Forum Rules : https://forum.porteus.org/viewtopic.php?f=35&t=44

User avatar
Blaze
DEV Team
DEV Team
Posts: 3869
Joined: 28 Dec 2010, 11:31
Distribution: ⟰ Porteus current ☯ all DEs ☯
Location: ☭ Russian Federation, Lipetsk region, Dankov
Contact:

Porteus Kernel Builder

Post#1453 by Blaze » 28 Nov 2021, 05:57

To summarise from test of the AcnapyxoB

Code: Select all

- kernel 5.15.3, new initrd.xz - no success
- kernel 5.15.3, new updated initrd.xz - no success
- new 000-kernel 5.15.3, new updated initrd.xz - no success
- kernel 5.12.14, new updated initrd.xz - no success
- kernel 5.12.14, old initrd.xz (from rc3) - OK (encrypted .dat save file works)
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

User avatar
ncmprhnsbl
DEV Team
DEV Team
Posts: 3924
Joined: 20 Mar 2012, 03:42
Distribution: v5.0-64bit
Location: australia
Contact:

Porteus Kernel Builder

Post#1454 by ncmprhnsbl » 28 Nov 2021, 06:10

Blaze wrote:
28 Nov 2021, 05:57
To summarise from test of the AcnapyxoB
which, if 5.12.14 has uncompressed kernel modules(i think so) , would tend to confirm Porteus Kernel Builder (Post by babam #85941) & Porteus Kernel Builder (Post by ncmprhnsbl #85946)
Forum Rules : https://forum.porteus.org/viewtopic.php?f=35&t=44

User avatar
Blaze
DEV Team
DEV Team
Posts: 3869
Joined: 28 Dec 2010, 11:31
Distribution: ⟰ Porteus current ☯ all DEs ☯
Location: ☭ Russian Federation, Lipetsk region, Dankov
Contact:

Porteus Kernel Builder

Post#1455 by Blaze » 04 Dec 2021, 06:14

neko, In APorteus I have these errors:

Code: Select all

root /mnt/sdc1/kernelx64/v5.15.6/64/linux-5.15.6 # make
  CALL    scripts/checksyscalls.sh
  CALL    scripts/atomic/check-atomics.sh
  DESCEND objtool
<stdin>:1:10: fatal error: libelf.h: No such file or directory
compilation terminated.
  CC      /mnt/sdc1/kernelx64/v5.15.6/64/linux-5.15.6/tools/objtool/arch/x86/special.o
In file included from /mnt/sdc1/kernelx64/v5.15.6/64/linux-5.15.6/tools/objtool/include/objtool/objtool.h:13,
                 from /mnt/sdc1/kernelx64/v5.15.6/64/linux-5.15.6/tools/objtool/include/objtool/arch.h:11,
                 from /mnt/sdc1/kernelx64/v5.15.6/64/linux-5.15.6/tools/objtool/include/objtool/check.h:11,
                 from /mnt/sdc1/kernelx64/v5.15.6/64/linux-5.15.6/tools/objtool/include/objtool/special.h:10,
                 from arch/x86/special.c:4:
/mnt/sdc1/kernelx64/v5.15.6/64/linux-5.15.6/tools/objtool/include/objtool/elf.h:10:10: fatal error: gelf.h: No such file or directory
   10 | #include <gelf.h>
      |          ^~~~~~~~
compilation terminated.
make[4]: *** [/mnt/sdc1/kernelx64/v5.15.6/64/linux-5.15.6/tools/build/Makefile.build:97: /mnt/sdc1/kernelx64/v5.15.6/64/linux-5.15.6/tools/objtool/arch/x86/special.o] Error 1
make[3]: *** [/mnt/sdc1/kernelx64/v5.15.6/64/linux-5.15.6/tools/build/Makefile.build:139: arch/x86] Error 2
make[2]: *** [Makefile:56: /mnt/sdc1/kernelx64/v5.15.6/64/linux-5.15.6/tools/objtool/objtool-in.o] Error 2
make[1]: *** [Makefile:69: objtool] Error 2
make: *** [Makefile:1371: tools/objtool] Error 2
root /mnt/sdc1/kernelx64/v5.15.6/64/linux-5.15.6 #
[Updated kernel Examples]
==== AUFS Kernel only for Porteus ====
Simple package (vmlinuz, 000-kernel.xzm, 06-crippled_sources-NNN-XXbit.xzm, 64bit.config)

[5.15.6] <-- NEW : "All patches" patching was done.
64bit-ALL-kernel5.15.6.tar (~115 M)
:crazy: :crazy: :crazy: Link removed coz :crazy: :crazy: :crazy:
Image
4559e597ed017d6d0649b030aa549b7d 64bit-ALL-kernel5.15.6.tar

Code: Select all

-# CONFIG_MODULE_COMPRESS_NONE is not set
+CONFIG_MODULE_COMPRESS_NONE=y
 # CONFIG_MODULE_COMPRESS_GZIP is not set
 # CONFIG_MODULE_COMPRESS_XZ is not set
-CONFIG_MODULE_COMPRESS_ZSTD=y
+# CONFIG_MODULE_COMPRESS_ZSTD is not set
Note 1: Compiler that was used.
for kernel 5.15.6: 11.2.0-x86_64
A new :url: x86_64 05-devel.xzm (GCC version 11.2.0)

Thanks to neko for his support.
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

Post Reply