linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* Large initrd and arch/ppc/boot/simple Question
@ 2003-07-01 20:29 Kent Borg
  2003-07-01 20:38 ` Wolfgang Denk
                   ` (2 more replies)
  0 siblings, 3 replies; 8+ messages in thread
From: Kent Borg @ 2003-07-01 20:29 UTC (permalink / raw)
  To: linuxppc-embedded


We are booting our kernel via the arch/ppc/boot/simple mechanism to
package up our kernel and initrd.  It seems to work, until we get too
big.  What is big?  Roughly 8 MB for our one big uncompressed userland
program, plus the kernel, bash, busybox, and various userland
utilities.

Can initrd's get that large and still work?  Is the simple boot code
sensible with these sizes?  (I notice that the "avail ram" message
that gets printed is just hard coded number...)


Thanks,

-kb, the Kent who is running roughly 2.4.21-pre6.

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

^ permalink raw reply	[flat|nested] 8+ messages in thread
* RE: Large initrd and arch/ppc/boot/simple Question
@ 2003-07-01 20:34 Kerl, John
  0 siblings, 0 replies; 8+ messages in thread
From: Kerl, John @ 2003-07-01 20:34 UTC (permalink / raw)
  To: 'Kent Borg', linuxppc-embedded


8 MB compressed (& if so: zvmlinux.initrd or
ramdisk.image.gz?) , or 8 MB uncompressed RAM
disk?

If the latter:  I've successfully used a RAM disk of
12 or 16 MB.  You need to (a) go into your kernel
config and set CONFIG_BLK_DEV_RAM_SIZE, and (b) modify
whatever it is that creates your RAM disk image
(dd + mke2fs perhaps).

If the former:  you might check the RAM address
of your firmware, the RAM runtime address of the
boot wrapper (-Ttext ???? in arch/ppc/boot/simple/Makefile),
and the size of your RAM.  The firmware needs to jump
into zvmlinux.initrd, which will copy itself to the
-Ttext address, then decompress the kernel to 0 and
copy the RAM disk to the end of RAM.  You can have
problems if any of these things overlap.


-----Original Message-----
From: Kent Borg [mailto:kentborg@borg.org]
Sent: Tuesday, July 01, 2003 1:30 PM
To: linuxppc-embedded@lists.linuxppc.org
Subject: Large initrd and arch/ppc/boot/simple Question



We are booting our kernel via the arch/ppc/boot/simple mechanism to
package up our kernel and initrd.  It seems to work, until we get too
big.  What is big?  Roughly 8 MB for our one big uncompressed userland
program, plus the kernel, bash, busybox, and various userland
utilities.

Can initrd's get that large and still work?  Is the simple boot code
sensible with these sizes?  (I notice that the "avail ram" message
that gets printed is just hard coded number...)


Thanks,

-kb, the Kent who is running roughly 2.4.21-pre6.


** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2003-07-02 16:54 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-07-01 20:29 Large initrd and arch/ppc/boot/simple Question Kent Borg
2003-07-01 20:38 ` Wolfgang Denk
2003-07-01 21:51 ` Kent Borg
2003-07-01 22:07   ` Mark Hatle
2003-07-02 16:54     ` Kent Borg
2003-07-01 22:12 ` Tom Rini
2003-07-01 22:19   ` Kent Borg
  -- strict thread matches above, loose matches on Subject: below --
2003-07-01 20:34 Kerl, John

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).