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 Sun 21 Sep 2014, 12:13
All times are UTC - 4
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Compiling
Script to update kernel and create new iso
Post_new_topic   Reply_to_topic View_previous_topic :: View_next_topic
Page 1 of 1 Posts_count  
Author Message
Speedyluck

Joined: 30 Jan 2010
Posts: 48

PostPosted: Wed 16 May 2012, 17:46    Post_subject:  Script to update kernel and create new iso
Sub_title: Automatic compile new kernel and make new Puppy iso
 

Igudeler has made a script to automatic compile and build new kernel package for puppy here:
http://murga-linux.com/puppy/viewtopic.php?t=78385
with this script you can make a kernel package to install in a full hd installation puppy;
thanks to Pemasu i discovered this script, so i edited it to automatic build new iso with the new kernel;
i have also separate a script to only build the iso in a second time after kernel compiled, so you can make changes and easily build a new iso without boot and use remaster tool.

However the new iso can have lot of bugs with programs and system.
The script:
download kernel
make patches
compile kernel
create source sfs
create pet package kernel
create pet package headers
create new puppy iso (edit sfs and update initrd to boot new iso)

I put a install.txt for help into the folder you extract:

instructions:
add the original puppy iso (the same you use to compile, ex: lupu-525.iso) on this directory with the scripts,
edit the variables on 'set.txt'
if you need add patches for kernel on 'patch' folder
DOTconfig is the config kernel (used to compile kernel 3.3.5 with patches ubuntu precise) for compiling, you can edit or change it
open terminal on this directory and digit:
./buid-all.sh
the script download the kernel from set variable, aufs, patch, create new kernel and new updated personal iso (from set.txt),
the only question is to edit (press '1' and ENTER) or left the kernel config with this directory ( press 's' and ENTER);
a 'bark' sound notice you to make a action.

you can create a new initrd, sfs and make a new iso a second time (after compilated new kernel with build-all.sh script) with
./build-iso.sh
(delete first old 'remasterinit - remastersfs - remasteriso' and edit variables on this script);

you can also add and remove programs editing remasterinit and remastersfs folders, so create a new updated iso with script
./build-iso.sh
(you must have previously created 'remasterinit - remastersfs - remasteriso' from 'build-all.sh' or 'build-initrd-sfs.sh' , rename old ***.iso on newiso directory).

Is for testing, you don't need to recompile the kernel without a valid reason, you can use remaster utility on puppy menu.

Here a new iso i made with this script.
http://murga-linux.com/puppy/viewtopic.php?p=627968#627968

Here the tar with the scripts:
build-new-kernel-iso.tar.gz
Description 
gz

 Download 
Filename  build-new-kernel-iso.tar.gz 
Filesize  250.48 KB 
Downloaded  517 Time(s) 
Back to top
View user's profile Send_private_message 
chrome307


Joined: 15 Jan 2009
Posts: 713

PostPosted: Sun 20 May 2012, 06:20    Post_subject:  

Thank you for sharing this Smile

Quote:
...install in a full hd installation


Is it possible to run Puppy from a USB drive and do all the compiling on a mounted hard drive and finally create the new ISO on that drive as well?

The reason why I am asking is that I have a fairly modern pc that has Win7 installed on it ( shared with family ), and would not be able to have a full Puppy installation on it; which is why I boot up and run my OS from a flash drive.
Back to top
View user's profile Send_private_message 
sheepy


Joined: 06 May 2011
Posts: 235
Location: GA

PostPosted: Sun 20 May 2012, 11:09    Post_subject:  

Code:
/root/Downloads/build-new-kernel-iso/build-all.sh: line 55: git: command not found

Code:
Press ENTER to begin
Downloading the Aufs sources
Error: failed to download the Aufs sources.

Help? :\
Back to top
View user's profile Send_private_message Visit_website 
pemasu


Joined: 08 Jul 2009
Posts: 5463
Location: Finland

PostPosted: Sun 20 May 2012, 11:49    Post_subject:  

You need to install git. I do have git in devx sfs in exprimo`s but maybe not all Puppies.
Back to top
View user's profile Send_private_message 
Speedyluck

Joined: 30 Jan 2010
Posts: 48

PostPosted: Sun 20 May 2012, 19:27    Post_subject:  

I think old puppy versions (4 and old) haven't git on devx, you can try debian package from here:

http://packages.debian.org/sid/i386/git/download
or
compile from source:
https://github.com/git/git

... yes, you can boot from usb, but you have to make a big save file (2gb ? ) to load devx and compile
Back to top
View user's profile Send_private_message 
chrome307


Joined: 15 Jan 2009
Posts: 713

PostPosted: Mon 21 May 2012, 05:27    Post_subject:  

If your using Lucid, I have compiled it here already:

Download:

Approx 6mb - GIT:

http://www.datafilehost.com/download-953dfcd2.html
Back to top
View user's profile Send_private_message 
Display_posts:   Sort by:   
Page 1 of 1 Posts_count  
Post_new_topic   Reply_to_topic View_previous_topic :: View_next_topic
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Compiling
Jump to:  

Rules_post_cannot
Rules_reply_cannot
Rules_edit_cannot
Rules_delete_cannot
Rules_vote_cannot
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0558s ][ Queries: 13 (0.0041s) ][ GZIP on ]