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 23 Oct 2014, 05:35
All times are UTC - 4
 Forum index » House Training » Users ( For the regulars )
Booting Sequence Question - Puppy 4 Series
Moderators: Flash, Ian, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [3 Posts]  
Author Message
john biles


Joined: 17 Sep 2006
Posts: 1408
Location: Australia

PostPosted: Tue 27 Mar 2012, 19:45    Post subject:  Booting Sequence Question - Puppy 4 Series
Subject description: What piece of code causing Puppy to load to RAM or H.D
 

Hello Those who worked on Puppy 4.2.1's development,
With the release of Legacy OS 4 Mini Users have discovered that some PC's with 256Mb's of Ram are trying to load Legacy OS 4 Mini (476Mb iso) in to RAM that is too small causing a "Kernel Panic Error" What should be happening is Legacy OS 4 Mini (Puppy 4.2.1 Base) should see the RAM is too small and run from the CD only.
Now what has also been discovered is that for users with 128Mb of RAM only, Legacy OS 4 Mini does do as expected and runs from CD only.

Select the option "noram" at boot up makes no difference.

Logic says that as the iso started out around 125Mb's in size Developers set the load to RAM option based on this size. If any of you remember where this piece of code is and what lines to change, can you please reply to this post.
Any advice would be appreciated. If you know but can't be bothered to post that's alright as well, LOL! As I've said before, see post http://www.murga-linux.com/puppy/viewtopic.php?t=76043 Wink

_________________
Legacy OS 2.1 LTS Released! Install me on a new! EXT2 Partition with 500Mb of swap and I'll be happy. Razz
Legacy OS 4 Released! Install to newer legacy hardware / early EeePC's Very Happy
Back to top
View user's profile Send private message Visit poster's website 
Karl Godt


Joined: 20 Jun 2010
Posts: 3972
Location: Kiel,Germany

PostPosted: Wed 28 Mar 2012, 02:44    Post subject:  

initrd.gz : "gunzip/zcat|cpio -d -i" it and look for the init script :
Quote:
#v405 decide whether to copy sfs's to ram...
COPY2RAM=""
COPYMSG='copying to ram' #purple
#v4.00 lowered rom 230000 to 220000... v403 added PUPSFSDEVMNTPT test... v404 explicit PCOPY needed...
[ $PUPMODE -eq 5 ] && PCOPY="yes" #well, override on first boot.
[ $PUPMODE -eq 77 ] && PCOPY="yes" #v406 multisession dvd.

#100406 this came about because aufs did not work if an sfs mounted via loop device as one layer
#was actually resident on another layer. however latest patched aufs may allow this...
if [ $KERNELSUBVER -lt 33 ];then
#v404 absolutely must copy to ram, otherwise layerfs conflict...
[ $PUPMODE -eq 6 -o $PUPMODE -eq 7 ] && COPY2RAM="yes"
[ "$COPY2RAM" = "yes" ] && COPYMSG='forced copying to ram' #purple
fi

#w482 lower this again, so multisession will work in 256MB system...
#[ $RAMSIZE -gt 260000 -a "$PCOPY" = "yes" ] && COPY2RAM="yes" #256MB system. note, only checking physical ram. w003 incr. from 220000.
[ $RAMSIZE -gt 220000 -a "$PCOPY" = "yes" ] && COPY2RAM="yes" #note, only checking physical ram.

Just a guess !
(Why the kernel looks for /init in intrd but for /sbin/init normally is a riddle but accepted by me .)
Back to top
View user's profile Send private message Visit poster's website 
ICPUG

Joined: 24 Jul 2005
Posts: 1290
Location: UK

PostPosted: Wed 28 Mar 2012, 08:40    Post subject:  

The guess is correct!

The kernel looks in initrd because initrd.gz is set as the initial ramdisk to boot.

init, within initrd.gz,gets executed to do all the setup stuff Puppy needs.

At the end of init a switch root is performed to setup the main file system from the layers of unionfs and Puppy is away!
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 1 [3 Posts]  
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » House Training » Users ( For the regulars )
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.0483s ][ Queries: 12 (0.0034s) ][ GZIP on ]