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...
User avatar
cad
Black ninja
Black ninja
Posts: 56
Joined: 06 Nov 2020, 22:40
Distribution: 4.0 i586 LXDE

Porteus Kernel Builder

Post#1051 by cad » 05 Jan 2021, 02:01

@Blaze

I, too, tried patching kernel 5.10.4 with the official, newly-released sfjro aufs5 patches. These patches are faulty as they do not create the required fs/aufs directory with related files in the kernel root. Running 'make config' of course produces the error:

Code: Select all

fs/Kconfig:291: can't open file "fs/aufs/kconfig"
because 'make' does not find the fs/aufs directory and related files which should have been created by the patches.

It is not the Kernel Builder by neko to be at fault here, but the patches from sfjro.

@peebee

It would be nice to have the aufs5 patches for 5.10.4 that you produced, if they are in fact functional. There is no telling how long before the sfjro-released aufs5 patches will be. My fingers are very much itching, can't wait to start tweaking 5.10.4... :bad:

roadie
Full of knowledge
Full of knowledge
Posts: 328
Joined: 02 Jan 2011, 18:41
Distribution: Porteus 5.0-RC1
Location: In a hayfield

Porteus Kernel Builder

Post#1052 by roadie » 05 Jan 2021, 04:01

Blaze wrote:
04 Jan 2021, 19:40
roadie, now I compile kernel 5.10.4 with official aufs patch. I don't see you post, but I tweaked .config with options at my look :magic:

Отправлено спустя 27 минут 28 секунд:
Damn, seems official aufs-5.10 not apply correctly with Kernel Builder by neko
Image
I use my config >>> https://gofile.io/d/qPUeXc or https://pastebin.ubuntu.com/p/DVNZhGvM5p/ (is the same .config)
BTW I found very useful site - Linux kernel configuration navigator and finder >>> https://www.kernelconfig.io/
Blaze,
I just tried to compile 5.10.4 using the patches from the aufs5-standalone.git and manually patched and copied the files to the proper locations. It failed to build with an error in /fs/aufs/xino.

That kernel configuration navigator and finder site is a nice find, thanks.

User avatar
babam
Shogun
Shogun
Posts: 250
Joined: 16 Nov 2016, 10:30
Distribution: Porteus 4.0 Xfce K5.11.10
Location: Rainy city

Porteus Kernel Builder

Post#1053 by babam » 05 Jan 2021, 06:44

Blaze wrote:
04 Jan 2021, 19:40
I use my config >>> https://pastebin.ubuntu.com/p/DVNZhGvM5p/
Why is there no CONFIG_AUFS_FS?
Blaze wrote:
04 Jan 2021, 19:40
Damn, seems official aufs-5.10 not apply correctly with Kernel Builder by neko
Image
Why not just use the peebee config
Sorry, my English is bad.

peebee
Black ninja
Black ninja
Posts: 38
Joined: 13 Oct 2013, 15:31
Distribution: 4
Location: UK

Porteus Kernel Builder

Post#1054 by peebee » 05 Jan 2021, 09:01

I have raised a github issue as the patch files are missing in the 5.10 branch:
https://github.com/sfjro/aufs5-standalone/issues/3

The very unofficial 5.10 changed files are at:
https://sourceforge.net/projects/lxpup/ ... z/download

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

Porteus Kernel Builder

Post#1055 by Blaze » 05 Jan 2021, 14:05

Well, we are waiting a next stable release of aufs-5.10 patches.

My .config :url: https://disk.admlr.lipetsk.ru/s/pwigBNKAatyqtzk is ready.

Code: Select all

diff -Naur /old/64bit.config /new/64bit.config
--- "/old/64bit.config"	2021-01-01 16:22:08.000000000 +0300
+++ /new/64bit.config	2021-01-05 16:59:03.831477067 +0300
@@ -107,7 +107,7 @@
 # CONFIG_VIRT_CPU_ACCOUNTING_GEN is not set
 # CONFIG_IRQ_TIME_ACCOUNTING is not set
 CONFIG_BSD_PROCESS_ACCT=y
