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...
neko
DEV Team
DEV Team
Posts: 999
Joined: 09 Feb 2013, 09:55
Distribution: APorteus-FVWM-ja-x86_64.iso
Location: japan

Re: Porteus Kernel Builder

Post#136 by neko » 26 Jun 2017, 06:38

1. "Porteus Kernel Builder" was updated to mkKernel-17.06.25-noarch-1.xzm
Please refer to http://forum.porteus.org/viewtopic.php? ... 779#p52232

Two functions, that are creating "crippled_sources" and "000-kernel" modules, were updated.



2. New "updated kernel Example" v4.11.7 and v4.9.34 were offered.
Please refer to http://forum.porteus.org/viewtopic.php? ... 779#p52232

The kernel of Porteus ISO can be update to version v4.11.7/v4.9.34 without compiling.


3. The v4.11.7/v4.9.34 version "crippled_sources" module were offered.
Please refer to http://forum.porteus.org/viewtopic.php? ... 779#p52232

The v4.11.7/v4.9.34 version "crippled_sources" module can be gotten without compiling.


--------------------------------------------------------------------------------
@fulalas
(1) "crippled_sources" module size was reduced by your script.
This module can be gotten by yourself compiling kernel or by sample module.
For example, by downloading v4.11.7.tar.xz and crippled_sources-4.11.7-64bit.xzm,
you can update kernel and crippled_sources to 64Bit version 4.11.7.

"crippled_sources" module is not included in sample vN.NN.N.tar.xz.
32Bit and 64Bit "crippled_sources" modules are too big
to be included in sample vN.NN.N.tar.xz for none-need users.

(2) pending items
"copy to install directory":
I have to consider for user who doesn't use install directory.

"Build a VirtualBox based on the built kernel":
I think that it beyonds the category of "Kernel Builder" and is in the category of Package management.


--------------------------------------------------------------------------------
@beny
I too would like to study "Dynamic Kernel Module Support (DKMS)" but my power is poor.
I am sorry.


--------------------------------------------------------------------------------
@brokenman
Thank you for your suggestion.
(1) "An automatic kernel updater"
I am waiting for your output.
I have to study more thing from you.

(2) "linuxrc"
"linuxrc" that is used in APorteus,
shell script has been rewritten
and executable entities has been replaced with 32Bit Arch ones.
It can be used for Porteus 3.2, for Nemesis, and for APorteus, depending on spec file.

(3) "module update for the case of the Porteus install"
If I will offer something concerning it, I have to research it.

(4) "deepin"
It has been included in "APorteus ISO Builder" on hidden mode.
I hesitate to progress more for the "back door" suspicion (from Evan information).


--------------------------------------------------------------------------------
@Evan
Thank you for your warning.
Now I hesitate to use DEEPIN.


Thanks.

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

Re: Porteus Kernel Builder

Post#137 by neko » 26 Jun 2017, 11:56

=== Upload mistake version ===
Please confirm md5sum of mkKernel-17.06.25-noarch-1.xzm

NG: cf430fbdf6c063aa4c8f09ed3fe90f75
OK: d0719444da97995733972ae873a36937

OK URL:
http://www.mediafire.com/file/w180gy3pf ... arch-1.xzm

I am sorry.

User avatar
Ed_P
Contributor
Contributor
Posts: 3427
Joined: 06 Feb 2013, 22:12
Distribution: Cinnamon 3.2.2 64-bit ISO
Location: Western NY, USA

Re: Porteus Kernel Builder

Post#138 by Ed_P » 26 Jun 2017, 14:34

neko wrote:@Evan
Thank you for your warning.
Now I hesitate to use DEEPIN.
neko that is an unfounded speculation rather than a proven fact. Do not let it cloud your testing.
Ed

Evan
Warlord
Warlord
Posts: 519
Joined: 11 Apr 2016, 09:00
Distribution: Anything Cinnamon
Location: London

Re: Porteus Kernel Builder

Post#139 by Evan » 26 Jun 2017, 22:17

Ed_P wrote:neko that is an unfounded speculation rather than a proven fact. Do not let it cloud your testing.
So the unfounded speculation that SystemD has a backdoor because it's approved by the NSA is to be avoided and people get their panties in a twist all over it but if people speculate that Chinese software can no longer be trusted because of the new law that states a back door needs to be added then it's just speculation that needs to be a proven fact as somehow the Chinese Government is more trustworthy for making it a public law rather than secret exploiting by the NSA?

