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...
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#316 by neko » 19 Apr 2018, 21:32

1. current kernel version
[from https://www.kernel.org/finger_banner]
The latest mainline version of the Linux kernel is: 4.17-rc1
The latest stable 4.16 version of the Linux kernel is: 4.16.3 <---NEW
The latest stable 4.15 version of the Linux kernel is: 4.15.18 (EOL) <---NEW
The latest longterm 4.14 version of the Linux kernel is: 4.14.35 <---NEW
The latest longterm 4.9 version of the Linux kernel is: 4.9.95 <---NEW
The latest longterm 4.4 version of the Linux kernel is: 4.4.128
The latest longterm 4.1 version of the Linux kernel is: 4.1.51
The latest longterm 3.18 version of the Linux kernel is: 3.18.105 (EOL)
The latest linux-next version of the Linux kernel is: next-20180420


2. NEW Example of updated kernel that was built by "Porteus Kernel builder" were updated.

Refer to http://forum.porteus.org/viewtopic.php?p=57468#p57468
or
refer to http://forum.porteus.org/viewtopic.php?p=52232#p52232


"copy firmwares from firmware packages" function was used when build kernel even if includes "make firmware".


At the time of building version 4.16.3 kernel, the patch to drivers/acpi/sleep.c was not applied.


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#317 by neko » 23 Apr 2018, 23:51

1. current kernel version
[from https://www.kernel.org/finger_banner]
The latest mainline version of the Linux kernel is: 4.17-rc2 <---NEW
The latest stable 4.16 version of the Linux kernel is: 4.16.3
The latest stable 4.15 version of the Linux kernel is: 4.15.18 (EOL)
The latest longterm 4.14 version of the Linux kernel is: 4.14.35
The latest longterm 4.9 version of the Linux kernel is: 4.9.95
The latest longterm 4.4 version of the Linux kernel is: 4.4.128
The latest longterm 4.1 version of the Linux kernel is: 4.1.51
The latest longterm 3.18 version of the Linux kernel is: 3.18.105 (EOL)
The latest linux-next version of the Linux kernel is: next-20180423


2. NEW Example of updated kernel that was built by "Porteus Kernel builder" were updated.

Refer to http://forum.porteus.org/viewtopic.php?p=57468#p57468
or
refer to http://forum.porteus.org/viewtopic.php?p=52232#p52232


"copy firmwares from firmware packages" function was used when build kernel even if includes "make firmware".


At the time of building version 4.17-rc2, 4.16.3 kernel, the patch to drivers/acpi/sleep.c was not applied.

AUFS patch is not yet ready for 4.17-rc.
Therefore the function "open_check_o_direct()" was inserted into "fs/open.c".

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#318 by neko » 26 Apr 2018, 01:47

1. current kernel version
[from https://www.kernel.org/finger_banner]
The latest mainline version of the Linux kernel is: 4.17-rc2
The latest stable 4.16 version of the Linux kernel is: 4.16.4 <---NEW
The latest stable 4.15 version of the Linux kernel is: 4.15.18 (EOL)
The latest longterm 4.14 version of the Linux kernel is: 4.14.36 <---NEW
The latest longterm 4.9 version of the Linux kernel is: 4.9.96 <---NEW
The latest longterm 4.4 version of the Linux kernel is: 4.4.129 <---NEW
The latest longterm 4.1 version of the Linux kernel is: 4.1.51
The latest longterm 3.18 version of the Linux kernel is: 3.18.106 (EOL) <---NEW
The latest linux-next version of the Linux kernel is: next-20180424


2. NEW Example of updated kernel that was built by "Porteus Kernel builder" were updated.

Refer to http://forum.porteus.org/viewtopic.php?p=57468#p57468
or
refer to http://forum.porteus.org/viewtopic.php?p=52232#p52232


"copy firmwares from firmware packages" function was used when build kernel even if includes "make firmware".


At the time of building version 4.16.4 kernel, the patch to drivers/acpi/sleep.c was not applied.


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#319 by neko » 29 Apr 2018, 01:32

1. current kernel version
[from https://www.kernel.org/finger_banner]
The latest mainline version of the Linux kernel is: 4.17-rc2
The latest stable 4.16 version of the Linux kernel is: 4.16.5 <---NEW
The latest stable 4.15 version of the Linux kernel is: 4.15.18 (EOL)
The latest longterm 4.14 version of the Linux kernel is: 4.14.37 <---NEW
The latest longterm 4.9 version of the Linux kernel is: 4.9.96
The latest longterm 4.4 version of the Linux kernel is: 4.4.129
The latest longterm 4.1 version of the Linux kernel is: 4.1.51
The latest longterm 3.18 version of the Linux kernel is: 3.18.106 (EOL)
The latest linux-next version of the Linux kernel is: next-20180426


2. NEW Example of updated kernel that was built by "Porteus Kernel builder" were updated.

Refer to http://forum.porteus.org/viewtopic.php?p=57468#p57468
or
refer to http://forum.porteus.org/viewtopic.php?p=52232#p52232


"copy firmwares from firmware packages" function was used when build kernel even if includes "make firmware".

At the time of building version 4.16.5 kernel, the patch to drivers/acpi/sleep.c was not applied.


Thanks.

alexgorr
White ninja
White ninja
Posts: 27
Joined: 23 Nov 2011, 12:48
Location: italy

Porteus Kernel Builder

Post#320 by alexgorr » 29 Apr 2018, 18:02

Great work ! I've found just now it !
Only a doubt : If I need to change my config file before compile ?
How could I do ?
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#321 by neko » 30 Apr 2018, 00:04

@alexgorr

[Preparation]
step 1. prepare "tool and compile" environment.
get the current version "kernel builder" mkKernel-NN.NN.NN-noarch-1.xzm.
refer to the top article of this thread.
Porteus Kernel Builder (Post by neko #52232)
get 05-devel.xzm for your architecture from Porteus release site.
activate "mkKernel-NN.NN.NN-noarch-1.xzm" and "05-devel.xzm".

step 2. set working direcory.
First, prepare the directory for 'Porteus Kernel Builder'.
This direcory must be in LINUX file system (ext4 etc.,).
Select this in "Kernel Builder working directory" of "setting window"

[How to use "Kernel Builder"]
== Run 1) get source file and patch
"Porteus Kernel Builde" ----> setting window
set working directory
select kernel version
check off "Create FW"
check on "download" item
check on "expand & patch" item
check on "own patch" item : only if you need own patch.
push "OK" button

== Change kernel config to your liking
Example:
Execute commands on terminal window.

Code: Select all

% su
# cd "kernel build working directory"
# cd v"kernel version"/"32 or 64"/"kernel source expanded directory"
# make menuconfig

== Run 2) build
"Porteus Kernel Builde" ----> setting window
set working directory
select kernel version
check off "Create FW"
check on "compile" item
push "OK" button

== Run 3) copy firmwares from firmware package, only if you need
"Porteus Kernel Builde" ----> setting window
set working directory
select kernel version
check on "Create FW"
push "OK" button

== Run 4) create crippled_sources module, only if you need
"Porteus Kernel Builde" ----> setting window
set working directory
select kernel version
check off "Create FW"
check on "crippled_sources" item
push "OK" button

Note: Current "own patch"
There are 2 own patches.
(1) patch to drivers/acpi/sleep.c
to fix reboot/shutdown problem.
(2) patch to drivers/mfd/intel-lpss-pci.c
to fix "Touch Pad" problem.

"own patch" button is available for following version line.
=== version line 4.17-rc ===
patch to drivers/acpi/sleep.c

=== version line 4.16 ===
patch to drivers/acpi/sleep.c

=== version line 4.15 ===
patch to drivers/acpi/sleep.c

=== version line 4.14 ===
patch to drivers/acpi/sleep.c

=== version line 4.13 ===
patch to drivers/acpi/sleep.c
patch to drivers/mfd/intel-lpss-pci.c

=== version line 4.12 ===
patch to drivers/acpi/sleep.c
patch to drivers/mfd/intel-lpss-pci.c

=== version line 4.9 ===
patch to drivers/acpi/sleep.c
patch to drivers/mfd/intel-lpss-pci.c

=== version line 4.4 ===
patch to drivers/acpi/sleep.c
patch to drivers/mfd/intel-lpss-pci.c

=== version line 4.1 ===
patch to drivers/acpi/sleep.c


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#322 by neko » 30 Apr 2018, 12:53

1. "Porteus Kernel Builder" was updated to mkKernel-18.04.30-noarch-2.xzm
Please refer to http://forum.porteus.org/viewtopic.php?p=52232#p52232

(1)Firmware packages were updated.
(linux-firmware 20180314.4c0bf11 etc.,)

(2)AUFS patch is ready for 4.17-rc. (AUFS_VERSION "4.x-rcN-20180430")
Own patch to 4.17-rc was deleted.

2. current kernel version
[from https://www.kernel.org/finger_banner]
The latest mainline version of the Linux kernel is: 4.17-rc3 <---NEW
The latest stable 4.16 version of the Linux kernel is: 4.16.6 <---NEW
The latest stable 4.15 version of the Linux kernel is: 4.15.18 (EOL)
The latest longterm 4.14 version of the Linux kernel is: 4.14.38 <---NEW
The latest longterm 4.9 version of the Linux kernel is: 4.9.97 <---NEW
The latest longterm 4.4 version of the Linux kernel is: 4.4.130 <---NEW
The latest longterm 4.1 version of the Linux kernel is: 4.1.51
The latest longterm 3.18 version of the Linux kernel is: 3.18.107 (EOL) <---NEW
The latest longterm 3.16 version of the Linux kernel is: 3.16.56
The latest longterm 3.2 version of the Linux kernel is: 3.2.101
The latest linux-next version of the Linux kernel is: next-20180426


3. NEW Example of updated kernel that was built by "Porteus Kernel builder" were updated.

Refer to http://forum.porteus.org/viewtopic.php?p=57468#p57468
or
refer to http://forum.porteus.org/viewtopic.php?p=52232#p52232


"copy firmwares from firmware packages" function was used when build kernel even if includes "make firmware".

At the time of building version 4.16.6 kernel, the patch to drivers/acpi/sleep.c was not applied.


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#323 by neko » 01 May 2018, 03:44

["Kernel 4.17-rc3 including NVIDIA" Build]
v4.17-rc3-nvidia.tar.xz (88 M)
http://www.mediafire.com/file/z4l9q65n9 ... dia.tar.xz
md5sum: 5132a39891c4acbe708b475645e32b74 v4.17-rc3-nvidia.tar.xz


crippled_sources-4.17-rc3-nvidia-32bit.xzm (21 M)
http://www.mediafire.com/file/kq2vr7h17 ... -32bit.xzm
md5sum: 8975edb3e808d832c037d44b78167f41 crippled_sources-4.17-rc3-nvidia-32bit.xzm

crippled_sources-4.17-rc3-nvidia-64bit.xzm (21 M)
http://www.mediafire.com/file/d4capeco5 ... -64bit.xzm
md5sum: cea5b2491c44312db9ee5599e68bdf15 crippled_sources-4.17-rc3-nvidia-64bit.xzm


== Kernel Builder Run 1) get source file and patch
"Porteus Kernel Builde" ----> setting window
set working directory
select kernel version 4.17-rc3
check off "Create FW"
check on "download" item
check on "expand & patch" item
push "OK" button

== Change kernel config for "NVIDIA"
Execute commands on terminal window.

Code: Select all

% su
# cd "kernel build working directory"
# cd v4.17-rc3/"32 or 64"/linux-4.17-rc3
# make menuconfig
(32bit: make menuconfig)

Code: Select all

Device Drivers → Graphics support → /dev/agpgart (AGP Support)
<M>   NVIDIA nForce/nForce2 chipset support
Device Drivers → Graphics support → Frame buffer Devices
<M> nVidia Framebuffer Support
[*]   Enable DDC Support
[ ]   Lots of debug output (NEW)
[*]   Support for backlight control (NEW)
<M> nVidia Riva support
[*]   Enable DDC Support
[ ]   Lots of debug output (NEW)
[*]   Support for backlight control (NEW)
(64bit: make menuconfig)

Code: Select all

Device Drivers → Graphics support → Frame buffer Devices
<M> nVidia Framebuffer Support
[*]   Enable DDC Support
[ ]   Lots of debug output (NEW)
[*]   Support for backlight control (NEW)
<M> nVidia Riva support
[*]   Enable DDC Support
[ ]   Lots of debug output (NEW)
[*]   Support for backlight control (NEW)
== Kernel Builder Run 2) build, copy firmwares from firmware package, create crippled_sources module
"Porteus Kernel Builde" ----> setting window
set working directory
select kernel version 4.17-rc3
check on "Create FW"
check on "compile" item
check on "crippled_sources" item
push "OK" button



