Page 1 of 2

[How to] upgrade 3.5 nemesis 000-kernel.xzm with porteus 3.2

Posted: 17 Dec 2016, 19:02
by francois
The problem with nemesis is that it is based on manjaro (arch linux fork), a rolling distribution. This means that after many months the original iso might become obsolete or become eventually impossible to upgrade.

An effort has been done to understand the interesting work of brokenman so to be able to upgrade the original nemesis to a more recent and lean version. Nemesis iso lxde version built on the 6th july of 2016 is less than 290 MB. Upgrading it will add about 700 MB http://forum.porteus.org/viewtopic.php?f=137&t=6459

METHOD A. Upgrading of 000-kernel.xzm of nemesis with porteus 3.2.1 kernel
You will need an installation of nemesis and an installation of porteus 3.2.1

This most recent nemesis 000-kernel.xzm is built with 4.8.11-porteus:
https://www.mediafire.com/?7hl9zjpikb7ge

edit ncmprhnsbl,
here's 4.10.8 (compiled by neko)
000-kernel-4.10.8.xzm 45.8mb
vmlinuz 3.2mb

edit ncmprhnsbl 30-Sept-2017,
here's kernel 4.13.3 :
000-kernel-4.13.3.xzm 51.2mb
vmlinuz 3.4mb

1.0 Unpack and backup the nemesis 000-kernel module

Code: Select all

su
toor
cd /path-to-folder-nemesis/porteus/base
mkdir 000-kernel
xzm2dir 000-kernel.xzm 000-kernel
Rename 000-kernel.xzm to 000-kernel.xzm-original-nemesis-bkp

2.0 Replace nemesis kernel module information by some of the porteus 3.2.1 version.
2.1 replace 4.3.3-porteus kernel:
nemesis
/porteus/base/000-kernel/usr/lib/modules/4.3.3-porteus
with
porteus 3.2.1
/base/000-kernel/lib/modules/4.8.11-porteus

2.2 replace firmware:
nemesis
/porteus/base/000-kernel/usr/lib/firmware/
with
porteus 3.2.1
/porteus/base/000-kernel/lib/firmware/

2.3 replace vmlinuz:
nemesis
/boot/syslinux/vmlinuz
with
porteus 3.2.1
/boot/syslinux/vmlinuz

2.4 nemesis xx.sgn file
/porteus/porteus-v3.5-x86_64.sgn
with
porteus 3.2.1
/porteus/porteus-v3.5-x86_64.sgn

3.0 Repack the new nemesis kernel module.
dir2xzm 000-kernel 000-kernel.xzm

Reboot!

METHOD B. Upgrading of 000-kernel.xzm of nemesis to get the most recent kernel

*** TO COME ***

Note: if you have a 32 bit system make changes accordingly, The structure of the modules might be different and the xx.sgn file too. If you have a conflicting porteus 3.2.1 installation use the sgnfile bootloader cheatcode.

Thanks to jack who as readproof this howto and provided suggestions.

Re: [How to] upgrade 3.5 nemesis 000-kernel.xzm with porteus

Posted: 18 Dec 2016, 21:46
by ncmprhnsbl
great work , francois :good:
one thing: i needed to use the porteus-v3.5-x86_64.sgn...

Re: [How to] upgrade 3.5 nemesis 000-kernel.xzm with porteus

Posted: 19 Dec 2016, 13:53
by francois
Hum! This could be the reason why your modules would not boot in my second nemesis installation. I will look at that.
Thanks.

Re: [How to] upgrade 3.5 nemesis 000-kernel.xzm with porteus

Posted: 31 Dec 2016, 01:54
by ncmprhnsbl
have upgraded to 3.2.2 kernel (4.9) using this guide, with no issues..too easy.. :good: thanks francois
(still keeping the 3.5 .sgn file tho)

Re: [How to] upgrade 3.5 nemesis 000-kernel.xzm with porteus

Posted: 31 Dec 2016, 04:37
by jssouza
For the sgnfile need to change

Code: Select all

SGN=`value sgnfile`; [ $SGN ] || SGN=porteus-v3.5-$arch.sgn
in linuxrc and repack the initrd.xz.

Re: [How to] upgrade 3.5 nemesis 000-kernel.xzm with porteus