-# CONFIG_BSD_PROCESS_ACCT_V3 is not set
+CONFIG_BSD_PROCESS_ACCT_V3=y
 CONFIG_TASKSTATS=y
 CONFIG_TASK_DELAY_ACCT=y
 # CONFIG_TASK_XACCT is not set
@@ -398,6 +398,7 @@
 CONFIG_ARCH_SPARSEMEM_ENABLE=y
 CONFIG_ARCH_SPARSEMEM_DEFAULT=y
 CONFIG_ARCH_SELECT_MEMORY_MODEL=y
+# CONFIG_ARCH_MEMORY_PROBE is not set
 CONFIG_ILLEGAL_POINTER_VALUE=0xdead000000000000
 # CONFIG_X86_PMEM_LEGACY is not set
 # CONFIG_X86_CHECK_BIOS_CORRUPTION is not set
@@ -445,6 +446,7 @@
 
 CONFIG_ARCH_HAS_ADD_PAGES=y
 CONFIG_ARCH_ENABLE_MEMORY_HOTPLUG=y
+CONFIG_ARCH_ENABLE_MEMORY_HOTREMOVE=y
 CONFIG_USE_PERCPU_NUMA_NODE_ID=y
 CONFIG_ARCH_ENABLE_SPLIT_PMD_PTLOCK=y
 CONFIG_ARCH_ENABLE_THP_MIGRATION=y
@@ -502,6 +504,7 @@
 # CONFIG_ACPI_DEBUG is not set
 CONFIG_ACPI_PCI_SLOT=y
 CONFIG_ACPI_CONTAINER=y
+CONFIG_ACPI_HOTPLUG_MEMORY=y
 CONFIG_ACPI_HOTPLUG_IOAPIC=y
 CONFIG_ACPI_SBS=m
 CONFIG_ACPI_HED=y
@@ -589,7 +592,7 @@
 # Binary Emulations
 #
 CONFIG_IA32_EMULATION=y
-# CONFIG_X86_X32 is not set
+CONFIG_X86_X32=y
 CONFIG_COMPAT_32=y
 CONFIG_COMPAT=y
 CONFIG_COMPAT_FOR_U64_ALIGNMENT=y
@@ -878,8 +881,12 @@
 CONFIG_SPARSEMEM_VMEMMAP_ENABLE=y
 CONFIG_SPARSEMEM_VMEMMAP=y
 CONFIG_HAVE_FAST_GUP=y
+CONFIG_NUMA_KEEP_MEMINFO=y
 CONFIG_MEMORY_ISOLATION=y
-# CONFIG_MEMORY_HOTPLUG is not set
+CONFIG_MEMORY_HOTPLUG=y
+CONFIG_MEMORY_HOTPLUG_SPARSE=y
+# CONFIG_MEMORY_HOTPLUG_DEFAULT_ONLINE is not set
+# CONFIG_MEMORY_HOTREMOVE is not set
 CONFIG_SPLIT_PTLOCK_CPUS=4
 CONFIG_MEMORY_BALLOON=y
 CONFIG_BALLOON_COMPACTION=y
@@ -1597,6 +1604,7 @@
 CONFIG_PCI=y
 CONFIG_PCI_DOMAINS=y
 CONFIG_PCIEPORTBUS=y
+CONFIG_HOTPLUG_PCI_PCIE=y
 CONFIG_PCIEAER=y
 # CONFIG_PCIEAER_INJECT is not set
 # CONFIG_PCIE_ECRC is not set
@@ -1627,7 +1635,13 @@
 # CONFIG_PCIE_BUS_SAFE is not set
 # CONFIG_PCIE_BUS_PERFORMANCE is not set
 # CONFIG_PCIE_BUS_PEER2PEER is not set
-# CONFIG_HOTPLUG_PCI is not set
+CONFIG_HOTPLUG_PCI=y
+CONFIG_HOTPLUG_PCI_ACPI=y
+CONFIG_HOTPLUG_PCI_ACPI_IBM=m
+CONFIG_HOTPLUG_PCI_CPCI=y
+CONFIG_HOTPLUG_PCI_CPCI_ZT5550=m
+CONFIG_HOTPLUG_PCI_CPCI_GENERIC=m
+CONFIG_HOTPLUG_PCI_SHPC=y
 
 #
 # PCI controller drivers
