From: "Peter Ryser" <Peter.Ryser@xilinx.com>
To: "'linuxppc-embedded@lists.linuxppc.org'"
<linuxppc-embedded@lists.linuxppc.org>
Subject: Re: root=/dev/ram0
Date: Thu, 26 Jul 2001 23:52:27 -0700 [thread overview]
Message-ID: <3B610FAB.DBD87F1C@xilinx.com> (raw)
In-Reply-To: 3B607757.6D4BFE4A@seranoa.com
Hi Andy,
configure your kernel with
- ramdisk support
- ramdisk support as boot device
- extended fs 2 support
make a minimal ramdisk consisting of the files/directories
/linuxrc
/dev/console
where
/linuxrc is a copy of sash
/dev/console is created with: mknod /dev/console c 5 1
compress the ramdisk and move it to
linux/arch/ppc/boot/tree/ramdisk.image.gz
There are two different ways to set the kernel command line (eventually in
linux/arch/ppc/boot/tree/main.c)
- leave it empty (do it this way for a start)
- set it to: root=/dev/ram0 init=/linuxrc rw
Build the kernel: make zImage.initrd
Download the image and boot.
I hope this helps
- Peter
Andrew Dixon wrote:
> Hi All,
> I'm trying to mount a compressed ramdisk image on /dev/ram0 and run my
> root filesystem from there. My problem is that when I try to boot I get
> the following error:
>
> VFS: Cannot open root device "ram0" or 01:00
> Please append a correct "root=" boot option
>
> earlier in the boot process the ram disks are recognized:
>
> RAMDISK driver initialized: 16 RAM disks of 4096K size 1024
> blocksize
>
> I'm using kernel 2.4.5-pre3 from Ben H's source.
>
> Anyone know why the kernel isn't able to open /dev/ram0?
>
> Thanks,
> Andy
>
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
prev parent reply other threads:[~2001-07-27 6:52 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-07-26 20:02 root=/dev/ram0 Andrew Dixon
2001-07-26 20:45 ` root=/dev/ram0 Paul Ruhland
2001-07-26 21:33 ` root=/dev/ram0 Andrew Dixon
2001-07-26 22:13 ` root=/dev/ram0 Rey Estrada
2001-07-27 3:01 ` root=/dev/ram0 Amit D Chaudhary
2001-07-27 12:50 ` root=/dev/ram0 Andrew Dixon
2001-07-27 19:53 ` root=/dev/ram0 Amit D Chaudhary
2001-07-27 6:52 ` Peter Ryser [this message]
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=3B610FAB.DBD87F1C@xilinx.com \
--to=peter.ryser@xilinx.com \
--cc=linuxppc-embedded@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).