Kernel 4.9.50 or better

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...
Jack
Contributor
Contributor
Posts: 1857
Joined: 09 Aug 2013, 14:25
Distribution: Porteus and Nemesis
Location: USA

Kernel 4.9.50 or better

Post#1 by Jack » 25 Jan 2018, 04:51

I am looking a 64bit Kernel 4.9.50 or better. It up to 4.9.78 now. If any one has it would you share it. I try to build it but with no luck. I need it for a older computer for my grand kids.
I just like Slackware because I think it teach you about Linux to build packages where Ubuntu is like Windows you just install programs you want.

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

Kernel 4.9.50 or better

Post#2 by neko » 25 Jan 2018, 06:28

@Jack
This is the example of kernel that was built by "Porteus Kernel builder".

v4.9.50.tar.xz (39 M)
http://www.mediafire.com/file/31pu4kdqn ... .50.tar.xz
md5sum: 0b147bcf6232d9346646ab594531c973 v4.9.50.tar.xz

crippled_sources-4.9.50-32bit.xzm (18 M)
http://www.mediafire.com/file/gq4nwey6r ... -32bit.xzm
md5sum: 6968759d329c9f8d9ff71d567628ad20 crippled_sources-4.9.50-32bit.xzm

crippled_sources-4.9.50-64bit.xzm (18 M)
http://www.mediafire.com/file/nzt9dn986 ... -64bit.xzm
md5sum: b7dc427c0e4e6007d838bc4fa9721bfe crippled_sources-4.9.50-64bit.xzm

---------------------------------------------------

Code: Select all