@@ -2035,7 +2049,7 @@
 # SCSI device support
 #
 CONFIG_SCSI_MOD=y
-CONFIG_RAID_ATTRS=m
+CONFIG_RAID_ATTRS=y
 CONFIG_SCSI=y
 CONFIG_SCSI_DMA=y
 CONFIG_SCSI_NETLINK=y
@@ -2102,7 +2116,9 @@
 CONFIG_SCSI_ADVANSYS=m
 CONFIG_SCSI_ARCMSR=m
 CONFIG_SCSI_ESAS2R=m
-# CONFIG_MEGARAID_NEWGEN is not set
+CONFIG_MEGARAID_NEWGEN=y
+CONFIG_MEGARAID_MM=m
+CONFIG_MEGARAID_MAILBOX=m
 CONFIG_MEGARAID_LEGACY=m
 CONFIG_MEGARAID_SAS=m
 CONFIG_SCSI_MPT3SAS=m
@@ -3787,7 +3803,7 @@
 CONFIG_PINCONF=y
 CONFIG_GENERIC_PINCONF=y
 # CONFIG_DEBUG_PINCTRL is not set
-CONFIG_PINCTRL_AMD=m
+CONFIG_PINCTRL_AMD=y
 # CONFIG_PINCTRL_DA9062 is not set
 CONFIG_PINCTRL_MCP23S08_I2C=m
 CONFIG_PINCTRL_MCP23S08_SPI=m
@@ -7104,6 +7120,8 @@
 CONFIG_APPLE_GMUX=m
 CONFIG_ASUS_LAPTOP=m
 CONFIG_ASUS_WIRELESS=m
+# CONFIG_ASUS_WMI is not set
+# CONFIG_EEEPC_LAPTOP is not set
 CONFIG_DCDBAS=m
 CONFIG_DELL_SMBIOS=m
 CONFIG_DELL_SMBIOS_WMI=y
@@ -8191,15 +8209,16 @@
 # CONFIG_SUNRPC_DISABLE_INSECURE_ENCTYPES is not set
 # CONFIG_SUNRPC_DEBUG is not set
 # CONFIG_CEPH_FS is not set
-CONFIG_CIFS=y
+CONFIG_CIFS=m
 # CONFIG_CIFS_STATS2 is not set
 CONFIG_CIFS_ALLOW_INSECURE_LEGACY=y
 CONFIG_CIFS_WEAK_PW_HASH=y
-# CONFIG_CIFS_UPCALL is not set
+CONFIG_CIFS_UPCALL=y
 CONFIG_CIFS_XATTR=y
 CONFIG_CIFS_POSIX=y
 # CONFIG_CIFS_DEBUG is not set
-# CONFIG_CIFS_DFS_UPCALL is not set
+CONFIG_CIFS_DFS_UPCALL=y
+CONFIG_CIFS_FSCACHE=y
 CONFIG_CODA_FS=m
 # CONFIG_AFS_FS is not set
 CONFIG_9P_FS=m
@@ -8497,7 +8516,7 @@
 # Crypto library routines
 #
 CONFIG_CRYPTO_LIB_AES=y
-CONFIG_CRYPTO_LIB_ARC4=y
+CONFIG_CRYPTO_LIB_ARC4=m
 # CONFIG_CRYPTO_LIB_BLAKE2S is not set
 CONFIG_CRYPTO_ARCH_HAVE_LIB_CHACHA=m
 CONFIG_CRYPTO_LIB_CHACHA_GENERIC=m
@@ -8558,7 +8577,7 @@
 # Library routines
 #
 CONFIG_RAID6_PQ=y
-# CONFIG_RAID6_PQ_BENCHMARK is not set
+CONFIG_RAID6_PQ_BENCHMARK=y
 CONFIG_LINEAR_RANGES=y
 CONFIG_PACKING=y
 CONFIG_BITREVERSE=y
