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

Porteus Kernel Builder

Postby neko » 15 Jan 2017, 10:41

[]https://i.imgsafe.org/b2b1794e04.png[]
Image
setting window

mkKernel-17.07.16-noarch-2.xzm (3.4 M)
http://www.mediafire.com/file/yxj8zcyv4 ... arch-2.xzm
md5sum: 53ed9e64872ff36362935632208880fe mkKernel-17.07.16-noarch-2.xzm

The functions of Porteus Kernel Builder are as followed.
1. detect latest kernel version.
2. download kernel source (compressed).
3. download and create the AUF patch that corresponds to the kernel version.
4. get prototype config.
5. expand kernel source and adapt AUF patch.
6. build kernel.
7. replace kernel of ISO with new one.

[How to use]
step 1. prepare compile environment.
get 05-devel.xzm for your architecture from Porteus release site.
activate "05-devel.xzm".
This prepare is needed for the following actions only.
1)getting AUF patch
2)adapting AUF patch
3)building kernel

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 directory" of "setting window"

step 3. select kernel version.
select kernel version line in left item of "Kernel Version" of "setting window".
right item will display the latest version of the line.
if older version is needed, select kernel version in right item.

step 4. (option) "Build kernel" circle
"32Bit/64Bit" item: (first, display running PC architecture)
---->select compiling architecture.

"download" item: (this action needs 05-devel.xzm for getting AUF patch)
---->if check it on, download kernel source and get AUF patch and prototype config.

"expand & patch" item: (this action needs 05-devel.xzm for adapting AUF patch)
---->if check it on, expand commpressed kernel source, adapt AUF patch, and set config.

"own patch" item:
---->if check it on, "own patch" is adapted.
Note: Current "own patch" is one that updates driver e1000e to 3.3.5.3.
"How to update driver e1000e to 3.3.5.3"
please refer to Porteus Kernel Builder

"compile" item: (this action needs 05-devel.xzm for building kernel)
---->if check it on, build kernel and set vmlinuz & lib.

"cleanup" item:
---->if check it on, cleanup expanded directory.

Note:
Each item can be set independently.
(example)
1st run: set "download" item and "expand & patch"
modfy config depending on own needs.
2nd run: set "compile" item.
check result.
3rd run: set "cleanup" item.

step 5. (option) "ISO whose kernel will be update" circle
select ISO whose kernel will be update.
"keep org" item: (default "check on")
---->if check it off, Target ISO will be treated as "APorteus" ISO.

--------------------------------------------------------------
[ Firmware ]
firmware.tgz (38 M)
http://www.mediafire.com/file/1qqz6axal ... rmware.tgz
md5sum: 0063433401fc0f9415625d895854b6f1 firmware.tgz

This is the "portesu v3.2.2 firmware 4.10.8" with additional following firmwares.
Code: Select all
=========
htc_7010.fw
htc_9271.fw

intel/ibt-hw-37.8.10-fw-1.10.3.11.e.bseq

iwlwifi-7265-10.ucode
iwlwifi-7265D-29.ucode

rt3070.bin
rt3071.bin
rt3090.bin
rt3290.bin
=========

--------------------------------------------------------------
[Updated kernel Example]
These samples are already both 32Bit and 64Bit compiled "TAR.XZ"s.

v4.13-rc1.tar.xz (41 M)
http://www.mediafire.com/file/at3666s8f ... rc1.tar.xz
md5sum: c3ea562b16f1e33cb54486a2796381f8 v4.13-rc1.tar.xz

v4.12.3.tar.xz (41 M)
http://www.mediafire.com/file/dm2newt6q ... 2.3.tar.xz
md5sum: cc617d19b7cb6f7285f05c902f9c6e53 v4.12.3.tar.xz

v4.11.12.tar.xz (40 M): EOL
http://www.mediafire.com/file/h2sprx9ma ... .12.tar.xz
md5sum: 6cfc2f0a555c31e94aaeae516701b111 v4.11.12.tar.xz