$ xz -dc v4.9.50.tar.xz | tar -x
$ ls -1 v4.9.50/*
v4.9.50/aufs.patch
v4.9.50/own.patch.drivers+acpi+sleep.c
v4.9.50/own.patch.drivers+mfd+intel-lpss-pci.c

v4.9.50/32:
32bit.config
lib
vmlinuz

v4.9.50/64:
64bit.config
lib
vmlinuz
v4.9.50/aufs.patch :...............................AUFS patch
v4.9.50/own.patch.drivers+acpi+sleep.c :...........new source file of drivers/acpi/sleep.c
v4.9.50/own.patch.drivers+mfd+intel-lpss-pci.c :...new source file of drivers/mfd/intel-lpss-pci.c

Thanks.

Jack
Contributor
Contributor
Posts: 1857
Joined: 09 Aug 2013, 14:25
Distribution: Porteus and Nemesis
Location: USA

Kernel 4.9.50 or better

Post#3 by Jack » 25 Jan 2018, 13:31

I'm not sure how to use these files?
I just like Slackware because I think it teach you about Linux to build packages where Ubuntu is like Windows you just install programs you want.

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

Kernel 4.9.50 or better

Post#4 by neko » 25 Jan 2018, 14:06

==== How to use v4.9.50.tar.xz ====
Example:
[replacing the kernel of Porteus-XFCE-v3.2.2-x86_64.iso to 4.9.50]
ISO: Porteus-XFCE-v3.2.2-x86_64.iso
http://ftp.vim.org/ftp/os/Linux/distr/p ... x86_64.iso

tool: mkKernel-18.01.15-noarch-1.xzm
http://forum.porteus.org/go.php?http:// ... arch-1.xzm

Code: Select all

% su
# ls -1
mkKernel-18.01.15-noarch-1.xzm
v4.9.50.tar.xz
# activate mkKernel-18.01.15-noarch-1.xzm
# mkdir work
# cd work
# xz -dc ../v4.9.50.tar.xz | tar -x
# /usr/local/sbin/guimkKernel
"Porteus Kernel Builder" ----> setting window
set working directory : work
select kernel version : 4.9.50
select ISO whose kernel will be updated : Porteus-XFCE-v3.2.2-x86_64.iso
check on "keep org"
push "OK" button
------------------------------------------

You will get UP.Porteus-XFCE-v3.2.2-x86_64.iso in the directory "work".
The kernel of UP.Porteus-XFCE-v3.2.2-x86_64.iso will be 4.9.50.


Thanks.
Last edited by Ed_P on 27 Jan 2018, 18:18, edited 1 time in total.
Reason: Applied fix reported here: https://forum.porteus.org/viewtopic.php?f=75&t=7511&p=61942#p61942

Jack
Contributor
Contributor
Posts: 1857
Joined: 09 Aug 2013, 14:25
Distribution: Porteus and Nemesis
Location: USA

Kernel 4.9.50 or better

Post#5 by Jack » 25 Jan 2018, 20:23

It didn't work here is what I did.

Code: Select all

guest@porteus:~/Downloads$ su
Password: 
root@porteus:/home/guest/Downloads# ls -l
total 322384
-rw-r--r-- 1 guest users 251351040 Jan 25 13:46 Porteus-XFCE-v3.2.2-x86_64.iso
-rw-r--r-- 1 guest users  17616896 Jan 25 08:26 crippled_sources-4.9.50-32bit.xzm
-rw-r--r-- 1 guest users  17817600 Jan 25 08:22 crippled_sources-4.9.50-64bit.xzm
-rw-r--r-- 1 guest users   3907584 Jan 24 15:40 mkKernel-18.01.15-noarch-1.xzm
-rw-r--r-- 1 guest users  39421228 Jan 25 08:19 v4.9.50.tar.xz
root@porteus:/home/guest/Downloads# activate mkKernel-18.01.15-noarch-1.xzm
Quiet mode: off
Updating shared library links:  /sbin/ldconfig
Updating LXDE menu: update-desktop-database
root@porteus:/home/guest/Downloads# mkdir work
root@porteus:/home/guest/Downloads# cd work
root@porteus:/home/guest/Downloads/work# xz -dc v4.9.50.tar.xz | tar -x
root@porteus:/home/guest/Downloads/work# /usr/local/sbin/guimkKernel
--2018-01-25 15:01:48--  https://www.kernel.org/finger_banner
Resolving www.kernel.org (www.kernel.org)... 2604:1380:1:3600::3, 147.75.196.57
Connecting to www.kernel.org (www.kernel.org)|2604:1380:1:3600::3|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 640 [text/plain]
Saving to: ‘/tmp/work1662/finger_banner’

finger_banner                           100%[=============================================================================>]     640  --.-KB/s    in 0s      

2018-01-25 15:01:49 (6.95 MB/s) - ‘/tmp/work1662/finger_banner’ saved [640/640]

Error creating proxy: The connection is closed (g-io-error-quark, 18)
Error creating proxy: The connection is closed (g-io-error-quark, 18)
Error creating proxy: The connection is closed (g-io-error-quark, 18)
Error creating proxy: The connection is closed (g-io-error-quark, 18)
Error creating proxy: The connection is closed (g-io-error-quark, 18)
Error creating proxy: The connection is closed (g-io-error-quark, 18)
Error creating proxy: The connection is closed (g-io-error-quark, 18)
mount: /tmp/work1662/mntiso: WARNING: device write-protected, mounted read-only.
ls: cannot access '/tmp/work1662/mntiso/porteus/*.cfg': No such file or directory
mount: /tmp/work1662/mntiso: WARNING: device write-protected, mounted read-only.
ls: cannot access '/tmp/work1662/mntiso/porteus/*.cfg': No such file or directory
root@porteus:/home/guest/Downloads/work# 
I had to copy v4.9.50.tar.xz and put it inside the work directory. Here is what inside the work directory.

Code: Select all

000-kernel/
ISO/
lv4.9.50/
v4.9.50.tar.xz
What is wrong with what I did?

Jack
Contributor
Contributor
Posts: 1857
Joined: 09 Aug 2013, 14:25
Distribution: Porteus and Nemesis
Location: USA

Kernel 4.9.50 or better

Post#6 by Jack » 25 Jan 2018, 22:19

I log out of guest then log in as root. Here is the output.

Code: Select all

root@porteus:~# mc

root@porteus:~/Downloads# ls
Porteus-XFCE-v3.2.2-x86_64.iso  mkKernel-18.01.15-noarch-1.xzm  v4.9.50.tar.xz  work/
root@porteus:~/Downloads# activate mkKernel-18.01.15-noarch-1.xzm
Quiet mode: off
Updating shared library links:  /sbin/ldconfig
Updating LXDE menu: update-desktop-database
root@porteus:~/Downloads# cd work
root@porteus:~/Downloads/work# xz -dc v4.9.50.tar.xz | tar -x
root@porteus:~/Downloads/work# /usr/local/sbin/guimkKernel
--2018-01-25 16:30:52--  https://www.kernel.org/finger_banner
Resolving www.kernel.org (www.kernel.org)... 2604:1380:1:3600::3, 147.75.196.57
Connecting to www.kernel.org (www.kernel.org)|2604:1380:1:3600::3|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 640 [text/plain]
Saving to: ‘/tmp/work1713/finger_banner’

finger_banner                           100%[=============================================================================>]     640  --.-KB/s    in 0s      

2018-01-25 16:31:00 (40.5 MB/s) - ‘/tmp/work1713/finger_banner’ saved [640/640]

cp: '/root/Downloads/work/Porteus-XFCE-v3.2.2-x86_64.iso' and '/root/Downloads/work/Porteus-XFCE-v3.2.2-x86_64.iso' are the same file
mount: /tmp/work1713/mntiso: WARNING: device write-protected, mounted read-only.
ls: cannot access '/tmp/work1713/mntiso/porteus/*.cfg': No such file or directory
mount: /tmp/work1713/mntiso: WARNING: device write-protected, mounted read-only.
ls: cannot access '/tmp/work1713/mntiso/porteus/*.cfg': No such file or directory
root@porteus:~/Downloads/work#
I had to copy v4.9.50.tar.xz and put it inside the work directory. Here is what inside the work directory.

Code: Select all

root@porteus:~/Downloads/work# ls -l
total 283272
-rw-r--r-- 1 root  root  250632192 Jan 25 16:37 UP.Porteus-XFCE-v3.2.2-x86_64.iso
drwxr-xr-x 4 root  root       4096 Sep 14 23:24 v4.9.50/
-rw-r--r-- 1 guest users  39421228 Jan 25 08:19 v4.9.50.tar.xz
root@porteus:~/Downloads/work# 
I will test it later.
I just like Slackware because I think it teach you about Linux to build packages where Ubuntu is like Windows you just install programs you want.

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

Kernel 4.9.50 or better

Post#7 by neko » 27 Jan 2018, 13:43

@Jack
I apologize for showing a wrong procedure.

==== How to replace kernel of ISO from example built vNNNNN.tar.xz =====

Code: Select all

# ls -1
Porteus-XFCE-v3.2.2-x86_64.iso
mkKernel-18.01.15-noarch-1.xzm
v4.9.50.tar.xz
# activate mkKernel-18.01.15-noarch-1.xzm
# mkdir work
# cd work
# xz -dc ../v4.9.50.tar.xz | tar -x
# ls
v4.9.50
# LANG=C /usr/local/sbin/guimkKernel
--2018-01-27 19:51:01--  https://www.kernel.org/finger_banner
Loaded CA certificate '/etc/ssl/certs/ca-certificates.crt'
Resolving www.kernel.org... 147.75.110.187, 2604:1380:3000:3500::3
Connecting to www.kernel.org|147.75.110.187|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 640 [text/plain]
Saving to: '/tmp/work21554/finger_banner'

finger_banner                          100%[============================================================================>]     640  --.-KB/s    in 0s      

2018-01-27 19:51:02 (6.54 MB/s) - '/tmp/work21554/finger_banner' saved [640/640]

XDG_RUNTIME_DIR (/run/user/1000) is not owned by us (uid 0), but by uid 1000! (This could e g happen if you try to connect to a non-root PulseAudio as a root user, over the native protocol. Don't do that.)
.
.
.
XDG_RUNTIME_DIR (/run/user/1000) is not owned by us (uid 0), but by uid 1000! (This could e g happen if you try to connect to a non-root PulseAudio as a root user, over the native protocol. Don't do that.)
mount: /tmp/work21554/mntiso: WARNING: device write-protected, mounted read-only.
ls: cannot access '/tmp/work21554/mntiso/porteus/*.cfg': No such file or directory
XDG_RUNTIME_DIR (/run/user/1000) is not owned by us (uid 0), but by uid 1000! (This could e g happen if you try to connect to a non-root PulseAudio as a root user, over the native protocol. Don't do that.)
XDG_RUNTIME_DIR (/run/user/1000) is not owned by us (uid 0), but by uid 1000! (This could e g happen if you try to connect to a non-root PulseAudio as a root user, over the native protocol. Don't do that.)
mount: /tmp/work21554/mntiso: WARNING: device write-protected, mounted read-only.
ls: cannot access '/tmp/work21554/mntiso/porteus/*.cfg': No such file or directory
XDG_RUNTIME_DIR (/run/user/1000) is not owned by us (uid 0), but by uid 1000! (This could e g happen if you try to connect to a non-root PulseAudio as a root user, over the native protocol. Don't do that.)
XDG_RUNTIME_DIR (/run/user/1000) is not owned by us (uid 0), but by uid 1000! (This could e g happen if you try to connect to a non-root PulseAudio as a root user, over the native protocol. Don't do that.)
Image
setting window
Image
confirm window
Image
report window

Code: Select all

# ls -1
UP.Porteus-XFCE-v3.2.2-x86_64.iso
v4.9.50
Note 1:
mistake
xz -dc v4.9.50.tar.xz | tar -x
correct
xz -dc ../v4.9.50.tar.xz | tar -x

Note 2:
Original ISO must be in the directory differ from kernel build work directory.


Thanks.

Post Reply