Kernel Builder script -- simple version
Kernel builder script -- simple version
Post#46 by beny » 28 Feb 2022, 20:34
and the kernel script have done the task so like the fail of the script with blaze the devel package have something wrong.
beny
- Ed_P
- Contributor
- Posts: 8967
- Joined: 06 Feb 2013, 22:12
- Distribution: Cinnamon 5.01 ISO
- Location: Western NY, USA
Kernel builder script -- simple version
Post#47 by Ed_P » 28 Feb 2022, 22:23
Code: Select all
guest@porteus:/mnt/sda6/porteus4.0/kernelBuilder$ ./kernel.sh 5.16.11
Please enter root's password below:
Password:
Initial setup...
Downloading kernel source code...
--2022-02-28 15:59:04-- https://mirrors.edge.kernel.org/pub/linux/kernel/v5.x/linux-5.16.11.tar.xz
Resolving mirrors.edge.kernel.org (mirrors.edge.kernel.org)... 2604:1380:1:3600::1, 147.75.197.195
Connecting to mirrors.edge.kernel.org (mirrors.edge.kernel.org)|2604:1380:1:3600::1|:443... connected.
WARNING: cannot verify mirrors.edge.kernel.org's certificate, issued by ‘CN=R3,O=Let's Encrypt,C=US’:
Issued certificate has expired.
HTTP request sent, awaiting response... 200 OK
Length: 127555284 (122M) [application/x-xz]
Saving to: ‘linux-5.16.11.tar.xz’
linux-5.16.11.tar.x 100%[===================>] 121.65M 2.41MB/s in 52s
2022-02-28 15:59:56 (2.33 MB/s) - ‘linux-5.16.11.tar.xz’ saved [127555284/127555284]
Extracting kernel source code...
Copying .config file...
Downloading AUFS...
Patching AUFS...
Mon Feb 28 16:00:29 EST 2022
Building kernel (this may take up to an hour)...
/bin/sh: zstd: command not found
make[2]: *** [arch/x86/boot/compressed/Makefile:139: arch/x86/boot/compressed/vmlinux.bin.zst] Error 127
make[2]: *** Deleting file 'arch/x86/boot/compressed/vmlinux.bin.zst'
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [arch/x86/boot/Makefile:115: arch/x86/boot/compressed/vmlinux] Error 2
make: *** [arch/x86/Makefile:253: bzImage] Error 2
make: *** Waiting for unfinished jobs....
Fail to build kernel.
guest@porteus:/mnt/sda6/porteus4.0/kernelBuilder$
Code: Select all
# make olddefconfig > /dev/null 2>&1 && make -j$cpuThreads > /dev/null 2>&1 || { echo "Fail to build kernel."; exit 1; }
make olddefconfig > olddefconfig.txt && make -j$cpuThreads > j$cputhreads.txt || { echo "Fail to build kernel."; exit 1; }


I'm running with the Porteus 4.0 version, to ensure the 5.16.11 kernel supports Porteus 4.0. The script ran fine when I did the upgrade for Porteus 5.0 and used the Porteus 5.0 05-devel.xzm module.


Indeed very possible, but can a 05-devel.xzm from a different release be used without making an invalid kernel for 4.0?? The 5.16.11 kernel I made for Porteus 5.0 didn't help with the Porteus 4.0 problems on the new notebook when I added it to the iso.
Ed_P
Kernel builder script -- simple version
Post#48 by beny » 28 Feb 2022, 22:58
beny
Kernel builder script -- simple version
Post#49 by beny » 01 Mar 2022, 00:10
beny
- Ed_P
- Contributor
- Posts: 8967
- Joined: 06 Feb 2013, 22:12
- Distribution: Cinnamon 5.01 ISO
- Location: Western NY, USA
Kernel builder script -- simple version
Post#50 by Ed_P » 01 Mar 2022, 05:21
Ed_P
Kernel builder script -- simple version
Post#51 by M. Eerie » 02 Mar 2022, 17:30
However I can't success in Nemesis.
What is the difference between the two development modules?
The last one I built (5.15.13), I did it with Nemesis, I'd swear.