v4.10.17.tar.xz (40 M)
http://www.mediafire.com/file/cjm7f3p0q ... .17.tar.xz
md5sum: ad48fb8b7425b72464b66daacd9f674f v4.10.17.tar.xz

v4.9.38.tar.xz (39 M)
http://www.mediafire.com/file/0pgg72pwb ... .38.tar.xz
md5sum: 513afdcf508a66dd1bf26cd803dd31ec v4.9.38.tar.xz

v4.4.78.tar.xz (37 M)
http://www.mediafire.com/file/hplgy1lrg ... .78.tar.xz
md5sum: 4cad4d2e516c85917820015945bb5131 v4.4.78.tar.xz

v4.1.42.tar.xz (35 M)
http://www.mediafire.com/file/xjn2ok251 ... .42.tar.xz
md5sum: 435bbf8135ef2dd0de24440bc8965fae v4.1.42.tar.xz

v3.18.61.tar.xz (35 M)
http://www.mediafire.com/file/3zlhf1ja3 ... .61.tar.xz
md5sum: 19a3c1ff3e4339b406b8a3124d363686 v3.18.61.tar.xz

=== example of updating ISO ===
VERSION: 4.9.3
Code: Select all
% su
# cd your_Kernel_Builder_directory
# xz -dc Download_directory/v4.9.3.tar.xz | tar -x

"GUI menu" ---> "Porteus Kernel Builder"
"setting window"
"Kernel Builder directory" --->your_Kernel_Builder_directory
"Kernel Version" --->4.9.3
"ISO whose kernel will be update" ---->porteus-nemesis-v3.5-kde-x86_64.iso (or Porteus-XFCE-v3.2.2-i586.iso etc.,)

result:
your_Kernel_Builder_directory/UP.porteus-nemesis-v3.5-kde-x86_64.iso (or UP.Porteus-XFCE-v3.2.2-i586.iso etc.,)


[crippled_sources module Example]

crippled_sources-4.13-rc1-32bit.xzm (19 M)
http://www.mediafire.com/file/k7xkdor15 ... -32bit.xzm
md5sum: e8b8e303379a4a05b21fda11fa517c0b crippled_sources-4.13-rc1-32bit.xzm

crippled_sources-4.13-rc1-64bit.xzm (19 M)
http://www.mediafire.com/file/fyqcfyo2y ... -64bit.xzm
md5sum: 18b612f8bc2e5024f42e8d2710dc0534 crippled_sources-4.13-rc1-64bit.xzm

crippled_sources-4.12.3-32bit.xzm (19 M)
http://www.mediafire.com/file/bjlxr2f07 ... -32bit.xzm
md5sum: 4ce157ad007bd7d542e812a3b4f966f5 crippled_sources-4.12.3-32bit.xzm

crippled_sources-4.12.3-64bit.xzm (19 M)
http://www.mediafire.com/file/1p7qpp9a9 ... -64bit.xzm
md5sum: 2b7c0c1ea91d8346aee79ce276b36005 crippled_sources-4.12.3-64bit.xzm

crippled_sources-4.11.12-32bit.xzm (18 M)
http://www.mediafire.com/file/jmnozv5qt ... -32bit.xzm
md5sum: 1c4e39fd27242da9dd52acba8dc61b15 crippled_sources-4.11.12-32bit.xzm

crippled_sources-4.11.12-64bit.xzm (19 M)
http://www.mediafire.com/file/ws1yty64j ... -64bit.xzm
md5sum: 64e1de0a17aa2cd2e3ed0fb8310a1eeb crippled_sources-4.11.12-64bit.xzm

crippled_sources-4.9.38-32bit.xzm (18 M)
http://www.mediafire.com/file/q0ecgvbwb ... -32bit.xzm
md5sum: 7d9cdf87affbc8d8671830d83b94ad9b crippled_sources-4.9.38-32bit.xzm

crippled_sources-4.9.38-64bit.xzm (18 M)
http://www.mediafire.com/file/66g1w53xw ... -64bit.xzm
md5sum: a66839717f9884142c0658aaad41ddbb crippled_sources-4.9.38-64bit.xzm

