archlinux installation: trading for porteus kernel

Porteus based on Arch with pacman package manager.
Post Reply
User avatar
francois
Contributor
Contributor
Posts: 4902
Joined: 28 Dec 2010, 14:25
Distribution: kde xfce porteus manjaro kubun
Location: Enfin l'été, le changement climatique attendu: le soleil.

archlinux installation: trading for porteus kernel

Post#1 by francois » 26 Sep 2015, 19:26

Trying to understand linux more in depth, and appreciating stifiling's and foreseeing brokenman's work. I wonder what would happen just trading archlinux kernel with a porteus kernel and how to do it?

From my understanding, the porteus kernel has been tweaked to be very performant (ultra fast), but also it comes with additions as to the wifi and graphic drivers. But is this it and is there more to it?

Explanations will be appreciated, but also the way to do it, as I have built an archlinux system working only root mode up to xfce and kde under virtualbox. Thus it is not yet adapted to any hardware specification.

*************************************************
Accumulation of possible useful threads:
1.0 Normal kernel:
http://www.thegeekstuff.com/2013/06/com ... ux-kernel/

1.1 Slackware kernel:
http://docs.slackware.com/howtos:slackw ... elbuilding
https://abi71.wordpress.com/2012/02/02/ ... are-13-37/

1.2 building kernel for beginner:
http://superuser.com/questions/287371/o ... nux-system


2.0 Squash kernel:
porteus:building a custom kernel faq:
http://www.porteus.org/tutorials/51-dev ... ernel.html

Squash howto, including kernel:
http://www.tldp.org/HOWTO/html_single/SquashFS-HOWTO/

Frombuilding kernels including aufs kernel module:
http://www.linuxquestions.org/questions ... el-769105/

Which yields:
http://elinux.org/Squash_FS_Howto
http://tldp.org/LDP/lkmpg/2.6/html/x181.html
https://wiki.centos.org/HowTos/BuildingKernelModules
Voltaire: Le mieux est l'ennemi du bien.

User avatar
brokenman
Site Admin
Site Admin
Posts: 5436
Joined: 27 Dec 2010, 03:50
Distribution: Porteus v3.2rcX all desktops
Location: Brazil
Contact:

Re: archlinux installation: trading for porteus kernel

Post#2 by brokenman » 27 Sep 2015, 02:44

Not sure if you mean:
a) replacing the arch linux kernel on an arch linux install with a porteus kernel
b) replacing the porteus kernel on an arch based porteus with an arch linux kernel

In case a) you will want to take the /mnt/sdXy/boot/syslinux/vmlinuz kernel from porteus and put it in the place where archlinux keeps it kernel (keeping the arch naming convention)
In case b) you would do the reverse by replacing vmlinuz with arch kernel but this probably won't work as the arch kernel probably hasn't been patched for aufs.

So you are probably referring to case a). Try it and report back.
How do i become super user?
Wear your underpants on the outside and put on a cape.

User avatar
francois
Contributor
Contributor
Posts: 4902
Joined: 28 Dec 2010, 14:25
Distribution: kde xfce porteus manjaro kubun
Location: Enfin l'été, le changement climatique attendu: le soleil.

Re: archlinux installation: trading for porteus kernel

Post#3 by francois » 27 Sep 2015, 20:42

1.0 Case a. I will surely do it. This nite or tomorrow morning.
Thanks.

2.0 Just broke my virtualbox archlinux vbox installation while trying to rsync on a bigger .vdi. For now unable to repair it. :(
I have spend enough time this week on the matter.

3.0 Unable to wait. I was just stuck with a wrong fstab. Systemd generates fstab by itself. The time passes by, and I would need more time needed to try the porteus kernel.

4,0 Tried to reinstall with set isofile syntax a temporary hdd install of archlinux iso to install archlinux, the kiss philosophy. This would really be to be debated as to kiss or not. They really do not like root mode out there. However, I am learning things or consolidating linux knowledge and memories.
Voltaire: Le mieux est l'ennemi du bien.

User avatar
francois
Contributor
Contributor
Posts: 4902
Joined: 28 Dec 2010, 14:25
Distribution: kde xfce porteus manjaro kubun
Location: Enfin l'été, le changement climatique attendu: le soleil.

Re: archlinux installation: trading for porteus kernel

Post#4 by francois » 02 Oct 2015, 17:20

I have installed initrd.xz in the same folder as /boot/initramfs-linux.img, and created a 40_custom entry for the new kernel:

Code: Select all

menuentry 'Arch Linux with PORTEUS KERNEL' --class arch --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-linux-advanced-e8a59e86-c36f-4bbf-a3df-2e20c7f8e150' {
		load_video
		set gfxpayload=keep
		insmod gzio
		insmod part_msdos 
		insmod ext2
		set root='hd0,msdos1'
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1  e8a59e86-c36f-4bbf-a3df-2e20c7f8e150
		else
		  search --no-floppy --fs-uuid --set=root e8a59e86-c36f-4bbf-a3df-2e20c7f8e150
		fi
		echo	'Loading Linux linux ...'
		linux	/boot/vmlinuz-linux root=UUID=e8a59e86-c36f-4bbf-a3df-2e20c7f8e150 rw  quiet
		echo	'Loading initial ramdisk ...'
		initrd	 /boot/initrd.xz
	}