I despair at the dumb-ass , back to front and hamfisted logic and reasoning on here at times.

.
Last edited by Evan on 26 Jun 2017, 23:45, edited 2 times in total.

User avatar
Ed_P
Contributor
Contributor
Posts: 3427
Joined: 06 Feb 2013, 22:12
Distribution: Cinnamon 3.2.2 64-bit ISO
Location: Western NY, USA

Re: Porteus Kernel Builder

Post#140 by Ed_P » 26 Jun 2017, 23:29

Stop annoying neko.
Ed

Evan
Warlord
Warlord
Posts: 519
Joined: 11 Apr 2016, 09:00
Distribution: Anything Cinnamon
Location: London

Re: Porteus Kernel Builder

Post#141 by Evan » 26 Jun 2017, 23:53

Ed_P wrote:Stop annoying neko.
I was talking to you but you think i'm talking to Neko? Image

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

Re: Porteus Kernel Builder

Post#142 by neko » 27 Jun 2017, 03:14

1. New "updated kernel Example" v4.4.74 and v3.18.58 were offered.
Please refer to http://forum.porteus.org/viewtopic.php? ... 779#p52232

The kernel of Porteus ISO can be update to version v4.4.74/v3.18.58 without compiling.


2. The v4.4.74 & v3.18.58 version "crippled_sources" module were offered.
Please refer to http://forum.porteus.org/viewtopic.php? ... 779#p52232

The v4.4.74/v3.18.58 version "crippled_sources" module can be gotten without compiling.


Thanks.



--------------------------------------------------------------------------------
@Ed_P
Thank you for your opinion.

I think that any field has something risk.
And almost risks aren't known which its risk is real or not.

A some package will harm to system under a some case.
If it has a very interest function for somebody,
it is not a problem for him who understands its risk to use it.
But using it is a problem for him who doesn't know its suspected risky at all.

