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 Mon 24 Nov 2014, 08:38
All times are UTC - 4
 Forum index » Advanced Topics » Puppy Projects
[TESTING]"puppy pfix=recycle" Boot Parameter
Moderators: Flash, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 2 of 4 [51 Posts]   Goto page: Previous 1, 2, 3, 4 Next
Author Message
ecomoney


Joined: 25 Nov 2005
Posts: 2183
Location: Lincolnshire, England

PostPosted: Mon 25 May 2009, 10:09    Post subject:  

SUCCESS, they both work fine on the testing rig I have here with 4.2.1!!! Very Happy

The origional scripts for 4.1.2 (which luckily I kept a copy of) Ive submitted to the HanSamBen project...which is a kids educational distro like EduPup. I had to tweak the the originals (which Ive attached my copy of below), as HSB uses "pup_412hsb.sfs" as its squash file.

The FRUGAL install should work with 4.x.x series before 4.2..perhaps 3.x series also....the FULL install just for 4.1.2 From what I understand the earlier kernels assign differently named mount points...I gave the scripts a quick try using 2.14r (2.6.18.1 kernel) and the scripts failed through not being able to find files. Some clarification of how this works would be useful, as I know quite a few people are still using 2.xx series on really old computers as they need the earlier kernel.

_________________
Puppy Linux's Mission

Sorry, my server is down atm!

Last edited by ecomoney on Mon 25 May 2009, 15:52; edited 1 time in total
Back to top
View user's profile Send private message Visit poster's website MSN Messenger 
rcrsn51


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

PostPosted: Mon 25 May 2009, 10:29    Post subject:  

Glad to hear that the scripts worked. Here are a few points:

The 4.2.1 version should work on 4.1.2 with one change. On line 48, the GRUB stage files are copied from the folder /usr/lib/grub/i386-pc. But in 4.1.2, they are located in /usr/lib/grub/i386-t2.

For Puppies in the 2 and 3 series, things get more complicated. In the current versions, the hard drive is identified as /dev/sda and the optical drive as /dev/sr0.

In older versions, the hard drive will be /dev/hda and the optical drive could be hdb, hdc or hdd, depending on how the drive is cabled. So you would need to modify the script to search all the drives for the Live CD. Also, old versions may use a zdrv file that must be installed.

Last edited by rcrsn51 on Mon 25 May 2009, 11:39; edited 1 time in total
Back to top
View user's profile Send private message 
rcrsn51


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

PostPosted: Mon 25 May 2009, 10:55    Post subject:  

I had a look at the download in the HSB thread and the full-install script does not yet have the patch for the .sfs file.

It would be worthwhile to start adding an identifier to the names of any modified scripts, like "frugal-install-hsb"

[Edit] I have updated the attachment on Page 1. It now contains scripts (both frugal and full) that will install Puppy 2.17.1, 3.01, 4.1.2 and 4.2.1. These should act as reasonable templates for creating additional installers.

The full installers now use the PUI to do the actual copying. When it gets to the step for installing GRUB, just cancel.

@ecomoney: Could you please delete the versions that you posted directly above? They may confuse the issue.

Last edited by rcrsn51 on Wed 27 May 2009, 16:27; edited 5 times in total
Back to top
View user's profile Send private message 
rcrsn51


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

PostPosted: Mon 25 May 2009, 15:27    Post subject:  

[deleted]
Last edited by rcrsn51 on Wed 27 May 2009, 16:28; edited 1 time in total
Back to top
View user's profile Send private message 
ecomoney


Joined: 25 Nov 2005
Posts: 2183
Location: Lincolnshire, England

PostPosted: Mon 25 May 2009, 15:58    Post subject:  

Have deleted the attachments as requested

Thanks for updating the scripts for previous version. The issue now is how to make them available for "newbies". Perhaps a .pet? Crash, would it be possible to include the routines in the init script?

Perhaps there is time to get them included in Woof?

_________________
Puppy Linux's Mission

Sorry, my server is down atm!
Back to top
View user's profile Send private message Visit poster's website MSN Messenger 
rcrsn51


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

PostPosted: Mon 25 May 2009, 16:38    Post subject:  

Quote:

Perhaps there is time to get them included in Woof?


This is the wrong strategy. It is unreasonable to expect that a newcomer could take an old computer, get a Puppy CD from somewhere and do a one-click install without having some kind of training.

A more realistic scenario is one where the newcomer gets assistance from an experienced Puppy user, like you. That person would have the Live CD and installer script that matches the hardware.
Back to top
View user's profile Send private message 
ecomoney


Joined: 25 Nov 2005
Posts: 2183
Location: Lincolnshire, England

PostPosted: Tue 26 May 2009, 09:53    Post subject:  

Quote:
It is unreasonable to expect that a newcomer could take an old computer, get a Puppy CD from somewhere and do a one-click install without having some kind of training.


Thats exactly what my partner did with an Ubuntu CD I gave her when we had just met! I gave her the CD to take home for "safe keeping" the first time we met, and said I would install it next time I visited...by this time she had already got her p.c. up, working and on the internet! There is no reason to believe this is un-achievable with Puppy (though its certainly is the case now that a lot of training is required).

Achieving this would just be a matter of designing the right user interface, in the right place for your script, and using the correct, non-technical, language.

There are two IRL scenarios here....

The computer recycler
Needs to take old computers, wipe and recycle/"get working" as quickly as possible. For this a "pfix=recycle" command that would invoke your script (before pup_xxx.sfs was loaded) would be ideal. Crash?

The home user
This would be someone with a spare/old computer to try puppy on. They would require a desktop icon/menu entry on a livebooted puppy, which would (perhaps) offer a choice between the existing "advanced" installer, and the 2 "just works" scripts you have produced. It would need a gtk or similar front end.

