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 Fri 22 Sep 2017, 06:10
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 9 of 10 [139 Posts]   Goto page: Previous 1, 2, 3, ..., 7, 8, 9, 10 Next
Author Message
mikeb


Joined: 23 Nov 2006
Posts: 11071

PostPosted: Tue 23 Jun 2015, 05:19    Post subject:  

I have 4.15 ..its 4.12 with a slax kernel.

I use the 4.12 devx for userspace and the slax kernel headers (6MB!) for building drivers. (sources are only needed for making kernels and some in kernel driver builds...out of tree seems to usually work ok)

That's about it really. There are generic kernel function headers in the devx but as far as I have tried they seem happy accross various kernels....there may be a limit to that.

mike
Back to top
View user's profile Send private message 
mikeslr


Joined: 16 Jun 2008
Posts: 1905
Location: 500 seconds from Sol

PostPosted: Tue 23 Jun 2015, 13:29    Post subject: Getting the right repos  

Hi all,

Actually, the questions I asked in my prior post have become academic. I stumbled on the fact that Tahrpup had later kernels which served my purposes and so rebuilt my Pup using one.

But to answer the questions relating to PPM pointing to the what might be the wrong repos:
(a) the application I had in mind was LazyFred, http://murga-linux.com/puppy/viewtopic.php?p=649731&sid=c5046bb74c9ef9fa5030c9c10b6269f9#649731, which, however, doesn't seem to be configurable to point to the repos of "alien" distros. And more importantly, does not seem to do even the "dependency" checking and offering of Puppy Package Manager.

(b) Puppy package Manager provides a link to a webpage providing instructions for adding repos "from scratch" by which I mean manually typing information into /root/.packages/DISTRO_PET_REPOS and /root/.packages/DISTRO_COMPAT_REPOS.

For me, manually typing anything is an error-prone activity and without the benefit of "spell-check" almost certainly doomed.

Fortunately, I'm better at cutting and pasting. My less error-prone method, if and when I needed it, would be to boot into the Pup providing the applications, and copy its /root/.packages/DISTRO_PET_REPOS and /root/.packages/DISTRO_COMPAT_REPOS to a temporary location. Later, once my FrankenPup is up and running, I can open both those files and FrankenPup's /root/.packages/DISTRO_PET_REPOS and /root/.packages/DISTRO_COMPAT_REPOS and copy the required lines into the relevant files. And Save (or Remaster),

mikesLr
Back to top
View user's profile Send private message 
rcrsn51


Joined: 05 Sep 2006
Posts: 11580
Location: Stratford, Ontario

PostPosted: Mon 21 Sep 2015, 09:00    Post subject:  

Jrb's March 29 method is really slick, once I got my head around it. You are not adding a new kernel to the old Puppy - you are adding the old SFS content to the new Puppy.

I even got an existing save folder from the old Puppy to work just by renaming it.

Have any problems appeared with this method since March?

[Edit] I mastered an ISO with the new structure and booted it with ISObooter. But there was a problem - the adrv.sfs was not loaded so there were no kernel drivers for things like Ethernet.

But if I manually loaded the adrv.sfs and modprobed the drivers, I could get a few things working. I guess that there is something different about PUPMODE=5.

[Edit] I burned a boot DVD and had the same problem - adrv.sfs not loaded. But if Puppy happened to find the main sfs and adrv.sfs on the hard drive, it would load them both! Go figure.

[Edit] According to /etc/rc.d/PUPSTATE, Puppy found the adrv file, but failed to mount it.

Is this a problem with all Puppies that have an adrv.sfs in the ISO?

------------------------
Back to top
View user's profile Send private message 
rcrsn51


Joined: 05 Sep 2006
Posts: 11580
Location: Stratford, Ontario

PostPosted: Tue 22 Sep 2015, 08:55    Post subject:  

I solved my problems in the previous post by deleting all the old savefiles/folders and starting fresh.

But now I have a new problem. I am using Tahrpup602 with the Slacko593 content. I have a hard drive frugal install with a savefile. Whenever I reboot, I get the message "This savefile was last used by version 593 ... Press Enter".

I don't see any other reports of this.

[Edit] I appear to have solved this problem by editing the init at line 1119.

Code:
if vercmp ${DISTRO_VERSION} gt 9.9.9

More testing is required.

[Edit] I still couldn't get a PUPMODE=13 flash drive install to work - the RAM layer wasn't being flushed back to the savefile. So I converted it to a PUPMODE=12 setup and it appears to be working OK.

Last edited by rcrsn51 on Wed 23 Sep 2015, 08:22; edited 1 time in total
Back to top
View user's profile Send private message 
gyro