crippled_sources-4.4.78-32bit.xzm (16 M)
http://www.mediafire.com/file/r4cq180rp ... -32bit.xzm
md5sum: fabc91d820848471c6127e5bdaab8e4d crippled_sources-4.4.78-32bit.xzm

crippled_sources-4.4.78-64bit.xzm (16 M)
http://www.mediafire.com/file/dd6cwt0w9 ... -64bit.xzm
md5sum: 690b3f1905290e680f2734f072c434ea crippled_sources-4.4.78-64bit.xzm

crippled_sources-4.1.42-32bit.xzm (15 M)
http://www.mediafire.com/file/yxwv3xo10 ... -32bit.xzm
md5sum: e6135743678788aec34d7ab7e689283f crippled_sources-4.1.42-32bit.xzm

crippled_sources-4.1.42-64bit.xzm (15 M)
http://www.mediafire.com/file/7rv7ddbdn ... -64bit.xzm
md5sum: 267645ad21864eddf316eacd7f9911e2 crippled_sources-4.1.42-64bit.xzm

crippled_sources-3.18.61-32bit.xzm (15 M)
http://www.mediafire.com/file/wwu7954w6 ... -32bit.xzm
md5sum: c0aea5d7c8d04b32d464bda9fad50520 crippled_sources-3.18.61-32bit.xzm

crippled_sources-3.18.61-64bit.xzm (15 M)
http://www.mediafire.com/file/301zl4clt ... -64bit.xzm
md5sum: 451b3a30729841bdde0d74e16e1da5e8 crippled_sources-3.18.61-64bit.xzm

-----------------------------------
[locale]
A locale interface was introduced.
There is only JA locale.
On need, please build your locale by yourself.
1. Edit your locale by referring JA locale source.
JA locale source: /usr/local/share/mkKernel/src/mkKernel.po
2. Converte source to binary with msgfmt command.
Code: Select all
# msgfmt -o mkKernel.mo mkKernel.po

3. Set mkKernel.mo in your locale of /usr/share/locale.
example: de
Code: Select all
# cp mkKernel.mo /usr/share/locale/de/LC_MESSAGES/


-----------------------------------
[archive]
mkKernel-17.07.10-noarch-1.xzm http://www.mediafire.com/file/l4ho0758e ... arch-1.xzm

-----------------------------------
[updated on 2017.01.25] Porteus Kernel Builder was updated to 17.01.20.
[updated on 2017.01.30] Porteus Kernel Builder was updated to 17.01.30.
[updated on 2017.02.15] Porteus Kernel Builder was updated to 17.02.15.
[updated on 2017.02.20] Porteus Kernel Builder was updated to 17.02.20.
[updated on 2017.02.28] Porteus Kernel Builder was updated to 17.02.28.
[updated on 2017.03.14] Porteus Kernel Builder was updated to 17.03.08.
[updated on 2017.05.21] Porteus Kernel Builder was updated to 17.05.21.
[updated on 2017.06.12] Porteus Kernel Builder was updated to 17.06.12.
[updated on 2017.06.18] Porteus Kernel Builder was updated to 17.06.18.
[updated on 2017.06.26] Porteus Kernel Builder was updated to 17.06.25.
[updated on 2017.07.10] Porteus Kernel Builder was updated to 17.07.10.
[updated on 2017.07.16] Porteus Kernel Builder was updated to 17.07.16.

Thanks.
Last edited by neko on 21 Jul 2017, 14:05, edited 101 times in total.
neko
Contributor
Contributor
 
Posts: 845
Joined: 09 Feb 2013, 10:55
Location: japan
Distribution: APorteus-FVWM-ja-x86_64.iso

Re: Porteus Kernel Builder

Postby Bogomips » 15 Jan 2017, 11:46

Looks nice. :) Will try when my external disk made fit for linux in order to be able to hold all kernel sources.
Linux porteus 4.4.0-porteus #3 SMP PREEMPT Sat Jan 23 07:01:55 UTC 2016 i686 AMD Sempron(tm) 140 Processor AuthenticAMD GNU/Linux
NVIDIA Corporation C61 [GeForce 6150SE nForce 430] (rev a2) MemTotal: 901760 kB MemFree: 66752 kB
Bogomips
Full of knowledge
Full of knowledge
 
