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 Thu 27 Nov 2014, 21:25
All times are UTC - 4
 Forum index » House Training » HOWTO ( Solutions )
How I upgraded my kernel - from full Install to live CD
Moderators: Flash, Ian, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [2 Posts]  
Author Message
maggotspawn

Joined: 19 Aug 2008
Posts: 355
Location: Los Angeles, CA.

PostPosted: Fri 19 Jun 2009, 10:31    Post subject:  How I upgraded my kernel - from full Install to live CD  

This is how I upgraded my kernel on a full install and ended up with a Live CD with the new kernel. Apparently you can do this from a frugal install, but I didn't have any luck with that method. Barry K. explains how to upgrade/compile the kernel and modules here.
After you followed Barry's instructions and are able to boot with yoiur new kernel and modules you need a new initrd.gz for your iso. Download Puppy Unleashed for the version of Puppy you're running and extract. No need to download the packages. In the kernels folder you'll see a couple of folders create a new one with the name of your new kernel. Copy your new vmlinuz to this folder. Copy
vmlinuz-RDLZMA from one of the other kernel folders to this new folder. Create 2 folders in your new kernel folder: all-firmware and all-modules. Go to lib/modules and copy the contents of all-firmware to all-firmware in your new kernel folder. Extract all the tarballs, then delete the tarballs. In all-modules in your new kernel folder create a folder lib, in lib create a folder modules. Copy the folder in lib/modules named <your kernel number> into the folder modules you created. If this gets confusing you can look at the other folders in the kernel folder in Puppy Unleashed to see the structure. System.map will be in usr/src with your new kernel, copy it into your new kernel folder. Basically your setting everything up in this folder like the other kernel folders. firmware.dep is in etc/modules, copy it over. Put a copy of your .config in the new folder too. Run ./createpuppy in Unleashed. Don't worry about packages just select O.K. All you want is your initrd.gz There are options, don't select all modules in initrd.gz. When your done it'll be in isolinux-builds. You might need to edit the initrd.gz to use union.fs. MU has a solution to edit the initrd.gz
Quote:
Copy the initrd.gz to /root/test/
Saved there this script as "editinit":

Code:
#!/bin/bash
gunzip initrd.gz
mkdir puppy-init
cd puppy-init
cat ../initrd | cpio -d -i
leafpad init
find . | cpio -o -H newc | gzip -9 > ../initrd.gz
cd ..
rm -rf puppy-init
rm -f initrd


Made it executable and ran it:
cd /root/test
chmod 755 editinit
./editinit

Now leafpad opens, with "init".
If you close leafpad, the script continues to package initrd.gz again.
So you must NOT close leafpad yet!
You now will find the extracted initrd.gz as
/root/test/puppy-init/

in the topdir of the initrd.gz there is a file called init. at about line 52 you could setup the layered filesystem used. change this to unionfs save and repack your initrd.gz. (From aragon)

Close leafpad, so that the new initrd.gz is created.



You need an iso image of the current Pup you're running. Mount it and copy the sfs someplace. Using edit_sfs go to lib/modules in the sfs.
Replace the 2 folders there with the folders in lib/modules of your current full install. Save, this will take a little bit of time. Go back to your iso and using ISO-Master, (menu,Multimedia) replace the initrd.gz, the vmlinuz, and sfs with your new versions. Burn this iso.
It won't be bootable. You'll need a frugal install with your new stuff. Go ahead and remaster with your unbootable iso. Now your done.
edit_sfs-1.1.pet
Description 
pet

 Download 
Filename  edit_sfs-1.1.pet 
Filesize  5.86 KB 
Downloaded  224 Time(s) 

_________________
www.agitprop666.com/PuppyLinux.html
www.agitprop666.com/PuppyLinux2.html
Back to top
View user's profile Send private message Visit poster's website 
maggotspawn

Joined: 19 Aug 2008
Posts: 355
Location: Los Angeles, CA.

PostPosted: Mon 22 Jun 2009, 18:24    Post subject:  

The above edited to correct a mistake.
_________________
www.agitprop666.com/PuppyLinux.html
www.agitprop666.com/PuppyLinux2.html
Back to top
View user's profile Send private message Visit poster's website 
Display posts from previous:   Sort by:   
Page 1 of 1 [2 Posts]  
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.0461s ][ Queries: 12 (0.0034s) ][ GZIP on ]