On DEEPIN (and WPS Office), I have hidden it. (didn't delete)
It can be used with a little effort ("how to" is easy and opened.)
This effort will make users aware of the problem.
The latter can used it with the aware.
Of course, the former can also use it.

Thanks.


PS.
I am not native English speaker.
And I have a poor English skill only. (using Google translator)
I am afraid that my real thinking is accepted by you or not.

It is difficult for me to discuss with English.

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

Re: Porteus Kernel Builder

Post#143 by neko » 30 Jun 2017, 11:14

New "updated kernel Example" v4.11.8, v4.9.35, v4.4.75, v4.1.42 and v3.18.59 were offered.
Please refer to http://forum.porteus.org/viewtopic.php? ... 779#p52232

The kernel of Porteus ISO can be update to version v4.11.8/v4.9.35/v4.4.75/v4.1.42/v3.18.59 without compiling.
And the v4.11.8/v4.9.35/v4.4.75/v4.1.42/v3.18.59 version "crippled_sources" module can be gotten without compiling.


Thanks.

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

Re: Porteus Kernel Builder

Post#144 by neko » 03 Jul 2017, 15:17

1. New "updated kernel Example" v4.12 was offered.
Please refer to http://forum.porteus.org/viewtopic.php? ... 779#p52232

The kernel of Porteus ISO can be update to version v4.12 without compiling.
And the v4.12 version "crippled_sources" module can be gotten without compiling.

WARNING
Compiling "kernel v4.12 + AUF-patch linux-4.x-rcN" was fault.
To avoid this compile error, "drivers/block/loop.c" was modified.
Therefore the result is not assured.


2. "Porteus Kernel Builder" was updated to mkKernel-17.07.03-noarch-1.xzm
Please refer to http://forum.porteus.org/viewtopic.php? ... 779#p52232

New kernel version line 4.12 was added.
AUFS patch for 4.12 (linux-4.x-rcN) is not complete.
The compiling v4.12 is needed an owen patch.


Thanks.


-------------------------------------------------------------
==<Compiling "kernel v4.12 + AUF-patch linux-4.x-rcN">==

Code: Select all

drivers/block/loop.c: In function 'loop_flush':
drivers/block/loop.c:617:9: error: too few arguments to function 'loop_switch'
  return loop_switch(lo, NULL);
         ^~~~~~~~~~~
drivers/block/loop.c:589:12: note: declared here
 static int loop_switch(struct loop_device *lo, struct file *file,
            ^~~~~~~~~~~
drivers/block/loop.c:618:1: warning: control reaches end of non-void function [-Wreturn-type]
 }
 ^
make[2]: *** [scripts/Makefile.build:303: drivers/block/loop.o] Error 1
make[1]: *** [scripts/Makefile.build:561: drivers/block] Error 2
make: *** [Makefile:1016: drivers] Error 2
make: *** Waiting for unfinished jobs....
==<original source>==
ORG (drivers/block/loop.c line:606 - 615)....SYNTAX OK

Code: Select all

/*
 * Helper to flush the IOs in loop, but keeping loop thread running
 */
static int loop_flush(struct loop_device *lo)
{
	/* loop not yet configured, no running thread, nothing to flush */
	if (lo->lo_state != Lo_bound)
		return 0;
	return loop_switch(lo, NULL);
}
==<original source + AUF patch>==
AUF ptahc(drivers/block/loop.c line:609 - 618)....SYNTAX ERROR

Code: Select all

/*
 * Helper to flush the IOs in loop, but keeping loop thread running
 */
static int loop_flush(struct loop_device *lo)
{
	/* loop not yet configured, no running thread, nothing to flush */
	if (lo->lo_state != Lo_bound)
		return 0;
	return loop_switch(lo, NULL);
}
==<original source + AUF patch + owen patch>==
OWEN patch(drivers/block/loop.c line:609 - 618)....SYNTAX OK

Code: Select all

/*
 * Helper to flush the IOs in loop, but keeping loop thread running
 */
static int loop_flush(struct loop_device *lo)
{
	/* loop not yet configured, no running thread, nothing to flush */
	if (lo->lo_state != Lo_bound)
		return 0;
	return loop_switch(lo, NULL, NULL);
}
-------------------------------------------------------------

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

Re: Porteus Kernel Builder

Post#145 by fulalas » 04 Jul 2017, 14:14

@neko, I've been using your kernel 4.12.0 module for the last 24hs and it's working smoothly. Nice work! Thanks :)

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

Re: Porteus Kernel Builder

Post#146 by neko » 05 Jul 2017, 02:27

@fulalas
If you will build v4.12 version line kernel with your config, you can refer the modified "loop.c".

[activate mkKernel-17.07.03-noarch-1.xzm]
/usr/local/share/mkKernel/lib/v4.12/org.drivers-block-loop.c
version 4.12 original source file.

/usr/local/share/mkKernel/lib/v4.12/auf.patch.drivers-block-loop.c
It was gotten by patching version 4.12 original source file with 2017.7.3 version linux-4.x-rcN.

/usr/local/share/mkKernel/lib/v4.12/own.patch.drivers-block-loop.c
It was gotten by patching auf.patch.drivers-block-loop.c with the own patch.


Thanks.

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

Re: Porteus Kernel Builder

Post#147 by fulalas » 05 Jul 2017, 03:34

neko wrote:@fulalas
If you will build v4.12 version line kernel with your config, you can refer the modified "loop.c".
Thanks for the tip. Actually I'm using your build :good:

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

Re: Porteus Kernel Builder

Post#148 by neko » 06 Jul 2017, 02:12

New "updated kernel Example" v4.11.9, v4.9.36, v4.4.76 and v3.18.60 were offered.
Please refer to http://forum.porteus.org/viewtopic.php? ... 779#p52232

The kernel of Porteus ISO can be update to version v4.11.9/v4.9.36/v4.4.76/v3.18.60 without compiling.
And the v4.11.9/v4.9.36/v4.4.76/v3.18.60 version "crippled_sources" module can be gotten without compiling.

Note:
Kernel version 4.11 line AUFS patch was updated to "aufs4.11.7+".
This update has been already included in "mkKernel-17.07.03-noarch-1.xzm".


Thanks.

raja
Black ninja
Black ninja
Posts: 67
Joined: 02 May 2017, 09:51
Distribution: v3.2.2-32bit and v3.2.2-64 bit
Location: Chennai,India