Posts: 2432
Joined: 25 Jun 2014, 16:21
Location: London
Distribution: 3.2.2 Cinnamon & KDE5

Re: Porteus Kernel Builder

Postby neko » 15 Jan 2017, 14:01

@Bogomips
Thank you for your interest.
I expect that this tool will be useful for you.

Thanks.
neko
Contributor
Contributor
 
Posts: 845
Joined: 09 Feb 2013, 10:55
Location: japan
Distribution: APorteus-FVWM-ja-x86_64.iso

Re: Porteus Kernel Builder

Postby neko » 16 Jan 2017, 05:27

New v4.4.43 "ISO update Example" was offered.
Please refer to Porteus Kernel Builder

The kernel of Porteus ISO can be update to version 4.4.43 easily without compiling.

Thanks.
neko
Contributor
Contributor
 
Posts: 845
Joined: 09 Feb 2013, 10:55
Location: japan
Distribution: APorteus-FVWM-ja-x86_64.iso

Re: Porteus Kernel Builder

Postby Jack » 16 Jan 2017, 07:00

Where do you fine these at or download them at?
This prepare is needed for the following actions only.
1)getting AUF patch
2)adapting AUF patch
3)building kernel
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.
Jack
Contributor
Contributor
 
Posts: 1063
Joined: 09 Aug 2013, 15:25
Location: Marysville, OHIO USA
Distribution: Porteus 3.2.rc5 Mate 64 bit

Re: Porteus Kernel Builder

Postby neko » 16 Jan 2017, 08:43

@Jack
Excuse me that I cannot understand your question exactly.
So, next answer might not match to the intend of your question.

1)getting AUF patch
activate mkKernel-17.01.01-noarch-1.xzm.
make the directory "your_Kernel_Builder_directory/vVVV"
change directory to "your_Kernel_Builder_directory/vVVV"
execute "/usr/local/share/mkKernel/lib/vLLL/get.aufs.patch"
"your_Kernel_Builder_directory/vVVV/aufs.patch" is gotten.

VVV:kernel version number. example 4.9.3
LLL:kernel "version line" number. example 4.9

shell script get.aufs.patch uses "git" comand.
"git" command is included in "05-devel.xzm".

2)adapting AUF patch
make the directory "your_Kernel_Builder_directory/vVVV/AAA"
expand kernel source in "your_Kernel_Builder_directory/vVVV/AAA"
change directory to "your_Kernel_Builder_directory/vVVV/ARCH/linux-VVV"
execute "patch" command with argument "-p1 < ../../aufs.patch"

AAA: compiling architecture. 32 or 64.

"patch" command is included in "05-devel.xzm".

3)building kernel
change directory to "your_Kernel_Builder_directory/vVVV/ARCH/linux-VVV"
copy "/usr/local/share/mkKernel/lib/vLLL/AAAbit.config here.
execute "make" command 4 times with each argument.

"make" command is included in "05-devel.xzm".


