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

Porteus Kernel Builder

Post#1321 by neko » 07 Jul 2021, 22:30

"Kernel Builder" was updated to version 21.07.02. (Please refer to the first article.)

Firmware database was updated.
Please refer to Porteus Kernel Builder (Post by neko #82977)


Note:
APorteus-v21.07.06-x86_64.iso / APorteus-v21.07.06-i486.iso can be used as "Kernel Builder" ISO.
ArchLinux packages manager for Porteus (Post by neko #36689)



Thanks.

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

Porteus Kernel Builder

Post#1322 by beny » 11 Jul 2021, 21:45

hi neko just for the record kernel build gui do not work on porteus rc3,if you click on the program link nothing happen,but you can start it via run the script into the directory:/usr/local/sbin/guimkKernel,no problem for Aporteus. mkKernel-21.07.02-noarch-1.xzm

User avatar
ncmprhnsbl
DEV Team
DEV Team
Posts: 3156
Joined: 20 Mar 2012, 03:42
Distribution: 5.0-current-64bit
Location: australia
Contact:

Porteus Kernel Builder

Post#1323 by ncmprhnsbl » 11 Jul 2021, 23:15

beny wrote:
11 Jul 2021, 21:45
hi neko just for the record kernel build gui do not work on porteus rc3,if you click on the program link nothing happen,but you can start it via run the script into the directory:/usr/local/sbin/guimkKernel,no problem for Aporteus. mkKernel-21.07.02-noarch-1.xzm
a possible easy fix (for Porteus)(other than running it directly as root) is to edit /usr/share/applications/mkKernel.desktop and add psu to the Exec line:

Code: Select all

Exec=psu /usr/local/sbin/guimkKernel
or do

Code: Select all

ln -s /usr/bin/psu /usr/bin/gksu
or more generally:
/usr/local/sbin/guimkKernel

Code: Select all

if [[ "$DISPLAY" ]];
then
	if [[ `whoami` != "root" ]];
	then
		echo $USER > /tmp/.who
		script="$(cd "${0%/*}" 2>/dev/null; echo "$PWD"/"${0##*/}")"
		for SUDO in psu gksu gnsu kdesu ktsuss;
		do
			if [[ ! "`which $SUDO 2>/dev/null`" ]]
			then
				continue
			fi
			case $SUDO in
			kdesu )
				kdesu --noignorebutton -d -u root -c $script $@
				;;
			ktsuss )
				ktsuss "$script $@ && sleep 2"
				;;
			* )
				$SUDO $script $@ &
				;;
			esac
		done
#		local mkKernelMSG_03=`gettext mkKernel "No su gui found"`
#		echo "####################################"
#		echo "$mkKernelMSG_03"
		exit 1
	fi
else
	local mkKernelMSG_02=`gettext mkKernel "This application requires an X session!"`
	echo "####################################"
	echo "$mkKernelMSG_02"
	exit 1
fi
or, if you're using kde, it should just work :)
Forum Rules : https://forum.porteus.org/viewtopic.php?f=35&t=44

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

Porteus Kernel Builder

Post#1324 by neko » 12 Jul 2021, 07:25

"Kernel Builder" was updated to version 21.07.12. (Please refer to the first article.)

1. New version line (5.14) is added.
"The latest mainline version of the Linux kernel is: 5.14-rc1"

(1)"5.14-rc1" config was changed from "5.13" config
by applying followed specifications on "make oldconfig" command.

Code: Select all

