Kernel Builder script -- simple version

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...
beny
Full of knowledge
Full of knowledge
Posts: 2086
Joined: 02 Jan 2011, 11:33
Location: italy

Kernel builder script -- simple version

Post#16 by beny » 06 Feb 2022, 11:03

hi blaze if you have the porteus current,you have the last llvm the last mesa the last of all you need to run a great system...or not, i try with a stock porteus if the fulalas script work

beny
Full of knowledge
Full of knowledge
Posts: 2086
Joined: 02 Jan 2011, 11:33
Location: italy

Kernel builder script -- simple version

Post#17 by beny » 06 Feb 2022, 11:55

hi the kernel build script run in this system, with the only add of the devel.xzm:
guest@porteus:~$ uname -a
Linux porteus.example.net 5.17.0-rc2-porteus #1 SMP PREEMPT Mon Jan 31 09:19:15 UTC 2022 x86_64 AMD FX(tm)-6300 Six-Core Processor AuthenticAMD GNU/Linux

Code: Select all

  root@porteus:/home/guest/Music#  sh '/home/guest/Music/kernel.sh' 5.16.7
Initial setup...
Downloading kernel source code...
Extracting kernel source code...
Copying .config file...
Downloading AUFS...
Patching AUFS...
Building kernel (this may take a while)...
Creating symlinks...
Downloading firmware...
Extracting firmware...
Adding firmware...
/home/guest/Music/kernel.sh: line 115: [: too many arguments
Blacklisting...
Copying cryptsetup...
Creating kernel xzm module...
Creating crippled xzm module...
Cleaning up...
Finished successfully.

The following files were generated:
vmlinuz -> should go into boot/syslinux
000-kernel.xzm -> should go into porteus/base
06-crippled_sources-5.16.7.xzm -> should go into porteus/base
root@porteus:/home/guest/Music# 

                                                                                       

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

Kernel builder script -- simple version

Post#18 by fulalas » 06 Feb 2022, 12:30

Yeah, the issue is not related to the script, but the packages installed on the machine.

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:

Kernel builder script -- simple version

Post#19 by Blaze » 06 Feb 2022, 16:46

Hi beny,
yes I have Porteus-current (base on Slackware-current) and seems issue in the packages.

I have requeste to you, can you test stock porteus with a new devel module (please check you PM)

Thanks.
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

beny
Full of knowledge
Full of knowledge
Posts: 2086
Joined: 02 Jan 2011, 11:33
Location: italy

Kernel builder script -- simple version

Post#20 by beny » 06 Feb 2022, 21:06

hi blaze you are right the devel of your do not compile, well in mine i have cython and not pearl so i think that is the issue the other software are the same just the version number changes but is ok.... you can try the change if work? and about the package weight the 06 that is mine 144.2 and 05 is 135,a different compression rate?

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:

Kernel builder script -- simple version

Post#21 by Blaze » 08 Feb 2022, 14:38

Hi beny.
Thanks for your report.
Do you mean weght of 05 devel module?
Is the compression rate :)
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

beny
Full of knowledge
Full of knowledge
Posts: 2086
Joined: 02 Jan 2011, 11:33
Location: italy

Kernel builder script -- simple version

Post#22 by beny » 08 Feb 2022, 18:08

hi blaze the add of cython in the 05-devel isn't enough the build fail again,so maybe you have stripped software inside devel,ok just a report.

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

Kernel builder script -- simple version

Post#23 by fulalas » 23 Feb 2022, 06:00

@Ed_P, you don't need to download anything apart from the tar.gz file in the first post. Just extract it and run: kernel.sh 5.16.10

Make sure your devel module is activated and you have internet connection.

User avatar
Ed_P
Contributor
Contributor
Posts: 8343
Joined: 06 Feb 2013, 22:12
Distribution: Cinnamon 5.01 ISO
Location: Western NY, USA

Kernel builder script -- simple version

Post#24 by Ed_P » 23 Feb 2022, 07:52

Adding some instructions to extract all the files in the tar.gz file to a single folder would be useful. And showing a user where to find a kernel to build would be helpful, I would have used https://mirrors.slackware.com/slackware ... kware64/a/. Adding a test in the script for the presence of 05-devel.xzm would also be a good idea since I didn't have it with my 1st attempt to run the script. And telling the user the build will take over a half hour would be useful also. :shock: And that's on a new notebook! :o

Code: Select all

