The time now is Mon 23 Apr 2018, 19:11
All times are UTC - 4 |
Author |
Message |
john biles

Joined: 17 Sep 2006 Posts: 1466 Location: Australia
|
Posted: 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
_________________ Legacy OS 2017 has been released.
|
Back to top
|
|
 |
Karl Godt

Joined: 20 Jun 2010 Posts: 4208 Location: Kiel,Germany
|
Posted: 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
|
|
 |
ICPUG
Joined: 24 Jul 2005 Posts: 1304 Location: UK
|
Posted: 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
|
|
 |
|
|
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.0312s ][ Queries: 12 (0.0053s) ][ GZIP on ] |