Core Scheduling for SMT (SCHED_CORE) [N/y/?] (NEW) N
Platform Runtime Mechanism Support (ACPI_PRMT) [Y/n/?] (NEW) N
Broadcom MPI3 Storage Controller Device Driver (SCSI_MPI3MR) [N/m/y/?] (NEW) N
MediaTek Gigabit Ethernet PHYs (MEDIATEK_GE_PHY) [N/m/?] (NEW) N
Motorcomm PHYs (MOTORCOMM_PHY) [N/m/?] (NEW) N
SparkFun Qwiic Joystick (JOYSTICK_QWIIC) [N/m/y/?] (NEW) N
XillyUSB: Xillybus generic FPGA interface for USB (XILLYUSB) [N/m/y/?] (NEW) N
RT5033 fuel gauge support (BATTERY_RT5033) [N/m/y/?] (NEW) N
Delta DPS920AB Power Supply (SENSORS_DPS920AB) [N/m/?] (NEW) N
MPS MP2888 (SENSORS_MP2888) [N/m/?] (NEW) N
Flex PIM4328 and compatibles (SENSORS_PIM4328) [N/m/?] (NEW) N
Sensiron humidity and temperature sensors. SHT4x and compat. (SENSORS_SHT4x) [N/m/y/?] (NEW) N
Richtek RT4831 four channel WLED and Display Bias Voltage (MFD_RT4831) [N/m/y/?] (NEW) N
Maxim 8893 voltage regulator (REGULATOR_MAX8893) [N/m/y/?] (NEW) N
Richtek RT6160 BuckBoost voltage regulator (REGULATOR_RT6160) [N/m/y/?] (NEW) N
Richtek RT6245 voltage regulator (REGULATOR_RT6245) [N/m/y/?] (NEW) N
Simple framebuffer driver (DRM_SIMPLEDRM) [N/m/y/?] (NEW) N
Solomon SSD1307 framebuffer support (FB_SSD1307) [N/m/y/?] (NEW) N
NXP/Goodix TFA989X (TFA1) amplifiers (SND_SOC_TFA989X) [N/m/?] (NEW) N
LED driver for LT3593 controllers (LEDS_LT3593) [N/m/?] (NEW) N
Wireless hotkey button (WIRELESS_HOTKEY) [N/m/y/?] (NEW) N
Lenovo WMI-based systems management driver (THINKPAD_LMI) [N/m/?] (NEW) N
Intel x86 Platform Specific Device Drivers (X86_PLATFORM_DRIVERS_INTEL) [Y/n/?] (NEW) Y
Intel SkyLake ACPI INT3472 Driver (INTEL_SKL_INT3472) [N/m/y/?] (NEW) m
Clock driver for ARM Reference designs ICST (ICST) [N/y/?] (NEW) N
Clock driver for ARM SP810 System Controller (CLK_SP810) [N/y/?] (NEW) N
 Ti LMK04832 JESD204B Compliant Clock Jitter Cleaner (LMK04832) [N/m/y/?] (NEW) N
Virtio IOMMU driver (VIRTIO_IOMMU) [N/m/?] (NEW) N
Microchip Sparx5 reset driver (RESET_MCHP_SPARX5) [N/y/?] (NEW) N
CAN transceiver PHY (PHY_CAN_TRANSCEIVER) [N/m/y/?] (NEW) N
Show build ID information in stacktraces (STACKTRACE_BUILD_ID) [N/y/?] (NEW) N
Force all function address 64B aligned (DEBUG_FORCE_FUNCTION_ALIGN_64B) [N/y/?] (NEW) N
Test scanf() family of functions at runtime (TEST_SCANF) [N/m/y/?] (NEW) N
Test clocksource watchdog in kernel space (TEST_CLOCKSOURCE_WATCHDOG) [N/m/y/?] (NEW) N
ACPI operation region support for TPS68470 PMIC (TPS68470_PMIC_OPREGION) [N/y/?] (NEW) N
TPS68470 GPIO (GPIO_TPS68470) [N/y/?] (NEW) N
(2)AUFS patch is not yet ready for kernel 5.14-rc.
AUFS_VERSION "5.x-rcN-20210705"

Basic patches of AUFS can be applied successful.
But it will be error to patch option patches of AUFS on kernel 5.14-rc1.

Basic patches:
kbuild.patch, base.patch, mmap.patch,
option patches:
loopback.patch, proc_mounts.patch, vfs-ino.patch, tmpfs-idr.patch, lockdep-debug.patch

It will be error to build kernel 5.14-rc1 with basic AUFS patches.
Therefore kernel 5.14-rc1 without AUFS was built. (OverlayFS kernel)

Code: Select all

次のファイルから読み込み:  <コマンドライン>:
関数 ‘__kmalloc_index’ 内,
    inlined from ‘au_kmidx_sub’ at fs/aufs/module.h:100:9,
    inlined from ‘au_krealloc’ at fs/aufs/module.c:46:10:
././include/linux/compiler_types.h:328:45: エラー: call to ‘__compiletime_assert_276’ declared with attribute error: unexpected size in kmalloc_index()
  328 |         _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
      |                                             ^
././include/linux/compiler_types.h:309:25: 備考: in definition of macro ‘__compiletime_assert’
  309 |                         prefix ## suffix();                             \
      |                         ^~~~~~
././include/linux/compiler_types.h:328:9: 備考: in expansion of macro ‘_compiletime_assert’
  328 |         _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
      |         ^~~~~~~~~~~~~~~~~~~