For more detail, please refer shell scripts;
/usr/local/sbin/guimkKernel
/usr/local/share/mkKernel/inc/*.inc


Thanks.
Last edited by neko on 18 Jan 2017, 12:30, edited 1 time in total.
neko
Contributor
Contributor
 
Posts: 845
Joined: 09 Feb 2013, 10:55
Location: japan
Distribution: APorteus-FVWM-ja-x86_64.iso

Re: Porteus Kernel Builder

Postby neko » 16 Jan 2017, 10:39

New "ISO update Example" v4.9.4 was offered.
Please refer to Porteus Kernel Builder

The kernel of Porteus ISO can be update to version 4.9.4 easily without compiling.

Thanks.
neko
Contributor
Contributor
 
Posts: 845
Joined: 09 Feb 2013, 10:55
Location: japan
Distribution: APorteus-FVWM-ja-x86_64.iso

Re: Porteus Kernel Builder

Postby neko » 19 Jan 2017, 15:03

New "ISO update Example" v4.1.38 & v3.18.47 were offered.
Please refer to Porteus Kernel Builder

The kernel of Porteus ISO can be update to version 4.1.38/3.18.47 easily without compiling.

Thanks.
neko
Contributor
Contributor
 
Posts: 845
Joined: 09 Feb 2013, 10:55
Location: japan
Distribution: APorteus-FVWM-ja-x86_64.iso

Re: Porteus Kernel Builder

Postby neko » 21 Jan 2017, 17:00

New "ISO update Example" v4.9.5 was offered.
Please refer to Porteus Kernel Builder

The kernel of Porteus ISO can be update to version 4.9.5 easily without compiling.

Thanks.
neko
Contributor
Contributor
 
Posts: 845
Joined: 09 Feb 2013, 10:55
Location: japan
Distribution: APorteus-FVWM-ja-x86_64.iso

Re: Porteus Kernel Builder

Postby neko » 22 Jan 2017, 03:26

New "ISO update Example" v4.4.44 was offered.
Please refer to Porteus Kernel Builder

The kernel of Porteus ISO can be update to version 4.4.44 easily without compiling.

Thanks.
neko
Contributor
Contributor
 
Posts: 845
Joined: 09 Feb 2013, 10:55
Location: japan
Distribution: APorteus-FVWM-ja-x86_64.iso

Re: Porteus Kernel Builder

Postby neko » 23 Jan 2017, 21:45

New "ISO update Example" v4.9.5 that was adapted by additional patch was offered.
Please refer to Porteus Kernel Builder

The kernel of Porteus ISO can be update to version 4.9.5 easily without compiling.


Note:
About additional patch,
please refer to Invalid argument
@biotec, thank you very much for your information.


Thanks.
neko
Contributor
Contributor
 
Posts: 845
Joined: 09 Feb 2013, 10:55
Location: japan
Distribution: APorteus-FVWM-ja-x86_64.iso

Re: Porteus Kernel Builder

Postby Ed_P » 24 Jan 2017, 00:38

Hi neko. Do you have this file available for Porteus 3.2.2 Cinnamon 64-bit?

http://forum.porteus.org/viewtopic.php?f=140&t=6548&start=30#p52463 wrote:so most likely all that would be needed would be the replacement of vmlinuz.

And if so can it be used as a .xzm module or will I have to reference it outside of the ISO when booting. I do all my booting as ISOs, no installs, which is why I like Porteus. :)

Is your APorteus (Arch Porteus) nucleus the same as the Slackware one Porteus 3.2.2 uses?
Ed
User avatar
Ed_P
Contributor
Contributor
 
Posts: 2944
Joined: 06 Feb 2013, 23:12
Location: Western NY, USA
Distribution: Cinnamon 3.2.2 64-bit ISO

Re: Porteus Kernel Builder

Postby Bogomips » 24 Jan 2017, 01:29

Problem is that if update to 4.9.5, all drivers for 4.9.0 have to be recompiled or not? :unknown: If that be the case all that's needed is to use your tool to generate updated 4.9.0 iso.
Linux porteus 4.4.0-porteus #3 SMP PREEMPT Sat Jan 23 07:01:55 UTC 2016 i686 AMD Sempron(tm) 140 Processor AuthenticAMD GNU/Linux
NVIDIA Corporation C61 [GeForce 6150SE nForce 430] (rev a2) MemTotal: 901760 kB MemFree: 66752 kB
Bogomips
Full of knowledge
Full of knowledge
 
Posts: 2432
Joined: 25 Jun 2014, 16:21
Location: London
Distribution: 3.2.2 Cinnamon & KDE5

Re: Porteus Kernel Builder

Postby neko » 24 Jan 2017, 04:25

@Ed_P
1."Do you have this file available for Porteus 3.2.2 Cinnamon 64-bit?"
Yes, I have. And you can get it.

(1) Download v4.9.5-2.tar.xz
v4.9.5-2.tar.xz (39 M)
http://www.mediafire.com/file/ehvz833ef ... 5-2.tar.xz
md5sum: ddd1e38da063a3a72698764232a5a430 v4.9.5-2.tar.xz

(2) Get vmlinuz from v4.9.5-2.tar.xz
Code: Select all
% su
# ls
v4.9.5-2.tar.xz
# xz -dc v4.9.5-2.tar.xz | tar -x
# ls v4.9.5/*
v4.9.5/a.patch  v4.9.5/aufs.patch

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

v4.9.5/64:
64bit.config  lib  vmlinuz
# mv v4.9.5/64/vmlinuz ToYourAnyDirectory/



2. How to adapt the new patch to Porteus ISO.
(1) Prepare "Porteus Kernel Builder" and v4.9.5-2.tar.xz.
Please refer to Porteus Kernel Builder

(2) Expand v4.9.5-2.tar.xz in Your "Kernel Builder Directory"
Code: Select all
% su
# cd KernelBuilderDirectory
# xz -dc DownloadDirectory/v4.9.5-2.tar.xz | tar -x


(3) GUI menu ----> "Porteus Kernel Builder"
[setting window]
Select KernelBuilderDirectory in "Kernel Builder directory" of "setting window".
Select kernel version line 4.9.5 in left item of "Kernel Version" of "setting window".
Select "Your Porteus 3.2.2 Cinnamon 64-bit" ISO in "ISO whose kernel will be update" circul.
"keep org" item is (default) "check on".
Push "OK".


3. How to adapt the new patch to APorteus ISO.
(1) Prepare "Porteus Kernel Builder" and v4.9.5-2.tar.xz.
Please refer to Porteus Kernel Builder
If you will this on APorteus running environment, "Porteus Kernel Builder" might be already added on.

(2) Expand v4.9.5-2.tar.xz in Your "Kernel Builder Directory"
Code: Select all
% su
# cd KernelBuilderDirectory
# xz -dc DownloadDirectory/v4.9.5-2.tar.xz | tar -x


(3) GUI menu ----> "Porteus Kernel Builder"
[setting window]
Select KernelBuilderDirectory in "Kernel Builder directory" of "setting window".
Select kernel version line 4.9.5 in left item of "Kernel Version" of "setting window".
Select "Your APorteus" ISO in "ISO whose kernel will be update" circul.
"keep org" item is "check off".
Push "OK".


Thanks.
neko
Contributor
Contributor
 
Posts: 845
Joined: 09 Feb 2013, 10:55
Location: japan
Distribution: APorteus-FVWM-ja-x86_64.iso

Re: Porteus Kernel Builder

Postby Ed_P » 24 Jan 2017, 23:33

neko wrote:@Ed_P
1."Do you have this file available for Porteus 3.2.2 Cinnamon 64-bit?"
Yes, I have. And you can get it.

(1) Download v4.9.5-2.tar.xz
v4.9.5-2.tar.xz (39 M)
http://www.mediafire.com/file/ehvz833ef ... 5-2.tar.xz
md5sum: ddd1e38da063a3a72698764232a5a430 v4.9.5-2.tar.xz

(2) Get vmlinuz from v4.9.5-2.tar.xz
Code: Select all
% su
# ls
v4.9.5-2.tar.xz
# xz -dc v4.9.5-2.tar.xz | tar -x
# ls v4.9.5/*
v4.9.5/a.patch  v4.9.5/aufs.patch

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

v4.9.5/64:
64bit.config  lib  vmlinuz
# mv v4.9.5/64/vmlinuz ToYourAnyDirectory/

Thank you neko. I did these steps, and modified my boot parameters to use the new vmlinux but the boot fails with a blank screen.

I then notice that there is a 2. step which I did not do.
2. How to adapt the new patch to Porteus ISO.

And which is more than I can do.

(3) GUI menu ----> "Porteus Kernel Builder"

The menu image you posted is actually labeled "APorteus Kernel Builder". :)
Ed
User avatar
Ed_P
Contributor
Contributor
 
Posts: 2944
Joined: 06 Feb 2013, 23:12
Location: Western NY, USA
Distribution: Cinnamon 3.2.2 64-bit ISO

Next

Return to Community effort



Who is online

Users browsing this forum: No registered users and 3 guests