https://forum.porteus.org/viewtopic.php?p=94310#p94310
https://forum.porteus.org/viewtopic.php?p=102066#p102066
https://forum.porteus.org/viewtopic.php?p=102306#p102306
https://forum.porteus.org/viewtopic.php?p=72741#p72741
M. Eerie
- Ed_P
- Contributor
- Posts: 8967
- Joined: 06 Feb 2013, 22:12
- Distribution: Cinnamon 5.01 ISO
- Location: Western NY, USA
Kernel builder script -- simple version
Post#52 by Ed_P » 02 Mar 2022, 18:48

Ed_P
- Ed_P
- Contributor
- Posts: 8967
- Joined: 06 Feb 2013, 22:12
- Distribution: Cinnamon 5.01 ISO
- Location: Western NY, USA
Kernel builder script -- simple version
Post#53 by Ed_P » 14 Mar 2022, 22:38
Code: Select all
guest@porteus:/mnt/nvme0n1p7/porteus5.0/rc3ISOModules/kernelBuilder$ ./kernel.sh 5.16.14
05-devel.xzm needs to be active.
guest@porteus:/mnt/nvme0n1p7/porteus5.0/rc3ISOModules/kernelBuilder$ ./kernel.sh 5.16.14
Please enter root's password below:
Password:
Initial setup...
Downloading kernel source code...
Extracting kernel source code...
Copying .config file...
Downloading AUFS...
Patching AUFS...
Mon Mar 14 18:27:33 EDT 2022
Building kernel (this may take up to an hour)...
Fail to build kernel.
guest@porteus:/mnt/nvme0n1p7/porteus5.0/rc3ISOModules/kernelBuilder$

Added in 27 minutes 36 seconds:
Interesting.
Code: Select all
guest@porteus:/mnt/nvme0n1p7/porteus5.0/rc3ISOModules/kernelBuilder$ ./kernel.sh 5.16.14
Please enter root's password below:
Password:
Initial setup...
Downloading kernel source code...
Extracting kernel source code...
Copying .config file...
Downloading AUFS...
Patching AUFS...
Mon Mar 14 19:01:34 EDT 2022
Building kernel (this may take up to an hour)...
as: error while loading shared libraries: libbfd-2.36.1-slack15.so: cannot open shared object file: No such file or directory
make[1]: *** [scripts/Makefile.host:95: scripts/basic/fixdep] Error 1
make: *** [Makefile:555: scripts_basic] Error 2
Fail to build kernel.
guest@porteus:/mnt/nvme0n1p7/porteus5.0/rc3ISOModules/kernelBuilder$ uname -a
Linux porteus.example.net 5.16.14-porteus #1 SMP PREEMPT Fri Mar 11 22:12:13 UTC 2022 x86_64 11th Gen Intel(R) Core(TM) i5-1135G7 @ 2.40GHz GenuineIntel GNU/Linux
guest@porteus:/mnt/nvme0n1p7/porteus5.0/rc3ISOModules/kernelBuilder$
Added in 6 hours 11 minutes 54 seconds:
Same error with 5.16.11.

Code: Select all
guest@porteus:/mnt/nvme0n1p7/porteus5.0/rc3ISOModules/kernelBuilder$ ./kernel.sh 5.16.14
Please enter root's password below:
Password:
Initial setup...
Downloading kernel source code...
Extracting kernel source code...
Copying .config file...
Downloading AUFS...
Patching AUFS...
Tue Mar 15 00:50:34 EDT 2022
Building kernel (this may take up to an hour)...
as: error while loading shared libraries: libbfd-2.36.1-slack15.so: cannot open shared object file: No such file or directory
make[1]: *** [scripts/Makefile.host:95: scripts/basic/fixdep] Error 1
make: *** [Makefile:555: scripts_basic] Error 2
Fail to build kernel.
guest@porteus:/mnt/nvme0n1p7/porteus5.0/rc3ISOModules/kernelBuilder$ uname -a
Linux porteus.example.net 5.16.11-porteus #1 SMP PREEMPT Thu Feb 24 15:07:26 EST 2022 x86_64 11th Gen Intel(R) Core(TM) i5-1135G7 @ 2.40GHz GenuineIntel GNU/Linux
guest@porteus:/mnt/nvme0n1p7/porteus5.0/rc3ISOModules/kernelBuilder$
So, where do I find libbfd-2.36.1-slack15.so and what folder do I put it in?