+

Code: Select all

CONFIG_CRYPTO_ESSIV=m ---> CONFIG_CRYPTO_ESSIV=y
Linux 5.10.11-porteus #1 SMP Thu Jan 28 11:33:44 UTC 2021 x86_64 Intel(R) Core(TM) i5-6600K CPU @ 3.50GHz GenuineIntel GNU/Linux
MS-7A12 » [AMD/ATI] Tobago PRO [Radeon R7 360 / R9 360 OEM] (rev 81) » Vengeance LPX 16GB DDR4 K2 3200MHz C16

User avatar
cad
Black ninja
Black ninja
Posts: 56
Joined: 06 Nov 2020, 22:40
Distribution: 4.0 i586 LXDE

Porteus Kernel Builder

Post#1056 by cad » 05 Jan 2021, 14:34

peebee wrote:
05 Jan 2021, 09:01
I have raised a github issue as the patch files are missing in the 5.10 branch:
https://github.com/sfjro/aufs5-standalone/issues/3

The very unofficial 5.10 changed files are at:
https://sourceforge.net/projects/lxpup/ ... z/download
peebee,
I just noticed that they have been removed, but until yesterday you could find the newly-released (faulty) sfjro patch files for 5.10 comprised in branch aufs5.x-rcN. These are the patches I downloaded yesterday and attempted using for patching the 5.10.4 kernel. They are no longer there, though.

Thank you very much for providing a link to your own patch files for 5.10. I'll wait a bit longer, and if sfjro doesn't timely update, I'll give yours a shot.
Last edited by cad on 05 Jan 2021, 14:46, edited 1 time in total.

User avatar
babam
Shogun
Shogun
Posts: 250
Joined: 16 Nov 2016, 10:30
Distribution: Porteus 4.0 Xfce K5.11.10
Location: Rainy city

Porteus Kernel Builder

Post#1057 by babam » 05 Jan 2021, 14:38

Blaze,
CONFIG_CRYPTO_ESSIV=m ---> CONFIG_CRYPTO_ESSIV=y

