Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Wed 13 Nov 2019, 19:45
All times are UTC - 4
 Forum index » House Training » HOWTO ( Solutions )
How to switch kernels between Puppy versions
Moderators: Flash, Ian, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 11 of 12 [176 Posts]   Goto page: Previous 1, 2, 3, ..., 9, 10, 11, 12 Next
Author Message
jrb


Joined: 11 Dec 2007
Posts: 1319
Location: Smithers, BC, Canada

PostPosted: Sun 08 Sep 2019, 10:30    Post subject: super simple kernel switching  

This is a 9 year old thread and the original content is pretty outdated. Changing kernels in newer Puppies is pretty simple, type "change_kernels" in a terminal and it will walk you through the process. I thought I would post a link to my kernel switching made super simple post anyway, just because (for frugal installs) it is "super simple". Wink
Back to top
View user's profile Send private message 
Mike Walsh


Joined: 28 Jun 2014
Posts: 5544
Location: King's Lynn, UK.

PostPosted: Wed 16 Oct 2019, 06:08    Post subject:  

Mornin', jrb.

Despite the statement in your last post about being pretty outdated, the advice has worked fine for an 'upgraded' spin of Racy 5.5.1 I've just put together.

I've upgraded the k3.0.66 kernel for Precise's k3.9.11, upgraded the glibc from 2.10.1 to 2.20, included Barry's '5.5 to 5.5.1 Service Pack', ditto with the 'new-look' v2 of the PPM, and added sundry other bits'n'bobs. It's all worked very nicely, mate; good, simple, clear instructions. And those Pup-build tools are extremely handy..!

Thanks a bunch. Cheers!


Mike. Wink

_________________
MY 'PUPPY' PACKAGES

Back to top
View user's profile Send private message 
jrb


Joined: 11 Dec 2007
Posts: 1319
Location: Smithers, BC, Canada

PostPosted: Wed 16 Oct 2019, 09:45    Post subject:  

Mike Walsh wrote:
Mornin', jrb.

Despite the statement in your last post about being pretty outdated, the advice has worked fine for an 'upgraded' spin of Racy 5.5.1 I've just put together.

I've upgraded the k3.0.66 kernel for Precise's k3.9.11, upgraded the glibc from 2.10.1 to 2.20, included Barry's '5.5 to 5.5.1 Service Pack', ditto with the 'new-look' v2 of the PPM, and added sundry other bits'n'bobs. It's all worked very nicely, mate; good, simple, clear instructions. And those Pup-build tools are extremely handy..!

Thanks a bunch. Cheers!


Mike. Wink

Hi Mike,
Glad it worked for you. Very Happy I had forgotten about posting those Pup-build tools. I'm still using them regularly, although I've modified them a lot. Will have to polish them up and repost I guess. Are you going to offer up your "new" Racy?
Back to top
View user's profile Send private message 
Mike Walsh


Joined: 28 Jun 2014
Posts: 5544
Location: King's Lynn, UK.

PostPosted: Wed 16 Oct 2019, 13:43    Post subject:  

jrb wrote:
Hi Mike,
Glad it worked for you. Very Happy I had forgotten about posting those Pup-build tools. I'm still using them regularly, although I've modified them a lot. Will have to polish them up and repost I guess. Are you going to offer up your "new" Racy?


Ermmm..... I'm in two minds about that, at the moment. It's my very first attempt at doing anything with a Puppy, at all. Not done with Woof, or anything like that, simply manually adding stuff/altering stuff until it's how I myself want it, followed by re-building the system SFS, and making an ISO out if it. Not that I need that part for personal use.....it just goes on a USB to try it.

At least it boots, even with a re-named SFS, so I must have got that bit about the DISTRO_SPECS right, after all.....

TBH, if I publish it I'm afraid I shall make myself look even more of an idiot than I already do..! Embarassed Rolling Eyes (And I don't think I could handle the criticism... ) Shocked Razz Laughing Laughing

tuxtoo and I are in the middle of a bit of a project with Racy ATM; we shall make an announcement if, as & when we're summat like ready. Not before.....and that's all I'm saying for now. Very Happy


Mike. Wink

_________________
MY 'PUPPY' PACKAGES

Back to top
View user's profile Send private message 
Mike Walsh


Joined: 28 Jun 2014
Posts: 5544
Location: King's Lynn, UK.

PostPosted: Thu 17 Oct 2019, 19:01    Post subject:  

@ jrb:-

I'm perhaps taking this thing to extremes, but I've taken the next logical step; I now have a version of Racy 5.5.1 running with Tarhpup's 3.14.79 kernel, along with a zdrv for the firmware.....thereby bringing Racy a bit more into line with more modern Pups. Since Tahr's native glibc is 2.19, it's much closer to the 2.20 package from battleshooter, which is now the default glibc in Racy.

It's similar to what nic007 has done with his personal 'Puplet; I think I'm right in saying he has a version of Precise running the kernel from Tahrpup. I found there's a lot of Precise stuff that seems right at home in Racy, so I'm scratching around in the right sort of area.....

Needs some flaws sorting out, though.... Rolling Eyes Embarassed Smile


