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 Tue 30 Jun 2015, 17:48
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 Posts_count  
Author Message
john biles

Joined: 17 Sep 2006
Posts: 1433
Location: Australia

PostPosted: Tue 27 Mar 2012, 19:45    Post_subject:  Booting Sequence Question - Puppy 4 Series
Sub_title: 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_website 
Karl Godt

Joined: 20 Jun 2010
Posts: 4026
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 :
#v405 decide whether to copy sfs's to ram...
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

#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 

Joined: 24 Jul 2005
Posts: 1298
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:   Sort by:   
Page 1 of 1 Posts_count  
Post_new_topic   Reply_to_topic View_previous_topic :: View_next_topic
 Forum index » House Training » Users ( For the regulars )
Jump to:  

You cannot attach files in this forum
You can download files in this forum

Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0490s ][ Queries: 12 (0.0044s) ][ GZIP on ]