Porteus Kernel Builder (Post by AcnapyxoB #77978)

Please add this, I'm interested in F2FS and maybe in the future I will use it

Code: Select all

CONFIG_F2FS_FS=y
CONFIG_F2FS_STAT_FS=y
CONFIG_F2FS_FS_XATTR=y
CONFIG_F2FS_FS_POSIX_ACL=y
CONFIG_F2FS_FS_SECURITY=y
CONFIG_F2FS_FS_COMPRESSION=y
CONFIG_F2FS_FS_LZ4=y
CONFIG_F2FS_FS_ZSTD=y

CONFIG_REISERFS_FS=y
CONFIG_REISERFS_FS_POSIX_ACL=y

CONFIG_EXT4_FS_POSIX_ACL=y
CONFIG_JFS_POSIX_ACL=y
CONFIG_XFS_POSIX_ACL=y
CONFIG_BTRFS_FS_POSIX_ACL=y
CONFIG_TMPFS_POSIX_ACL=y
Thanks.
Last edited by babam on 05 Jan 2021, 17:32, edited 2 times in total.
Sorry, my English is bad.

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

Porteus Kernel Builder

Post#1058 by Blaze » 05 Jan 2021, 15:25

babam, thanks :thumbsup:
A new link on config https://disk.admlr.lipetsk.ru/s/pwigBNKAatyqtzk

Отправлено спустя 8 минут 35 секунд:
babam wrote:
05 Jan 2021, 06:44
Why is there no CONFIG_AUFS_FS?
Because make menuconfig or during compilation AUFS options are removed.
I don't know why this is happening. Any suggestion are welcome.

Отправлено спустя 12 минут 1 секунду:
I don't know about options

Code: Select all

CONFIG_RAID_ATTRS=y
CONFIG_MEGARAID_NEWGEN=y
CONFIG_MEGARAID_MM=m
CONFIG_MEGARAID_MAILBOX=m
CONFIG_RAID6_PQ=y
CONFIG_RAID6_PQ_BENCHMARK=y
do we need these options or not.
I greped these options from /slackware/slackware64-current/source/k/kernel-configs/config-generic-5.10.4.x64
I think it's useful things in Enterprise :) for example I use RAID 1 Как создать программный RAID 1 массив (зеркало) в Porteus
Linux 5.10.11-porteus #1 SMP Thu Jan 28 11:33:44 UTC 2021 x86_64 Intel(R) Core(TM) i5-6600K CPU @ 3.50GHz GenuineIntel GNU/Linux
MS-7A12 » [AMD/ATI] Tobago PRO [Radeon R7 360 / R9 360 OEM] (rev 81) » Vengeance LPX 16GB DDR4 K2 3200MHz C16

User avatar
cad
Black ninja
Black ninja
Posts: 56
Joined: 06 Nov 2020, 22:40
Distribution: 4.0 i586 LXDE

Porteus Kernel Builder

Post#1059 by cad » 05 Jan 2021, 16:26

Blaze wrote:
05 Jan 2021, 15:46
babam wrote:
05 Jan 2021, 06:44
Why is there no CONFIG_AUFS_FS?
Because make menuconfig or during compilation AUFS options are removed.
I don't know why this is happening. Any suggestion are welcome.
A kernel that has not been properly aufs-patched will not present you with the option of choosing aufs under "Pseudo filesystems" during compilation. The fact is, aufs is still not officially recognized as a viable option by kernel.org (or whatever the linux "kernel authority" is), which is why we still need to directly (unofficially and separately) recur to sfjro for his aufs patches and do the patching ourselves, or download one of his properly pre-patched kernels. Neither of these two options are available yet for kernels 5.10.x.
The CONFIG_AUFS_FS options, not present in a non-aufs-patched kernel, will become available in menuconfig (and other kernel compiling approaches) only AFTER the kernel has been properly patched with aufs patches.

roadie
Full of knowledge
Full of knowledge
Posts: 328
Joined: 02 Jan 2011, 18:41
Distribution: Porteus 5.0-RC1
Location: In a hayfield

Porteus Kernel Builder

Post#1060 by roadie » 05 Jan 2021, 22:03

The same happens with anything not presently in the kernel such as zstd compressed modules. Which leads to a question.....

Has anyone compressed the modules with zstd and had success with booting the kernel? I've done 2 attempts so far, and the kernel patches cleanly and boots, but the kernel modules are not being loaded. They're present in /lib/modules, but nothing is modprobed during the boot. I've tried both standard Porteus initrd, and neko's initrd.zstd, but no joy.

User avatar
cad
Black ninja
Black ninja
Posts: 56
Joined: 06 Nov 2020, 22:40
Distribution: 4.0 i586 LXDE

Porteus Kernel Builder

Post#1061 by cad » 06 Jan 2021, 03:08

roadie wrote:
05 Jan 2021, 22:03
The same happens with anything not presently in the kernel such as zstd compressed modules. Which leads to a question.....

Has anyone compressed the modules with zstd and had success with booting the kernel? I've done 2 attempts so far, and the kernel patches cleanly and boots, but the kernel modules are not being loaded. They're present in /lib/modules, but nothing is modprobed during the boot. I've tried both standard Porteus initrd, and neko's initrd.zstd, but no joy.
roadie,

My guess is that your described attempts were with kernels antecedent to 5.9? (If using Porteus, it is almost certain they were.)
To my knowledge, ZSTD was much improved and merged upstream (mainlined) since kernel 5.9 (native ability to deal with ZSTD-compressed kernels, initrds and kernel modules). Try it in kernel 5.10.x and I would think you will find it to be pretty much flawless.
I wish it were that easy with AUFS at this time. Perhaps, it will not be very long before it, too, gets mainlined so that we won't have to go through what we are right now.

roadie
Full of knowledge
Full of knowledge
Posts: 328
Joined: 02 Jan 2011, 18:41
Distribution: Porteus 5.0-RC1
Location: In a hayfield

Porteus Kernel Builder

Post#1062 by roadie » 06 Jan 2021, 04:42

cad wrote:
06 Jan 2021, 03:08
roadie wrote:
05 Jan 2021, 22:03
The same happens with anything not presently in the kernel such as zstd compressed modules. Which leads to a question.....

Has anyone compressed the modules with zstd and had success with booting the kernel? I've done 2 attempts so far, and the kernel patches cleanly and boots, but the kernel modules are not being loaded. They're present in /lib/modules, but nothing is modprobed during the boot. I've tried both standard Porteus initrd, and neko's initrd.zstd, but no joy.
roadie,

My guess is that your described attempts were with kernels antecedent to 5.9? (If using Porteus, it is almost certain they were.)
To my knowledge, ZSTD was much improved and merged upstream (mainlined) since kernel 5.9 (native ability to deal with ZSTD-compressed kernels, initrds and kernel modules). Try it in kernel 5.10.x and I would think you will find it to be pretty much flawless.
I wish it were that easy with AUFS at this time. Perhaps, it will not be very long before it, too, gets mainlined so that we won't have to go through what we are right now.
cad,

Yes, I'm using 5.10.2 and zstd support is there for the kernel itself and init, but it's not there if you want to compress the kernel modules with it. The default is gzip and xz is available. With a standard kernel, if the modules are not being compressed, the config will show this: CONFIG_MODULE_COMPRESS is not set. If you do choose to compress the modules. you have this for an unpatched kernel:

Code: Select all

CONFIG_MODULE_COMPRESS=y
CONFIG_MODULE_COMPRESS_GZIP=y
# CONFIG_MODULE_COMPRESS_XZ is not set
With a patched kernel, this:

Code: Select all

CONFIG_MODULE_COMPRESS=y
# CONFIG_MODULE_COMPRESS_GZIP is not set
# CONFIG_MODULE_COMPRESS_XZ is not set
CONFIG_MODULE_COMPRESS_ZSTD=y
I was hoping that compressing the modules might speed up the boot process, I can't say right now that compressing them even with gzip makes a huge difference and I haven't tried xz. That will be the next one, at the least maybe I'll find out it's all for not much gain.

I know what you mean regarding aufs, I find overlay is very close to aufs in usefulness, neko found a way around the module activation problem, and it's sure a lot easier to compile since there's no patching. Myself, I don't think aufs will ever be put into the mainline kernel.

User avatar
babam
Shogun
Shogun
Posts: 250
Joined: 16 Nov 2016, 10:30
Distribution: Porteus 4.0 Xfce K5.11.10
Location: Rainy city

Porteus Kernel Builder

Post#1063 by babam » 06 Jan 2021, 06:00

CONFIG_MODULE_COMPRESS is useless because the kernel modules have been compressed by squashfs in the XZM container (000-kernel.xzm).
Sorry, my English is bad.

roadie
Full of knowledge
Full of knowledge
Posts: 328
Joined: 02 Jan 2011, 18:41
Distribution: Porteus 5.0-RC1
Location: In a hayfield

Porteus Kernel Builder

Post#1064 by roadie » 06 Jan 2021, 07:01

babam wrote:
06 Jan 2021, 06:00
CONFIG_MODULE_COMPRESS is useless because the kernel modules have been compressed by squashfs in the XZM container (000-kernel.xzm).

Thanks babam, though I still think there's a way to do it.

I did run across another source for aufs patches though, as well as other patches.

https://github.com/sirlucjan/kernel-patches

I just compiled a 5.10.4 for aufs using the patch from the site and am using it now. A bonus is that modules can be activated in the live system.

Code: Select all

guest@porteus:~$ uname -r
5.10.4-porteus
guest@porteus:~$ 

User avatar
babam
Shogun
Shogun
Posts: 250
Joined: 16 Nov 2016, 10:30
Distribution: Porteus 4.0 Xfce K5.11.10
Location: Rainy city

Porteus Kernel Builder

Post#1065 by babam » 06 Jan 2021, 09:29

Blaze, can you please provide the latest config file.
Sorry, my English is bad.

Post Reply