Added in 1 hour 1 second:
Apparently it is in the <>.

Added in 27 minutes 32 seconds:
Code: Select all
guest@porteus:/mnt/nvme0n1p7/porteus5.0/rc3ISOModules/kernelBuilder$ ./kernel.sh 5.16.14
05-devel.xzm needs to be active.
guest@porteus:/mnt/nvme0n1p7/porteus5.0/rc3ISOModules/kernelBuilder$ ./kernel.sh 5.16.14
Please enter root's password below:
Password:
Initial setup...
Downloading kernel source code...
Extracting kernel source code...
Copying .config file...
Downloading AUFS...
Patching AUFS...
Wed Mar 16 02:02:16 EDT 2022
Building kernel (this may take up to an hour)...
Creating symlinks...
Downloading firmware...
Extracting firmware...
Adding firmware...
./kernel.sh: line 122: [: 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.14.xzm -> should go into porteus/base
guest@porteus:/mnt/nvme0n1p7/porteus5.0/rc3ISOModules/kernelBuilder$ date
Wed Mar 16 02:33:44 EDT 2022
guest@porteus:/mnt/nvme0n1p7/porteus5.0/rc3ISOModules/kernelBuilder$
Ed_P
beny
- Ed_P
- Contributor
- Posts: 8967
- Joined: 06 Feb 2013, 22:12
- Distribution: Cinnamon 5.01 ISO
- Location: Western NY, USA
Kernel builder script -- simple version
Post#55 by Ed_P » 16 Mar 2022, 16:18

It's also interesting to note that the last run was with this change to the script and it produced no output.

Code: Select all
#make olddefconfig > /dev/null 2>&1 && make -j$cpuThreads > /dev/null 2>&1 || { echo "Fail to build kernel."; exit 1; }
make olddefconfig > /dev/null && make -j$cpuThreads > /dev/null || { echo "Fail to build kernel."; exit 1; }
Ed_P
beny
- Ed_P
- Contributor
- Posts: 8967
- Joined: 06 Feb 2013, 22:12
- Distribution: Cinnamon 5.01 ISO
- Location: Western NY, USA
Kernel builder script -- simple version
Post#57 by Ed_P » 17 Mar 2022, 16:50
Added in 4 hours 48 minutes 50 seconds:
5.16.15 Mouse works on the Lenovo notebook, without the pci=nocrs parameter but no wifi network support.
Works fine so far on the Dell.
Added in 1 hour 42 minutes 51 seconds:
5.16.15 Works with TightVNC's vncviewer of remote desktops.

A new base for me.
Added in 31 minutes 3 seconds:
Need to try it with Porteus 4.0 and on my old Dell notebook.
Added in 5 hours 34 minutes 28 seconds:
It's doesn't help booting Porteus 4.0 on the new Dell.
Ed_P
Kernel builder script -- simple version
Post#58 by beny » 18 Mar 2022, 16:41
beny
Ed_P
Kernel builder script -- simple version
Post#60 by beny » 18 Mar 2022, 17:36
#
# NVME Support
#
CONFIG_NVME_CORE=y
CONFIG_BLK_DEV_NVME=m
CONFIG_NVME_MULTIPATH=y
CONFIG_NVME_FABRICS=y
CONFIG_NVME_RDMA=m
CONFIG_NVME_FC=y
CONFIG_NVME_TCP=y
# CONFIG_NVME_TARGET is not set
# end of NVME Support
this is in my config for the 5.10.106 so i think yes....
beny