./include/linux/build_bug.h:39:37: 備考: in expansion of macro ‘compiletime_assert’
   39 | #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg)
      |                                     ^~~~~~~~~~~~~~~~~~
./include/linux/slab.h:418:17: 備考: in expansion of macro ‘BUILD_BUG_ON_MSG’
  418 |                 BUILD_BUG_ON_MSG(1, "unexpected size in kmalloc_index()");
      |                 ^~~~~~~~~~~~~~~~
関数 ‘__kmalloc_index’ 内,
    inlined from ‘au_kmidx_sub’ at fs/aufs/module.h:100:29,
    inlined from ‘au_krealloc’ at fs/aufs/module.c:46:10:
././include/linux/compiler_types.h:328:45: エラー: call to ‘__compiletime_assert_276’ declared with attribute error: unexpected size in kmalloc_index()
  328 |         _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
      |                                             ^
././include/linux/compiler_types.h:309:25: 備考: in definition of macro ‘__compiletime_assert’
  309 |                         prefix ## suffix();                             \
      |                         ^~~~~~
././include/linux/compiler_types.h:328:9: 備考: in expansion of macro ‘_compiletime_assert’
  328 |         _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
      |         ^~~~~~~~~~~~~~~~~~~
./include/linux/build_bug.h:39:37: 備考: in expansion of macro ‘compiletime_assert’
   39 | #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg)
      |                                     ^~~~~~~~~~~~~~~~~~
./include/linux/slab.h:418:17: 備考: in expansion of macro ‘BUILD_BUG_ON_MSG’
  418 |                 BUILD_BUG_ON_MSG(1, "unexpected size in kmalloc_index()");
      |                 ^~~~~~~~~~~~~~~~
make[2]: *** [scripts/Makefile.build:271: fs/aufs/module.o] エラー 1
make[1]: *** [scripts/Makefile.build:514: fs/aufs] エラー 2
make: *** [Makefile:1841: fs] エラー 2

2.The "psu" command that changes to super user is added in "guimkKernel" command.
@beny, thank you for your pointing the issue out.
@ncmprhnsbl, thank you for your fixing the issue.

Code: Select all

% diff old-guimkKernel new-guimkKernel
42c42
< 		for SUDO in gksu gnsu kdesu ktsuss;
---
> 		for SUDO in psu gksu gnsu kdesu ktsuss;


Thanks.

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

Porteus Kernel Builder

Post#1325 by beny » 12 Jul 2021, 09:42

hi ncmprhnsbl in exec line i have add only psu: Exec=psu /usr/local/sbin/guimkKernel and i use xfce4.

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

Porteus Kernel Builder

Post#1326 by neko » 15 Jul 2021, 01:59