guest@porteus:/mnt/nvme0n1p7/porteus5.0/rc3ISOModules/kernelBuilder$ ./kernel.sh 5.16.10
Please enter root's password below:
Password: 
Initial setup...
Downloading kernel source code...
Extracting kernel source code...
Copying .config file...
Downloading AUFS...
Patching AUFS...
Building kernel (this may take a while)...
Creating symlinks...
Downloading firmware...
Extracting firmware...
Adding firmware...
./kernel.sh: line 115: [: too many arguments
Blacklisting...
Copying cryptsetup...
Creating kernel xzm module...
Creating crippled xzm module...
Cleaning up...
Finished successfully.

The following files were generated:
vmlinuz -> should go into boot/syslinux
000-kernel.xzm -> should go into porteus/base
06-crippled_sources-5.16.10.xzm -> should go into porteus/base
guest@porteus:/mnt/nvme0n1p7/porteus5.0/rc3ISOModules/kernelBuilder$ 
Are the files ok with the line 115 error?
Ed

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

Kernel builder script -- simple version

Post#25 by fulalas » 23 Feb 2022, 08:43

Yeah, that 115 thing means nothing. Go ahead and try to boot with this new kernel. Don't forget to copy vmlinuz to boot/syslinux, otherwise your system will get mad :thumbsup:

User avatar
Ed_P
Contributor
Contributor
Posts: 8343
Joined: 06 Feb 2013, 22:12
Distribution: Cinnamon 5.01 ISO
Location: Western NY, USA

Kernel builder script -- simple version

Post#26 by Ed_P » 23 Feb 2022, 20:11

5.16.10 boots and supports sound. :good: :Bravo:

Unfortunately same issue as 5.16.9.
Ed_P wrote:
13 Feb 2022, 23:31
Unable to stay connected to wifi once it connects with 5.16.9. Back to 5.15.1.
:( :mega_shok:
Ed

beny
Full of knowledge
Full of knowledge
Posts: 2086
Joined: 02 Jan 2011, 11:33
Location: italy

Kernel builder script -- simple version

Post#27 by beny » 23 Feb 2022, 20:15

hi Ed_P i think you have to solve issue not rollback, your wifi device is?

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

Kernel builder script -- simple version

Post#28 by fulalas » 23 Feb 2022, 20:41

@Ed_P, you can try to copy the firmware folder from 5.15.1 to your 5.16.9 and see what happens.

User avatar
Ed_P
Contributor
Contributor
Posts: 8343
Joined: 06 Feb 2013, 22:12
Distribution: Cinnamon 5.01 ISO
Location: Western NY, USA

Kernel builder script -- simple version

Post#29 by Ed_P » 24 Feb 2022, 06:39

fulalas wrote:
23 Feb 2022, 20:41
@Ed_P, you can try to copy the firmware folder from 5.15.1 to your 5.16.9 and see what happens.
Actually I would prefer to copy some of the firmware folder from the new 5.16.10 to my 5.15.1. :)

BTW I made some changes to the kernel.sh file. I replaced the original:

Code: Select all

# Switch to root:
if [ `whoami` != root ]; then
	echo "Please enter root's password below:"
	su -c "$0 $1 $PWD"
    exit
fi
with

Code: Select all

if [ ! -f /mnt/live/memory/images/05-devel.xzm ]; then 
    echo "05-devel.xzm needs to be active." && exit 1
fi

# Switch to root:
if [ `whoami` != root ]; then
	echo "Please enter root's password below:\033[1;31m"
	su -c "$0 $1 $PWD"
    exit
fi
echo -e "\033[0m"; echo -en "\033]0;kernelBuilder\a"

And

Code: Select all

echo "Building kernel (this may take a while)..."
with

Code: Select all

echo && date && echo
echo "Building kernel (this may take up to an hour)..."
Added in 7 minutes 1 second:
beny wrote:
23 Feb 2022, 20:15
your wifi device is?

Code: Select all

guest@porteus:~$ su
Password: 
root@porteus:/home/guest# uname -a
Linux porteus.example.net 5.15.1-porteus #1 SMP Sat Nov 6 19:26:29 MSK 2021 x86_64 11th Gen Intel(R) Core(TM) i5-1135G7 @ 2.40GHz GenuineIntel GNU/Linux
root@porteus:/home/guest# lspci -k -s $(lspci | grep -Ei 'wifi|wireless|net' | awk '{print$1}' | head -n1)
00:14.3 Network controller: Intel Corporation Device a0f0 (rev 20)
	Subsystem: Intel Corporation Device 4070
	Kernel driver in use: iwlwifi
	Kernel modules: iwlwifi
root@porteus:/home/guest# modprobe -D iwlwifi
insmod /lib/modules/5.15.1-porteus/kernel/net/rfkill/rfkill.ko.zst 
insmod /lib/modules/5.15.1-porteus/kernel/net/wireless/cfg80211.ko.zst 
insmod /lib/modules/5.15.1-porteus/kernel/drivers/net/wireless/intel/iwlwifi/iwlwifi.ko.zst 
root@porteus:/home/guest# modinfo iwlwifi
filename:       /lib/modules/5.15.1-porteus/kernel/drivers/net/wireless/intel/iwlwifi/iwlwifi.ko.zst
license:        GPL
author:         Intel Corporation <linuxwifi@intel.com>
description:    Intel(R) Wireless WiFi driver for Linux
And with the kernel-firmware-20220218_c53073d-noarch-1.xzm module loaded it works with the 5.15.1 system but not with the 5.16.10 system.

Added in 1 hour 2 minutes 33 seconds:
An interesting find in 5.16.10.

Code: Select all

guest@porteus:/mnt/live/memory/images/000-Xkernel.xzm/lib$ find . -maxdepth 3 -type f -exec grep -l "snd_hda_intel" "{}" \;
./modules/5.16.10-porteus/modules.alias
./modules/5.16.10-porteus/modules.alias.bin
guest@porteus:/mnt/live/memory/images/000-Xkernel.xzm/lib$ 
Ed

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

Kernel builder script -- simple version

Post#30 by fulalas » 24 Feb 2022, 09:04

Ed_P wrote:
24 Feb 2022, 07:48
Actually I would prefer to copy some of the firmware folder from the new 5.16.10 to my 5.15.1. :)
Could you please test 5.16.10 with the entire firmware folder from 5.15.1 and focus 100% in the wifi card?

This devel module check is a nice upgrade. Thanks!

Post Reply