public inbox for linux-sh@vger.kernel.org
 help / color / mirror / Atom feed
From: Carmelo AMOROSO <carmelo.amoroso@st.com>
To: linux-sh@vger.kernel.org
Subject: Re: initramfs problems
Date: Tue, 16 Sep 2008 13:40:44 +0000	[thread overview]
Message-ID: <48CFB75C.10406@st.com> (raw)
In-Reply-To: <600adaf50809160627p8ed94c5y5e4502042c617808@mail.gmail.com>

Hi Tiago,
as in the previous mail, please for STLinux related issue, use bugzilla 
channel at https://bugzilla.stlinux.com/

Carmelo

Tiago Maluta wrote:
> Hi,
> 
> I'm with problems to attach an iniramfs to vmlinux. I'm using:
> linux-2.6.17.14_stm22_0038
> 
>>From Documentation/filesystem/ramfs-romfs-initramfs.txt I got that I
> can start initramfs by three ways
> 
> a) gzipped cpio archive
> b) directory containing a filesystem
> c) textfile
> 
> My first approach was using option b)
> 
> I read Documentation/early-userspace/README and populated a simple fs.
> Basically, for my first test, I used the filesystem that already use
> on MTD block.
> 
> I settled the folder CONFIG_INITRAMFS_SOURCE using menuconfig General
> Setup --> () Initramfs source file(s)
> 
> But I got kernel panic:
> 
> VFS: Cannot open root device "<NULL>" or unknown-block(2,0)
> Please append a correct "root=" boot option
> Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(2,0)
> 
> 
> After I tryed option c) setting CONFIG_INITRAMFS_SOURCE with a
> fileneme containing:
> 
> dir /dev 755 0 0
> nod /dev/console 644 0 0 c 5 1
> nod /dev/loop0 644 0 0 b 7 0
> dir /bin 755 1000 1000
> slink /bin/sh busybox 777 0 0
> file /bin/busybox initramfs/busybox 755 0 0
> dir /proc 755 0 0
> dir /sys 755 0 0
> dir /mnt 755 0 0
> file /init initramfs/init.sh 755 0 0
> 
> But I dind't know exactly how this option work (I made just for free
> my consciousness certainly that doesn't work)
> 
> I think the problem could be at GDB parameter. I'm using:
> 
> st40load_gdb \
>         -t $JEI_IP \
>         -b $KERNEL \
>         -c $BOARD \
>         console=ttyAS1,115200 \
>         root=/dev/nfs rw \
>         $ETHERNET \
>         $IDE \
>         $MTD \
>         nfsroot=$SERVERIP:$SERVERDIR,$TCP_UDP \
>         ip=$TARGETIP::$GWIP:$NETMASK:$NAME::$AUTOCONF \
>         mem6m \
>         bigphysarea\x1512
> 
> I also tried but init option (but I think with initramfs I could not
> be necessary).
> 
> Best regards,
> Tiago Maluta
> --
> To unsubscribe from this list: send the line "unsubscribe linux-sh" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> 


  reply	other threads:[~2008-09-16 13:40 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-09-16 13:27 initramfs problems Tiago Maluta
2008-09-16 13:40 ` Carmelo AMOROSO [this message]
2008-09-16 14:12 ` Paul Mundt

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=48CFB75C.10406@st.com \
    --to=carmelo.amoroso@st.com \
    --cc=linux-sh@vger.kernel.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