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
ralcocer
Samurai
Samurai
Posts: 187
Joined: 02 Jan 2011, 12:53
Distribution: 3.2rc5 Xfce
Location: Puerto Rico
Contact:

Porteus Kernel Builder

Post#511 by ralcocer » 24 Mar 2019, 08:09

Is there anything special to run overlay iso? I tried your download but failes to run.

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#512 by neko » 24 Mar 2019, 11:15

@ralcocer
Is there anything special to run overlay iso?
I tried your download but failes to run.
--->
If the "overlay iso" that you downloaded be OV.Porteus-CINNAMON-v4.0-x86_64-19.03.18.iso,
it would boot normal process except loop mounting process.
After boot, "activate/deactivate XZM-module" command can not be used.
(A dynamic activate /deactivate function can not be performed)

If the "overlay iso" that be created with downloaded ov.v5.1-rc1.tar.xz,
the initrd of the iso must be an integrated initrd.

An integrated initrd is integrated with 4 kinds intrd.
Porteus 4.0 AUFS initrd,
Porteus 4.0 Overlay FS initrd,
APorteus AUFS initrd,
APorteus Overlay FS initrd.

The integrated initrd is included in "Kernel builder".
At the current version,
mkKernel-19.03.18-noarch-1.xzm includes /usr/local/share/mkKernel/lib/upkernel/syslinux/initrd.xz.

This initrd.xz must be set a "init_config" inside the initrd.

Config example: OV.Porteus-CINNAMON-v4.0-x86_64-19.03.18.iso
cat initrd.xz@init_conf
SGN_ID=kernel-v5.1-rc1-1
LIB=lib
SYSTEMDDEF=/mnt/live/bin/init
OVERLAY=

SGN_ID=XXXX
corresepond to ISO ID name
ISO@porteus/XXXX-i586.cfg (32Bit)
ISO@porteus/XXXX-x86_64.cfg (64Bit)

LIB=XX
fixed string
lib (Porteus)
**) usr/lib (APorteus)

SYSTEMDDEF=XXXXX
fixed string
/mnt/live/bin/init (Porteus)
**) /usr/lib/systemd/systemd (APorteus)

OVERLAY=
none-used

Initrd and 000-kernel will be easily created with "Kernel Builder".

[How to replace kernel with OverlayFS kernel by the "Kernel builder" tool]
Prepare 2 directories. One is for orignal ISO, one is for "Kernel builder" work.

Code: Select all

