linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* Re: ramdisk for initrd
       [not found] ` <3A96709D.481683D4@dspace.de>
@ 2001-02-23 13:35   ` Ralph Blach
  0 siblings, 0 replies; only message in thread
From: Ralph Blach @ 2001-02-23 13:35 UTC (permalink / raw)
  To: Andreas Schreckenberg; +Cc: Tulika Pradhan, linuxppc-embedded

[-- 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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2001-02-23 13:35 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <LAW2-F77fTJ9w9wPzJ000001e45@hotmail.com>
     [not found] ` <3A96709D.481683D4@dspace.de>
2001-02-23 13:35   ` ramdisk for initrd Ralph Blach

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).