Mike. Wink

_________________
MY 'PUPPY' PACKAGES

Back to top
View user's profile Send private message 
nic007


Joined: 13 Nov 2011
Posts: 3117
Location: Cradle of Humankind

PostPosted: Thu 17 Oct 2019, 23:54    Post subject:  

Using Tahr's kernel for Racy is very useful as it also adds adrv, ydrv etc. capabilities Only "problem" I have with Racy, is the outdated Xorg (well, I think that's part of the issue) because playing high quality videos seem to use a lot of processing power, much more than newer Puppy's.
Back to top
View user's profile Send private message 
Mike Walsh


Joined: 28 Jun 2014
Posts: 5544
Location: King's Lynn, UK.

PostPosted: Fri 18 Oct 2019, 05:54    Post subject:  

@ nic007:-

Nic, did you ever have shut-down issues when using Tahr's kernel in the older Puppies? I only ask, because while this will happily create a save-file, it seems extremely reluctant to actually use it.....and often needs a second shutdown 'prompt' before it'll save & power-off.

I don't mind admitting, this is completely new territory for me, and I'm way out of my comfort-zone.....so it's more than likely I've made a shed-load of mistakes, so far..! Advice will be appreciated from those who've 'gone before'.

(BTW, your 'post-count' as of the last post is now the exact same as the version of Racy's original kernel; k3.0.66. How's that for coincidental, huh?) Laughing


Mike. Wink

_________________
MY 'PUPPY' PACKAGES


Last edited by Mike Walsh on Sun 20 Oct 2019, 06:32; edited 1 time in total
Back to top
View user's profile Send private message 
jrb


Joined: 11 Dec 2007
Posts: 1319
Location: Smithers, BC, Canada

PostPosted: Fri 18 Oct 2019, 07:08    Post subject:  

Mike Walsh wrote:
@ nic007:-

Nic, did you ever have shut-down issues when using Tahr's kernel in the older Puppies?

Mike, since you have a working zdrv you should be able to use my kernel switching made super simple scripts to quickly try some other kernels.

As I remember I had a few issues with xorg when I tried a newer kernel in racy, the desktop was shifted to the right and wrapped around. Very wierd. Confused But I never pursued it.
Back to top
View user's profile Send private message 
nic007


Joined: 13 Nov 2011
Posts: 3117
Location: Cradle of Humankind

PostPosted: Fri 18 Oct 2019, 19:21    Post subject:  

Hi, Mike - I don't have shutdown issues and as you are aware, I do not run a savefile. I do however remember having these issues you are referring to when testing my precise puplet with tahr kernel and a savefile before releasing it to the community. This is some time ago but if I remember correctly the issues were resolved by replacing the shutdown scripts of the base puppy (in this case precise) with that of the "donor" puppy (ie. tahr). So in short - when doing a kernel swap, I would replace initrd.gz (or make a customised one), vmlinuz and the shutdown scripts (found in /usr/sbin and /etc/rc.d) as part of the process.
Back to top
View user's profile Send private message 
Mike Walsh


Joined: 28 Jun 2014
Posts: 5544
Location: King's Lynn, UK.

PostPosted: Sat 19 Oct 2019, 04:42    Post subject:  

Hi, Nick.

Ah, the 'pratfalls' of attempting something for the very first time in totally alien territory..... Very Happy

Thanks for the heads-up. I will investigate, do some re-building, do some experimenting .....and see what happens. (Kinda makes sense, in a way, 'cos I've already found you need more stuff from the 'donor' Puppy than you would at first imagine.....)

I'll report back, as & when. Watch this space... Smile