Joined: 28 Oct 2008
Posts: 1401
Location: Brisbane, Australia

PostPosted: Wed 23 Sep 2015, 06:41    Post subject:  

@jrb,
Thanks , I just got puppy_wheezy_3.5.2.11.sfs running on my machine using some files from pupjibaro_wheezy_1.0.6 as per your method, and it works.
This is great because native puppy_wheezy_3.5.2.11 would not work on my new hardware.

There was just one thing, at every boot I got a message like "Updating 1.0.6 to 3.5.2.11" and it took a while to do this.
So I edited the DISTRO_SPECS file in "initrd.gz" changing
Code:
DISTRO_VERSION=1.0.6
to
Code:
DISTRO_VERSION=3.5.2.11
This did the trick. Now it boots normally.

Hmmm..., since I edited DISTRO_SPECS, I could have also changed DISTRO_PUPPYSFS, DISTRO_ZDRVSFS, DISTRO_ADRVSFS, and DISTRO_YDRVSFS to have all files using the Dpup Wheezy version number.

Looking at the "init" script from pupjibaro_wheezy_1.0.6, I realised that it is fairly modern and includes support for savefolder. However puppy_wheezy_3.5.2.11.sfs does not. So I added the ydrv http://www.fishprogs.software/puppy/wheezy/ydrv_wheezy_3.5.2.11.sfs as ydrv_wheezy_1.0.6.sfs, and converted my savefile to a savefolder using savefile2dir. It works.

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

Joined: 28 Oct 2008
Posts: 1401
Location: Brisbane, Australia

PostPosted: Wed 23 Sep 2015, 08:07    Post subject:  

Additional to my previous post:
I recommend installing "sfs_load-2.3.pet", if you want to use savefolder.

Also, I loaded "devx_wheezy_3.5.2.12.sfs" and successfully compiled and ran a program.
For compiling applications I think that the "wheezy_3.5.2.12" is the one to use. Then the DEV stuff matches the libraries in "puppy_wheezy_3.5.2.12".

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

Joined: 28 Oct 2008
Posts: 1401
Location: Brisbane, Australia

PostPosted: Thu 24 Sep 2015, 05:41    Post subject:  

Further:
I've now edited the DISTRO_SPECS file in initrd.gz to change all the system file names to those of Dpup Wheezy. Then renamed the files appropriately.
The directory now looks like it contains Dpup Wheezy, and it runs like Dpup Wheezy, except for using the much newer kernel.

Only problem so far is that "ddcprobe" segmentation faults, but this doesn't seem to worry it.

I could remaster "puppy_wheezy_3.5.2.11.sfs" to remove all the stuff corresponding to stuff in "adrv_wheezy_3.5.2.11.sys" so I could rename it to "zdrv_wheezy_3.5.2.11.sys", but I probably won't bother.

gyro
Back to top
View user's profile Send private message 
musher0


Joined: 04 Jan 2009
Posts: 10805
Location: Gatineau (Qc), Canada

PostPosted: Thu 24 Sep 2015, 15:58    Post subject:  

Hi, gyro.

pupjibaro_wheezy uses an older glibc, 2.13. I don't remember which version
of glibc the pemasu wheezy uses, but if different, would it have an impact
when changing kernels?

BFN.

musher0

_________________
musher0
~~~~~~~~~~
« Un insensé sur le trône n'est qu'un singe sur le haut d'un toit. » / "A madman
on the throne is just a monkey on top of a roof." (Bernard de Clervaux)

Last edited by musher0 on Fri 25 Sep 2015, 18:47; edited 1 time in total
Back to top
View user's profile Send private message 
gyro

Joined: 28 Oct 2008
Posts: 1401
Location: Brisbane, Australia

PostPosted: Fri 25 Sep 2015, 09:39    Post subject:  

Hi musher0,

Why take a chance when you have a matching devx and puppy_sfs?
I'm thinking of the "include" files in the devx matching the actual ".so" files in the puppy_sfs.

gyro
Back to top
View user's profile Send private message 
musher0


Joined: 04 Jan 2009
Posts: 10805
Location: Gatineau (Qc), Canada

PostPosted: Fri 25 Sep 2015, 18:46    Post subject:  

Hi gyro.

I was just wondering if you had had any glibc problems running the
programs in your edited Puppy-wheezy, in view of the difference in glibc
versions between the pupjibaro-wheezy and the upup-wheezy.

Or maybe the glibc version doesn't matter when it comes to kernels? Isn't
the kernel compiled against a particular version of the C libraries? It has
to, no?

Perhaps the Linux kernel is in Assembly language or in another computer
language altogether? In which case the version of the C libraries wouldn't
matter, right? (Just thinking out loud here.)

