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
AcnapyxoB
Samurai
Samurai
Posts: 191
Joined: 24 Dec 2014, 10:15
Distribution: Porteus 5.01
Location: Planet Earth

Porteus Kernel Builder

Post#1186 by AcnapyxoB » 05 Mar 2021, 19:38

Torvalds warns the world: Don’t use the Linux 5.12-rc1 kernel:
https://arstechnica.com/gadgets/2021/03 ... c1-kernel/
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#1187 by babam » 05 Mar 2021, 19:53

Blaze wrote:
24 Feb 2021, 16:03
[Updated kernel Examples]
==== AUFS Kernel only for Porteus ====
Can you add this to the next kernel build

Code: Select all

CONFIG_BTRFS_FS=y
CONFIG_DRM_VBOXVIDEO=m
CONFIG_VBOXGUEST=m
I am using Btrfs for the "changes" persistent.

Thanks.
Sorry, my English is bad.

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#1188 by neko » 06 Mar 2021, 12:17

1. AUFS patch for kernel 5.12-rc2 is not yet ready.
aufs5-standalone.git/include/uapi/linux/aufs_type.h:#define AUFS_VERSION "5.x-rcN-20210222"

(1)tmpfs-idr.patch patching is error.
(2)fs/aufs/vfsub.h is syntax errors at compile.

Note
You can build kernel 5.12-rc2 without AUFS patch and then get OVERLAYFS kernel.


2. The config was updated.
-------------------------------
Support for Xen hypercall interface (KVM_XEN) [N/y/?] (NEW) n
-------------------------------

Code: Select all

# diff ../32bit.config .
3c3
< # Linux/x86 5.12.0-rc1 Kernel Configuration
---
> # Linux/x86 5.12.0-rc2 Kernel Configuration
657a658
> # CONFIG_KVM_XEN is not set
5011a5013
> CONFIG_SND_INTEL_SOUNDWIRE_ACPI=m
#
# diff ../64bit.config .
3c3
< # Linux/x86 5.12.0-rc1 Kernel Configuration
---
> # Linux/x86 5.12.0-rc2 Kernel Configuration
650a651
> # CONFIG_KVM_XEN is not set
5022a5024
> CONFIG_SND_INTEL_SOUNDWIRE_ACPI=m
#

Thanks.

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#1189 by neko » 09 Mar 2021, 16:56

Now AUFS patch full set is ready for kernel 5.11.5.
v5.11.5/auf/aufs5-standalone.git/include/uapi/linux/aufs_type.h:#define AUFS_VERSION "5.11-20210308"

Thanks.

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#1190 by neko » 10 Mar 2021, 15:11

"Kernel Builder" was updated to version 21.03.06. (Please refer to the first article.)