The thing once booted is looking for poteus.sgn. Thus, I imagine that initrd.xz is looking for the base installation. And in peculiar the 000-kernel.xzm. Which is based on slackware?

Being naive, at the archlinux root, I have installed the /porteus folder with all the its modules.

Maybe I have to look at what is in the /base and especially at 000-kernel.xzm to have its component in the archlinux system. But what to do with the porteus.sgn error?
Voltaire: Le mieux est l'ennemi du bien.

User avatar
francois
Contributor
Contributor
Posts: 4902
Joined: 28 Dec 2010, 14:25
Distribution: kde xfce porteus manjaro kubun
Location: Enfin l'été, le changement climatique attendu: le soleil.

Re: archlinux installation: trading for porteus kernel

Post#5 by francois » 03 Oct 2015, 04:16

Where is the kernel config.gz or simply kernel config for porteus?

If I :

Code: Select all

root@porteus:/usr/src# cd /usr/src/linux-*
root@porteus:/usr/src/linux-3.17.4# make defconfig
*** Default configuration is based on 'x86_64_defconfig'
init/Kconfig:1739: can't open file "arch/Kconfig"
make[1]: *** [defconfig] Error 1
make: *** [defconfig] Error 2
Is it that I need to be in guest mode to do that?
Voltaire: Le mieux est l'ennemi du bien.

User avatar
fanthom
Site Admin
Site Admin
Posts: 4547
Joined: 28 Dec 2010, 02:42
Distribution: Porteus Kiosk
Location: Poland, currently - Cork, IE
Contact:

Re: archlinux installation: trading for porteus kernel

Post#6 by fanthom » 03 Oct 2015, 07:39

Where is the kernel config.gz or simply kernel config for porteus?
/usr/src/linux/.config
ofc you must have devel module activated.

or run:

Code: Select all

modprobe configs
zcat /proc/config.gz > config
Please add [Solved] to your thread title if the solution was found.

User avatar
francois
Contributor
Contributor
Posts: 4902
Joined: 28 Dec 2010, 14:25
Distribution: kde xfce porteus manjaro kubun
Location: Enfin l'été, le changement climatique attendu: le soleil.

Re: archlinux installation: trading for porteus kernel

Post#7 by francois » 05 Oct 2015, 10:39

I always appreciate your help. Next step will be to build a kernel.
Thanks.
Voltaire: Le mieux est l'ennemi du bien.

User avatar
francois
Contributor
Contributor
Posts: 4902
Joined: 28 Dec 2010, 14:25
Distribution: kde xfce porteus manjaro kubun
Location: Enfin l'été, le changement climatique attendu: le soleil.

Re: archlinux installation: trading for porteus kernel

Post#8 by francois » 11 Oct 2015, 03:34

https://www.kernel.org/
tar -C /usr/src -xJf linux-4.2.3.tar.xz
cd /usr/src
rm linux # remove the existing symlink
ln -s linux-4.2.3 linux # create a symlink pointing to your new linux source

Using the precedent config directly:
zcat /proc/config.gz > /usr/src/linux/.config

Needed packages to build kernel:
https://wiki.archlinux.org/index.php/Ke ... raditional

Code: Select all

https://wiki.archlinux.org/index.php/Kernels/Compilation/Traditional
Building a kernel seems to be not that easy.

**to be followed**
Voltaire: Le mieux est l'ennemi du bien.

Post Reply