I'd like to try my hand at the kernel procedure myself to update the old
Puppy Precise-5.4.3, but I'd like to upgrade the glibc version at the same
time. (Glibc is at version 2.22 now.)

Or are they two different operations?

Thanks in advance for shedding some light on this. BFN.

musher0

_________________
musher0
~~~~~~~~~~
« Un insensé sur le trône n'est qu'un singe sur le haut d'un toit. » / "A madman
on the throne is just a monkey on top of a roof." (Bernard de Clervaux)
Back to top
View user's profile Send private message 
gyro

Joined: 28 Oct 2008
Posts: 1401
Location: Brisbane, Australia

PostPosted: Sat 26 Sep 2015, 07:57    Post subject:  

Hi musher0,

I've had no problems with compiling application code and running it. The libraries in "puppy_sfs" and development stuff in "devx" are in sync.

I will not be attempting to compile a kernel on it.
Why would I, I already have a much newer kernel than that which comes with Dpup Wheezy.

As to kernel conflicting with libc, I don't know. I'm not a kernel compiling person.

gyro
Back to top
View user's profile Send private message 
musher0


Joined: 04 Jan 2009
Posts: 10805
Location: Gatineau (Qc), Canada

PostPosted: Sat 26 Sep 2015, 16:07    Post subject:  

gyro wrote:
Hi musher0,

I've had no problems with compiling application code and running it. The libraries in "puppy_sfs" and development stuff in "devx" are in sync.

I will not be attempting to compile a kernel on it.
Why would I, I already have a much newer kernel than that which comes with Dpup Wheezy.

As to kernel conflicting with libc, I don't know. I'm not a kernel compiling person.

gyro


Hi gyro.

That's fine. I'm not asking you to compile any kernel! Smile

Actually, this is what I needed to hear, and it's re-assuring:
"I've had no problems with compiling application code and running it. The
libraries in "puppy_sfs" and development stuff in "devx" are in sync."


Many thanks for sharing your experience.

BFN.

_________________
musher0
~~~~~~~~~~
« Un insensé sur le trône n'est qu'un singe sur le haut d'un toit. » / "A madman
on the throne is just a monkey on top of a roof." (Bernard de Clervaux)
Back to top
View user's profile Send private message 
01micko


Joined: 11 Oct 2008
Posts: 8656
Location: qld

PostPosted: Sat 26 Sep 2015, 20:59    Post subject:  

@musher0

As far as I know, the gcc version has more impact on compiling (kernel drivers to be specific) with a different kernel than the libc (be it glibc, uClibc, musl-libc or whatever).

Further technical reading <-- https://www.win.tue.nl/~aeb/linux/lk/lk-3.html

_________________
Puppy Linux Blog - contact me for access
Back to top
View user's profile Send private message Visit poster's website 
musher0


Joined: 04 Jan 2009
Posts: 10805
Location: Gatineau (Qc), Canada

PostPosted: Sat 26 Sep 2015, 21:18    Post subject:  

01micko wrote:
@musher0

As far as I know, the gcc version has more impact on compiling (kernel drivers to be specific) with a different kernel than the libc (be it glibc, uClibc, musl-libc or whatever).

Further technical reading <-- https://www.win.tue.nl/~aeb/linux/lk/lk-3.html


Thanks. I'm on it now.

_________________
musher0
~~~~~~~~~~
« Un insensé sur le trône n'est qu'un singe sur le haut d'un toit. » / "A madman
on the throne is just a monkey on top of a roof." (Bernard de Clervaux)
Back to top
View user's profile Send private message 
Pelo


Joined: 10 Sep 2011
Posts: 12505
Location: Mer méditerrannée (1 kms°)

PostPosted: Thu 12 Nov 2015, 13:30    Post subject: Wheezy is not my cup of tea, really not.
Subject description: Even in spanish version, it's a vintage way of doing.
 

Musher0, don't Wary, be Happy
Things go better in reality . Do it, Don't worry about details.
What is wrong shall be easily corrected, once installed.
Put your wheezy instead of tahrpup sfs, go on ! Go ahead Smile
Wheezy is not my cup of tea, really not.
pupos.jpg
 Description   Barbarian method : rename pupos to replace racy main SFS !
 Filesize   36.44 KB
 Viewed   454 Time(s)

pupos.jpg


_________________
Passenger Pelo ! don't ask him to repair the aircraft. Don't use him as a demining dog .... pleeease.
Back to top
View user's profile Send private message Yahoo Messenger 
Display posts from previous:   Sort by:   
Page 9 of 10 [139 Posts]   Goto page: Previous 1, 2, 3, ..., 7, 8, 9, 10 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.0704s ][ Queries: 14 (0.0126s) ][ GZIP on ]