Posted: 31 Dec 2016, 08:08
by ncmprhnsbl
yeah, i think the reason francois used the 3.2 .sgn is because he(mentioned in another post) used the initrd.xz from 3.2.. as well...
i have found this to be unnecessary, just the kernel.xzm(modified) and the vmlinuz from 3.2.x is needed..

Re: [How to] upgrade 3.5 nemesis 000-kernel.xzm with porteus

Posted: 31 Dec 2016, 16:13
by neko
Another method to update the kernel of Nemesis is as following steps.

1.download upkernel-4.9-noarch-2.xzm and activate it.
http://forum.porteus.org/viewtopic.php? ... 788#p34856

2.update kernel with the "upakernel4.9" command.

Code: Select all

# upakernel4.9 Nemesis.iso
# ls
Nemesis.iso UP.Nemesis.iso
3.replace "initrd.xz and kernel-v4.9-2-XXXX.sgn" of UP.Nemesis.iso with ones of Nemesis.iso.


Thanks.

Re: [How to] upgrade 3.5 nemesis 000-kernel.xzm with porteus

Posted: 15 Jan 2017, 13:02
by neko
The kernel of nemesis ISO can be update with "Porteus Kernel Builder".
Please refer to http://forum.porteus.org/viewtopic.php? ... 568#p52232


Now, compiled sample v4.9.4 was offered.
Therefor the kernel of nemesis ISO can be update to version 4.9.4 easily without compiling.

Thanks.

Re: [How to] upgrade 3.5 nemesis 000-kernel.xzm with porteus

Posted: 18 Jan 2017, 21:43
by ncmprhnsbl
thanks neko, i have successfully upgraded to kernel 4.9.4 using your compiled kernel and vmlinuz :D

Re: [How to] upgrade 3.5 nemesis 000-kernel.xzm with porteus

Posted: 18 Jan 2017, 22:03
by Jack
ncmprhnsbl wrote:thanks neko, i have successfully upgraded to kernel 4.9.4 using your compiled kernel and vmlinuz :D
Do you care to share the kernel 4.9.4?

Re: [How to] upgrade 3.5 nemesis 000-kernel.xzm with porteus

Posted: 18 Jan 2017, 22:30
by ncmprhnsbl
Jack wrote:Do you care to share the kernel 4.9.4?
okay
000-kernel-4.9.4.xzm
vmlinuz
its possible that broadcom doesnt work since i didnt recompile it, which may be an issue if you need it...

Re: [How to] upgrade 3.5 nemesis 000-kernel.xzm with porteus

Posted: 02 Apr 2017, 06:11
by neko
I have updated nemesis and tested it.

porteus-nemesis-v3.5-lxde-x86_64.iso
+
001-core-9-.xzm 120 mb updated 2-april-2017
002-gui-4.xzm 38.9 mb updated 2-april-2017
002-xtra-5.xzm 38.6 mb updated 2-april-2017
http://forum.porteus.org/viewtopic.php? ... 805#p51473
+
kernel v4.10.8
http://forum.porteus.org/viewtopic.php? ... 53d#p52232

The result was OK.

002-gui-4.xzm includes mesa-17.0.1-1.
If 002-gui-4.xzm includes the most recent version mesa-17.0.2-2,
the result might be NG.
Please refer to
https://bugs.archlinux.org/task/53293

Thanks.

Re: [How to] upgrade 3.5 nemesis 000-kernel.xzm with porteus

Posted: 04 Apr 2017, 20:46
by francois
Hello neko. Would you provide your update of nemesis. I really like that manjaro porteus version.

Thanks.

Re: [How to] upgrade 3.5 nemesis 000-kernel.xzm with porteus

Posted: 05 Apr 2017, 00:11
by neko
@francois
"Would you provide your update of nemesis."

No. It is difficult for me to provide an updated nemesis.
Updating only the kernel of nemesis is easy by the "Kernel builder" tool.
But Updating Archlinux packages of nemesis is difficult without pacman tool.

I have already provided simple package manager for ArchLinux packages "ArchSPM".
It does not have a compatiblity with pacman.

ncmprhnsbl has provided the 2-april-2017 version of 001-core-9-.xzm, 002-gui-4.xzm and 002-xtra-5.xzm.
Therefore I was able to update nemesis.

Thanks.

Re: [How to] upgrade 3.5 nemesis 000-kernel.xzm with porteus

Posted: 05 Apr 2017, 01:22
by francois
In this case, would you provide kernel v4.10.8? I will put everything together and provide a testing version. :)