In either case, the amount of "training" or "expert help" required would be directly inversely proportional to how many computers that could be recycled/waste reduced. Complexity should then be kept to an absolute minimum.

I suggest, in terms of how quickly that we can get this facility developed and recycling as many waste computers as possible, we should concentrate on the "puppy pfix=recycle" option first, and then get the GUI side (calling the same routines) after that.

_________________
Puppy Linux's Mission

Sorry, my server is down atm!
Back to top
View user's profile Send private message Visit poster's website MSN Messenger 
Crash


Joined: 09 Dec 2005
Posts: 432
Location: Garland, TX

PostPosted: Sat 30 May 2009, 02:38    Post subject:  

rcrsn51-

Thanks for the help in generating this code. I estimate that you saved me about 40 hours of redundant effort. At the rate that I am currently able to devote to Puppy Linux, that equates to about three calendar months!

I think this is possible to do using just the Kernel - well, almost just the Kernel. The trick would be to mount the .sfs file, then use the needed programs like Grub and stage 1, 2 from the mount point. I need to tinker around a bit to see the feasability of using that approach.

Anyway, this is great fun, and as always an excellent learning experience. I'll give you progress reports as I find out things.
Back to top
View user's profile Send private message 
ecomoney


Joined: 25 Nov 2005
Posts: 2183
Location: Lincolnshire, England

PostPosted: Sat 30 May 2009, 07:18    Post subject:  

Crash, Im by no means an expert, but I was thinking/hoping it would be possible to implement the script from the "busybox" level, i.e. when the init is loaded but before the pup_xxx.sfs is loaded into memory. This would make the recycling process much faster.

For the frugal install, the pup_xxx.sfs would be copied from the cd onto the hard drive, and for the full, it could be mounted directly from the cd and the files copies/decompressed on the fly to the hard disk.

This may mean a busybox recompile to make to appropriate utilities available at this stage in the puppy boot process.

_________________
Puppy Linux's Mission

Sorry, my server is down atm!
Back to top
View user's profile Send private message Visit poster's website MSN Messenger 
rcrsn51


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

PostPosted: Sat 30 May 2009, 07:44    Post subject:  

A couple of comments:

Any missing programs like mke2fs would have to be statically compiled in order to be included in the initrd.gz.

There is a huge advantage to letting a recyclable machine boot to the desktop because you get the opportunity to make the initial hardware configuration. Then after doing the frugal install, you can create a pup_save file for that machine during shutdown. When the new owner boots up, the machine will go directly to the desktop and be ready to run.
Back to top
View user's profile Send private message 
ecomoney


Joined: 25 Nov 2005
Posts: 2183
Location: Lincolnshire, England

PostPosted: Sat 30 May 2009, 08:26    Post subject:  

Hmmm....I am coming round to your way of thinking, if it means that the final machine is "ready to ship", and it means that the programming is easier.

Just a quick question while you are on, I notice in the readme script for the latest version of the installers, it says it is compatible with puppies back up to 2.17. What changes would need to be made for 2.15ce/2.14? Ttuxxx is working on an updated 2.14 series puppy aimed at older end kit....and it would be nice to have this in my Ecopup (2.15ce based!).

_________________
Puppy Linux's Mission

Sorry, my server is down atm!
Back to top
View user's profile Send private message Visit poster's website MSN Messenger 
rcrsn51


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

PostPosted: Sat 30 May 2009, 08:33    Post subject:  

Quote:
I notice in the readme script for the latest version of the installers, it says it is compatible with puppies back up to 2.17. What changes would need to be made for 2.15ce/2.14?


Probably nothing. I only tested as far back as 2.17.1. The significant differences in versions show up with full installs. That is why the installer scripts use the PUI to do the heavy lifting.
Back to top
View user's profile Send private message 
ecomoney


Joined: 25 Nov 2005
Posts: 2183
Location: Lincolnshire, England

PostPosted: Sat 30 May 2009, 13:33    Post subject:  

I tested with puppy 2.15ce and the scripts on a pendrive, test rig cyrix 150mhz, 4.3gb HD, 192mb RAM.

In earlier kernels I had heard that the mount points are called different things

dev/sda1 = dev/hda1
dev/sr0 = dev/cdrom

I changed these in the scripts, and hey presto it formatted the drive and copied the files! No grub install though, the reboot just hung at "Booting from IDE 0". I rebooted with "puppy pfix=ram" parameter and installed grub manually using the grubinstaller, and things were perfect.

Any Ideas rcrsn51

I think I may be able to adapt this script to have a gui confirm (GTK?) by borrowing some from the network wizard/ecopup shutdown dialogue...but how would I install Grub?

_________________
Puppy Linux's Mission

Sorry, my server is down atm!
Back to top
View user's profile Send private message Visit poster's website MSN Messenger 
rcrsn51


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

PostPosted: Sat 30 May 2009, 18:51    Post subject:  

I just installed 2.15CE using the most recent posted version of the scripts and it worked fine without modification.
Back to top
View user's profile Send private message 
ecomoney


Joined: 25 Nov 2005
Posts: 2183
Location: Lincolnshire, England

PostPosted: Sun 31 May 2009, 14:56    Post subject:  

Perhaps it was down to the clearly ancient hardware...I will do a more thorough test to identify the problem.
_________________
Puppy Linux's Mission

Sorry, my server is down atm!
Back to top
View user's profile Send private message Visit poster's website MSN Messenger 
Display posts from previous:   Sort by:   
Page 2 of 4 [51 Posts]   Goto page: Previous 1, 2, 3, 4 Next
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Advanced Topics » Puppy Projects
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.0897s ][ Queries: 13 (0.0145s) ][ GZIP on ]