Re: Porteus Kernel Builder

Post#149 by raja » 08 Jul 2017, 08:06

Nekosan,

We upgrade Kernel, so that the gadget we have works. I have a Mediatek USB WiFi dongle MT7601u.
Linux mac80211-based driver for Mediatek MT7601U USB bgn WiFi dongle

This is a Linux driver for MediaTek MT7601U USB dongle. It was written from scratch based on the vendor GPL-driver. Unlike the vendor driver this driver uses modern Linux WiFi infrastructure and should work flawlessly with NetworkManager, wicd, wpa_supplicant and such. This driver was merged into mainline and is part of official Linux kernel since version v4.2.If you are using Linux 4.2 or later there is no need to install this driver.
https://github.com/kuba-moo/mt7601u

So, I tested my Laptop with your Kernel update V4.4.75 and v4.12

The dongle works in v4.12. But from Kernel versions 4.7 onwards, many computers including mine don't power off or reboot,but get stuck in "unmounting all". Only solution is manually press 'power' switch. Linux will warn next time that certain device are not unmounted properly and asks you to file check. This has been reported widely, but subsequent Kernels have not rectified.

With, v4.4.75, my PC boots and shutsdown as intended. But, the VMLINUZ offered by you is not having support for Mediatek mt7601 as the config lines are not enabled.

In v4.12 conf file,

ine 2245 CONFIG_WLAN_VENDOR_MEDIATEK=y
line 2246 CONFIG_MT7601U=m

are there, but

In v4.4.75

line no 2087 CONFIG_WL_MEDIATEK is not set.

My dev set up in a running m/c is not perfect. Can you please make a new vmlinuz v4.4.75 by adding support for this dongle, may be,

CONFIG_WL_MEDIATEK=y
CONFIG_MT7601U=m

and make it available for me and others who use this dongle.

I have the Driver and Firmware for this USB dongle.

Thanks in advance. I will roll back my Kernel to v4.4.75.

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

Re: Porteus Kernel Builder

Post#150 by neko » 08 Jul 2017, 14:15

@raja
Thank you very much for your pointing an issue up.
I have re-built version 4.4.76 kernel
with the new config that has "CONFIG_WL_MEDIATEK=y" and "CONFIG_MT7601U=m"
If you have a time, please confirm it.


Thanks.

----------------------------------------------------------
New "updated kernel Example" v4.4.76-1 was offered.
Please refer to http://forum.porteus.org/viewtopic.php? ... 779#p52232

The kernel of Porteus ISO can be update to version v4.4.76-1 without compiling.
And the v4.4.76-1 version "crippled_sources" module can be gotten without compiling.

Note 1:
The source of v4.4.76-1 is same as one of v4.4.76.
"updated kernel Example" kernel config of v4.4.76-1 differs from one of v4.4.76.

% diff v4.4.76/.config v4.4.76-1/.config
32Bit

Code: Select all

2087c2087,2088
< # CONFIG_WL_MEDIATEK is not set
---
> CONFIG_WL_MEDIATEK=y
> CONFIG_MT7601U=m
64Bit

Code: Select all

2086c2086,2087
< # CONFIG_WL_MEDIATEK is not set
---
> CONFIG_WL_MEDIATEK=y
> CONFIG_MT7601U=m
This config modifying is for "Mediatek USB WiFi dongle MT7601u".
About CONFIG_WL_MEDIATEK, please refer to http://cateee.net/lkddb/web-lkddb/WL_MEDIATEK.html
About CONFIG_MT7601U, please refer to http://cateee.net/lkddb/web-lkddb/MT7601U.html


Note 2:
Firmware "mt7601u.bin" can be extracted from ArchLinux package "linux-firmware-20170422.ade8332-noarch-1.xzm"

For Slackware placement module:(/lib/firmware/mt7601u.bin)
http://www.mediafire.com/file/ao4m5chid ... 1u-SLK.xzm

For Archlinux placement module:(/usr/lib/firmware/mt7601u.bin)
http://www.mediafire.com/file/693z7e3ts ... 1u-ARC.xzm
Last edited by neko on 10 Jul 2017, 02:18, edited 1 time in total.

Post Reply