APorteus-v21.07.13-x86_64.iso / APorteus-v21.07.13-i486.iso can be used as "Kernel Builder 21.07.12" ISO.
ArchLinux packages manager for Porteus (Post by neko #36689)


Thanks.

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

Porteus Kernel Builder

Post#1327 by neko » 19 Jul 2021, 03:39

Now !
AUFS patch (AUFS_VERSION "5.x-rcN-20210719") is ready for kernel 5.14-rc2.

Note:
The kernel version of APorteus-v21.07.18-x86_64.iso / APorteus-v21.07.18-i486.iso
is 5.14-rc2 with AUFS patch "5.x-rcN-20210719".
And these "ISO Builder" ISOs can be used as "Kernel Builder 21.07.12" ISO.
ArchLinux packages manager for Porteus (Post by neko #36689)


Thanks.

User avatar
Blaze
DEV Team
DEV Team
Posts: 3281
Joined: 28 Dec 2010, 11:31
Distribution: ⟰ Porteus current ☯ all DEs ☯
Location: ☭ Russian Federation, Lipetsk region, Dankov
Contact:

Porteus Kernel Builder

Post#1328 by Blaze » 20 Jul 2021, 13:03

[Updated kernel Examples]
==== AUFS Kernel only for Porteus ====
Simple package (vmlinuz, 000-kernel.xzm, 06-crippled_sources-NNN-XXbit.xzm, 64bit.config)

[5.14-rc2] <-- NEW : "All patches" patching was done.
64bit-ALL-kernel5.14-rc2.tar (~128 M)
https://files.sberdisk.ru/s/ySpYfnQdX62e2SB
fa60cb63d52da246c53d83f80843b5f3 64bit-ALL-kernel5.14-rc2.tar

Note 1: Compiler that was used.
for kernel 5.14-rc2: 10.3.0-x86_64

Thanks to neko for his support.
Linux 5.10.11-porteus #1 SMP Thu Jan 28 11:33:44 UTC 2021 x86_64 Intel(R) Core(TM) i5-6600K CPU @ 3.50GHz GenuineIntel GNU/Linux
MS-7A12 » [AMD/ATI] Tobago PRO [Radeon R7 360 / R9 360 OEM] (rev 81) » Vengeance LPX 16GB DDR4 K2 3200MHz C16

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

Porteus Kernel Builder

Post#1329 by beny » 20 Jul 2021, 16:34

hi blaze this kernel 5.14-rc2 freeze desktop on boot,also Aporteus version kernel,have you run this one on your system to check it

User avatar
Blaze
DEV Team
DEV Team
Posts: 3281
Joined: 28 Dec 2010, 11:31
Distribution: ⟰ Porteus current ☯ all DEs ☯
Location: ☭ Russian Federation, Lipetsk region, Dankov
Contact:

Porteus Kernel Builder

Post#1330 by Blaze » 20 Jul 2021, 17:04

Hi beny.
I don't have freezing desktop at boot up - all things are stable for me :thumbup:
Image
Linux 5.10.11-porteus #1 SMP Thu Jan 28 11:33:44 UTC 2021 x86_64 Intel(R) Core(TM) i5-6600K CPU @ 3.50GHz GenuineIntel GNU/Linux
MS-7A12 » [AMD/ATI] Tobago PRO [Radeon R7 360 / R9 360 OEM] (rev 81) » Vengeance LPX 16GB DDR4 K2 3200MHz C16

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

Porteus Kernel Builder

Post#1331 by beny » 20 Jul 2021, 17:08

the last Aporteus from neko do not show desktop and also i have the same in porteus5 rc3 with this kernel maybe something in my system gone wrong.

User avatar
Blaze
DEV Team
DEV Team
Posts: 3281
Joined: 28 Dec 2010, 11:31
Distribution: ⟰ Porteus current ☯ all DEs ☯
Location: ☭ Russian Federation, Lipetsk region, Dankov
Contact:

Porteus Kernel Builder

Post#1332 by Blaze » 20 Jul 2021, 17:17

If press Ctrl+ALT+F1 then Ctrl+C and run mc.
As root via mc copy /var/log/Xorg.0.log
/var/log//var/log/Xorg.0.log
/var/log//var/dmesg

Need to look at these logs, probably it give solution what's going on.
Linux 5.10.11-porteus #1 SMP Thu Jan 28 11:33:44 UTC 2021 x86_64 Intel(R) Core(TM) i5-6600K CPU @ 3.50GHz GenuineIntel GNU/Linux
MS-7A12 » [AMD/ATI] Tobago PRO [Radeon R7 360 / R9 360 OEM] (rev 81) » Vengeance LPX 16GB DDR4 K2 3200MHz C16

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

Porteus Kernel Builder

Post#1333 by beny » 20 Jul 2021, 19:55

well i have formatted one usb key i have put in Aporteus openbox but freeze again the keyboard is dead so i have to reboot ok for now i use porteus5 with the old kernel

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

Porteus Kernel Builder

Post#1334 by neko » 21 Jul 2021, 06:06

"Kernel Builder" was updated to version 21.07.21. (Please refer to the first article.)

Configs of Kernel 5.13.4, 5.12.19, 5.10.52, 5.4.134 were updated.

Old configs are updated by "make oldconfig" command with the following response.

Code: Select all

RT5033 fuel gauge support (BATTERY_RT5033) [N/m/y/?] (NEW) N

Thanks.

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

Porteus Kernel Builder

Post#1335 by neko » 26 Jul 2021, 01:18

"Kernel Builder" was updated to version 21.07.26. (Please refer to the first article.)

Configs of Kernel 5.14-rc3 was updated.

Old configs are updated by "make oldconfig" command with the following response.

Code: Select all

Analog Devices SSM2518 Class-D Amplifier (SND_SOC_SSM2518) [N/m/?] (NEW) N

Note:
The kernel version of APorteus-v21.07.25-x86_64.iso / APorteus-v21.07.25-i486.iso
is 5.14-rc3 with AUFS patch "5.x-rcN-20210719".
And these "ISO Builder" ISOs can be used as "Kernel Builder 21.07.26" ISO.
ArchLinux packages manager for Porteus (Post by neko #36689)

Thanks.

Post Reply