linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
From: "Jens Wirth" <jewirth@googlemail.com>
To: linuxppc-embedded@ozlabs.org, killyouatonce@gmail.com
Subject: Re: How to use ramdisk on the ml300?
Date: Thu, 14 Aug 2008 09:04:51 +0200	[thread overview]
Message-ID: <f944af2a0808140004w70948283nde0978d34d1db261@mail.gmail.com> (raw)
In-Reply-To: <931ae8260808132008i1cac2e91kc76c099ecc574cd0@mail.gmail.com>

Hi Yanlong,

On Thu, Aug 14, 2008 at 5:08 AM, yanlong wang <killyouatonce@gmail.com> wrote:
>      If i want use ramdisk on the ml300 , i must use u-boot in my system ?
>     many thanks

I suppose you want to use an initial ram filesystem as
rootfs to boot your system?

You have to point CONFIG_INITRAMFS_SOURCE="" to a cpio
archive or a directory which contains your rootfs. If
you use a directory structure then you should set your
uid/gid to make the build process convert the owner
to root:

# if your uid/gid is 500:
CONFIG_INITRAMFS_ROOT_UID=500
CONFIG_INITRAMFS_ROOT_GID=500

Don't forget to set CONFIG_BLK_DEV_RAM=y to be able
to use a ramdisk at all.

I'm also using the ml300 board and I create my kernel
with: make simpleImage.virtex405-ml300

My dts is arch/powerpc/boot/dts/virtex405-ml300.dts.
There is no kernel boot command line needed to use
the initramfs in my case (I only set up my console
to the uart). Just download the image
arch/powerpc/boot/simpleImage.virtex405-ml300.elf
with xmd to your ml300 and run it.

I hope this works for you.

Regards
Jens

  parent reply	other threads:[~2008-08-14  7:05 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-08-14  3:08 How to use ramdisk on the ml300? yanlong wang
2008-08-14  3:24 ` Stu Bershtein
2008-08-14  3:34   ` Philipp Hachtmann
2008-08-14  3:50 ` wangyanlong
2008-08-14  7:04 ` Jens Wirth [this message]
2008-08-14 10:44   ` wangyanlong
2008-08-14 13:54     ` Jens Wirth
2008-08-15  8:40 ` wangyanlong

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=f944af2a0808140004w70948283nde0978d34d1db261@mail.gmail.com \
    --to=jewirth@googlemail.com \
    --cc=killyouatonce@gmail.com \
    --cc=linuxppc-embedded@ozlabs.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).