-------------------------------------------------
@alexgorr
The build example of "4.17-rc3 including NVIDIA driver" is an example that config was changed.


Thanks.

yldouright
Black ninja
Black ninja
Posts: 80
Joined: 04 Mar 2015, 16:27
Distribution: Porteus (slackware 12.1)
Location: NY

Porteus Kernel Builder

Post#324 by yldouright » 01 May 2018, 11:27

I guess I can make Porteus even faster by building a custom kernel but has anyone done a benchmark comparison to quantify the benefit?

User avatar
brokenman
Site Admin
Site Admin
Posts: 6105
Joined: 27 Dec 2010, 03:50
Distribution: Porteus v4 all desktops
Location: Brazil

Porteus Kernel Builder

Post#325 by brokenman » 01 May 2018, 15:17

I did it about ten years ago. Back then it was viable, although very small gains were made. Considering hardware today the gain would be minimal, almost imperceivable.
How do i become super user?
Wear your underpants on the outside and put on a cape.

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#326 by neko » 03 May 2018, 04:56

--------------------------------------------
@n0ctilucient
Excuse me. I can't answer.
I don't have the knowledge on the fast kernel especially for multi processors.


Thanks.

--------------------------------------------
1. current kernel version
[from https://www.kernel.org/finger_banner]
The latest mainline version of the Linux kernel is: 4.17-rc3
The latest stable 4.16 version of the Linux kernel is: 4.16.7 <---NEW
The latest stable 4.15 version of the Linux kernel is: 4.15.18 (EOL)
The latest longterm 4.14 version of the Linux kernel is: 4.14.39 <---NEW
The latest longterm 4.9 version of the Linux kernel is: 4.9.98 <---NEW
The latest longterm 4.4 version of the Linux kernel is: 4.4.131 <---NEW
The latest longterm 4.1 version of the Linux kernel is: 4.1.51
The latest longterm 3.18 version of the Linux kernel is: 3.18.108 (EOL) <---NEW
The latest linux-next version of the Linux kernel is: next-20180502


2. NEW Example of updated kernel that was built by "Porteus Kernel builder" were updated.

Refer to http://forum.porteus.org/viewtopic.php?p=57468#p57468
or
refer to http://forum.porteus.org/viewtopic.php?p=52232#p52232


"copy firmwares from firmware packages" function was used when build kernel even if includes "make firmware".

At the time of building version 4.16.7 kernel, the patch to drivers/acpi/sleep.c was not applied.


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#327 by neko » 03 May 2018, 12:10

[Kernel Build example for Porteus v4.0]
v4.16.7-org.tar.xz (89 M)
http://www.mediafire.com/file/p48q4q6mc ... org.tar.xz
md5sum: 2b6b7dd9fb4a2e562fe081fc7e3bd8e7 v4.16.7-org.tar.xz


crippled_sources-4.16.7-org-32bit.xzm (20 M)
http://www.mediafire.com/file/q8bjc76o2 ... -32bit.xzm
md5sum: crippled_sources-4.16.7-org-32bit.xzm

crippled_sources-4.16.7-org-64bit.xzm (21 M)
http://www.mediafire.com/file/zyx4jeqll ... -64bit.xzm
md5sum: a268a6e25f61142b4497fa9ce95cb52b crippled_sources-4.16.7-org-64bit.xzm


Using the config of Porteus-LXDE-v4.0-i586.iso/Porteus-LXDE-v4.0-x86_64.iso,
the 4.16.7 kernel was built.

The config of Porteus-LXDE-v4.0-i586.iso/Porteus-LXDE-v4.0-x86_64.iso was gotten
on the environment of running Porteus-LXDE-v4.0-i586.iso/Porteus-LXDE-v4.0-x86_64.iso.

Code: Select all

% su
# modprobe configs
# zcat /proc/config.gz > org.config
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#328 by neko » 07 May 2018, 17:38

1. current kernel version
[from https://www.kernel.org/finger_banner]
The latest mainline version of the Linux kernel is: 4.17-rc4 <---NEW
The latest stable 4.16 version of the Linux kernel is: 4.16.7
The latest stable 4.15 version of the Linux kernel is: 4.15.18 (EOL)
The latest longterm 4.14 version of the Linux kernel is: 4.14.39
The latest longterm 4.9 version of the Linux kernel is: 4.9.98
The latest longterm 4.4 version of the Linux kernel is: 4.4.131
The latest longterm 4.1 version of the Linux kernel is: 4.1.51
The latest longterm 3.18 version of the Linux kernel is: 3.18.108 (EOL)
The latest linux-next version of the Linux kernel is: next-20180507


2. NEW Example of updated kernel that was built by "Porteus Kernel builder" were updated.

Refer to http://forum.porteus.org/viewtopic.php?p=57468#p57468
or
refer to http://forum.porteus.org/viewtopic.php?p=52232#p52232


"copy firmwares from firmware packages" function was used when build kernel even if includes "make firmware".


[used v4.17-rc4 config prototype] (are included in mkKernel-18.04.30-noarch-2.xzm)
/usr/local/share/mkKernel/lib/v4.17-rc/32bit.NVIDIA.config
/usr/local/share/mkKernel/lib/v4.17-rc/64bit.NVIDIA.config
kernel 4.17-rc4 NVIDIA config parameters as follow.
32Bit:
CONFIG_NET_VENDOR_NVIDIA=y
CONFIG_AGP_NVIDIA=m
CONFIG_FB_NVIDIA=m
CONFIG_FB_NVIDIA_I2C=y
CONFIG_FB_NVIDIA_BACKLIGHT=y

64Bit:
CONFIG_NET_VENDOR_NVIDIA=y
CONFIG_FB_NVIDIA=m
CONFIG_FB_NVIDIA_I2C=y
CONFIG_FB_NVIDIA_BACKLIGHT=y



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#329 by neko » 10 May 2018, 23:37

1. current kernel version
[from https://www.kernel.org/finger_banner]
The latest mainline version of the Linux kernel is: 4.17-rc4
The latest stable 4.16 version of the Linux kernel is: 4.16.8 <---NEW
The latest stable 4.15 version of the Linux kernel is: 4.15.18 (EOL)
The latest longterm 4.14 version of the Linux kernel is: 4.14.40 <---NEW
The latest longterm 4.9 version of the Linux kernel is: 4.9.99 <---NEW
The latest longterm 4.4 version of the Linux kernel is: 4.4.131
The latest longterm 4.1 version of the Linux kernel is: 4.1.51
The latest longterm 3.18 version of the Linux kernel is: 3.18.108 (EOL)
The latest linux-next version of the Linux kernel is: next-20180510


2. NEW Example of updated kernel that was built by "Porteus Kernel builder" were updated.

Refer to http://forum.porteus.org/viewtopic.php?p=57468#p57468
or
refer to http://forum.porteus.org/viewtopic.php?p=52232#p52232


"copy firmwares from firmware packages" function was used when build kernel even if includes "make firmware".


[4.16.8 config prototype]
Using the config of Porteus-LXDE-v4.0-i586.iso/Porteus-LXDE-v4.0-x86_64.iso,
the 4.16.8 kernel was built.

Please refer to Porteus Kernel Builder (Post by neko #64423)


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#330 by neko » 14 May 2018, 07:22

1. current kernel version
[from https://www.kernel.org/finger_banner]
The latest mainline version of the Linux kernel is: 4.17-rc5 <---NEW
The latest stable 4.16 version of the Linux kernel is: 4.16.8
The latest stable 4.15 version of the Linux kernel is: 4.15.18 (EOL)
The latest longterm 4.14 version of the Linux kernel is: 4.14.40
The latest longterm 4.9 version of the Linux kernel is: 4.9.99
The latest longterm 4.4 version of the Linux kernel is: 4.4.131
The latest longterm 4.1 version of the Linux kernel is: 4.1.51
The latest longterm 3.18 version of the Linux kernel is: 3.18.108 (EOL)
The latest linux-next version of the Linux kernel is: next-20180511


2. NEW Example of updated kernel that was built by "Porteus Kernel builder" was updated.

Refer to Porteus Kernel Builder (Post by neko #57468)
or
refer to Porteus Kernel Builder (Post by neko #52232)


"copy firmwares from firmware packages" function was used when build kernel even if includes "make firmware".


[used v4.17-rc5 config prototype]
(are included in mkKernel-18.04.30-noarch-2.xzm)
/usr/local/share/mkKernel/lib/v4.17-rc/32bit.NVIDIA.config
/usr/local/share/mkKernel/lib/v4.17-rc/64bit.NVIDIA.config
kernel 4.17-rc5 NVIDIA config parameters as follow.
32Bit:
CONFIG_NET_VENDOR_NVIDIA=y
CONFIG_AGP_NVIDIA=m
CONFIG_FB_NVIDIA=m
CONFIG_FB_NVIDIA_I2C=y
CONFIG_FB_NVIDIA_BACKLIGHT=y

64Bit:
CONFIG_NET_VENDOR_NVIDIA=y
CONFIG_FB_NVIDIA=m
CONFIG_FB_NVIDIA_I2C=y
CONFIG_FB_NVIDIA_BACKLIGHT=y


Thanks.
Last edited by Ed_P on 31 May 2018, 04:50, edited 1 time in total.
Reason: Changed http: to https: for Porteus forum links.

Post Reply