% ls */*
ISOdir/ORG.iso WORKdir/ov.v5.1-rc1.tar.xz
% cd WORKdir
% su
# xz -dc ov.v5.1-rc1.tar.xz |tar -x
Execute "Kernel Builder" from GUI menu.
step 1. set working direcory.
WORKdir

step 2. select kernel version.
v5.1-rc1

step 3. "Build kernel" circle
"Create FW" item:
check it off

"32Bit/64Bit" item:
(32Bit/64Bit)

"download" item:
check it off

"expand & patch" item:
check it off

step 4. "ISO whose kernel will be update" circle
"ISOdir/ORG.iso"

"keep org" item:
check it off

step 5. "Create crippled_sources or 000-kernel modules" circle
"crippled_sources" item:
check it off

"000-kernel" item:
check it off

step 6. push "OK" button and confirm "OK"

---->
WORKdir/UP.ORG.iso will be created.


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#513 by neko » 25 Mar 2019, 05:45

1. current kernel version
[from https://www.kernel.org/finger_banner]
The latest stable version of the Linux kernel is: 5.0.4
The latest mainline version of the Linux kernel is: 5.1-rc2 <---NEW
The latest stable 5.0 version of the Linux kernel is: 5.0.4
The latest stable 4.20 version of the Linux kernel is: 4.20.17 (EOL)
The latest longterm 4.19 version of the Linux kernel is: 4.19.31
The latest longterm 4.14 version of the Linux kernel is: 4.14.108
The latest longterm 4.9 version of the Linux kernel is: 4.9.165
The latest longterm 4.4 version of the Linux kernel is: 4.4.177
The latest longterm 3.18 version of the Linux kernel is: 3.18.137 (EOL)
The latest linux-next version of the Linux kernel is: next-20190322


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

"copy firmwares from firmware packages" function was used when build kernel.


ov.v5.1-rc2.tar.xz (95 M)
http://www.mediafire.com/file/ekbzhq6ip ... rc2.tar.xz
md5sum: 209a1d4957a1a59e3bacaeebdcd820a2 ov.v5.1-rc2.tar.xz

crippled_sources-5.1-rc2-32bit.xzm (22 M)
http://www.mediafire.com/file/a0ddxfsjv ... -32bit.xzm
md5sum: 6359dfcd2ccb263b655126f8b5c4cbec crippled_sources-5.1-rc2-32bit.xzm

crippled_sources-5.1-rc2-64bit.xzm (23 M)
http://www.mediafire.com/file/e820oiq71 ... -64bit.xzm
md5sum: 79e120c7692a46e9bbfd325b14a40dec crippled_sources-5.1-rc2-64bit.xzm


Note 1: AUFS patch is not yet ready for kernel 5.1-rc2.
"5.x-rcN" was used.
AUFS_VERSION "5.x-rcN-20190311" are not yet adapted correctly to patch to kernel/locking/lockdep.c.
Therefore the kernel 5.1-rc2 was built without AUFS patch.


3. Porteus 4.0 Overlay FS trial version

OV.Porteus-CINNAMON-v4.0-x86_64-19.03.25.iso (359 M: Kernel 5.1-rc2)
http://www.mediafire.com/file/v9k1cjptu ... .03.25.iso
md5sum: 96f0421f1ec978ef0e25c80c22e5ee22 OV.Porteus-CINNAMON-v4.0-x86_64-19.03.25.iso


Note 1:
crippled_sources is included in ISO@/porteus/optional.

Note 2:
The intrd of this ISO is integrated initrd.
Please refer to Porteus Kernel Builder (Post by neko #70321)


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#514 by neko » 28 Mar 2019, 07:55

1. current kernel version
[from https://www.kernel.org/finger_banner]
The latest stable version of the Linux kernel is: 5.0.5
The latest mainline version of the Linux kernel is: 5.1-rc2
The latest stable 5.0 version of the Linux kernel is: 5.0.5 <---NEW
The latest stable 4.20 version of the Linux kernel is: 4.20.17 (EOL)
The latest longterm 4.19 version of the Linux kernel is: 4.19.32 <---NEW
The latest longterm 4.14 version of the Linux kernel is: 4.14.109 <---NEW
The latest longterm 4.9 version of the Linux kernel is: 4.9.166 <---NEW
The latest longterm 4.4 version of the Linux kernel is: 4.4.177
The latest longterm 3.18 version of the Linux kernel is: 3.18.137 (EOL)
The latest linux-next version of the Linux kernel is: next-20190327


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

"copy firmwares from firmware packages" function was used when build kernel.


=== Simple package (vmlinuz, 000-kernel.xzm, 06-crippled_sources-NNN-XXbit.xzm) ===
[5.0.5]
32bit-kernel5.0.5.tar (86 M)
http://www.mediafire.com/file/mb2vtbihx ... l5.0.5.tar
md5sum: 2b3350fe776cc3d118ab5665951a70ff 32bit-kernel5.0.5.tar

64bit-kernel5.0.5.tar (92 M)
http://www.mediafire.com/file/fzq4tiltu ... l5.0.5.tar
md5sum: c5c0c31b3485e82b1455a115c4f18d33 64bit-kernel5.0.5.tar

[4.19.32]
32bit-kernel4.19.32.tar (86 M)
http://www.mediafire.com/file/ijwkwv85c ... .19.32.tar
md5sum: 9b2e6d534785e982a9f5e3da92fae136 32bit-kernel4.19.32.tar

64bit-kernel4.19.32.tar (91 M)
http://www.mediafire.com/file/51hnxln5t ... .19.32.tar
md5sum: e0fed5d636907c8e7e655d0b41b66a26 64bit-kernel4.19.32.tar

[4.9.166]
32bit-kernel4.9.166.tar (75 M)
http://www.mediafire.com/file/vi85q7ulc ... .9.166.tar
md5sum: 5f360c28d3285c581b800ac35bf3afc3 32bit-kernel4.9.166.tar

64bit-kernel4.9.166.tar (76 M)
http://www.mediafire.com/file/w5df5hdkn ... .9.166.tar
md5sum: 0f4bb1bcdd17bc9b8e3456df673312d1 64bit-kernel4.9.166.tar


Note 1:
Compiled by gcc-8.2.1+20181127-x86_64-1

Note 2: [AUFS patch error]
<4.19.32>
Kernel 4.19.32 was patched with AUFS_VERSION "4.19-20190311".
This version AUFS patche is not adapted correctly
to patch to drivers/block/loop.c of kernel 4.19.32.
Source drivers/block/loop.c was updated between 4.19.31 and 4.19.32.
So, kernel 4.19 own patch of drivers/block/loop.c was updated.
<4.9.166>
Kernel 4.9.166 was patched with AUFS_VERSION "4.9-20180730".
This version AUFS patch is not adapted correctly
to patch to drivers/block/loop.c & mm/shmem.c of kernel 4.9.166.
So, kernel 4.9 own patches of drivers/block/loop.c & mm/shmem.c were prepared.

Note 3:
Kernel 5.0.5 was patched with AUFS_VERSION "5.0-20190311".


3. "Porteus Kernel Builder" was updated to mkKernel-19.03.28-noarch-1.xzm
Please refer to Porteus Kernel Builder (Post by neko #52232)

mkKernel-19.03.28-noarch-1.xzm (5 M)
http://simosnet.com/livecd/isobuilder/k ... arch-1.xzm
md5sum: bd4d36a8a0ed6b3f67ffadb1b90d1726 mkKernel-19.03.28-noarch-1.xzm


(1) Own patch update
for 4.19 : drivers/block/loop.c
for 4.9 : mm/shmem.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#515 by neko » 02 Apr 2019, 22:15

1. current kernel version
[from https://www.kernel.org/finger_banner]
The latest stable version of the Linux kernel is: 5.0.5
The latest mainline version of the Linux kernel is: 5.1-rc3 <---NEW
The latest stable 5.0 version of the Linux kernel is: 5.0.5
The latest stable 4.20 version of the Linux kernel is: 4.20.17 (EOL)
The latest longterm 4.19 version of the Linux kernel is: 4.19.32
The latest longterm 4.14 version of the Linux kernel is: 4.14.109
The latest longterm 4.9 version of the Linux kernel is: 4.9.166
The latest longterm 4.4 version of the Linux kernel is: 4.4.177
The latest longterm 3.18 version of the Linux kernel is: 3.18.137 (EOL)
The latest linux-next version of the Linux kernel is: next-20190401


My PC empty storage remains only a little.
So, a build kernel sample not be uploaded until a new SSD will be bought.


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#516 by neko » 03 Apr 2019, 10:58

1. current kernel version
[from https://www.kernel.org/finger_banner]
The latest stable version of the Linux kernel is: 5.0.6
The latest mainline version of the Linux kernel is: 5.1-rc3
The latest stable 5.0 version of the Linux kernel is: 5.0.6 <---NEW
The latest stable 4.20 version of the Linux kernel is: 4.20.17 (EOL)
The latest longterm 4.19 version of the Linux kernel is: 4.19.33 <---NEW
The latest longterm 4.14 version of the Linux kernel is: 4.14.110 <---NEW
The latest longterm 4.9 version of the Linux kernel is: 4.9.167 <---NEW
The latest longterm 4.4 version of the Linux kernel is: 4.4.178 <---NEW
The latest longterm 3.18 version of the Linux kernel is: 3.18.138 (EOL) <---NEW
The latest linux-next version of the Linux kernel is: next-20190403


My PC empty storage remains only a little.
So, a build kernel sample not be uploaded until a new SSD will be bought.


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#517 by neko » 04 Apr 2019, 22:34

1. "Porteus Kernel Builder" was updated to mkKernel-19.04.05-noarch-1.xzm
Please refer to Porteus Kernel Builder (Post by neko #52232)

mkKernel-19.04.05-noarch-1.xzm (5 M)
http://simosnet.com/livecd/isobuilder/k ... arch-1.xzm
md5sum: b3e01592ad7dcfbb959b33ee57bb6c0a mkKernel-19.04.05-noarch-1.xzm

(1) Own patch was added
for v5.1-rc : fs/Kconfig kernel/locking/lockdep.c

Note:
Own patches that are offered from "Kernel Builder"
are made only to avoid syntax error without understanding these meanings.
These patches are not asurance.


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

"copy firmwares from firmware packages" function was used when build kernel.


[5.1-rc3]
v5.1-rc3.tar.xz (95 M)
http://www.mediafire.com/file/q9o848b3b ... rc3.tar.xz
md5sum: 8b3dd1cb55f9fc81c22de082935ea22f v5.1-rc3.tar.xz

crippled_sources-5.1-rc3-32bit.xzm (22 M)
http://www.mediafire.com/file/h2fgj8c5p ... -32bit.xzm
md5sum: b27588bf32f6316390cfd7156df53a95 crippled_sources-5.1-rc3-32bit.xzm

crippled_sources-5.1-rc3-64bit.xzm (23 M)
http://www.mediafire.com/file/qzot9r69j ... -64bit.xzm
md5sum: 140ec5dd395c5a85df1f153e85c8411f crippled_sources-5.1-rc3-64bit.xzm


[5.0.6]
v5.0.6.tar.xz (96 M)
http://www.mediafire.com/file/tcnyx2s7b ... 0.6.tar.xz
md5sum: 4727e37c4cddcf0b22d260fa65f59d9e v5.0.6.tar.xz

crippled_sources-5.0.6-32bit.xzm (22 M)
http://www.mediafire.com/file/elfoml23f ... -32bit.xzm
md5sum: e0018de1916be0e016049c96e6a8b575 crippled_sources-5.0.6-32bit.xzm

crippled_sources-5.0.6-64bit.xzm (22 M)
http://www.mediafire.com/file/smt7jlw8t ... -64bit.xzm
md5sum: f0faea3237bf51316835754dfee946d5 crippled_sources-5.0.6-64bit.xzm


[4.19.33]
v4.19.33.tar.xz (95 M)
http://www.mediafire.com/file/bn583xkh3 ... .33.tar.xz
md5sum: 8df346a79f7f8c4f8f568ace86c56b24 v4.19.33.tar.xz

crippled_sources-4.19.33-32bit.xzm (21 M)
http://www.mediafire.com/file/tb3cc9fyc ... -32bit.xzm
md5sum: 157614380517caf251fc1420d0d0ea63 crippled_sources-4.19.33-32bit.xzm

crippled_sources-4.19.33-64bit.xzm (22 M)
http://www.mediafire.com/file/6zocd9851 ... -64bit.xzm
md5sum: 45c8e471d7308f9f77053cc6cba7aaa7 crippled_sources-4.19.33-64bit.xzm


[4.9.167]
v4.9.167.tar.xz (78 M)
http://www.mediafire.com/file/eakcf9fh7 ... 167.tar.xz
md5sum: 5843a2133074f60bf7176b51376cdc18 v4.9.167.tar.xz

crippled_sources-4.9.167-32bit.xzm (18 M)
http://www.mediafire.com/file/93l1c26gf ... -32bit.xzm
md5sum: 560ef63aed0ed4545ce637a262bb7695 crippled_sources-4.9.167-32bit.xzm

crippled_sources-4.9.167-64bit.xzm (18 M)
http://www.mediafire.com/file/h59jvnx0v ... -64bit.xzm
md5sum: 22f66cfd320c6e28462486def6c4ac64 crippled_sources-4.9.167-64bit.xzm

-----------------------------------------------------------------------
Note. [how to get 000-kernel.xzm]
example: 5.0.6

Code: Select all

% pwd
/kernelWork
% su
# ls
v5.0.6.tar.xz
# xz -dc v5.0.6.tar.xz | tar -x
execute "Kernel Builder" from GUI.
work directory: /kernelWork
version: 5.0.6
architecture: 32bit / 64bit
check on "000-kernel" item and select "Placement:Slackware" for 000-kernel of Porteus.
push ok


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#518 by neko » 05 Apr 2019, 03:44

Examples of updated kernel that was built by "Porteus Kernel builder" were updated.

"copy firmwares from firmware packages" function was used when build kernel.

[4.4.178]
v4.4.178-64bit.tar.xz (35 M)
http://www.mediafire.com/file/q9bos7hsu ... bit.tar.xz
md5sum: 2d18e7e7335e9bf4fde650cd36b66114 v4.4.178-64bit.tar.xz

crippled_sources-4.4.178-64bit.xzm (16 M)
http://www.mediafire.com/file/t5d9zbw6j ... -64bit.xzm
md5sum: a7a6a84ded5ab8f3130e636a60b2b776 crippled_sources-4.4.178-64bit.xzm

Note 1: AUFS patch for kernel 4.4 line is failed to "drivers/block/loop.c & mm/shmem.c".

Code: Select all

patching file drivers/block/loop.c
Hunk #1 succeeded at 563 (offset 7 lines).
Hunk #2 succeeded at 589 (offset 7 lines).
Hunk #3 succeeded at 602 (offset 7 lines).
Hunk #4 FAILED at 620.
Hunk #5 succeeded at 697 (offset 40 lines).
Hunk #6 FAILED at 674.
Hunk #7 succeeded at 729 (offset 41 lines).
Hunk #8 FAILED at 889.
Hunk #9 succeeded at 939 (offset 35 lines).
Hunk #10 succeeded at 981 (offset 19 lines).
Hunk #11 succeeded at 1014 (offset 19 lines).
Hunk #12 succeeded at 1062 (offset 19 lines).
Hunk #13 succeeded at 1094 (offset 19 lines).
Hunk #14 succeeded at 1139 with fuzz 1 (offset 19 lines).
3 out of 14 hunks FAILED -- saving rejects to file drivers/block/loop.c.rej

patching file mm/shmem.c
Hunk #3 succeeded at 629 (offset -1 lines).
Hunk #4 succeeded at 1427 (offset -1 lines).
Hunk #5 FAILED at 1475.
Hunk #6 succeeded at 2696 (offset 4 lines).
Hunk #7 succeeded at 2707 (offset 4 lines).
Hunk #8 succeeded at 2723 (offset 4 lines).
Hunk #9 succeeded at 2796 (offset 4 lines).
Hunk #10 succeeded at 2849 (offset 4 lines).
Hunk #11 succeeded at 2897 (offset 4 lines).
Hunk #12 succeeded at 2986 (offset 4 lines).
Hunk #13 succeeded at 3006 (offset 4 lines).
Hunk #14 succeeded at 3112 (offset 5 lines).
Hunk #15 succeeded at 3257 (offset 5 lines).
1 out of 15 hunks FAILED -- saving rejects to file mm/shmem.c.rej
Own patches was prepared.

Note 2: config was updated by "make oldconfig" command with following spec.

Code: Select all

Compiler optimization level
  1. Optimize for performance (CC_OPTIMIZE_FOR_PERFORMANCE) (NEW)
> 2. Optimize for size (CC_OPTIMIZE_FOR_SIZE)
choice[1-2]: 2
Fast CPU feature tests (X86_FAST_FEATURE_TESTS) [Y/n/?] (NEW) y
Note 3: "Kernel Builder" temporary update
(Prepared own patches, new 64bit config)

v4.4.tar (440 K)
http://www.mediafire.com/file/alqa8t16rack6we/v4.4.tar
md5sum: 8f8f1b25d88778aae85db2d007acfe04 v4.4.tar

Code: Select all

% su
# ls
v4.4.tar
# tar -xf v4.4.tar
# ls
v4.4 v4.4.tar
# cp v4.4/* /usr/local/share/mkKernel/lib/v4.4/
At next update of "Kernel Builder", contents of v4.4.tar will be included.

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#519 by neko » 06 Apr 2019, 10:23

1. current kernel version
[from https://www.kernel.org/finger_banner]
The latest stable version of the Linux kernel is: 5.0.7
The latest mainline version of the Linux kernel is: 5.1-rc3
The latest stable 5.0 version of the Linux kernel is: 5.0.7 <---NEW
The latest stable 4.20 version of the Linux kernel is: 4.20.17 (EOL)
The latest longterm 4.19 version of the Linux kernel is: 4.19.34 <---NEW
The latest longterm 4.14 version of the Linux kernel is: 4.14.111 <---NEW
The latest longterm 4.9 version of the Linux kernel is: 4.9.168 <---NEW
The latest longterm 4.4 version of the Linux kernel is: 4.4.178
The latest longterm 3.18 version of the Linux kernel is: 3.18.138 (EOL)
The latest linux-next version of the Linux kernel is: next-20190405


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

"copy firmwares from firmware packages" function was used when build kernel.


=== Simple package (vmlinuz, 000-kernel.xzm, 06-crippled_sources-NNN-XXbit.xzm) ===
[5.0.7]
32bit-kernel5.0.7.tar (86 M)
http://www.mediafire.com/file/b2it2enb3 ... l5.0.7.tar
md5sum: b298d40813ebf329e9cbad911c693d5f 32bit-kernel5.0.7.tar

64bit-kernel5.0.7.tar (92 M)
http://www.mediafire.com/file/506a773ab ... l5.0.7.tar
md5sum: 19bc18025c7535a775a66900c4d8365d 64bit-kernel5.0.7.tar

[4.19.34]
32bit-kernel4.19.34.tar (86 M)
http://www.mediafire.com/file/cll4tka6z ... .19.34.tar
md5sum: 0ae8a5109df1b0364d5d5a47503b5874 32bit-kernel4.19.34.tar

64bit-kernel4.19.34.tar (91 M)
http://www.mediafire.com/file/9od1v56ak ... .19.34.tar
md5sum: 2d1661f1f832463e24d353f1acc16a54 64bit-kernel4.19.34.tar


Note 1:
Compiled by gcc-8.3.0-x86_64-1

Note 2: 5.0.7 config was updated by "make oldconfig" command with following spec.

Code: Select all

GCC plugins (GCC_PLUGINS) [N/y/?] (NEW)N
Note 3:
Kernel 5.0.7 was patched with AUFS_VERSION "5.0-20190311".

Note 4:
Kernel 4.19.34 was patched with AUFS_VERSION "4.19-20190311".
This version AUFS patche is not adapted correctly
to patch to drivers/block/loop.c of kernel 4.19.32.

Source drivers/block/loop.c was updated between 4.19.33 and 4.19.34.
So, kernel 4.19 own patch of drivers/block/loop.c was updated.
(Next "Kernel Builder" updating will include this own patch)


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#520 by neko » 08 Apr 2019, 14:17

1. "Porteus Kernel Builder" was updated to mkKernel-19.04.08-noarch-1.xzm
Please refer to Porteus Kernel Builder (Post by neko #52232)

mkKernel-19.04.08-noarch-1.xzm (5 M)
http://simosnet.com/livecd/isobuilder/k ... arch-1.xzm
md5sum: b0bdb0b8efa97d57dbd4811ea449a5a4 mkKernel-19.04.08-noarch-1.xzm

(1) Own patch
<add>
4.4 : drivers/block/loop.c, mm/shmem.c
v5.1-rc : fs/Kconfig, kernel/locking/lockdep.c
<update>
4.19 : drivers/block/loop.c

Note:
Own patches that are offered from "Kernel Builder"
are made only to avoid syntax error without understanding these meanings.
These patches are not asurance.

(2) config
Depending on compiled by gcc-8.3.0-x86_64-1
5.1-rc, 5.0.7, 4.19
configs were updated by "make oldconfig" command with following spec.

Code: Select all

GCC plugins (GCC_PLUGINS) [N/y/?] (NEW)N

2. current kernel version
[from https://www.kernel.org/finger_banner]
The latest stable version of the Linux kernel is: 5.0.7
The latest mainline version of the Linux kernel is: 5.1-rc4 <---NEW
The latest stable 5.0 version of the Linux kernel is: 5.0.7
The latest stable 4.20 version of the Linux kernel is: 4.20.17 (EOL)
The latest longterm 4.19 version of the Linux kernel is: 4.19.34
The latest longterm 4.14 version of the Linux kernel is: 4.14.111
The latest longterm 4.9 version of the Linux kernel is: 4.9.168
The latest longterm 4.4 version of the Linux kernel is: 4.4.178
The latest longterm 3.18 version of the Linux kernel is: 3.18.138 (EOL)
The latest linux-next version of the Linux kernel is: next-20190408


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

"copy firmwares from firmware packages" function was used when build kernel.


=== Simple package (vmlinuz, 000-kernel.xzm, 06-crippled_sources-NNN-XXbit.xzm) ===
[5.1-rc4]
32bit-kernel5.1-rc4.tar (85 M)
http://www.mediafire.com/file/lb92yuv38 ... .1-rc4.tar
md5sum: 5a0c0ba7055a6ac7f490c699afa43e03 32bit-kernel5.1-rc4.tar

64bit-kernel5.1-rc4.tar (90 M)
http://www.mediafire.com/file/zujus89wc ... .1-rc4.tar
md5sum: 7e4834bead2acaaf62ab97e9db638831 64bit-kernel5.1-rc4.tar


Note 1:
Compiled by gcc-8.3.0-x86_64-1

Note 2:
Kernel 5.1-rc4 was patched with AUFS_VERSION "5.x-rcN-20190311".
This version AUFS patche is not adapted correctly
to patch to "fs/Kconfig & kernel/locking/lockdep.c" of kernel 5.1-rc4.
So, kernel 5.1-rc own patches of "fs/Kconfig & kernel/locking/lockdep.c" were adapted.


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#521 by Blaze » 09 Apr 2019, 16:29

Hi neko,
Can you look at https://pastebin.com/wSqAaJyL

SaintAnd tried to compile video driver with my build of
=== Simple package (vmlinuz, 000-kernel.xzm, 06-crippled_sources-NNN-XXbit.xzm) ===
[4.4.178]

64bit-kernel4.4.178.tar (63 M)
http://www.mediafire.com/file/si2jr69pi ... .4.178.tar
md5sum: 13f304b10d003bbdba6adcc0021242bc 64bit-kernel4.4.178.tar

Note 1:
Compiled by gcc-8.3.0-x86_64-1
and get thiserror

Code: Select all

Using: nvidia-installer ncurses user interface
-> License accepted.
-> Installing NVIDIA driver version 260.19.12.
-> Performing CC sanity check with CC="cc".
-> Performing CC version check with CC="cc".
ERROR: The kernel header file
       '/lib/modules/4.4.178-porteus/build/include/linux/version.h' does not
       exist.  The most likely reason for this is that the kernel source files
       in '/lib/modules/4.4.178-porteus/build' have not been configured.
ERROR: Installation has failed.  Please see the file
       '/var/log/nvidia-installer.log' for details.  You may find suggestions
       on fixing installation problems in the README available on the Linux
       driver download page at www.nvidia.com.

Code: Select all

# find ../64bit-kernel4.4.178/000-kernel/lib/modules/4.4.178-porteus/build/include/linux -iname *version.h*
../64bit-kernel4.4.178/000-kernel/lib/modules/4.4.178-porteus/build/include/linux/iversion.h
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#522 by neko » 10 Apr 2019, 01:10

@Blaze
I built it again.
And I checked it about "version".
But I could not find "version.h".

Thanks.

before build

Code: Select all

% find linux-4.4.178 -name '*version*' > /tmp/before
% cat /tmp/before
linux-4.4.178/arch/x86/math-emu/version.h
linux-4.4.178/arch/x86/boot/version.c
linux-4.4.178/arch/cris/include/arch-v32/arch/hwregs/iop/iop_version_defs.h
linux-4.4.178/arch/cris/include/arch-v32/arch/hwregs/iop/asm/iop_version_defs_asm.h
linux-4.4.178/arch/cris/include/arch-v32/mach-a3/mach/hwregs/iop/iop_version_defs.h
linux-4.4.178/arch/cris/include/arch-v32/mach-a3/mach/hwregs/iop/asm/iop_version_defs_asm.h
linux-4.4.178/include/uapi/linux/dvb/version.h
linux-4.4.178/include/xen/interface/version.h
linux-4.4.178/drivers/scsi/lpfc/lpfc_version.h
linux-4.4.178/drivers/scsi/qla2xxx/qla_version.h
linux-4.4.178/drivers/scsi/qla4xxx/ql4_version.h
linux-4.4.178/drivers/media/pci/cx18/cx18-version.h
linux-4.4.178/drivers/media/pci/ivtv/ivtv-version.h
linux-4.4.178/drivers/media/dvb-frontends/drx39xyj/drx_driver_version.h
linux-4.4.178/drivers/staging/lustre/lustre/include/lustre/lustre_build_version.h
linux-4.4.178/drivers/staging/rtl8723au/include/rtw_version.h
linux-4.4.178/drivers/staging/unisys/include/version.h
linux-4.4.178/drivers/net/wireless/ath/carl9170/version.h
linux-4.4.178/drivers/net/ethernet/neterion/vxge/vxge-version.h
linux-4.4.178/drivers/net/ethernet/chelsio/cxgb4/t4fw_version.h
linux-4.4.178/drivers/net/ethernet/chelsio/cxgb3/version.h
linux-4.4.178/scripts/mod/sumversion.c
linux-4.4.178/scripts/mkversion
linux-4.4.178/scripts/setlocalversion
linux-4.4.178/scripts/checkversion.pl
linux-4.4.178/scripts/dtc/version_gen.h
linux-4.4.178/scripts/gcc-version.sh
linux-4.4.178/scripts/ld-version.sh
linux-4.4.178/sound/pci/asihpi/hpi_version.h
linux-4.4.178/fs/proc/version.c
linux-4.4.178/fs/reiserfs/tail_conversion.c
linux-4.4.178/init/version.c
linux-4.4.178/tools/power/cpupower/utils/version-gen.sh
linux-4.4.178/tools/build/feature/test-libpython-version.c
linux-4.4.178/Documentation/misc-devices/mei/mei-amt-version.c
linux-4.4.178/Documentation/isdn/README.diversion
%

after build

Code: Select all

% find linux-4.4.178 -name '*version*' > /tmp/after
% cat /tmp/after
linux-4.4.178/.tmp_versions
linux-4.4.178/arch/x86/math-emu/version.h
linux-4.4.178/arch/x86/boot/version.c
linux-4.4.178/arch/x86/boot/version.o
linux-4.4.178/arch/x86/boot/.version.o.cmd
linux-4.4.178/arch/cris/include/arch-v32/arch/hwregs/iop/iop_version_defs.h
linux-4.4.178/arch/cris/include/arch-v32/arch/hwregs/iop/asm/iop_version_defs_asm.h
linux-4.4.178/arch/cris/include/arch-v32/mach-a3/mach/hwregs/iop/iop_version_defs.h
linux-4.4.178/arch/cris/include/arch-v32/mach-a3/mach/hwregs/iop/asm/iop_version_defs_asm.h
linux-4.4.178/include/generated/uapi/linux/version.h
linux-4.4.178/include/config/arch/want/compat/ipc/parse/version.h
linux-4.4.178/include/config/localversion.h
linux-4.4.178/include/uapi/linux/dvb/version.h
linux-4.4.178/include/xen/interface/version.h
linux-4.4.178/drivers/scsi/lpfc/lpfc_version.h
linux-4.4.178/drivers/scsi/qla2xxx/qla_version.h
linux-4.4.178/drivers/scsi/qla4xxx/ql4_version.h
linux-4.4.178/drivers/media/pci/cx18/cx18-version.h
linux-4.4.178/drivers/media/pci/ivtv/ivtv-version.h
linux-4.4.178/drivers/media/dvb-frontends/drx39xyj/drx_driver_version.h
linux-4.4.178/drivers/staging/lustre/lustre/include/lustre/lustre_build_version.h
linux-4.4.178/drivers/staging/rtl8723au/include/rtw_version.h
linux-4.4.178/drivers/staging/unisys/include/version.h
linux-4.4.178/drivers/net/wireless/ath/carl9170/version.h
linux-4.4.178/drivers/net/ethernet/neterion/vxge/vxge-version.h
linux-4.4.178/drivers/net/ethernet/chelsio/cxgb4/t4fw_version.h
linux-4.4.178/drivers/net/ethernet/chelsio/cxgb3/version.h
linux-4.4.178/scripts/mod/sumversion.c
linux-4.4.178/scripts/mod/sumversion.o
linux-4.4.178/scripts/mod/.sumversion.o.cmd
linux-4.4.178/scripts/mkversion
linux-4.4.178/scripts/setlocalversion
linux-4.4.178/scripts/checkversion.pl
linux-4.4.178/scripts/dtc/version_gen.h
linux-4.4.178/scripts/gcc-version.sh
linux-4.4.178/scripts/ld-version.sh
linux-4.4.178/sound/pci/asihpi/hpi_version.h
linux-4.4.178/fs/proc/version.c
linux-4.4.178/fs/proc/version.o
linux-4.4.178/fs/proc/.version.o.cmd
linux-4.4.178/fs/reiserfs/tail_conversion.o
linux-4.4.178/fs/reiserfs/.tail_conversion.o.cmd
linux-4.4.178/fs/reiserfs/tail_conversion.c
linux-4.4.178/init/version.c
linux-4.4.178/init/version.o
linux-4.4.178/init/.version.o.cmd
linux-4.4.178/tools/power/cpupower/utils/version-gen.sh
linux-4.4.178/tools/build/feature/test-libpython-version.c
linux-4.4.178/Documentation/misc-devices/mei/mei-amt-version.c
linux-4.4.178/Documentation/isdn/README.diversion
linux-4.4.178/.version
%

Code: Select all

% diff /tmp/before /tmp/after
0a1
> linux-4.4.178/.tmp_versions
2a4,5
> linux-4.4.178/arch/x86/boot/version.o
> linux-4.4.178/arch/x86/boot/.version.o.cmd
6a10,12
> linux-4.4.178/include/generated/uapi/linux/version.h
> linux-4.4.178/include/config/arch/want/compat/ipc/parse/version.h
> linux-4.4.178/include/config/localversion.h
22a29,30
> linux-4.4.178/scripts/mod/sumversion.o
> linux-4.4.178/scripts/mod/.sumversion.o.cmd
30a39,42
> linux-4.4.178/fs/proc/version.o
> linux-4.4.178/fs/proc/.version.o.cmd
> linux-4.4.178/fs/reiserfs/tail_conversion.o
> linux-4.4.178/fs/reiserfs/.tail_conversion.o.cmd
32a45,46
> linux-4.4.178/init/version.o
> linux-4.4.178/init/.version.o.cmd
36a51
> linux-4.4.178/.version
%

Note: "shell script that creates crippled_sources"

Code: Select all

#!/bin/sh
###=== Create crippled_sources ===###
## set frame ##
rm -fr /home/guest/porteus/kernel/crippled_sources-4.4.178-64bit /home/guest/porteus/kernel/crippled_sources-4.4.178-64bit.xzm
mkdir -p /home/guest/porteus/kernel/crippled_sources-4.4.178-64bit/usr/src
cp -av /home/guest/porteus/kernel/v4.4.178/64/linux-4.4.178 /home/guest/porteus/kernel/crippled_sources-4.4.178-64bit/usr/src/
ln -sf linux-4.4.178 /home/guest/porteus/kernel/crippled_sources-4.4.178-64bit/usr/src/linux

## slim up 1 ##
rm -rfv /home/guest/porteus/kernel/crippled_sources-4.4.178-64bit/usr/src/linux-4.4.178/Documentation /home/guest/porteus/kernel/crippled_sources-4.4.178-64bit/usr/src/linux-4.4.178/drivers /home/guest/porteus/kernel/crippled_sources-4.4.178-64bit/usr/src/linux-4.4.178/firmware /home/guest/porteus/kernel/crippled_sources-4.4.178-64bit/usr/src/linux-4.4.178/fs /home/guest/porteus/kernel/crippled_sources-4.4.178-64bit/usr/src/linux-4.4.178/net /home/guest/porteus/kernel/crippled_sources-4.4.178-64bit/usr/src/linux-4.4.178/sound
mv /home/guest/porteus/kernel/crippled_sources-4.4.178-64bit/usr/src/linux-4.4.178/arch/x86 /home/guest/porteus/kernel/crippled_sources-4.4.178-64bit/usr/src/linux-4.4.178/../
rm -rf /home/guest/porteus/kernel/crippled_sources-4.4.178-64bit/usr/src/linux-4.4.178/arch
mkdir /home/guest/porteus/kernel/crippled_sources-4.4.178-64bit/usr/src/linux-4.4.178/arch
mv /home/guest/porteus/kernel/crippled_sources-4.4.178-64bit/usr/src/linux-4.4.178/../x86 /home/guest/porteus/kernel/crippled_sources-4.4.178-64bit/usr/src/linux-4.4.178/arch/
find /home/guest/porteus/kernel/crippled_sources-4.4.178-64bit/usr/src/linux-4.4.178 -maxdepth 99 -type f -name ".gitignore" -delete -print

## slim up 2 ##
rm -rfv /home/guest/porteus/kernel/crippled_sources-4.4.178-64bit/usr/src/linux-4.4.178/vmlinux* /home/guest/porteus/kernel/crippled_sources-4.4.178-64bit/usr/src/linux-4.4.178/.tmp_versions /home/guest/porteus/kernel/crippled_sources-4.4.178-64bit/usr/src/linux-4.4.178/arch/x86/boot/bzImage /home/guest/porteus/kernel/crippled_sources-4.4.178-64bit/usr/src/linux-4.4.178/arch/x86/boot/compressed/vmlinux
find /home/guest/porteus/kernel/crippled_sources-4.4.178-64bit/usr/src/linux-4.4.178 -maxdepth 99 -type f -name "*.o" -delete -print
find /home/guest/porteus/kernel/crippled_sources-4.4.178-64bit/usr/src/linux-4.4.178 -maxdepth 99 -type f -name "*.bin" -delete -print
find /home/guest/porteus/kernel/crippled_sources-4.4.178-64bit/usr/src/linux-4.4.178 -maxdepth 99 -type f -name "*.elf" -delete -print
find /home/guest/porteus/kernel/crippled_sources-4.4.178-64bit/usr/src/linux-4.4.178 -maxdepth 99 -type f -name "*.xz" -delete -print

## make module XZM ##
mksquashfs /home/guest/porteus/kernel/crippled_sources-4.4.178-64bit/ /home/guest/porteus/kernel/crippled_sources-4.4.178-64bit.xzm -b 256K -comp xz -Xbcj x86 -noappend
rm -fr /home/guest/porteus/kernel/crippled_sources-4.4.178-64bit
----------------------------------------------------------------------
set version.h in 06-crippled_sources-4.4.178-64bit.xzm

Code: Select all

% su
# ls
06-crippled_sources-4.4.178-64bit.xzm
# mloop 06-crippled_sources-4.4.178-64bit.xzm
# mkdir crippled_sources-4.4.178-64bit
# cp -a /mnt/loop/* crippled_sources-4.4.178-64bit/
# cd crippled_sources-4.4.178-64bit/usr/src/linux-4.4.178/include/linux
# ln -sf ../generated/uapi/linux/version.h .
# cd ../../../../../../
# mksquashfs crippled_sources-4.4.178-64bit/ new-06-crippled_sources-4.4.178-64bit.xzm -b 256K -comp xz -Xbcj x86 -noappend
# rm -fr crippled_sources-4.4.178-64bit
# uloop
Please refer to https://askubuntu.com/questions/40979/w ... all-vmware


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#523 by neko » 15 Apr 2019, 08:50

1. current kernel version
[from https://www.kernel.org/finger_banner]
The latest stable version of the Linux kernel is: 5.0.7
The latest mainline version of the Linux kernel is: 5.1-rc5 <---NEW
The latest stable 5.0 version of the Linux kernel is: 5.0.7
The latest stable 4.20 version of the Linux kernel is: 4.20.17 (EOL)
The latest longterm 4.19 version of the Linux kernel is: 4.19.34
The latest longterm 4.14 version of the Linux kernel is: 4.14.111
The latest longterm 4.9 version of the Linux kernel is: 4.9.168
The latest longterm 4.4 version of the Linux kernel is: 4.4.178
The latest longterm 3.18 version of the Linux kernel is: 3.18.138 (EOL)
The latest linux-next version of the Linux kernel is: next-20190412


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

"copy firmwares from firmware packages" function was used when build kernel.


=== Simple package (vmlinuz, 000-kernel.xzm, 06-crippled_sources-NNN-XXbit.xzm) ===
[5.1-rc5]
32bit-kernel5.1-rc5.tar (85 M)
http://www.mediafire.com/file/9ixc9cawb ... .1-rc5.tar
md5sum: 2f5602e84b622f194813c2139c9b9b8a 32bit-kernel5.1-rc5.tar

64bit-kernel5.1-rc5.tar (90 M)
http://www.mediafire.com/file/h8z7jtqdn ... .1-rc5.tar
md5sum: ef426a7407f291a460463e3fe59ad6be 64bit-kernel5.1-rc5.tar


Note 1:
Compiled by gcc-8.3.0-x86_64-1

Note 2:
Kernel 5.1-rc5 was patched with AUFS_VERSION "5.x-rcN-20190311".
This version AUFS patche is not adapted correctly
to patch to "fs/Kconfig & kernel/locking/lockdep.c" of kernel 5.1-rc5.
kernel 5.1-rc own patches of "fs/Kconfig" was adapted.

But, kernel 5.1-rc own patches of "kernel/locking/lockdep.c" was not adapted.
"kernel/locking/lockdep.c" did not be cared.
The "kernel/locking/lockdep.c" are not asurance.


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#524 by neko » 16 Apr 2019, 09:47

Notice
I will stop the maintenance that is to modify the AUFS patch error in order to avoid syntax error.
Because I feel my skill & power limit.

The AUFS patch is not maintained for every version.
Especially the recent versions of old "version lines"
(4.20.NN, 4.19.NN, 4.9.NNN, 4.4.NNN)
are not maintained more.
And the newest mainline version
(5.1-rcN)
almost is not followed nor is cared by AUFS patch.

When (from next version) "Kernel Builder" detects the AUFS patch error,
it removes the patch from source file.
If continue to next compile process,
the overlay FS kernel will be produced.


Thanks.

bour59
Samurai
Samurai
Posts: 181
Joined: 29 Dec 2010, 08:10
Distribution: porteus v5.0-xfce K5.19.7
Location: France

Porteus Kernel Builder

Post#525 by bour59 » 16 Apr 2019, 16:46

I've just updated my 4.0 with kernel 4.19.34 (64bits)
and I will do the same for 32bits for another pc
Thx for your job

Post Reply