From: Joel Vallier <vallier@col.bsf.alcatel.fr>
To: brendan@dgs.monash.edu.au
Cc: linuxppc-dev@lists.linuxppc.org
Subject: Re: embedded linux: initrd root file-system in flash.
Date: Mon, 06 Sep 1999 09:37:03 +0200 [thread overview]
Message-ID: <37D36F1F.15DF13EF@col.bsf.alcatel.fr> (raw)
Brendan Simon wrote:
>
> 1) Store it at a known location seperate from the kernel. eg.
> 0x400000. I think I like this option as the root filesystem can be
> updated without touching the kernel/boot code and the start address is
> always fixed. Does anyone know how to tell the kernel where the
> location of the initrd image is and how big it is ? I assume that the
> initrd image has to be uncompressed first or does the kernel assume it
> is compressed if the root filesystem is /dev/ram ?
>
At the Linux boot time, the Linux Loader gives the initrd start address
in register R4, initrd end address in register R5 and register R6 points
to a command line string "root=/dev/ram".
(See arch/ppc/kernel/head.S file for more details).
If the inird is compressed, the Linux Loader have to uncompressed it first.
>
> 2) Store it as a seperate section in the kernel image. This is what is
> done with the mbx boot code. The compressed kernel is stored as a
> separate section of the boot code image. I guess same questions for 1)
> apply for this method. The build processes can work out where to store
> the initrd image in the resultant loadable image. This information
> would have to be passed to the kernel. Any idea how this would be done
> ?
>
In this case initrd is included in the vmlinux. So, It's uncompressed by
the Linux Loader with the vmlinux image. The initrd location and size are
defined at the compilation time. See INITRD_OFFSET and INIT_SIZE in the
arch/ppc/boot/Makefile.
Joel Vallier
** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/
next reply other threads:[~1999-09-06 7:37 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
1999-09-06 7:37 Joel Vallier [this message]
-- strict thread matches above, loose matches on Subject: below --
1999-09-06 0:34 embedded linux: initrd root file-system in flash Brendan Simon
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=37D36F1F.15DF13EF@col.bsf.alcatel.fr \
--to=vallier@col.bsf.alcatel.fr \
--cc=brendan@dgs.monash.edu.au \
--cc=linuxppc-dev@lists.linuxppc.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).