From: Ashlesha Shintre <ashlesha@kenati.com>
To: linux-mips@linux-mips.org
Subject: initramfs -- boot args?
Date: Fri, 01 Dec 2006 17:59:51 -0800 [thread overview]
Message-ID: <1165024791.6535.43.camel@sandbar.kenati.com> (raw)
hi,
i m working on porting the 2.6.14.6 linux kernel to the encore m3 board
with the au1500 processor --
nfs is giving me errors (Kernel not syncing -- Attempted to kill init)
so i m trying to build an initrd image --
according to this document:
http://www.timesys.com/timesource/initramfs.htm
I built my own initramfs_data.cpio.gz file that contains the object file
for the hello world code below-
printkf("Hello World\n");
sleep(99999999);
return(0)
As part of make menuconfig, I pointed the CONFIG_INITRAMFS_SOURCE to the
loaction of this cpio.gz archive (which was abt 24MB) -- however, this
resulted in a Huge kernel image (174MB! -- i only have 64MB available on
this board) making it impossible to load the image onto the board.
then, I copied this initramfs_data.cpio.gz file into the linux/usr/
directory and build the kernel, leaving the CONFIG_INITRAMFS_SOURCE path
blank -- the size of the kernel build was back to normal
what boot args should I now supply to the board? i tried giving
root=/dev/ram0 rw ip=the usual and init=hello, but this does not
work..(as expected)
as i understand it, when the kernel is built with a non empty
initramfs_data.cpio.gz archive, it extracts the filesystem (in this case
init/hello) and mounts it as part of the rootfs...
Also, I m not sure how to enable support for initrd into my kernel, cus
there doesnt seem to be an option in the make menuconfig to that
effect?! -- but i m guessing it must be configured as i see the
CONFIG_INITRAMFS_SOURCE --
Could someone please point me to the right direction and also tell me if
what I m thinking is on the right/wrong track?
Thank you!
Ashlesha.
next reply other threads:[~2006-12-02 1:47 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-12-02 1:59 Ashlesha Shintre [this message]
2006-12-02 5:32 ` initramfs -- boot args? Chris Wedgwood
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=1165024791.6535.43.camel@sandbar.kenati.com \
--to=ashlesha@kenati.com \
--cc=linux-mips@linux-mips.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