Note:
APorteus-XFCE_de-v21.03.10-x86_64.iso & APorteus-XFCE_fr-v21.03.10-x86_64.iso
can be used as updated "Kernel Builder" ISO.
ArchLinux packages manager for Porteus (Post by neko #81688)


Thanks.

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#1191 by Blaze » 12 Mar 2021, 17:31

babam wrote:
05 Mar 2021, 19:53
Blaze wrote:
24 Feb 2021, 16:03
[Updated kernel Examples]
==== AUFS Kernel only for Porteus ====
Can you add this to the next kernel build

Code: Select all

CONFIG_BTRFS_FS=y
CONFIG_DRM_VBOXVIDEO=m
CONFIG_VBOXGUEST=m
I am using Btrfs for the "changes" persistent.

Thanks.
Done

Code: Select all

# diff ./neko-64bit.config ./babam-64bit.config 
3c3
< # Linux/x86 5.11.0 Kernel Configuration
---
> # Linux/x86 5.11.6 Kernel Configuration
227a228
> CONFIG_KCMP=y
4739c4740
< # CONFIG_DRM_VBOXVIDEO is not set
---
> CONFIG_DRM_VBOXVIDEO=m
5840c5841,5843
< # CONFIG_VIRT_DRIVERS is not set
---
> CONFIG_VIRT_DRIVERS=y
> CONFIG_VBOXGUEST=m
> # CONFIG_NITRO_ENCLAVES is not set
5997,5999d5999
< # CONFIG_INTEL_PMT_CLASS is not set
< # CONFIG_INTEL_PMT_TELEMETRY is not set
< # CONFIG_INTEL_PMT_CRASHLOG is not set
6264c6264
< CONFIG_BTRFS_FS=m
---
> CONFIG_BTRFS_FS=y
---
> # CONFIG_VBOXSF_FS is not set
6604c6584
< CONFIG_XOR_BLOCKS=m
---
> CONFIG_XOR_BLOCKS=y
6702,6703c6682,6683
< CONFIG_CRYPTO_XXHASH=m
< CONFIG_CRYPTO_BLAKE2B=m
---
> CONFIG_CRYPTO_XXHASH=y
> CONFIG_CRYPTO_BLAKE2B=y
6861c6841
< CONFIG_RAID6_PQ=m
---
> CONFIG_RAID6_PQ=y
[Updated kernel Examples]
==== AUFS Kernel only for Porteus ====
Simple package (vmlinuz, 000-kernel.xzm, 06-crippled_sources-NNN-XXbit.xzm, 07-kernel-header-NNN.xzm, 64bit.config)

[5.11.6] <-- NEW : "All patches" patching was done.
64bit-ALL-kernel5.11.6.tar (~114 M)
https://files.sberdisk.ru/s/5kRdD8negJWCkEq
5b0983b39243bfc2675f592972d45f8b 64bit-ALL-kernel5.11.6.tar

Note : Compiler that was used.
for kernel 5.11.6: 10.2.0-x86_64

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

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#1192 by babam » 12 Mar 2021, 20:15

Blaze wrote:
12 Mar 2021, 17:31
[Updated kernel Examples]
==== AUFS Kernel only for Porteus ====

[5.11.6] <-- NEW : "All patches" patching was done.
Thank you very much.
Sorry, my English is bad.

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#1193 by Ed_P » 13 Mar 2021, 05:40

Kernel 5.11.6

A 5.0 desktop file invoking firefox 86.0.1 with a url results in firefox opening with no open tab. :o :unknown:

Added in 15 minutes 12 seconds:
The 5.0 desktop file invoking firefox 86.0.1 with a url works with kernel 5.11.0.
Ed

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#1194 by babam » 13 Mar 2021, 08:43

Blaze wrote:
12 Mar 2021, 17:31
[Updated kernel Examples]
==== AUFS Kernel only for Porteus ====

[5.11.6] <-- NEW : "All patches" patching was done.
Porteus 5.0 rc2 Xfce

Using kernel 5.11.6 I am unable to compile the ntfs3 driver (requires glibc 2.33) and after upgrading to glibc 2.33 the compilation is successful but 'ntfs3.ko'module cannot be loaded.

Code: Select all

# insmod ntfs3.ko
insmod: ERROR: could not insert module ntfs3.ko: Operation not permitted
Are you using glibc-2.33 to build Kernel 5.11.6?

Using kernel 5.10.5 everything works fine Porteus Kernel Builder (Post by Blaze #80931)

You can try it https://drive.google.com/uc?export=down ... oKDAb2Roo8

Thanks.
Last edited by babam on 16 Mar 2021, 12:04, edited 1 time in total.
Sorry, my English is bad.

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#1195 by Ed_P » 14 Mar 2021, 15:59

Ed_P wrote:
13 Mar 2021, 05:55
Kernel 5.11.6

A 5.0 desktop file invoking firefox 86.0.1 with a url results in firefox opening with no open tab.
And today it works. :pardon: :unknown:
Ed

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#1196 by neko » 15 Mar 2021, 15:46

1. Now AUFS patch full set is ready for kernel 5.12-rc3.
v5.12-rc3/auf/aufs5-standalone.git/include/uapi/linux/aufs_type.h:#define AUFS_VERSION "5.x-rcN-20210308"

2. APorteus XFCE 64bit Kernel 5.12-rc3: Boot time by command "systemd-analyze"
Startup finished in 9.785s (kernel) + 3.255s (userspace) = 13.041s
graphical.target reached after 3.117s in userspace

3. APorteus XFCE 64bit Kernel 5.12-rc3: Benchmark by /usr/bin/hardinfo (System Profiler and Benchmark)
-GPU Drawing-
* Intel(R) Pentium(R) CPU N4200 @ 1.10GHz 4x 2500.00 MHz 6160.69


Thanks.

fulalas
DEV Team
DEV Team
Posts: 2050
Joined: 26 Oct 2016, 15:34
Distribution: Porteus
Location: Brazil

Porteus Kernel Builder

Post#1197 by fulalas » 16 Mar 2021, 22:36

Hey, guys, have you tried to build the kernel without the CPU mitigations just to see how much we can improve performance? Here's how: https://linuxreviews.org/HOWTO_make_Lin ... Intel_CPUs

And here are some benchmarks: https://www.phoronix.com/scan.php?page= ... wn-2&num=2

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#1198 by ncmprhnsbl » 16 Mar 2021, 23:33

fulalas wrote:
16 Mar 2021, 22:36
Hey, guys, have you tried to build the kernel without the CPU mitigations just to see how much we can improve performance? Here's how:
my reading of that link is that it's not about building the kernel without mitigations, but simply turning them off using kernel parameters (ie. what we call around here: "cheatcodes") on the boot line..
Forum Rules : https://forum.porteus.org/viewtopic.php?f=35&t=44

fulalas
DEV Team
DEV Team
Posts: 2050
Joined: 26 Oct 2016, 15:34
Distribution: Porteus
Location: Brazil

Porteus Kernel Builder

Post#1199 by fulalas » 17 Mar 2021, 01:05

You're right! So basically (I'm not on Porteus at the moment):

1- sudo echo 'mitigations=off' >> /etc/sysconfig/grub
2- sudo grub2-mkconfig -o grub.cfg
3- copy this new file to [bootDevice]/boot/grub/grub.cfg (or [bootDevice]/boot/grub2/grub.cfg)
4- reboot


EDIT: nevermind, I'm too busy to pay attention :P So... Can we edit porteus.cfg and include 'mitigations=off' in one of the APPEND menu entries?

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#1200 by ncmprhnsbl » 17 Mar 2021, 01:25

fulalas wrote:
17 Mar 2021, 01:05
So basically
quite possibly ..(i havn't messed with grub for many years)
or this: https://www.howtoforge.com/tutorial/ker ... eter-edit/ to simply edit the boot line at bootup (e for edit> add parameter to 'linux' line > ctl+x to boot) if that tutorial is still valid :p
Forum Rules : https://forum.porteus.org/viewtopic.php?f=35&t=44

Post Reply