From: Ralph Blach <rcblach@raleigh.ibm.com>
To: Andreas Schreckenberg <ASchreckenberg@dspace.de>
Cc: Tulika Pradhan <tulikapradhan@hotmail.com>,
linuxppc-embedded@lists.linuxppc.org
Subject: Re: ramdisk for initrd
Date: Fri, 23 Feb 2001 08:35:35 -0500 [thread overview]
Message-ID: <3A966727.B5E50F07@raleigh.ibm.com> (raw)
In-Reply-To: 3A96709D.481683D4@dspace.de
[-- Attachment #1: Type: text/plain, Size: 1568 bytes --]
Andreas
I think this is better for making a ramdisk.
dd if=/dev/zero of=./ramdisk.img bs=1k count=1000
/sbin/mke2fs -q -F -m 0 ./ramdisk.img
mkdir /mnt/foo
mount -o loop ./ramdisk.img /mnt/foo
cd /mnt/foo
tar xzf ~-/ram.tgz
Andreas Schreckenberg wrote:
>
> Tulika Pradhan wrote:
> >
> > hi !
>
> Hi,
>
> > i need a minimal ramdisk image for booting up linux on a embedded ppc board.
> > i tried monteVista site (as i saw a mail in the mailing list archive), but i
> > already have a development platform so, how can i download a ramdisk image
> > without downloading CDK. I use Red Hat linux v6.2 and ppc 603e processor.
> >
> > Any help would be great.
>
> I use the following script for a 4MB ramdisk:
> You must be "root" and have ramdisk support
>
> dd if=/dev/zero of=/dev/ram bs=1k count=4096
> mke2fs -vm0 /dev/ram 4096
> mkdir -p /mnt/ram
> mount /dev/ram /mnt/ram
> (cd file_system; cp -a * /mnt/ram)
> umount /mnt/ram
> rmdir /mnt/ram
> dd if=/dev/ram of=fs_images/ramdisk.image bs=1k count=4096
> gzip -v9f ramdisk.image
>
> First create a directory called "file_system"
> and copy the files you need into it.
>
> you create a initial console in file_system/dev with
> mknod c 5 1 file_system/dev
>
> and a shell in file_system/bin, file_system/etc, or file_system/sbin...
> (I use the static sash from MontaVista, rename it as init)
>
> hope you can use this
>
> bye
> Andreas
> --
> Life's not fair. But the root password helps ! :-)
> http://schrecky.home.pages.de
> Open minds. Open sources. Open future.
>
[-- Attachment #2: Card for Ralph Blach --]
[-- Type: text/x-vcard, Size: 247 bytes --]
begin:vcard
n:Blach;Ralph
tel;work:919-543-1207
x-mozilla-html:TRUE
url:www.ibm.com
org:IBM MicroElectronics
adr:;;3039 Cornwallis ;RTP;NC;27709;USA
version:2.1
email;internet:rcblach@raleigh.ibm.com
x-mozilla-cpt:;15936
fn:Ralph Blach
end:vcard
parent reply other threads:[~2001-02-23 13:35 UTC|newest]
Thread overview: expand[flat|nested] mbox.gz Atom feed
[parent not found: <3A96709D.481683D4@dspace.de>]
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=3A966727.B5E50F07@raleigh.ibm.com \
--to=rcblach@raleigh.ibm.com \
--cc=ASchreckenberg@dspace.de \
--cc=linuxppc-embedded@lists.linuxppc.org \
--cc=tulikapradhan@hotmail.com \
/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).