ts-7000
[Top] [All Lists]

[ts-7000] Re: initramfs 2.6.19 on TS7250

To:
Subject: [ts-7000] Re: initramfs 2.6.19 on TS7250
From: "siddh_c" <>
Date: Mon, 27 Aug 2007 01:23:45 -0000
> >
> > I have been unable to boot with initramfs on TS7250 :( I read up a
> > couple of posts and also some howtos on initramfs but still get the
> > kernel VFS panic! Here is what I've done so far:
> >
> > - Downloaded an armimage.tar rootfs from one of the links found in
> > this group.
> >
> > - Just to confirm that the image is for arm, ran `file
> > armimage/bin/busybox` command which says busybox is ELF ARM, so I
> > guess the image is ok. Also it seems to have all the important dirs in
> > place. There is no file in / by name init though. I read somewhere
> > that Linux needs to execute this in case of initramfs, but it can be
> > overridden with init=/bin/sh option given as kernel command line.
> >
> > - Created a file called initramfs_data.cpio.gz using the following
> > command from the armimage directory:
> > find . | cpio -o -H ../newc | gzip > ../initramfs_data_cpio.gz
> >
> > - Replaced the $KERNEL_SRC/usr/initramfs_data.cpio.gz with the one
> > generated above.
> >
> > - Compile the kernel with make ARCH=arm CROSS_COMPILE=arm-linux- . Is
> > there any other target given to make so that initramfs is included in
> > the kernel ?
> >
> > - Load zImage via tftp
> >
> > - Boot with the following option
> > exec -c "console=ttyAM0,115200 init=/bin/sh"
> >
> > - When I boot, I get the kernel panic:
> >  "No filesystem could mount root, tried:  ext3 ext2 vfat
> > Kernel panic - not syncing: VFS: Unable to mount root fs on
> > unknown-block(31,1)"
> >
> > Any ideas what I am missing here ? I am using a debian host.
> 
> CONFIG_INITRAMFS_SOURCE? kernel won't load the initramfs unless you
tell  
> it that it's supposed to..
> 
> When I make kernels, I simply point the kernel at the directory which  
> contains the files for my initramfs, and it figures the rest out

I forgot to mention. Here is my .config file:
CONFIG_INITRAMFS_SOURCE=""
#CONFIG_INITRAMFS_ROOT_UID=0
#CONFIG_INITRAMFS_ROOT_GID=0

I left it blank because I think the kernel will pickup
usr/initramfs_data.cpio.gz if CONFIG_INITRAMFS_SOURCE is left to a
NULL string ? 

Also, could you please answer the following regarding your configuration:
- Does your initramfs dir have an execuable called /init in the top
level directory of the rootfs ? Do you give any parameter to the
kernel like init= ? 
- Did you handcraft the initramfs image or is there a place where I
can get one prebuilt for arm ? 

Thanks for your replies,
-siddharth




 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/ts-7000/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/ts-7000/join
    (Yahoo! ID required)

<*> To change settings via email:
     
    

<*> To unsubscribe from this group, send an email to:
    

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 

<Prev in Thread] Current Thread [Next in Thread>
Admin

Disclaimer: Neither Andrew Taylor nor the University of NSW School of Computer and Engineering take any responsibility for the contents of this archive. It is purely a compilation of material sent by many people to the birding-aus mailing list. It has not been checked for accuracy nor its content verified in any way. If you wish to get material removed from the archive or have other queries about the archive e-mail Andrew Taylor at this address: andrewt@cse.unsw.EDU.AU