(Thinking about it, just confirm for me, please? I've so far found /usr/sbin/shutdownconfig, and /etc/rc.d/rc.shutdown. That sound about right? Um...do I need the .pot & .pupdev files as well? Rc.network? Rc.firewall?)

Cheers.


Mike. Wink

_________________
MY 'PUPPY' PACKAGES

Back to top
View user's profile Send private message 
nic007


Joined: 13 Nov 2011
Posts: 3117
Location: Cradle of Humankind

PostPosted: Sat 19 Oct 2019, 20:16    Post subject:  

Only the shutdown scripts. Replace it before attempting to make a new savefile or trying to use an existing one. I'm not so sure what will happen if you want to use an existing savefile with the new kernel but you'll have to rename it anyway.
Back to top
View user's profile Send private message 
Mike Walsh


Joined: 28 Jun 2014
Posts: 5544
Location: King's Lynn, UK.

PostPosted: Sun 20 Oct 2019, 07:07    Post subject:  

Mm...

Well, that WORKS.....at least, the way it works would suit you down to the ground. It shuts down cleanly, but I'm not even getting the shut-down options now. No offer to create a save-file, so.....I'm guessing there's more stuff needs 'transplanting'?

Anybody have any ideas on this one? Remember, I'm not using Woof-CE for a 'clean', ground-up build.....merely modifying an existing Pup, with stuff from a newer one.

I'm all ears........


Mike. Wink

_________________
MY 'PUPPY' PACKAGES

Back to top
View user's profile Send private message 
Mike Walsh


Joined: 28 Jun 2014
Posts: 5544
Location: King's Lynn, UK.

PostPosted: Sun 20 Oct 2019, 09:26    Post subject:  

Okay.

For this particular instance, the solution seems to be to use Tahrpup's /etc/rc.d/rc.shutdown script, but to retain Racy's original /usr/sbin/shutdownconfig. First shut-down now asks you to create a save-file (or not); if yes, it creates it, saves to it, and shuts down cleanly.

Curiously, doing things this way appears to have had an unintended, yet beneficial side-effect! Subsequent shutdowns sit on 'Racy_Puppy is shutting down' for around 20-30 seconds, then, just when you've convinced yourself that nothing's going to happen and Pup has decided to 'hang', a window pops-up, asking whether you wish to save the session to the save-file or not.

I'm guessing this is, of course, somehow linked in to PupMode selection via the EventManager. This behaviour will suit a lot of Puppians, since many of you prefer to execute manual 'saves' at your discretion, so I may just leave this as it is. Very Happy

Depending upon selection, Pup then 'saves' (or not), and shuts down cleanly.

------------------------------------------------------------

This is on a USB 'test' install. I now need to burn an ISO of the new Racy to disk (again!), and see what happens this time around.

Back soon..!


Mike. Wink

_________________
MY 'PUPPY' PACKAGES

Back to top
View user's profile Send private message 
rufwoof


Joined: 24 Feb 2014
Posts: 3614

PostPosted: Sun 20 Oct 2019, 12:06    Post subject:  

Everyone with your familiarity should build their own kernel at some point Mike. This for instance will compile the 4.19.80 kernel with the 1.30.1 busybox

Download and load the devX.sfs for the Puppy you're running and create/run a script containing ...
Code:
# Modify the following two wget's to the latest
# stable/long term choices you prefer
wget http://kernel.org/pub/linux/kernel/v4.x/linux-4.19.80.tar.xz
wget http://busybox.net/downloads/busybox-1.30.1.tar.bz2
mkdir bootfiles
tar -xvf linux-4.19.80.tar.xz
tar -xvf busybox-1.30.1.tar.bz2
cd busybox-1.30.1
make distclean defconfig
sed -i "s/.*CONFIG_STATIC.*/CONFIG_STATIC=y/" .config
make busybox install
cd _install
rm -f linuxrc
mkdir dev proc sys
echo '#!/bin/sh' > init
echo 'dmesg -n 1' >> init
echo 'mount -t devtmpfs none /dev' >> init
echo 'mount -t proc none /proc' >> init
echo 'mount -t sysfs none /sys' >> init
echo 'setsid cttyhack /bin/sh' >> init
chmod +x init
find . | cpio -R root:root -H newc -o | gzip > ../../bootfiles/initrd.gz
cd ../../linux-4.19.80
N=`nproc`
N=`expr $N + 1`
make -j$N mrproper defconfig bzImage
cp arch/x86/boot/bzImage ../bootfiles/vmlinuz

... and (perhaps some hours later) you'll have a vmlinuz and initrd.gz in the bootfiles folder that you can use to boot. That will be cli only, but all your own work and using native Linux kernel and busybox source code. Typically around a 8MB final vmlinuz alongside a 1.5MB initrd.

Once compiled once, you can run make again and the next build will run through quicker provided you don't reconfigure it (such as running make menuconfig or editing the .config file).

Instead of a separate initrd you can replace the one in linux-4.19.80/usr/initramfs_data.cpio with a cpio (not compressed) initrd and when built that will have that initrd contained within the vmlinuz, so only that vmlinuz is required in order to boot the system.

Most initrd's tend to be gzip'd so you first have to gzip -d decompress the file, and you can extract the cpio using

mkdir extracted
cd extracted
cat ../initrd | cpio -id

and modify anything within that and reform it again using

find . | cpio -o -H newc >../initramfs_data.cpio

See https://www.kernel.org/ and https://busybox.net/

Edit :
Looking at https://www.kernel.org/category/releases.html 4.14 kernel has a longer end of life (EOL) date ... 2024, so perhaps I should have used the 4.14.150 choice (as on the kernel.org front page) in the above script

Last edited by rufwoof on Sun 20 Oct 2019, 12:26; edited 1 time in total
Back to top
View user's profile Send private message 
Mike Walsh


Joined: 28 Jun 2014
Posts: 5544
Location: King's Lynn, UK.

PostPosted: Sun 20 Oct 2019, 12:23    Post subject:  

Hm.

rufwoof wrote:
Everyone with your familiarity should build their own kernel at some point Mike.


Perhaps. For some.....maybe.

I'm not that much of a 'geek', Ruffers. And never will be.

[*shrug*]


Mike. Wink

_________________
MY 'PUPPY' PACKAGES

Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 11 of 12 [176 Posts]   Goto page: Previous 1, 2, 3, ..., 9, 10, 11, 12 Next
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » House Training » HOWTO ( Solutions )
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0859s ][ Queries: 12 (0.0299s) ][ GZIP on ]