Kernel panic : No Init Found

2008-08-18 Thread Fabien Oriede
Hi all,
I have downloaded the SELF pRamdisk image from the DENX website and I placed it 
in FLASH at 0xFFC0. The init file is in /sbin/init. When I try to boot 
Linux with "bootm ffa0 ffc0", Linux mounts the initrd image and 
next, it shows the message "No Init Found" even if I have "init=/sbin/init" in 
the kernel command line.
Does I need to activate MTD options in the kernel to use an initrd image ?
Thanks,
Fabien.


  
_ 
Envoyez avec Yahoo! Mail. Une boite mail plus intelligente http://mail.yahoo.fr___
Linuxppc-embedded mailing list
Linuxppc-embedded@ozlabs.org
https://ozlabs.org/mailman/listinfo/linuxppc-embedded

Re: Booting ML405 (Kernel panic - not syncing: No init found)

2008-07-17 Thread Neeraj Garg

Hi,

I changed the owner of the busybox, and used chmod as you told me for 
bin/busybox but its permission are -rwsrwxr-x not srwxrwxr-x-r.


--for compiling helloworld I used $powerpc-405-linux-gnu-gcc -static 
helloworld.c -o helloworld


--For ramdisk creation I followed the following steps:

mkdir tmp/initrd
dd if=/dev/zero of=images/initrd.img bs=1k count=8192
/sbin/mke2fs -F -v -m0 images/initrd.img
mount -o loop images/initrd.img tmp/initrd
cp -av ramdisk/* tmp/initrd

//here ramdisk holds directory structure.. I copied directory structure 
from git, linux support ...but I changed lib and bin contents (bin
contents with busybox-1.10.3 installation, and lib contents with lib of 
my cross-compiler setup ,crosstool-0.28-rc35)


umount tmp/initrd
gzip < images/initrd.img > images/ramdisk.image.gz

For making directory structure of ramdisk I followed following steps
for file in libc libcrypt libdl libm libpthread libresolv libutil
do
cp $file-*.so /home/neeraj/kerneldev/rootfs0.1/lib
cp -d $file.so.[*0-9] /home/neeraj/kerneldev/rootfs0.1/lib
done
cp -d ld*.so* /home/neeraj/kerneldev/rootfs0.1/lib

And in menuconfig I selected filesystem as ramdisk with following 
settings
<*>   RAM block device support 
(16)Default number of RAM disks
(32768) Default RAM disk size (kbytes) 


// I think here can be the issue

---
Neeraj Garg




Ron Sass wrote:

Hmmm... I think you've got a problem with your ramdisk.  There are
a couple of issues but these alone don't explain your helloworld test.

1.  busybox should be set to root not neeraj 
2.  you need to setuid busybox for some apps to run

(chmod 4775 bin/busybox so that it is srwxrwxr-x-r)
3.  I would be wary of Yaghmour's text... it is a little dated
and if I remember correctly, he uses some regular expressions
to copy "just" the libraries you need to lib; but with
newer versions of gcc/glibc these regular expressions
don't catch everything

Two questions:

Can you tell me exactly what your cross-compile command-line looks
like?  How are compiling helloworld?

How are you creating the ramdisk?  How do you go from directory
structure to ramdisk.image.gz?

Ron

  

Hi,

--Ron,Permissions are -rwxrwxr-x for all and owner is neeraj itself. And 
shared libraries are present in lib/ . Now I have placed helloworld.elf 
(using printf to print helloworld, and linked with -static option) in 
bin/ and changed init=/bin/helloworld , again it says cannot execute 
/bin/helloworld.


--John, we are using our custom hardware board, not exactly ML405 but 
its more or less similar to ML405, so I cannot use bit file provided for 
ML405. Till now we were using xilkernel, but now onward we are planning 
to use Linux. For serial console I have no option other than uartlite. 
This is how I compiled kernel :


1) make ARCH=ppc ml405_defconfig
2) patched kernel src with EDK(10.1) , so as to change xparameter.h, and 
later made some changed in arch/ppc/boot/simple/embed_config.c and 
xparameters.h file.
3) make ARCH=ppc menuconfig , and selected uartlite to be console and 
ramdisk as file system.
4) Created ramdisk (as per Building embedded linux, Karim Yaghmour, 
however major and minor number for device nodes is similar to ramdisk 
provided at git.xilinx.com)

5) I have placed this ramdisk in arch/ppc/boot/images
6) And then issued $make ARCH=ppc CROSS_COMPILE=powerpc-405-linux-gnu- 
zImge.initrd



--I have downloaded   ELDK4.1 and installed it. And when I compile 
simple helloworld.c using cross compiler, it says unresolved symbol 
'printf' . Is there anything else to install with ELDK ?



---
Neeraj Garg



In addition to what John wrote, I would also investigate your ramdisk.
I would be sure to check that you have the permissions/owner set correctly
on bin/busybox.  Also, I would double check that, if you compiled busybox
with shared libraries, the shared libraries are in the right place
on your ramdisk.


Ron

 >
 > Hi,
 >
 > Yes I am using ARCH=ppc (actual line is $make ARCH=ppc
 > CROSS_COMPILE=powerpc-405-linux-gnu- zImage.initrd ) for this I have
 > placed ramdisk.image.gz in arch/ppc/boot/images. In case of ARCH=powerpc
 > I cannot find processor type 405 , in make menuconfig. Thats why i am
 > using ARCH=ppc.
 >

--060307000300070002040802
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit




  


Hi,

--Ron,Permissions are -rwxrwxr-x for all and owner is neeraj itself.
And shared libraries are present in lib/ . Now I have placed
helloworld.elf (using printf to print helloworld, and linked with
-static option) in bin/ and changed init=/bin/helloworld , again it
says cannot execute /bin/helloworld. 

--John, we are using our custom hardware board, not exactly ML405 but
its more or less similar to ML405, so I cannot use bit file provided
for ML405. Till now we were using xilkernel,

Re: Booting ML405 (Kernel panic - not syncing: No init found)

2008-07-16 Thread Ron Sass

Hmmm... I think you've got a problem with your ramdisk.  There are
a couple of issues but these alone don't explain your helloworld test.

1.  busybox should be set to root not neeraj 
2.  you need to setuid busybox for some apps to run
(chmod 4775 bin/busybox so that it is srwxrwxr-x-r)
3.  I would be wary of Yaghmour's text... it is a little dated
and if I remember correctly, he uses some regular expressions
to copy "just" the libraries you need to lib; but with
newer versions of gcc/glibc these regular expressions
don't catch everything

Two questions:

Can you tell me exactly what your cross-compile command-line looks
like?  How are compiling helloworld?

How are you creating the ramdisk?  How do you go from directory
structure to ramdisk.image.gz?

Ron

> 
> Hi,
> 
> --Ron,Permissions are -rwxrwxr-x for all and owner is neeraj itself. And 
> shared libraries are present in lib/ . Now I have placed helloworld.elf 
> (using printf to print helloworld, and linked with -static option) in 
> bin/ and changed init=/bin/helloworld , again it says cannot execute 
> /bin/helloworld.
> 
> --John, we are using our custom hardware board, not exactly ML405 but 
> its more or less similar to ML405, so I cannot use bit file provided for 
> ML405. Till now we were using xilkernel, but now onward we are planning 
> to use Linux. For serial console I have no option other than uartlite. 
> This is how I compiled kernel :
> 
> 1) make ARCH=ppc ml405_defconfig
> 2) patched kernel src with EDK(10.1) , so as to change xparameter.h, and 
> later made some changed in arch/ppc/boot/simple/embed_config.c and 
> xparameters.h file.
> 3) make ARCH=ppc menuconfig , and selected uartlite to be console and 
> ramdisk as file system.
> 4) Created ramdisk (as per Building embedded linux, Karim Yaghmour, 
> however major and minor number for device nodes is similar to ramdisk 
> provided at git.xilinx.com)
> 5) I have placed this ramdisk in arch/ppc/boot/images
> 6) And then issued $make ARCH=ppc CROSS_COMPILE=powerpc-405-linux-gnu- 
> zImge.initrd
> 
> 
> --I have downloaded   ELDK4.1 and installed it. And when I compile 
> simple helloworld.c using cross compiler, it says unresolved symbol 
> 'printf' . Is there anything else to install with ELDK ?
> 
> 
> ---
> Neeraj Garg
> 
> 
> 
> In addition to what John wrote, I would also investigate your ramdisk.
> I would be sure to check that you have the permissions/owner set correctly
> on bin/busybox.  Also, I would double check that, if you compiled busybox
> with shared libraries, the shared libraries are in the right place
> on your ramdisk.
> 
> 
> Ron
> 
>  >
>  > Hi,
>  >
>  > Yes I am using ARCH=ppc (actual line is $make ARCH=ppc
>  > CROSS_COMPILE=powerpc-405-linux-gnu- zImage.initrd ) for this I have
>  > placed ramdisk.image.gz in arch/ppc/boot/images. In case of ARCH=powerpc
>  > I cannot find processor type 405 , in make menuconfig. Thats why i am
>  > using ARCH=ppc.
>  >
> 
> --060307000300070002040802
> Content-Type: text/html; charset=ISO-8859-1
> Content-Transfer-Encoding: 7bit
> 
> 
> 
> 
>   
> 
> 
> Hi,
> 
> --Ron,Permissions are -rwxrwxr-x for all and owner is neeraj itself.
> And shared libraries are present in lib/ . Now I have placed
> helloworld.elf (using printf to print helloworld, and linked with
> -static option) in bin/ and changed init=/bin/helloworld , again it
> says cannot execute /bin/helloworld. 
> 
> --John, we are using our custom hardware board, not exactly ML405 but
> its more or less similar to ML405, so I cannot use bit file provided
> for ML405. Till now we were using xilkernel, but now onward we are
> planning to use Linux. For serial console I have no option other than
> uartlite. This is how I compiled kernel :
> 
> 1) make ARCH=ppc ml405_defconfig
> 2) patched kernel src with EDK(10.1) , so as to change xparameter.h,
> and later made some changed in arch/ppc/boot/simple/embed_config.c and
> xparameters.h file.
> 3) make ARCH=ppc menuconfig , and selected uartlite to be console and
> ramdisk as file system.
> 4) Created ramdisk (as per Building embedded linux, Karim Yaghmour,
> however major and minor number for device nodes is similar to ramdisk
> provided at git.xilinx.com)
> 5) I have placed this ramdisk in arch/ppc/boot/images
> 6) And then issued $make ARCH=ppc CROSS_COMPILE=powerpc-405-linux-gnu-
> zImge.initrd
> 
> 
> --I have downloaded   ELDK4.1 and installed it. And when I compile
> simple helloworld.c using cross compiler, it says unresolved symbol
> 'printf' . Is there anything else to install with ELDK ?
> 
> 
> 
> ---
> Neeraj Garg
> 
> 
> 
> 
> In addition to what John wrote, I would also investigate your ramdisk.
> 
> I would be sure to check that you have the permissions/owner set
> correctly
> 
> on bin/busybox.  Also, I would double check that, if you compiled
> bus

Re: Booting ML405 (Kernel panic - not syncing: No init found)

2008-07-14 Thread Neeraj Garg

Hi,

--Ron,Permissions are -rwxrwxr-x for all and owner is neeraj itself. And 
shared libraries are present in lib/ . Now I have placed helloworld.elf 
(using printf to print helloworld, and linked with -static option) in 
bin/ and changed init=/bin/helloworld , again it says cannot execute 
/bin/helloworld.


--John, we are using our custom hardware board, not exactly ML405 but 
its more or less similar to ML405, so I cannot use bit file provided for 
ML405. Till now we were using xilkernel, but now onward we are planning 
to use Linux. For serial console I have no option other than uartlite. 
This is how I compiled kernel :


1) make ARCH=ppc ml405_defconfig
2) patched kernel src with EDK(10.1) , so as to change xparameter.h, and 
later made some changed in arch/ppc/boot/simple/embed_config.c and 
xparameters.h file.
3) make ARCH=ppc menuconfig , and selected uartlite to be console and 
ramdisk as file system.
4) Created ramdisk (as per Building embedded linux, Karim Yaghmour, 
however major and minor number for device nodes is similar to ramdisk 
provided at git.xilinx.com)

5) I have placed this ramdisk in arch/ppc/boot/images
6) And then issued $make ARCH=ppc CROSS_COMPILE=powerpc-405-linux-gnu- 
zImge.initrd



--I have downloaded   ELDK4.1 and installed it. And when I compile 
simple helloworld.c using cross compiler, it says unresolved symbol 
'printf' . Is there anything else to install with ELDK ?



---
Neeraj Garg



In addition to what John wrote, I would also investigate your ramdisk.
I would be sure to check that you have the permissions/owner set correctly
on bin/busybox.  Also, I would double check that, if you compiled busybox
with shared libraries, the shared libraries are in the right place
on your ramdisk.


Ron

>
> Hi,
>
> Yes I am using ARCH=ppc (actual line is $make ARCH=ppc
> CROSS_COMPILE=powerpc-405-linux-gnu- zImage.initrd ) for this I have
> placed ramdisk.image.gz in arch/ppc/boot/images. In case of ARCH=powerpc
> I cannot find processor type 405 , in make menuconfig. Thats why i am
> using ARCH=ppc.
>
___
Linuxppc-embedded mailing list
Linuxppc-embedded@ozlabs.org
https://ozlabs.org/mailman/listinfo/linuxppc-embedded

Re: Booting ML405 (Kernel panic - not syncing: No init found)

2008-07-10 Thread Ron Sass

In addition to what John wrote, I would also investigate your ramdisk.
I would be sure to check that you have the permissions/owner set correctly
on bin/busybox.  Also, I would double check that, if you compiled busybox
with shared libraries, the shared libraries are in the right place
on your ramdisk.

Ron

> 
> Hi,
> 
> Yes I am using ARCH=ppc (actual line is $make ARCH=ppc 
> CROSS_COMPILE=powerpc-405-linux-gnu- zImage.initrd ) for this I have 
> placed ramdisk.image.gz in arch/ppc/boot/images. In case of ARCH=powerpc 
> I cannot find processor type 405 , in make menuconfig. Thats why i am 
> using ARCH=ppc.
> 
> And when I give kernel command string as init=/bin/sh , it says :
>  >Failed to execute /bin/sh.  Attempting defaults...
> [    3.744035] Kernel panic - not syncing: No init found.  Try passing 
> init= option to kernel.
> [3.768073] Rebooting in 30 seconds..
> 
> --init is present in sbin/init which is a soft link to ../bin/busybox
> 
> --I used powepc-405-gnu-readelf -h bin/sh to verify that it is compiled 
> for powerpc itself.
> 
> Any other suggestions ?
> 
___
Linuxppc-embedded mailing list
Linuxppc-embedded@ozlabs.org
https://ozlabs.org/mailman/listinfo/linuxppc-embedded


RE: Booting ML405 (Kernel panic - not syncing: No init found)

2008-07-10 Thread John Linn
With regards to arch/ppc:

 

I just built and tested it from the Xilinx Git tree (with ELDK 4.1) and
don't see the problem you see.  You shouldn't need anything on the
command line for the init, but I tried it matching yours without any
issue.  

 

I noticed that you are using a UART Lite and I test with 16550.  We have
a reference design available for the 405 also to help you get a baseline
before you make changes, you can see where to get it at
http://git.xilinx.com <http://git.xilinx.com/>  also.   Getting a good
solid baseline before you make changes can make life easier, and maybe
you already did this and I don't realize it ;).

 

I can't tell how your kernel is configured, so I would use the Xilinx
provided default kernel configuration, then make changes from there
(like from 8250 UART and console to UART Lite).

 

>make ARCH=ppc ml405_defconfig

>make ARCH=ppc zImage.initrd

 

Since you pulled from the Xilinx Git tree, you should be able to get the
ML405 running easily (assuming I have done my job right).

 

You should be able to use arch/powerpc and it would be best to do that
as arch/ppc is not well supported now.  If you use the Xilinx default
kernel configuration you shouldn't need to do anything (such as finding
405 in the menuconfig)  if you use our reference design for the board
(bit stream).

 

I just tested from the Xilinx Git tree on the ML405 with arch/powerpc
and it looked good (using ELDK 4.1 tools).  The following commands
should build a kernel that runs on it. You might want to update if you
haven't pulled from the Xilinx Git tree in a while (git pull, or clone
the tree again in a new directory).

 

>make ARCH=powerpc mrproper

>make ARCH=powerpc ml405_defconfig

>make ARCH=powerpc zImage.initrd

 

With regards to the fact that you're restricting the memory to 32 Meg,
you might get try not doing this to get the kernel running properly,
then make that change.

 

Hope that helps,

John

 

 



From: neeraj garg [mailto:[EMAIL PROTECTED] 
Sent: Thursday, July 10, 2008 1:25 AM
To: [EMAIL PROTECTED]; John Linn; [EMAIL PROTECTED]
Cc: linuxppc-embedded@ozlabs.org
Subject: Re: Booting ML405 (Kernel panic - not syncing: No init found)

 

Hi,

Yes I am using ARCH=ppc (actual line is $make ARCH=ppc
CROSS_COMPILE=powerpc-405-linux-gnu- zImage.initrd ) for this I have
placed ramdisk.image.gz in arch/ppc/boot/images. In case of ARCH=powerpc
I cannot find processor type 405 , in make menuconfig. Thats why i am
using ARCH=ppc.

And when I give kernel command string as init=/bin/sh , it says : 
>Failed to execute /bin/sh.  Attempting defaults...
[3.744035] Kernel panic - not syncing: No init found.  Try passing
init= option to kernel.
[3.768073] Rebooting in 30 seconds..

--init is present in sbin/init which is a soft link to ../bin/busybox

--I used powepc-405-gnu-readelf -h bin/sh to verify that it is compiled
for powerpc itself.

Any other suggestions ?




-
Neeraj Garg
 



Grant Likely wrote: 

On Wed, Jul 09, 2008 at 10:24:13AM +0530, neeraj garg wrote:
  

Hi,
 
I am trying to boot ML405 with Linux source code downloaded from

http://www.git.xilinx.com . My cross compiler tool chain version
is  
gcc-3.4.1, glibc-2.3.2 and binutils-2.15. I have also downloaded
RAMDISK  
from same url (http://www.git.xilinx.com). When I download  
zImage.initrd.elf using XMD everything goes fine, untill RAMDISK
is  
uncompressed, I get following messages :
 



  

  [3.736691] Failed
to  
execute /sbin/init.  Attempting defaults...
    [3.748073] Kernel panic - not syncing: No init found.  Try
passing  
init= option to kernel.
[3.772040] Rebooting in 180 seconds..[  183.487314]
Signal: 8
 


 
Try changing the kernel parameters line to specify init=/bin/sh and see
what happens.
 
g.
  


This email and any attachments are intended for the sole use of the named 
recipient(s) and contain(s) confidential information that may be proprietary, 
privileged or copyrighted under applicable law. If you are not the intended 
recipient, do not read, copy, or forward this email message or any attachments. 
Delete this email message and any attachments immediately.

___
Linuxppc-embedded mailing list
Linuxppc-embedded@ozlabs.org
https://ozlabs.org/mailman/listinfo/linuxppc-embedded

Re: Booting ML405 (Kernel panic - not syncing: No init found)

2008-07-10 Thread neeraj garg

Hi,

Yes I am using ARCH=ppc (actual line is $make ARCH=ppc 
CROSS_COMPILE=powerpc-405-linux-gnu- zImage.initrd ) for this I have 
placed ramdisk.image.gz in arch/ppc/boot/images. In case of ARCH=powerpc 
I cannot find processor type 405 , in make menuconfig. Thats why i am 
using ARCH=ppc.


And when I give kernel command string as init=/bin/sh , it says :
>Failed to execute /bin/sh.  Attempting defaults...
[3.744035] Kernel panic - not syncing: No init found.  Try passing 
init= option to kernel.

[3.768073] Rebooting in 30 seconds..

--init is present in sbin/init which is a soft link to ../bin/busybox

--I used powepc-405-gnu-readelf -h bin/sh to verify that it is compiled 
for powerpc itself.


Any other suggestions ?

-
Neeraj Garg




Grant Likely wrote:

On Wed, Jul 09, 2008 at 10:24:13AM +0530, neeraj garg wrote:
  

Hi,

I am trying to boot ML405 with Linux source code downloaded from  
http://www.git.xilinx.com . My cross compiler tool chain version is  
gcc-3.4.1, glibc-2.3.2 and binutils-2.15. I have also downloaded RAMDISK  
from same url (http://www.git.xilinx.com). When I download  
zImage.initrd.elf using XMD everything goes fine, untill RAMDISK is  
uncompressed, I get following messages :





  
  [3.736691] Failed to  
execute /sbin/init.  Attempting defaults...
[3.748073] Kernel panic - not syncing: No init found.  Try passing  
init= option to kernel.

[3.772040] Rebooting in 180 seconds..[  183.487314]   Signal: 8




Try changing the kernel parameters line to specify init=/bin/sh and see
what happens.

g.
  
___
Linuxppc-embedded mailing list
Linuxppc-embedded@ozlabs.org
https://ozlabs.org/mailman/listinfo/linuxppc-embedded

RE: Booting ML405 (Kernel panic - not syncing: No init found)

2008-07-09 Thread John Linn
The only difference I see is the tools, we are using ELDK 4.1 for now.

I have tested this on the ML405 in the past, not for a bit as our
automated testing uses an NFS root.

Since this is arch/ppc (it appears, no boot line), we have stopped work
on this architecture and are now encouraging (maybe a stronger word is
needed) you to move to arch/powerpc.

The arch/ppc was last stable at git tag last-arch-ppc and I know it
started getting more unstable after I started pulling in 2.6.26-rcx.  We
won't be doing any more changes to arch/ppc.

-- John

> -Original Message-
> From: [EMAIL PROTECTED]
[mailto:linuxppc-embedded-
> [EMAIL PROTECTED] On Behalf Of Grant Likely
> Sent: Wednesday, July 09, 2008 8:33 AM
> To: neeraj garg
> Cc: linuxppc-embedded@ozlabs.org
> Subject: Re: Booting ML405 (Kernel panic - not syncing: No init found)
> 
> On Wed, Jul 09, 2008 at 10:24:13AM +0530, neeraj garg wrote:
> > Hi,
> >
> > I am trying to boot ML405 with Linux source code downloaded from
> > http://www.git.xilinx.com . My cross compiler tool chain version is
> > gcc-3.4.1, glibc-2.3.2 and binutils-2.15. I have also downloaded
RAMDISK
> > from same url (http://www.git.xilinx.com). When I download
> > zImage.initrd.elf using XMD everything goes fine, untill RAMDISK is
> > uncompressed, I get following messages :
> >
> 
> >   [3.736691] Failed to
> > execute /sbin/init.  Attempting defaults...
> > [3.748073] Kernel panic - not syncing: No init found.  Try
passing
> > init= option to kernel.
> > [3.772040] Rebooting in 180 seconds..[  183.487314]   Signal: 8
> >
> 
> Try changing the kernel parameters line to specify init=/bin/sh and
see
> what happens.
> 
> g.
> 
> ___
> Linuxppc-embedded mailing list
> Linuxppc-embedded@ozlabs.org
> https://ozlabs.org/mailman/listinfo/linuxppc-embedded


This email and any attachments are intended for the sole use of the named 
recipient(s) and contain(s) confidential information that may be proprietary, 
privileged or copyrighted under applicable law. If you are not the intended 
recipient, do not read, copy, or forward this email message or any attachments. 
Delete this email message and any attachments immediately.


___
Linuxppc-embedded mailing list
Linuxppc-embedded@ozlabs.org
https://ozlabs.org/mailman/listinfo/linuxppc-embedded


Re: Booting ML405 (Kernel panic - not syncing: No init found)

2008-07-09 Thread Grant Likely
On Wed, Jul 09, 2008 at 10:24:13AM +0530, neeraj garg wrote:
> Hi,
>
> I am trying to boot ML405 with Linux source code downloaded from  
> http://www.git.xilinx.com . My cross compiler tool chain version is  
> gcc-3.4.1, glibc-2.3.2 and binutils-2.15. I have also downloaded RAMDISK  
> from same url (http://www.git.xilinx.com). When I download  
> zImage.initrd.elf using XMD everything goes fine, untill RAMDISK is  
> uncompressed, I get following messages :
>

>   [3.736691] Failed to  
> execute /sbin/init.  Attempting defaults...
> [3.748073] Kernel panic - not syncing: No init found.  Try passing  
> init= option to kernel.
> [3.772040] Rebooting in 180 seconds..[  183.487314]   Signal: 8
>

Try changing the kernel parameters line to specify init=/bin/sh and see
what happens.

g.

___
Linuxppc-embedded mailing list
Linuxppc-embedded@ozlabs.org
https://ozlabs.org/mailman/listinfo/linuxppc-embedded


Re: Booting ML405 (Kernel panic - not syncing: No init found)

2008-07-09 Thread Marco Stornelli

neeraj garg ha scritto:

Hi,

I am trying to boot ML405 with Linux source code downloaded from 
http://www.git.xilinx.com . My cross compiler tool chain version is 
gcc-3.4.1, glibc-2.3.2 and binutils-2.15. I have also downloaded RAMDISK 
from same url (http://www.git.xilinx.com). When I download 
zImage.initrd.elf using XMD everything goes fine, untill RAMDISK is 
uncompressed, I get following messages :



loaded at: 0040 008E519C
board data at: 008E3120 008E319C
relocated to:  00404074 004040F0
zimage at: 00404E65 00517841
initrd at: 00518000 008E2B4A
avail ram: 008E6000 0200   //there is restriction to use 32 MB 
of memory


some of the initial messages, and then

[0.00] Zone PFN ranges:
[0.00]   DMA 0 -> 8192
[0.00]   Normal   8192 -> 8192
[0.00] Movable zone start PFN for each node
[0.00] early_node_map[1] active PFN ranges
[0.00] 0:0 -> 8192
[0.00] Built 1 zonelists in Zone order, mobility grouping on.  
Total pages: 8128
[0.00] Kernel command line: console=ttyUL0,19200 ip=off 
root=/dev/ram rw init=/sbin/init

[0.00] Xilinx INTC #0 at 0x1E00 mapped to 0xFDFFF000
[0.00] PID hash table entries: 128 (order: 7, 512 bytes)
[0.000116] Console: colour dummy device 80x25
[0.000285] Dentry cache hash table entries: 4096 (order: 2, 16384 
bytes)

[0.000506] Inode-cache hash table entries: 2048 (order: 1, 8192 bytes)
[0.004931] Memory: 26168k available (1740k kernel code, 576k data, 
104k init, 0k highmem)

[0.096364] Mount-cache hash table entries: 512

few more messages, and then

[2.218059] RAMDISK: Compressed image found at block 0
[3.708864] VFS: Mounted root (ext2 filesystem).
[3.716225] Freeing unused kernel memory
  [3.736691] Failed to 
execute /sbin/init.  Attempting defaults...
[3.748073] Kernel panic - not syncing: No init found.  Try passing 
init= option to kernel.

[3.772040] Rebooting in 180 seconds..[  183.487314]   Signal: 8


[  183.487322]   Code:   0
[  183.487329]   Addr:   c0010540
[  183.488000] Oops: Exception in kernel mode, sig: 8 [#1]
[  183.488000] NIP: c0010540 LR: 00029030 CTR: c0246cec
[  183.488000] REGS: c1c17dd0 TRAP: 2007e90   Not tainted  (2.6.25-xlnx)
[  183.488000] MSR:  <>  CR: c022e764  XER: c024c0e8
[  183.488000] TASK = c1c14850[1] 'init' THREAD: c1c16000
[  183.488000] GPR00:   c024 c0246cec  
 c024 c0246cec
[  183.488000] GPR08: c025 0002bf20 c022e764 c025 c1c17e80 
c0018e44 c1c14850 
[  183.488000] GPR16: 002a b8a199a2 002a b87fa729 c000bc58 
b8a199a2 b873dc16 002a
[  183.488000] GPR24: b87fa729 c0018e44 c022e764 00b4 c1c17e70 
00029030  

[  183.488000] NIP [c0010540] cpu_clock+0x44/0x6c
[  183.488000] LR [00029030] 0x29030
[  183.488000] Call Trace:
[  183.488000] [c1c17ca0] [c0008ad8] show_stack+0x58/0x180 (unreliable)
[  183.488000] [c1c17cd0] [c0008dec] show_regs+0x1e0/0x2cc
[  183.488000] [c1c17d00] [c00031d0] die+0x6c/0x88
[  183.488000] [c1c17d20] [c000323c] _exception+0x50/0xe0
[  183.488000] [c1c17dc0] [c0002d90] ret_from_except_full+0x0/0x4c
[  183.488000] Instruction dump:
[  183.488000]    3880   
 7c000124
[  183.488000]    4bfffef1   
 7d234b78

[  183.488000] Kernel panic - not syncing: Attempted to kill init!
 
--I was doubtful  about busybox version used in RAMDISK provided at git 
site. So I compiled my own busybox-1.10.3 with my cross compiler tool 
chain still I am facing the same problem. Can anybody guide me.


The problem is that the kernel can't find the init program. Check out 
it, does it exist? You can use init= kernel option to specify a new 
position other than the default one, if it's in a specific folder.


--
Marco Stornelli
Embedded Software Engineer
CoRiTeL - Consorzio di Ricerca sulle Telecomunicazioni
http://www.coritel.it

[EMAIL PROTECTED]
+39 06 72582838
___
Linuxppc-embedded mailing list
Linuxppc-embedded@ozlabs.org
https://ozlabs.org/mailman/listinfo/linuxppc-embedded


Booting ML405 (Kernel panic - not syncing: No init found)

2008-07-09 Thread neeraj garg

Hi,

I am trying to boot ML405 with Linux source code downloaded from 
http://www.git.xilinx.com . My cross compiler tool chain version is 
gcc-3.4.1, glibc-2.3.2 and binutils-2.15. I have also downloaded RAMDISK 
from same url (http://www.git.xilinx.com). When I download 
zImage.initrd.elf using XMD everything goes fine, untill RAMDISK is 
uncompressed, I get following messages :



loaded at: 0040 008E519C
board data at: 008E3120 008E319C
relocated to:  00404074 004040F0
zimage at: 00404E65 00517841
initrd at: 00518000 008E2B4A
avail ram: 008E6000 0200   //there is restriction to use 32 MB 
of memory


some of the initial messages, and then

[0.00] Zone PFN ranges:
[0.00]   DMA 0 -> 8192
[0.00]   Normal   8192 -> 8192
[0.00] Movable zone start PFN for each node
[0.00] early_node_map[1] active PFN ranges
[0.00] 0:0 -> 8192
[0.00] Built 1 zonelists in Zone order, mobility grouping on.  
Total pages: 8128
[0.00] Kernel command line: console=ttyUL0,19200 ip=off 
root=/dev/ram rw init=/sbin/init

[0.00] Xilinx INTC #0 at 0x1E00 mapped to 0xFDFFF000
[0.00] PID hash table entries: 128 (order: 7, 512 bytes)
[0.000116] Console: colour dummy device 80x25
[0.000285] Dentry cache hash table entries: 4096 (order: 2, 16384 bytes)
[0.000506] Inode-cache hash table entries: 2048 (order: 1, 8192 bytes)
[0.004931] Memory: 26168k available (1740k kernel code, 576k data, 
104k init, 0k highmem)

[0.096364] Mount-cache hash table entries: 512

few more messages, and then

[2.218059] RAMDISK: Compressed image found at block 0
[3.708864] VFS: Mounted root (ext2 filesystem).
[3.716225] Freeing unused kernel memory
  [3.736691] Failed to 
execute /sbin/init.  Attempting defaults...
[3.748073] Kernel panic - not syncing: No init found.  Try passing 
init= option to kernel.

[3.772040] Rebooting in 180 seconds..[  183.487314]   Signal: 8


[  183.487322]   Code:   0
[  183.487329]   Addr:   c0010540
[  183.488000] Oops: Exception in kernel mode, sig: 8 [#1]
[  183.488000] NIP: c0010540 LR: 00029030 CTR: c0246cec
[  183.488000] REGS: c1c17dd0 TRAP: 2007e90   Not tainted  (2.6.25-xlnx)
[  183.488000] MSR:  <>  CR: c022e764  XER: c024c0e8
[  183.488000] TASK = c1c14850[1] 'init' THREAD: c1c16000
[  183.488000] GPR00:   c024 c0246cec  
 c024 c0246cec
[  183.488000] GPR08: c025 0002bf20 c022e764 c025 c1c17e80 
c0018e44 c1c14850 
[  183.488000] GPR16: 002a b8a199a2 002a b87fa729 c000bc58 
b8a199a2 b873dc16 002a
[  183.488000] GPR24: b87fa729 c0018e44 c022e764 00b4 c1c17e70 
00029030  

[  183.488000] NIP [c0010540] cpu_clock+0x44/0x6c
[  183.488000] LR [00029030] 0x29030
[  183.488000] Call Trace:
[  183.488000] [c1c17ca0] [c0008ad8] show_stack+0x58/0x180 (unreliable)
[  183.488000] [c1c17cd0] [c0008dec] show_regs+0x1e0/0x2cc
[  183.488000] [c1c17d00] [c00031d0] die+0x6c/0x88
[  183.488000] [c1c17d20] [c000323c] _exception+0x50/0xe0
[  183.488000] [c1c17dc0] [c0002d90] ret_from_except_full+0x0/0x4c
[  183.488000] Instruction dump:
[  183.488000]    3880   
 7c000124
[  183.488000]    4bfffef1   
 7d234b78

[  183.488000] Kernel panic - not syncing: Attempted to kill init!
  

--I was doubtful  about busybox version used in RAMDISK provided at git 
site. So I compiled my own busybox-1.10.3 with my cross compiler tool 
chain still I am facing the same problem. Can anybody guide me.


--
-
Neeraj Garg


___
Linuxppc-embedded mailing list
Linuxppc-embedded@ozlabs.org
https://ozlabs.org/mailman/listinfo/linuxppc-embedded


No init found

2006-07-11 Thread morelli.gab
help!!

i not understand, because when load the Kernel-2.6 in my board the system block 
on following message  

"Kernel panic - not syncing: No init found.  Try passing init= option to kernel"
 
my filesystem contain the process init into folder sbin i build it whit a 
busybox-1.1.3

...
mtdblock_open
ok
mtdblock: read on "cramfs" at 0x400, size 0x200
mtdblock: read on "cramfs" at 0x600, size 0x200
mtdblock_release
ok
mtdblock_open
ok
mtdblock: read on "cramfs" at 0x0, size 0x200
mtdblock: read on "cramfs" at 0x200, size 0x200
mtdblock: read on "cramfs" at 0x400, size 0x200
kernel panic

thanks to all




Kernel panic - not syncing: No init found.

2006-05-10 Thread hangtoo

I try to make a new uRamdisk for my bubinga board(linux-2.6.14,PPC405EP).
actully I just copy the most of the files in the board,and compiled busybox 
with ppc tools.
but when I use the new uRamdisk for a try,it just showed up this errors(as 
follow),then reboot,back and forth...
**
RAMDISK: incomplete write (-28 != 32768) 4194304

EXT2-fs warning: checktime reached, running e2fsck is recommended

VFS: Mounted root (ext2 filesystem).

Freeing unused kernel memory: 116k init

attempt to access beyond end of device  //this is where the error begins.

ram0: rw=0, want=10330, limit=8192

Buffer I/O error on device ram0, logical block 5164

attempt to access beyond end of device

ram0: rw=0, want=10330, limit=8192

Buffer I/O error on device ram0, logical block 5164

attempt to access beyond end of device

ram0: rw=0, want=10330, limit=8192

Buffer I/O error on device ram0, logical block 5164

attempt to access beyond end of device

ram0: rw=0, want=10330, limit=8192

Buffer I/O error on device ram0, logical block 5164

Kernel panic - not syncing: No init found.  Try passing init= option to kernel.
//according to this note,is there something I have to do with my kernel??
 <0>Rebooting in 1 seconds..
*

Any help is appreciated.

regards
tony





Kernel panic - not syncing: No init found.

2006-05-10 Thread Steve Iribarne (GMail)
On 5/10/06, hangtoo  wrote:
>
> I try to make a new uRamdisk for my bubinga board(linux-2.6.14,PPC405EP).
> actully I just copy the most of the files in the board,and compiled busybox 
> with ppc tools.
> but when I use the new uRamdisk for a try,it just showed up this errors(as 
> follow),then reboot,back and forth...
> **
> RAMDISK: incomplete write (-28 != 32768) 4194304
>


I'm pretty sure this tells me that your ramdisk is not big enough.
Take a look at
http://www.vanemery.com/Linux/Ramdisk/ramdisk.html

If you are using LILO like in the example listed at the link above,
you need to make sure your ramdisk_size parameter is big enough.

That's what my gues is.

-stv



"Kernel panic: No init found", 8xx board with linuxppc-2.5

2004-06-09 Thread Robert P. J. Day

  in my ongoing quest to see how far i get in booting on my 8xx board with
the latest 2.5 tree, i was having trouble getting past the line:

  Serial: CPM driver $Revision: 0.01 $.

since all i really needed was my serial port as a console, i configured
the kernel, and deselected all of:

  Device drivers ->
Character drivers ->
  Serial drivers ->
NO 8250 stuff
NO CPM2 stuff

and all i selected under "MPC8xx CPM options" was

  [*] Use UART

(not being a real hardware whiz, i may have selected a totally meaningless
set of options.  i'm quite willing to be chastised for being clueless
here.)

  after i built my new kernel and incorporated my long-time root
filesystem, i got:

Linux/PPC load: console=ttyS0,9600 rw root=/dev/ram0 init=/sbin/minit
Uncompressing Linux...done.
Now booting the kernel
Linux version 2.6.7-rc3 (rpjday at localhost.localdomain) (gcc version 3.2.2
200304
On node 0 totalpages: 8192
  DMA zone: 8192 pages, LIFO batch:2
  Normal zone: 0 pages, LIFO batch:1
  HighMem zone: 0 pages, LIFO batch:1
Built 1 zonelists
Kernel command line: console=ttyS0,9600 rw root=/dev/ram0 init=/sbin/minit
PID hash table entries: 256 (order 8: 2048 bytes)
Decrementer Frequency = 18750/60
Memory: 29840k available (744k kernel code, 204k data, 52k init, 0k
highmem)
Calibrating delay loop... 46.97 BogoMIPS
Dentry cache hash table entries: 4096 (order: 2, 16384 bytes)
Inode-cache hash table entries: 2048 (order: 1, 8192 bytes)
Mount-cache hash table entries: 512 (order: 0, 4096 bytes)
checking if image is initramfs...it isn't (no cpio magic); looks like an
initrd
Freeing initrd memory: 1563k freed
Linux NoNET1.0 for Linux 2.6
devfs: 2004-01-31 Richard Gooch (rgooch at atnf.csiro.au)
devfs: boot_options: 0x1
Generic RTC Driver v1.07
RAMDISK driver initialized: 16 RAM disks of 6144K size 1024 blocksize
CPM UART driver version 0.03
ttyS00 at 0x0280 is a SMC
RAMDISK: Compressed image found at block 0
VFS: Mounted root (ext2 filesystem).
Mounted devfs on /dev
Freeing unused kernel memory: 52k init
Kernel panic: No init found.  Try passing init= option to kernel.
 <0>Rebooting in 180 seconds..


  now this is puzzling since, once upon a time, i *did* get either init or
minit to at least start, but as we know, as soon as i hit user space,
things hung.

  so it's curious that the kernel can't even find minit (or init, or
/bin/sh, i tried all three).  i've checked the root filesystem that's
bundled with the ramdisk, and it seems fine.

  did my particular selection of kernel config options make a mess of
things?  as i said, once before, the kernel never had a problem finding
the init program.

rday


** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/





Kernel panic: No init found.

2003-09-29 Thread Michael G.

Thanks Mark & Georg,

My /bin/init is link to /etc/rc .. I did try to mount it on the host
computer and try to run the init and it works but it would not work for the
MPC857 board.  I'll try the static shell debugging as you suggested ..
thanks again.

Regards,
Mike G.

- Original Message -
From: "Mark Hatle" <[EMAIL PROTECTED]>
Sent: Saturday, September 27, 2003 1:44 AM
Subject: Re: Kernel panic: No init found.

> Well first make try passing init= as a kernel argument and point it to
> something that should be on the root disk..
>
> Second, if the disk is mounting right, most likely you are missing a
> shared library and/or program interpreter.
>
> Best way to debug this IMHO is to put a static shell there,
> ash.static, sash, etc... pass init= then try to run the
> init process manually.. you may get more informative error messages.
>
> Mike G. wrote:
>
> > Can someone help me with this.. .been try to figure it out for
> > quite sometime... and still stuck at it. I am using u-boot-0.4.0
> > and linux-2.4.20-rc2 and runnig it for a board equip with MPC857.
> > I don't know what is wrong with this. I have check it ramdisk log
> > file everything seem to be there .. including the init. I have
> > try to mount the squashfs on the host PC and run the init and it
> > works. Hmm.. I am out of ideas on what to try next.. Help me please
> > please
> >
> > here the output :-
> >
> > Inte0: Swapping erase regions for broken CFI table.
> > number of CFI chips: 1
> > init_inte: bank1, name:Inte0, size:4194304bytes
> > Inte flash0: Using Static image partition definition
> > Creating 5 MTD partitions on "Inte0":
> > 0x-0x0008 : "kernel"
> > 0x0008-0x0018 : "ramdisk"
> > 0x0018-0x0030 : "user1"
> > 0x0030-0x0038 : "uboot"
> > 0x0038-0x0040 : "user2"
> > NET4: Linux TCP/IP 1.0 for NET4.0
> > IP Protocols: ICMP, UDP, TCP, IGMP
> > IP: routing cache hash table of 512 buckets, 4Kbytes
> > TCP: Hash tables configured (established 1024 bind 1024)
> > NET4: Unix domain sockets 1.0/SMP for Linux NET4.0.
> > VFS: Mounted root (squashfs filesystem) readonly.
> > Freeing unused kernel memory: 44k init
> > Kernel panic: No init found.  Try passing init= option to kernel.
> >  <0>Rebooting in 180 seconds..

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/





Kernel panic: No init found.

2003-09-26 Thread Mike G.

hi there,

Can someone help me with this.. .been try to figure it out for quite
sometime... and still stuck at it.  I am using u-boot-0.4.0 and
linux-2.4.20-rc2 and runnig it for a board equip with MPC857. I don't
know what is wrong with this. I have check it ramdisk log file
everything seem to be there .. including the init. I have try to mount
the squashfs on the host PC and run the init and it works. Hmm.. I am
out of ideas on what to try next.. Help me please please

here the output :-

Inte0: Swapping erase regions for broken CFI table.
number of CFI chips: 1
init_inte: bank1, name:Inte0, size:4194304bytes
Inte flash0: Using Static image partition definition
Creating 5 MTD partitions on "Inte0":
0x-0x0008 : "kernel"
0x0008-0x0018 : "ramdisk"
0x0018-0x0030 : "user1"
0x0030-0x0038 : "uboot"
0x0038-0x0040 : "user2"
NET4: Linux TCP/IP 1.0 for NET4.0
IP Protocols: ICMP, UDP, TCP, IGMP
IP: routing cache hash table of 512 buckets, 4Kbytes
TCP: Hash tables configured (established 1024 bind 1024)
NET4: Unix domain sockets 1.0/SMP for Linux NET4.0.
VFS: Mounted root (squashfs filesystem) readonly.
Freeing unused kernel memory: 44k init
Kernel panic: No init found.  Try passing init= option to kernel.
 <0>Rebooting in 180 seconds..

Regards,
Mike

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/





Kernel panic: No init found.

2003-09-26 Thread Mark Hatle

Well first make try passing init= as a kernel argument and point it to
something that should be on the root disk..

Second, if the disk is mounting right, most likely you are missing a
shared library and/or program interpreter.

Best way to debug this IMHO is to put a static shell there, ash.static,
sash, etc... pass init=  then try to run the init process
manually.. you may get more informative error messages.

--Mark

Mike G. wrote:
>
> Can someone help me with this.. .been try to figure it out for
> quite sometime... and still stuck at it. I am using u-boot-0.4.0
> and linux-2.4.20-rc2 and runnig it for a board equip with MPC857. I
> don't know what is wrong with this. I have check it ramdisk log file
> everything seem to be there .. including the init. I have try to mount
> the squashfs on the host PC and run the init and it works. Hmm.. I am
> out of ideas on what to try next.. Help me please please
>
> here the output :-
>
> Inte0: Swapping erase regions for broken CFI table.
> number of CFI chips: 1
> init_inte: bank1, name:Inte0, size:4194304bytes
> Inte flash0: Using Static image partition definition
> Creating 5 MTD partitions on "Inte0":
> 0x-0x0008 : "kernel"
> 0x0008-0x0018 : "ramdisk"
> 0x0018-0x0030 : "user1"
> 0x0030-0x0038 : "uboot"
> 0x0038-0x0040 : "user2"
> NET4: Linux TCP/IP 1.0 for NET4.0
> IP Protocols: ICMP, UDP, TCP, IGMP
> IP: routing cache hash table of 512 buckets, 4Kbytes
> TCP: Hash tables configured (established 1024 bind 1024)
> NET4: Unix domain sockets 1.0/SMP for Linux NET4.0.
> VFS: Mounted root (squashfs filesystem) readonly.
> Freeing unused kernel memory: 44k init
> Kernel panic: No init found.  Try passing init= option to kernel.
>  <0>Rebooting in 180 seconds..

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/





Kernel panic: No init found!!!!

2003-04-12 Thread Anand Franklin J

hi Craig
I do have the /sbin/init file in my harddisk. what i performed is manally i
partitioned the harddisk into 3 , runned mkfs.ext2 then tune2fs on the
/dev/hda1 partition. copied all utilties from ppc directory(target) like
etc,bin,sbin... into /dev/hda1. configured the kernel to mount from harddisk.
still i don't know what is the problem.
thanking you.
franklin.
Craig Hollabaugh wrote:

> On Fri, 2003-04-11 at 09:52, Anand Franklin J wrote:
> >
> > hello All,
> > I as using the Redwood 6 IBM PPC board. The Kernel gives the panic
> > when it boots (Kernel panic: No init found). can anybody say what is the
> > way to get rid off it.
> > thanking you,
>
> Do you have a /sbin/init file?
>
> --
> ___
> Dr. Craig Hollabaugh   craig at hollabaugh.com
> Author of Embedded Linux
>
> P.O. Box 1405
> Ouray, CO 81427-1405See my "kitchen sink" resume at
> 970 325 4810 homewww.hollabaugh.com/resume.html
> 970 325 0509 office


** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/





Kernel panic: No init found!!!!

2003-04-12 Thread Mark Hatle

You also need to ensure that all libraries required by /sbin/init are also
provided.  Use the "ldd" (or objdump -p /sbin/init | grep NEEDED) to get a list
of all libraries required to be on your ram disk.  (In addition to the libraries
make sure you have ld.so.. that is the dynamic loader.)

--Mark

Anand Franklin J wrote:
> hi Craig
> I do have the /sbin/init file in my harddisk. what i performed is manally i
> partitioned the harddisk into 3 , runned mkfs.ext2 then tune2fs on the
> /dev/hda1 partition. copied all utilties from ppc directory(target) like
> etc,bin,sbin... into /dev/hda1. configured the kernel to mount from harddisk.
> still i don't know what is the problem.
> thanking you.
> franklin.
> Craig Hollabaugh wrote:
>
>
>>On Fri, 2003-04-11 at 09:52, Anand Franklin J wrote:
>>
>>>hello All,
>>>I as using the Redwood 6 IBM PPC board. The Kernel gives the panic
>>>when it boots (Kernel panic: No init found). can anybody say what is the
>>>way to get rid off it.
>>>thanking you,
>>
>>Do you have a /sbin/init file?


** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/





Kernel panic: No init found!!!!

2003-04-11 Thread Anand Franklin J

hello All,
I as using the Redwood 6 IBM PPC board. The Kernel gives the panic
when it boots (Kernel panic: No init found). can anybody say what is the
way to get rid off it.
thanking you,
franklin.


** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/





Kernel panic: No init found!!!!

2003-04-11 Thread Mark Hatle

Anand Franklin J wrote:
> hello All,
> I as using the Redwood 6 IBM PPC board. The Kernel gives the panic
> when it boots (Kernel panic: No init found). can anybody say what is the
> way to get rid off it.

Check the list archives..

Simple answer though, you don't have a valid filesystem.  Init not found may be
read as "init could not be found or properly executed."

--Mark

(BTW from you CC, you list the name of this list as "Linux Monta Vista".. this
list has nothing to do with MontaVista, it's a community list. and
MontaVista is one word.. )


** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/





NFS root woes: No init found

2002-12-07 Thread Wolfgang Denk

In message <0509218DDAD7D6118055006008F6D5F6A1E39A at postal.viasat.com> you 
wrote:
>
> I am having a problem with NFS mounting the root filesystem. It seems that
> init
> is not being executed. However, the problem may be with rootpath not being
> set.
> Should that parameter be set from the kernel command nfsroot=?

What are you talking about?

> Kernel command line: root=/dev/nfs nfsroot=/tftpboot/powerpc-rootfs
> ip=172.25.59
> .11:172.25.59.15::255.255.0.0:vib::off

Your rootpath _is_ set here: you're using "/tftpboot/powerpc-rootfs"
as root directory.

...
> Looking up port of RPC 13/2 on 172.25.59.15
> Looking up port of RPC 15/1 on 172.25.59.15
> VFS: Mounted root (nfs filesystem).

And the root filesystem was found and mounted.

> Mounted devfs on /dev
> Freeing unused kernel memory: 212k init
> Kernel panic: No init found.  Try passing init= option to kernel.

Are you sure you NEED devfs here? For now I recommend to disable this
option, as it adds just additional complexity. To anlyze what's going
on with your  NFS  root  filesystem,  run  a  network  sniffer  (like
ethereal) and check wich accesses work, and which are failing.

Best regards,

Wolfgang Denk

--
Software Engineering:  Embedded and Realtime Systems,  Embedded Linux
Phone: (+49)-8142-4596-87  Fax: (+49)-8142-4596-88  Email: wd at denx.de
Imagination is more important than knowledge.  -- Albert Einstein

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/





NFS root woes: No init found

2002-12-06 Thread Pagnotta, Chris

I am having a problem with NFS mounting the root filesystem. It seems that
init
is not being executed. However, the problem may be with rootpath not being
set.
Should that parameter be set from the kernel command nfsroot=?



## Booting image at 0040 ...
   Image Name:   Linux-2.4.19-pre6
   Created:  2002-12-06  17:44:09 UTC
   Image Type:   PowerPC Linux Kernel Image (gzip compressed)
   Data Size:901003 Bytes = 879 kB = 0 MB
   Load Address: 
   Entry Point:  
   Verifying Checksum ... OK
   Uncompressing Kernel Image ... OK
id mach(): done
MMU:enter
MMU:hw init
MMU:mapin
MMU:mapin_ram done
MMU:setio
MMU:exit
setup_arch: enter
setup_arch: bootmem
arch: exit
Linux version 2.4.19-pre6 (cpagnotta at lb-deviant-linux) (gcc version 2.95.4
20010
319 (prerelease/franzo/20011204)) #8 Fri Dec 6 09:28:29 PST 2002
On node 0 totalpages: 32768
zone(0): 4096 pages.
zone(1): 28672 pages.
zone(2): 0 pages.
Kernel command line: root=/dev/nfs nfsroot=/tftpboot/powerpc-rootfs
ip=172.25.59
.11:172.25.59.15::255.255.0.0:vib::off
Calibrating delay loop... 263.78 BogoMIPS
Memory: 127092k available (1524k kernel code, 676k data, 212k init, 0k
highmem)
Dentry-cache hash table entries: 16384 (order: 5, 131072 bytes)
Inode-cache hash table entries: 8192 (order: 4, 65536 bytes)
Mount-cache hash table entries: 2048 (order: 2, 16384 bytes)
Buffer-cache hash table entries: 8192 (order: 3, 32768 bytes)
Page-cache hash table entries: 32768 (order: 5, 131072 bytes)
POSIX conformance testing by UNIFIX
PCI: Probing PCI hardware

Linux NET4.0 for Linux 2.4
Based upon Swansea University Computer Society NET3.039
Initializing RT netlink socket
Starting kswapd
devfs: v1.12 (20020219) Richard Gooch (rgooch at atnf.csiro.au)
devfs: boot_options: 0x1
Installing knfsd (copyright (C) 1996 okir at monad.swb.de).
JFFS2 version 2.1. (C) 2001 Red Hat, Inc., designed by Axis Communications
AB.
i2c-core.o: i2c core module
i2c-dev.o: i2c /dev entries driver module
i2c-core.o: driver i2c-dev dummy driver registered.
i2c-proc.o version 2.6.1 (20010825)
pty: 256 Unix98 ptys configured
Serial driver version 5.05c (2001-07-08) with MANY_PORTS SHARE_IRQ
SERIAL_PCI en
abled
ttyS00 at 0xef600300 (irq = 0) is a 16550A
ttyS01 at 0xef600400 (irq = 1) is a 16550A
ttyS02 at 0xf410 (irq = 26) is a ST16650V2
ttyS03 at 0xf420 (irq = 26) is a ST16650V2
PPC 405 watchdog driver v0.5
IBM gpio driver version 02.01.21.d
GPIO #0 at 0xc900d700
RAMDISK driver initialized: 16 RAM disks of 4096K size 1024 blocksize
loop: loaded (max 8 devices)
eth0: Phy @ 0x1, type LXT971A (0x001378e2)
pcnet32.c:v1.27a 10.02.2002 tsbogend at alpha.franken.de
Equalizer1996: $Revision: 1.2.1 $ $Date: 1996/09/22 13:52:00 $ Simon Janes
(simo
n at ncm.com)
Universal TUN/TAP device driver 1.4 (C)1999-2001 Maxim Krasnyansky
NFTL driver: nftlcore.c $Revision: 1.85 $, nftlmount.c $Revision: 1.25 $
NET4: Linux TCP/IP 1.0 for NET4.0
IP Protocols: ICMP, UDP, TCP, IGMP
IP: routing cache hash table of 1024 buckets, 8Kbytes
TCP: Hash tables configured (established 8192 bind 8192)
IPv4 over IPv4 tunneling driver
GRE over IPv4 tunneling driver
Reset ethernet interfaces
eth0: IBM EMAC: link up, 10 Mbps Half Duplex, auto-negotiation complete.
eth0: IBM EMAC: MAC 00:60:c2:0a:00:1f.
eth0: IBM EMAC: open completed
IP-Config: Complete:
  device=eth0, addr=172.25.59.11, mask=255.255.0.0, gw=255.255.255.255,
 host=vib, domain=, nis-domain=(none),
 bootserver=172.25.59.15, rootserver=172.25.59.15, rootpath=
ip_conntrack (1024 buckets, 8192 max)
ip_tables: (C) 2000-2002 Netfilter core team
arp_tables: (C) 2002 David S. Miller
NET4: Unix domain sockets 1.0/SMP for Linux NET4.0.
Looking up port of RPC 13/2 on 172.25.59.15
Looking up port of RPC 15/1 on 172.25.59.15
VFS: Mounted root (nfs filesystem).
Mounted devfs on /dev
Freeing unused kernel memory: 212k init
Kernel panic: No init found.  Try passing init= option to kernel.
 <0>Rebooting in 180 seconds..

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/





NFS root woes: No init found

2002-12-05 Thread Dan Vatca


On Thursday 05 December 2002 00:36, Brian Waite wrote:
> I tried that but things look pretty happy. Here is the output I get with
> tcpdump -vvv -s 1500 host seblade2
>
> I know this NFS root is set up because other PPC boxes use it for NFS root.
> I am pretty stumped.
>
> 17:32:19.528377 seblade2.800 > dayton.sunrpc:  [udp sum ok] udp 56 (DF)
> (ttl 64, id 0, len 84)
> 17:32:19.528732 dayton.sunrpc > seblade2.800:  [udp sum ok] udp 28 (DF)
> (ttl 64, id 0, len 56)
> 17:32:19.559211 seblade2.800 > dayton.sunrpc:  [udp sum ok] udp 56 (DF)
> (ttl 64, id 0, len 84)
> 17:32:19.559469 dayton.sunrpc > seblade2.800:  [udp sum ok] udp 28 (DF)
> (ttl 64, id 0, len 56)
> 17:32:19.579903 seblade2.800 > dayton.32771:  [udp sum ok] udp 56 (DF) (ttl
> 64, id 0, len 84)
> 17:32:19.585120 dayton.32771 > seblade2.800:  [udp sum ok] udp 60 (DF) (ttl
> 64, id 0, len 88)
> 17:32:19.585790 seblade2.159747 > dayton.nfs: 100 getattr fh Unknown/1 (DF)
> (ttl 64, id 0, len 128)
> 17:32:19.585865 dayton.nfs > seblade2.159747: reply ok 96 getattr DIR 40755
> ids 0/0 sz 4096  (DF) (ttl 64, id 0, len 124)
> 17:32:19.586681 seblade2.159748 > dayton.nfs: 100 fsstat fh Unknown/1 (DF)
> (ttl 64, id 0, len 128)
> 17:32:19.586781 dayton.nfs > seblade2.159748: reply ok 48 fsstat [|nfs]
> (DF) (ttl 64, id 0, len 76)
> 17:32:19.615317 seblade2.159749 > dayton.nfs: 108 lookup fh Unknown/1 "dev"
> (DF) (ttl 64, id 0, len 136)
> 17:32:19.615396 dayton.nfs > seblade2.159749: reply ok 128 lookup fh
> Unknown/1 DIR 40755 ids 0/0 sz 77824 nlink 17 rdev  fsid 306 nodeid
> 246c8 a/m/ctime 1039040869.00 1039039592.00 1039039592.00  (DF)
> (ttl 64, id 0, len 156)
> 17:32:19.616315 seblade2.159750 > dayton.nfs: 112 lookup fh Unknown/1
> "console" (DF) (ttl 64, id 0, len 140)
> 17:32:19.616353 dayton.nfs > seblade2.159750: reply ok 128 lookup fh
> Unknown/1 CHR 20600 ids 504/0 sz 0 nlink 1 rdev 501 fsid 306 nodeid 247e4
> a/m/ctime 1015747714.00 1027439792.00 1039029441.00  (DF) (ttl
> 64, id 0, len 156)
> 17:32:19.628334 seblade2.159751 > dayton.nfs: 108 lookup fh Unknown/1 "bin"
> (DF) (ttl 64, id 0, len 136)
> 17:32:19.628400 dayton.nfs > seblade2.159751: reply ok 128 lookup fh
> Unknown/1 DIR 40755 ids 0/0 sz 4096 nlink 2 rdev  fsid 306 nodeid
> 1d38b9 a/m/ctime 1039040880.00 1026358299.00 1030454764.00
> (DF) (ttl 64, id 0, len 156)
> 17:32:19.629347 seblade2.159752 > dayton.nfs: 116 lookup fh Unknown/1
> "ash.static" (DF) (ttl 64, id 0, len 144)
> 17:32:19.629382 dayton.nfs > seblade2.159752: reply ok 128 lookup fh
> Unknown/1 REG 100755 ids 0/0 sz 522456 nlink 1 rdev  fsid 306
> nodeid 1d38f8 a/m/ctime 1039040880.00 1015669398.00
> 1030454763.00  (DF) (ttl 64, id 0, len 156)
> 17:32:19.640029 seblade2.159753 > dayton.nfs: 112 read fh Unknown/1 4096
> bytes @ 0 (DF) (ttl 64, id 0, len 140)
> 17:32:19.640181 dayton > seblade2: (frag 51580:1244 at 2960) (ttl 64, len
> 1264) 17:32:19.640192 dayton > seblade2: (frag 51580:1480 at 1480+) (ttl 64,
> len 1500) 17:32:19.640201 dayton.nfs > seblade2.159753: reply ok 1472 read
> REG 100755 ids 0/0 sz 522456 nlink 1 rdev  fsid 306 nodeid 1d38f8
> a/m/ctime 1039041139.00 1015669398.00 1030454763.00  (frag
> 51580:1480 at 0+) (ttl 64, len 1500)
>

- From your output it seems that your system cannot find a /bin, /dev, and other
things on that nfs mountpoint. But the nfs seems to be up and responding with
read errors ... Are you sure you did not overlooked a path? Because the /home
(as I saw from a previous email ...) is very strange place to hold a
filesystem root ...

Dan.


** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/





NFS root woes: No init found

2002-12-05 Thread Brian Waite

But my target believe it was able to correctly open the file because it is
parsing the header of the file to determine the file type. Also, If I remove
my /dev/console node from the nfsroot, then console_init() throws a warning
about no default console found, so it must have found the file on the remote
host right?
My NFS root is infact loacted in /home/ppc. I have used this exact NFS root to
bring up an eval board.


Thanks
Brian
On Thursday 05 December 2002 3:50 am, Dan Vatca wrote:
>
> On Thursday 05 December 2002 00:36, Brian Waite wrote:
> > I tried that but things look pretty happy. Here is the output I get with
> > tcpdump -vvv -s 1500 host seblade2
> >
> > I know this NFS root is set up because other PPC boxes use it for NFS
> > root. I am pretty stumped.
> >
> > 17:32:19.528377 seblade2.800 > dayton.sunrpc:  [udp sum ok] udp 56 (DF)
> > (ttl 64, id 0, len 84)
> > 17:32:19.528732 dayton.sunrpc > seblade2.800:  [udp sum ok] udp 28 (DF)
> > (ttl 64, id 0, len 56)
> > 17:32:19.559211 seblade2.800 > dayton.sunrpc:  [udp sum ok] udp 56 (DF)
> > (ttl 64, id 0, len 84)
> > 17:32:19.559469 dayton.sunrpc > seblade2.800:  [udp sum ok] udp 28 (DF)
> > (ttl 64, id 0, len 56)
> > 17:32:19.579903 seblade2.800 > dayton.32771:  [udp sum ok] udp 56 (DF)
> > (ttl 64, id 0, len 84)
> > 17:32:19.585120 dayton.32771 > seblade2.800:  [udp sum ok] udp 60 (DF)
> > (ttl 64, id 0, len 88)
> > 17:32:19.585790 seblade2.159747 > dayton.nfs: 100 getattr fh Unknown/1
> > (DF) (ttl 64, id 0, len 128)
> > 17:32:19.585865 dayton.nfs > seblade2.159747: reply ok 96 getattr DIR
> > 40755 ids 0/0 sz 4096  (DF) (ttl 64, id 0, len 124)
> > 17:32:19.586681 seblade2.159748 > dayton.nfs: 100 fsstat fh Unknown/1
> > (DF) (ttl 64, id 0, len 128)
> > 17:32:19.586781 dayton.nfs > seblade2.159748: reply ok 48 fsstat [|nfs]
> > (DF) (ttl 64, id 0, len 76)
> > 17:32:19.615317 seblade2.159749 > dayton.nfs: 108 lookup fh Unknown/1
> > "dev" (DF) (ttl 64, id 0, len 136)
> > 17:32:19.615396 dayton.nfs > seblade2.159749: reply ok 128 lookup fh
> > Unknown/1 DIR 40755 ids 0/0 sz 77824 nlink 17 rdev  fsid 306
> > nodeid 246c8 a/m/ctime 1039040869.00 1039039592.00
> > 1039039592.00  (DF) (ttl 64, id 0, len 156)
> > 17:32:19.616315 seblade2.159750 > dayton.nfs: 112 lookup fh Unknown/1
> > "console" (DF) (ttl 64, id 0, len 140)
> > 17:32:19.616353 dayton.nfs > seblade2.159750: reply ok 128 lookup fh
> > Unknown/1 CHR 20600 ids 504/0 sz 0 nlink 1 rdev 501 fsid 306 nodeid 247e4
> > a/m/ctime 1015747714.00 1027439792.00 1039029441.00  (DF)
> > (ttl 64, id 0, len 156)
> > 17:32:19.628334 seblade2.159751 > dayton.nfs: 108 lookup fh Unknown/1
> > "bin" (DF) (ttl 64, id 0, len 136)
> > 17:32:19.628400 dayton.nfs > seblade2.159751: reply ok 128 lookup fh
> > Unknown/1 DIR 40755 ids 0/0 sz 4096 nlink 2 rdev  fsid 306 nodeid
> > 1d38b9 a/m/ctime 1039040880.00 1026358299.00 1030454764.00
> > (DF) (ttl 64, id 0, len 156)
> > 17:32:19.629347 seblade2.159752 > dayton.nfs: 116 lookup fh Unknown/1
> > "ash.static" (DF) (ttl 64, id 0, len 144)
> > 17:32:19.629382 dayton.nfs > seblade2.159752: reply ok 128 lookup fh
> > Unknown/1 REG 100755 ids 0/0 sz 522456 nlink 1 rdev  fsid 306
> > nodeid 1d38f8 a/m/ctime 1039040880.00 1015669398.00
> > 1030454763.00  (DF) (ttl 64, id 0, len 156)
> > 17:32:19.640029 seblade2.159753 > dayton.nfs: 112 read fh Unknown/1 4096
> > bytes @ 0 (DF) (ttl 64, id 0, len 140)
> > 17:32:19.640181 dayton > seblade2: (frag 51580:1244 at 2960) (ttl 64, len
> > 1264) 17:32:19.640192 dayton > seblade2: (frag 51580:1480 at 1480+) (ttl 64,
> > len 1500) 17:32:19.640201 dayton.nfs > seblade2.159753: reply ok 1472
> > read REG 100755 ids 0/0 sz 522456 nlink 1 rdev  fsid 306 nodeid
> > 1d38f8 a/m/ctime 1039041139.00 1015669398.00 1030454763.00
> > (frag 51580:1480 at 0+) (ttl 64, len 1500)
>
> - From your output it seems that your system cannot find a /bin, /dev, and
> other things on that nfs mountpoint. But the nfs seems to be up and
> responding with read errors ... Are you sure you did not overlooked a path?
> Because the /home (as I saw from a previous email ...) is very strange
> place to hold a filesystem root ...
>
> Dan.


** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/





NFS root woes: No init found

2002-12-05 Thread Allen Curtis

Stupid question, is the processor you are trying to boot the same as the
other processors using the same NFS RFS? Not all PPCs are created equally.

Just a thought...

> But my target believe it was able to correctly open the file because it is
> parsing the header of the file to determine the file type. Also,
> If I remove
> my /dev/console node from the nfsroot, then console_init() throws
> a warning
> about no default console found, so it must have found the file on
> the remote
> host right?
> My NFS root is infact loacted in /home/ppc. I have used this
> exact NFS root to
> bring up an eval board.
>
>
> Thanks
> Brian
> On Thursday 05 December 2002 3:50 am, Dan Vatca wrote:
> >
> > On Thursday 05 December 2002 00:36, Brian Waite wrote:
> > > I tried that but things look pretty happy. Here is the output
> I get with
> > > tcpdump -vvv -s 1500 host seblade2
> > >
> > > I know this NFS root is set up because other PPC boxes use it for NFS
> > > root. I am pretty stumped.
> > >
> > > 17:32:19.528377 seblade2.800 > dayton.sunrpc:  [udp sum ok]
> udp 56 (DF)
> > > (ttl 64, id 0, len 84)
> > > 17:32:19.528732 dayton.sunrpc > seblade2.800:  [udp sum ok]
> udp 28 (DF)
> > > (ttl 64, id 0, len 56)
> > > 17:32:19.559211 seblade2.800 > dayton.sunrpc:  [udp sum ok]
> udp 56 (DF)
> > > (ttl 64, id 0, len 84)
> > > 17:32:19.559469 dayton.sunrpc > seblade2.800:  [udp sum ok]
> udp 28 (DF)
> > > (ttl 64, id 0, len 56)
> > > 17:32:19.579903 seblade2.800 > dayton.32771:  [udp sum ok] udp 56 (DF)
> > > (ttl 64, id 0, len 84)
> > > 17:32:19.585120 dayton.32771 > seblade2.800:  [udp sum ok] udp 60 (DF)
> > > (ttl 64, id 0, len 88)
> > > 17:32:19.585790 seblade2.159747 > dayton.nfs: 100 getattr fh Unknown/1
> > > (DF) (ttl 64, id 0, len 128)
> > > 17:32:19.585865 dayton.nfs > seblade2.159747: reply ok 96 getattr DIR
> > > 40755 ids 0/0 sz 4096  (DF) (ttl 64, id 0, len 124)
> > > 17:32:19.586681 seblade2.159748 > dayton.nfs: 100 fsstat fh Unknown/1
> > > (DF) (ttl 64, id 0, len 128)
> > > 17:32:19.586781 dayton.nfs > seblade2.159748: reply ok 48
> fsstat [|nfs]
> > > (DF) (ttl 64, id 0, len 76)
> > > 17:32:19.615317 seblade2.159749 > dayton.nfs: 108 lookup fh Unknown/1
> > > "dev" (DF) (ttl 64, id 0, len 136)
> > > 17:32:19.615396 dayton.nfs > seblade2.159749: reply ok 128 lookup fh
> > > Unknown/1 DIR 40755 ids 0/0 sz 77824 nlink 17 rdev  fsid 306
> > > nodeid 246c8 a/m/ctime 1039040869.00 1039039592.00
> > > 1039039592.00  (DF) (ttl 64, id 0, len 156)
> > > 17:32:19.616315 seblade2.159750 > dayton.nfs: 112 lookup fh Unknown/1
> > > "console" (DF) (ttl 64, id 0, len 140)
> > > 17:32:19.616353 dayton.nfs > seblade2.159750: reply ok 128 lookup fh
> > > Unknown/1 CHR 20600 ids 504/0 sz 0 nlink 1 rdev 501 fsid 306
> nodeid 247e4
> > > a/m/ctime 1015747714.00 1027439792.00 1039029441.00  (DF)
> > > (ttl 64, id 0, len 156)
> > > 17:32:19.628334 seblade2.159751 > dayton.nfs: 108 lookup fh Unknown/1
> > > "bin" (DF) (ttl 64, id 0, len 136)
> > > 17:32:19.628400 dayton.nfs > seblade2.159751: reply ok 128 lookup fh
> > > Unknown/1 DIR 40755 ids 0/0 sz 4096 nlink 2 rdev 
> fsid 306 nodeid
> > > 1d38b9 a/m/ctime 1039040880.00 1026358299.00 1030454764.00
> > > (DF) (ttl 64, id 0, len 156)
> > > 17:32:19.629347 seblade2.159752 > dayton.nfs: 116 lookup fh Unknown/1
> > > "ash.static" (DF) (ttl 64, id 0, len 144)
> > > 17:32:19.629382 dayton.nfs > seblade2.159752: reply ok 128 lookup fh
> > > Unknown/1 REG 100755 ids 0/0 sz 522456 nlink 1 rdev  fsid 306
> > > nodeid 1d38f8 a/m/ctime 1039040880.00 1015669398.00
> > > 1030454763.00  (DF) (ttl 64, id 0, len 156)
> > > 17:32:19.640029 seblade2.159753 > dayton.nfs: 112 read fh
> Unknown/1 4096
> > > bytes @ 0 (DF) (ttl 64, id 0, len 140)
> > > 17:32:19.640181 dayton > seblade2: (frag 51580:1244 at 2960) (ttl 64, len
> > > 1264) 17:32:19.640192 dayton > seblade2: (frag
> 51580:1480 at 1480+) (ttl 64,
> > > len 1500) 17:32:19.640201 dayton.nfs > seblade2.159753: reply ok 1472
> > > read REG 100755 ids 0/0 sz 522456 nlink 1 rdev  fsid
> 306 nodeid
> > > 1d38f8 a/m/ctime 1039041139.00 1015669398.00 1030454763.00
> > > (frag 51580:1480 at 0+) (ttl 64, len 1500)
> >
> > - From your output it seems that your system cannot find a
> /bin, /dev, and
> > other things on that nfs mountpoint. But the nfs seems to be up and
> > responding with read errors ... Are you sure you did not
> overlooked a path?
> > Because the /home (as I saw from a previous email ...) is very strange
> > place to hold a filesystem root ...
> >
> > Dan.
>
>
>
>


** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/





NFS root woes: No init found

2002-12-04 Thread Wolfgang Grandegger

Hello,

if you get to the bash prompt you could try to start the init program
manually. This should result in more useful error messages.

Hope it helps,

Wolfgang.


On 12/04/2002 11:11 PM Brian Waite wrote:
> I did this. I tried to start a staticly linked ash shell to no avail. No libs
> are better than any libs :)
> Thanks
> Brian
> On Wednesday 04 December 2002 4:48 pm, Dan Malek wrote:
>> Brian Waite wrote:
>> > ...Then I get the message No init found.
>>
>> First, try using something simple like /bin/bash as your init program.
>> Trying to start up the init program relies on lots of things being
>> present in the file system.  If the program starts, and then exits,
>> you still get this message.
>>
>> Just use a trivial, simple file system to get started.  A shell,
>> couple of commands and minimal libraries are easier to debug.
>>
>> Good luck :-)
>>
>>  -- Dan
>
>
>
>


** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/





NFS root woes: No init found

2002-12-04 Thread Brian Waite

Here is my /etc/exports:
/home   *(rw,insecure,no_root_squash)

That should be sufficent I think .

Thanks
Brian

On Wednesday 04 December 2002 5:47 pm, Jerry Van Baren wrote:
> Thoughts...
>
> Does your mount command
> * use the defaults options (-o defaults) or equivalent?
>- includes read/write and execute privileges
>
> Does your host
> * have "no_root_squash" (may not be necessary)?
> * allow write access to the remote host?
>
> gvb
>
> At 05:30 PM 12/4/2002 -0500, Brian Waite wrote:
> >I tried loading the ash shell statically linked., along with a dynamically
> >linked bash. No executables seem to load. I have traced the execve call
> > and it progresses as far as walking the format list to determine what
> > format the file is in. After walking all the available formats, it can't
> > find one and fails. I have the floowing formats in my kernel:
> >CONFIG_KCORE_ELF=y
> >CONFIG_BINFMT_ELF=y
> >CONFIG_KERNEL_ELF=y
> >
> >and the ash executale is an elf:
> >ash.static: ELF 32-bit MSB executable, PowerPC or cisco 4500, version 1,
> >statically linked, stripped
> >
> >Any thoughts? I see the packets getting revieved by the gt64260_eth driver
> > and passed up to the higher layers. I also look at the various MIB
> > counters and see no errant packets so I can't why NFS is so cranky.
> >
> >Thanks
> >Brian
> >
> >On Wednesday 04 December 2002 5:20 pm, you wrote:
> > > Hello,
> > >
> > > if you get to the bash prompt you could try to start the init program
> > > manually. This should result in more useful error messages.
> > >
> > > Hope it helps,
> > >
> > > Wolfgang.
> > >
> > > On 12/04/2002 11:11 PM Brian Waite wrote:
> > > > I did this. I tried to start a staticly linked ash shell to no avail.
> > > > No libs are better than any libs :)
> > > > Thanks
> > > > Brian
> > > >
> > > > On Wednesday 04 December 2002 4:48 pm, Dan Malek wrote:
> > > >> Brian Waite wrote:
> > > >> > ...Then I get the message No init found.
> > > >>
> > > >> First, try using something simple like /bin/bash as your init
> > > >> program. Trying to start up the init program relies on lots of
> > > >> things being present in the file system.  If the program starts, and
> > > >> then exits, you still get this message.
> > > >>
> > > >> Just use a trivial, simple file system to get started.  A shell,
> > > >> couple of commands and minimal libraries are easier to debug.
> > > >>
> > > >> Good luck :-)
> > > >>
> > > >>-- Dan
>


** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/





NFS root woes: No init found

2002-12-04 Thread Brian Waite

Oh I like the thought! I too have had good luch wit the eval board, but now
our custom is biting me. Lets have a looksie at the data.
Thanks for the idea.
Brian

> This is just a wild guess, but maybe there is a data corruption
> problem somewhere.  (Maybe cache-coherency?  I know the 74xx/gt64260
> is a cache-coherent platform but maybe the snooping isn't wired up or
> set up correctly??)
>
> You could try printing out the data the kernel thinks it read for init
> and compare it with what's actually on the disk.  (It seems likely it
> will be different, since the kernel can't tell that it's an ELF file)
>
> Just as a data point, we have had good success running Linux with NFS
> root on both the Galileo Discovery eval board and our own custom board
> (both used the Galileo internal ethernet).
>
> Best,
>   Roland


** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/





NFS root woes: No init found

2002-12-04 Thread Jerry Van Baren

Thoughts...

Does your mount command
* use the defaults options (-o defaults) or equivalent?
   - includes read/write and execute privileges

Does your host
* have "no_root_squash" (may not be necessary)?
* allow write access to the remote host?

gvb


At 05:30 PM 12/4/2002 -0500, Brian Waite wrote:

>I tried loading the ash shell statically linked., along with a dynamically
>linked bash. No executables seem to load. I have traced the execve call and
>it progresses as far as walking the format list to determine what format the
>file is in. After walking all the available formats, it can't find one and
>fails. I have the floowing formats in my kernel:
>CONFIG_KCORE_ELF=y
>CONFIG_BINFMT_ELF=y
>CONFIG_KERNEL_ELF=y
>
>and the ash executale is an elf:
>ash.static: ELF 32-bit MSB executable, PowerPC or cisco 4500, version 1,
>statically linked, stripped
>
>Any thoughts? I see the packets getting revieved by the gt64260_eth driver and
>passed up to the higher layers. I also look at the various MIB counters and
>see no errant packets so I can't why NFS is so cranky.
>
>Thanks
>Brian
>
>On Wednesday 04 December 2002 5:20 pm, you wrote:
> > Hello,
> >
> > if you get to the bash prompt you could try to start the init program
> > manually. This should result in more useful error messages.
> >
> > Hope it helps,
> >
> > Wolfgang.
> >
> > On 12/04/2002 11:11 PM Brian Waite wrote:
> > > I did this. I tried to start a staticly linked ash shell to no avail. No
> > > libs are better than any libs :)
> > > Thanks
> > > Brian
> > >
> > > On Wednesday 04 December 2002 4:48 pm, Dan Malek wrote:
> > >> Brian Waite wrote:
> > >> > ...Then I get the message No init found.
> > >>
> > >> First, try using something simple like /bin/bash as your init program.
> > >> Trying to start up the init program relies on lots of things being
> > >> present in the file system.  If the program starts, and then exits,
> > >> you still get this message.
> > >>
> > >> Just use a trivial, simple file system to get started.  A shell,
> > >> couple of commands and minimal libraries are easier to debug.
> > >>
> > >> Good luck :-)
> > >>
> > >>-- Dan
> > >
>
>


** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/





NFS root woes: No init found

2002-12-04 Thread Brian Waite

I tried that but things look pretty happy. Here is the output I get with
tcpdump -vvv -s 1500 host seblade2

I know this NFS root is set up because other PPC boxes use it for NFS root. I
am pretty stumped.

17:32:19.528377 seblade2.800 > dayton.sunrpc:  [udp sum ok] udp 56 (DF) (ttl
64, id 0, len 84)
17:32:19.528732 dayton.sunrpc > seblade2.800:  [udp sum ok] udp 28 (DF) (ttl
64, id 0, len 56)
17:32:19.559211 seblade2.800 > dayton.sunrpc:  [udp sum ok] udp 56 (DF) (ttl
64, id 0, len 84)
17:32:19.559469 dayton.sunrpc > seblade2.800:  [udp sum ok] udp 28 (DF) (ttl
64, id 0, len 56)
17:32:19.579903 seblade2.800 > dayton.32771:  [udp sum ok] udp 56 (DF) (ttl
64, id 0, len 84)
17:32:19.585120 dayton.32771 > seblade2.800:  [udp sum ok] udp 60 (DF) (ttl
64, id 0, len 88)
17:32:19.585790 seblade2.159747 > dayton.nfs: 100 getattr fh Unknown/1 (DF)
(ttl 64, id 0, len 128)
17:32:19.585865 dayton.nfs > seblade2.159747: reply ok 96 getattr DIR 40755
ids 0/0 sz 4096  (DF) (ttl 64, id 0, len 124)
17:32:19.586681 seblade2.159748 > dayton.nfs: 100 fsstat fh Unknown/1 (DF)
(ttl 64, id 0, len 128)
17:32:19.586781 dayton.nfs > seblade2.159748: reply ok 48 fsstat [|nfs] (DF)
(ttl 64, id 0, len 76)
17:32:19.615317 seblade2.159749 > dayton.nfs: 108 lookup fh Unknown/1 "dev"
(DF) (ttl 64, id 0, len 136)
17:32:19.615396 dayton.nfs > seblade2.159749: reply ok 128 lookup fh Unknown/1
DIR 40755 ids 0/0 sz 77824 nlink 17 rdev  fsid 306 nodeid 246c8
a/m/ctime 1039040869.00 1039039592.00 1039039592.00  (DF) (ttl
64, id 0, len 156)
17:32:19.616315 seblade2.159750 > dayton.nfs: 112 lookup fh Unknown/1
"console" (DF) (ttl 64, id 0, len 140)
17:32:19.616353 dayton.nfs > seblade2.159750: reply ok 128 lookup fh Unknown/1
CHR 20600 ids 504/0 sz 0 nlink 1 rdev 501 fsid 306 nodeid 247e4 a/m/ctime
1015747714.00 1027439792.00 1039029441.00  (DF) (ttl 64, id 0,
len 156)
17:32:19.628334 seblade2.159751 > dayton.nfs: 108 lookup fh Unknown/1 "bin"
(DF) (ttl 64, id 0, len 136)
17:32:19.628400 dayton.nfs > seblade2.159751: reply ok 128 lookup fh Unknown/1
DIR 40755 ids 0/0 sz 4096 nlink 2 rdev  fsid 306 nodeid 1d38b9
a/m/ctime 1039040880.00 1026358299.00 1030454764.00  (DF) (ttl
64, id 0, len 156)
17:32:19.629347 seblade2.159752 > dayton.nfs: 116 lookup fh Unknown/1
"ash.static" (DF) (ttl 64, id 0, len 144)
17:32:19.629382 dayton.nfs > seblade2.159752: reply ok 128 lookup fh Unknown/1
REG 100755 ids 0/0 sz 522456 nlink 1 rdev  fsid 306 nodeid 1d38f8
a/m/ctime 1039040880.00 1015669398.00 1030454763.00  (DF) (ttl
64, id 0, len 156)
17:32:19.640029 seblade2.159753 > dayton.nfs: 112 read fh Unknown/1 4096 bytes
@ 0 (DF) (ttl 64, id 0, len 140)
17:32:19.640181 dayton > seblade2: (frag 51580:1244 at 2960) (ttl 64, len 1264)
17:32:19.640192 dayton > seblade2: (frag 51580:1480 at 1480+) (ttl 64, len 1500)
17:32:19.640201 dayton.nfs > seblade2.159753: reply ok 1472 read REG 100755
ids 0/0 sz 522456 nlink 1 rdev  fsid 306 nodeid 1d38f8 a/m/ctime
1039041139.00 1015669398.00 1030454763.00  (frag 51580:1480 at 0+)
(ttl 64, len 1500)




Thanks
Brian

> One thing that sometimes helps in debugging these problems is to use
> an ethernet sniffer to see what your target is really getting from the
> NFS server.  You can use something like "tcpdump -vvv -s 1500", or
> something fancier like ethereal.  Then you can see whether the target
> ever even tries to read the init file, etc.
>
> Best,
>   Roland


** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/





NFS root woes: No init found

2002-12-04 Thread Brian Waite

I tried loading the ash shell statically linked., along with a dynamically
linked bash. No executables seem to load. I have traced the execve call and
it progresses as far as walking the format list to determine what format the
file is in. After walking all the available formats, it can't find one and
fails. I have the floowing formats in my kernel:
CONFIG_KCORE_ELF=y
CONFIG_BINFMT_ELF=y
CONFIG_KERNEL_ELF=y

and the ash executale is an elf:
ash.static: ELF 32-bit MSB executable, PowerPC or cisco 4500, version 1,
statically linked, stripped

Any thoughts? I see the packets getting revieved by the gt64260_eth driver and
passed up to the higher layers. I also look at the various MIB counters and
see no errant packets so I can't why NFS is so cranky.

Thanks
Brian

On Wednesday 04 December 2002 5:20 pm, you wrote:
> Hello,
>
> if you get to the bash prompt you could try to start the init program
> manually. This should result in more useful error messages.
>
> Hope it helps,
>
> Wolfgang.
>
> On 12/04/2002 11:11 PM Brian Waite wrote:
> > I did this. I tried to start a staticly linked ash shell to no avail. No
> > libs are better than any libs :)
> > Thanks
> > Brian
> >
> > On Wednesday 04 December 2002 4:48 pm, Dan Malek wrote:
> >> Brian Waite wrote:
> >> > ...Then I get the message No init found.
> >>
> >> First, try using something simple like /bin/bash as your init program.
> >> Trying to start up the init program relies on lots of things being
> >> present in the file system.  If the program starts, and then exits,
> >> you still get this message.
> >>
> >> Just use a trivial, simple file system to get started.  A shell,
> >> couple of commands and minimal libraries are easier to debug.
> >>
> >> Good luck :-)
> >>
> >>-- Dan
> >


** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/





NFS root woes: No init found

2002-12-04 Thread Brian Waite

I did this. I tried to start a staticly linked ash shell to no avail. No libs
are better than any libs :)
Thanks
Brian
On Wednesday 04 December 2002 4:48 pm, Dan Malek wrote:
> Brian Waite wrote:
> > ...Then I get the message No init found.
>
> First, try using something simple like /bin/bash as your init program.
> Trying to start up the init program relies on lots of things being
> present in the file system.  If the program starts, and then exits,
> you still get this message.
>
> Just use a trivial, simple file system to get started.  A shell,
> couple of commands and minimal libraries are easier to debug.
>
> Good luck :-)
>
>   -- Dan


** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/





NFS root woes: No init found

2002-12-04 Thread Dan Malek

Brian Waite wrote:

> ...Then I get the message No init found.

First, try using something simple like /bin/bash as your init program.
Trying to start up the init program relies on lots of things being
present in the file system.  If the program starts, and then exits,
you still get this message.

Just use a trivial, simple file system to get started.  A shell,
couple of commands and minimal libraries are easier to debug.

Good luck :-)

-- Dan


** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/





NFS root woes: No init found

2002-12-04 Thread Brian Waite

Hi,
I am attempting to boot up a custom PPC board and having problems with 
the
NFS Root. the board has a single 74xx PPC and Galileo memory controller. What
happens is everything looks good until I attempt to read init from the NFS
root. Then I get the message No init found. I have tried the obvious things
such as changing init for a staticly linked executable, to no avail. I have
enabled NFS debug and it looks like I have mounted the remote fs just fine.
In fact, I can remove /dev/console and watch console_init() throw a warning.
Has anyne seen problems with the Galileo's mii ports or any other boards
booting an NFS root filesystem? I am attaching the end of my log below.
Thanks
Brian


NET4: Linux TCP/IP 1.0 for NET4.0
IP Protocols: ICMP, UDP, TCP
IP: routing cache hash table of 8192 buckets, 64Kbytes
TCP: Hash tables configured (established 262144 bind 65536)
gt64260_eth_open : Assigned IRQ 32 to gt64260_eth0
eth0:  link state:
  GT: 100: Link:FD:nFC
 mii:100: Link:FD:nFC ANnc:Manual
Sending DHCP requests ., OK
IP-Config: Got DHCP answer from 192.9.200.220, my address is 192.9.200.246
IP-Config: Complete:
  device=eth0, addr=192.9.200.246, mask=255.255.255.0, gw=255.255.255.255,
 host=seblade2, domain=, nis-domain=(none),
 bootserver=192.9.200.220, rootserver=192.9.200.220, rootpath=/home/ppc
NET4: Unix domain sockets 1.0/SMP for Linux NET4.0.
Root-NFS: Mounting /home/ppc on server 192.9.200.220 as root
Root-NFS: rsize = 4096, wsize = 4096, timeo = 7, retrans = 3
Root-NFS: acreg (min,max) = (3,60), acdir (min,max) = (30,60)
Root-NFS: nfsd port = -1, mountd port = 0, flags = 0200
Looking up port of RPC 13/2 on 192.9.200.220
Root-NFS: Portmapper on server returned 2049 as nfsd port
Looking up port of RPC 15/1 on 192.9.200.220
Root-NFS: mountd port is 32771
NFS:  nfs_mount(c009c8dc:/home/ppc)
VFS: Mounted root (nfs filesystem).
Freeing unused kernel memory: 188k init
Kernel panic: No init found.  Try passing init= option to kernel.
 <0>Rebooting in 180 seconds..

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/





NFS root woes: No init found

2002-12-04 Thread Roland Dreier

> "Brian" == Brian Waite  writes:

Brian> I tried loading the ash shell statically linked., along
Brian> with a dynamically linked bash. No executables seem to
Brian> load. I have traced the execve call and it progresses as
Brian> far as walking the format list to determine what format the
Brian> file is in. After walking all the available formats, it
Brian> can't find one and fails.

Brian> Any thoughts? I see the packets getting revieved by the
Brian> gt64260_eth driver and passed up to the higher layers. I
Brian> also look at the various MIB counters and see no errant
Brian> packets so I can't why NFS is so cranky.

This is just a wild guess, but maybe there is a data corruption
problem somewhere.  (Maybe cache-coherency?  I know the 74xx/gt64260
is a cache-coherent platform but maybe the snooping isn't wired up or
set up correctly??)

You could try printing out the data the kernel thinks it read for init
and compare it with what's actually on the disk.  (It seems likely it
will be different, since the kernel can't tell that it's an ELF file)

Just as a data point, we have had good success running Linux with NFS
root on both the Galileo Discovery eval board and our own custom board
(both used the Galileo internal ethernet).

Best,
  Roland

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/





NFS root woes: No init found

2002-12-04 Thread Roland Dreier

>>>>> "Brian" == Brian Waite  writes:

Brian> Hi, I am attempting to boot up a custom PPC board and
Brian> having problems with the NFS Root. the board has a single
Brian> 74xx PPC and Galileo memory controller. What happens is
Brian> everything looks good until I attempt to read init from the
Brian> NFS root. Then I get the message No init found. I have
Brian> tried the obvious things such as changing init for a
Brian> staticly linked executable, to no avail. I have enabled NFS
Brian> debug and it looks like I have mounted the remote fs just
Brian> fine.

One thing that sometimes helps in debugging these problems is to use
an ethernet sniffer to see what your target is really getting from the
NFS server.  You can use something like "tcpdump -vvv -s 1500", or
something fancier like ethereal.  Then you can see whether the target
ever even tries to read the init file, etc.

Best,
  Roland

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/





Kernel panic: No init found. Try passing init= option to kernel

2002-09-14 Thread Wolfgang Denk

In message <000b01c25ab5$559edc10$7301a8c0 at zhongqx> you wrote:
>
> I want to use ramdisk instead of NFS for my linux on FADS860T which has 
> 2M flash and 8M ram.I want to use eldk pakages to make ramdisk. but when i 
> use it to boot linux ,it print the following message:

You can use our SELF package as  a  model  to  build  custom  ramdisk
images (see ftp://ftp.denx.de/pub/LinuxPPC/usr/src/SELF/).

> EXT2-fs warning: mounting unchecked fs, running e2fsck is recommended
> VFS: Mounted root (ext2 filesystem).
> Freeing unused kernel memory: 56k init
> Kernel panic: No init found.  Try passing init= option to kernel.

> I am sure that /bin/sh exist.why linux can not execute it

Are you sure it's executable, i. e. it really  runs  in  the  ramdisk
environment?  You  can  test  ramdisk  directory  trees  easily using
"chroot".

> successfully? but when I use the simple-ramdisk.PPCBoot which i
> download frow file://ftp.denx.de:/pub/LinuxPPC/usr/src,it run well
> like following:

...which is a pretty reliable indication that yoiur ramdisk image  is
incomplete.

> Why Simple-ramdisk.PPCBoot is ok but My ramdisk.image is not ok,i cant 
> find the diffrent from this two, ths sh program need libray all exist,why 
> linux cant excute successfully?
> Can someone give me help ? thank you in advanced!

Without more information about how you generated  your  ramdisk,  and
what you actually put into it, we cannot even guess.

My recommendation is to start with working tools, like SELF.

Wolfgang Denk

--
Software Engineering:  Embedded and Realtime Systems,  Embedded Linux
Phone: (+49)-8142-4596-87  Fax: (+49)-8142-4596-88  Email: wd at denx.de
There are always alternatives.
-- Spock, "The Galileo Seven", stardate 2822.3

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/





Kernel panic: No init found. Try passing init= option to kernel

2002-09-13 Thread zhongqx

Hello,
I want to use ramdisk instead of NFS for my linux on FADS860T which has 2M 
flash and 8M ram.I want to use eldk pakages to make ramdisk. but when i use it 
to boot linux ,it print the following message:

IP Protocols: ICMP, UDP, TCP, IGMP
IP: routing cache hash table of 512 buckets, 4Kbytes
TCP: Hash tables configured (established 512 bind 512)
enter ic_enable!
NET4: Unix domain sockets 1.0/SMP for Linux NET4.0.
RAMDISK: Compressed image found at block 0
Freeing initrd memory: 735k freed
EXT2-fs warning: mounting unchecked fs, running e2fsck is recommended
VFS: Mounted root (ext2 filesystem).
Freeing unused kernel memory: 56k init
Kernel panic: No init found.  Try passing init= option to kernel.


I am sure that /bin/sh exist.why linux can not execute it successfully? but 
when I use the simple-ramdisk.PPCBoot which i download frow 
file://ftp.denx.de:/pub/LinuxPPC/usr/src,it run well like following:


=>bootm 40 50
## Booting image at 0040 ...
   Image Name:   linux-2.4.18
   Image Type:   PowerPC Linux Kernel Image (gzip compressed)
   Data Size:525046 Bytes = 512 kB = 0 MB
   Load Address: 
   Entry Point:  
   Verifying Checksum ... OK
   Uncompressing Kernel Image ... OK
## Loading RAMDisk Image at 0050 ...
   Image Name:   myramdisk
   Image Type:   PowerPC Linux RAMDisk Image (gzip compressed)
   Data Size:572675 Bytes = 559 kB = 0 MB
   Load Address: 
   Entry Point:  
   Verifying Checksum ... OK
   Loading Ramdisk to 006cf000, end 0075ad03 ... OK
Linux version 2.4.18 (root at localhost.localdomain) (gcc version 2.95.3 
20010111 (
prerelease/franzo/20010111)) #2 Wed Sep 11 15:10:46 CST 2002
On node 0 totalpages: 2048
zone(0): 2048 pages.
zone(1): 0 pages.
zone(2): 0 pages.
Kernel command line: root=/dev/ram
Decrementer Frequency = 18000/60
Calibrating delay loop... 47.82 BogoMIPS
Memory: 6132k available (948k kernel code, 348k data, 56k init, 0k highmem)
Dentry-cache hash table entries: 1024 (order: 1, 8192 bytes)
Inode-cache hash table entries: 512 (order: 0, 4096 bytes)
Mount-cache hash table entries: 512 (order: 0, 4096 bytes)
Buffer-cache hash table entries: 1024 (order: 0, 4096 bytes)
Page-cache hash table entries: 2048 (order: 1, 8192 bytes)
POSIX conformance testing by UNIFIX
Linux NET4.0 for Linux 2.4
Based upon Swansea University Computer Society NET3.039
Initializing RT netlink socket
Starting kswapd
devfs: v1.10 (20020120) Richard Gooch (rgooch at atnf.csiro.au)
devfs: boot_options: 0x0
CPM UART driver version 0.03
ttyS00 at 0x0280 is a SMC
block: 64 slots per queue, batch=16
RAMDISK driver initialized: 16 RAM disks of 4096K size 1024 blocksize
eth0: CPM ENET Version 0.2 on SCC1, 00:d0:93:00:12:34
eth1: FEC ENET Version 0.2, FEC irq 3, MII irq 4, addr 00:d0:93:80:12:34
loop: loaded (max 8 devices)
NET4: Linux TCP/IP 1.0 for NET4.0
IP Protocols: ICMP, UDP, TCP, IGMP
IP: routing cache hash table of 512 buckets, 4Kbytes
TCP: Hash tables configured (established 512 bind 512)
enter ic_enable!
NET4: Unix domain sockets 1.0/SMP for Linux NET4.0.
RAMDISK: Compressed image found at block 0
Freeing initrd memory: 559k freed
EXT2-fs warning: mounting unchecked fs, running e2fsck is recommended
VFS: Mounted root (ext2 filesystem).
Freeing unused kernel memory: 56k init
bash# ls
bin dev etc lib linuxrc lost+found
bash# cd bin
bash# ls
date  lssh
bash# date
Thu Jan  1 02:47:51 UTC 1970
bash# ls
date  lssh
bash# cd lib
init: lib: No such file or directory
bash# cd ..
bash# ls
bin dev etc lib linuxrc lost+found
bash# cd lib
bash# ls
ld.so.1  libcrypt.so.1libtermcap.so.2.0.8
libc-1.99.so libproc.so.1.2.6
libc.so.6libtermcap.so.2
bash# cd ..
bash# ls
bin dev etc lib linuxrc lost+found
bash#



Why Simple-ramdisk.PPCBoot is ok but My ramdisk.image is not ok,i cant find 
the diffrent from this two, ths sh program need libray all exist,why linux cant 
excute successfully?
Can someone give me help ? thank you in advanced!
Hope to get your help!

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/





Kernel panic: No init found. Try passing init= option to kernel

2002-09-11 Thread zhongqx

Hello,
I want to use ramdisk instead of NFS for my linux on FADS860T which has 2M 
flash and 8M ram.I want to use eldk pakages to make ramdisk. but when i use it 
to boot linux ,it print the following message:

IP Protocols: ICMP, UDP, TCP, IGMP
IP: routing cache hash table of 512 buckets, 4Kbytes
TCP: Hash tables configured (established 512 bind 512)
enter ic_enable!
NET4: Unix domain sockets 1.0/SMP for Linux NET4.0.
RAMDISK: Compressed image found at block 0
Freeing initrd memory: 735k freed
EXT2-fs warning: mounting unchecked fs, running e2fsck is recommended
VFS: Mounted root (ext2 filesystem).
Freeing unused kernel memory: 56k init
Kernel panic: No init found.  Try passing init= option to kernel.


I am sure that /bin/sh exist.why linux can not execute it successfully? but 
when I use the simple-ramdisk.PPCBoot which i download frow 
file://ftp.denx.de:/pub/LinuxPPC/usr/src,it run well like following:


=>bootm 40 50
## Booting image at 0040 ...
   Image Name:   linux-2.4.18
   Image Type:   PowerPC Linux Kernel Image (gzip compressed)
   Data Size:525046 Bytes = 512 kB = 0 MB
   Load Address: 
   Entry Point:  
   Verifying Checksum ... OK
   Uncompressing Kernel Image ... OK
## Loading RAMDisk Image at 0050 ...
   Image Name:   myramdisk
   Image Type:   PowerPC Linux RAMDisk Image (gzip compressed)
   Data Size:572675 Bytes = 559 kB = 0 MB
   Load Address: 
   Entry Point:  
   Verifying Checksum ... OK
   Loading Ramdisk to 006cf000, end 0075ad03 ... OK
Linux version 2.4.18 (root at localhost.localdomain) (gcc version 2.95.3 
20010111 (
prerelease/franzo/20010111)) #2 Wed Sep 11 15:10:46 CST 2002
On node 0 totalpages: 2048
zone(0): 2048 pages.
zone(1): 0 pages.
zone(2): 0 pages.
Kernel command line: root=/dev/ram
Decrementer Frequency = 18000/60
Calibrating delay loop... 47.82 BogoMIPS
Memory: 6132k available (948k kernel code, 348k data, 56k init, 0k highmem)
Dentry-cache hash table entries: 1024 (order: 1, 8192 bytes)
Inode-cache hash table entries: 512 (order: 0, 4096 bytes)
Mount-cache hash table entries: 512 (order: 0, 4096 bytes)
Buffer-cache hash table entries: 1024 (order: 0, 4096 bytes)
Page-cache hash table entries: 2048 (order: 1, 8192 bytes)
POSIX conformance testing by UNIFIX
Linux NET4.0 for Linux 2.4
Based upon Swansea University Computer Society NET3.039
Initializing RT netlink socket
Starting kswapd
devfs: v1.10 (20020120) Richard Gooch (rgooch at atnf.csiro.au)
devfs: boot_options: 0x0
CPM UART driver version 0.03
ttyS00 at 0x0280 is a SMC
block: 64 slots per queue, batch=16
RAMDISK driver initialized: 16 RAM disks of 4096K size 1024 blocksize
eth0: CPM ENET Version 0.2 on SCC1, 00:d0:93:00:12:34
eth1: FEC ENET Version 0.2, FEC irq 3, MII irq 4, addr 00:d0:93:80:12:34
loop: loaded (max 8 devices)
NET4: Linux TCP/IP 1.0 for NET4.0
IP Protocols: ICMP, UDP, TCP, IGMP
IP: routing cache hash table of 512 buckets, 4Kbytes
TCP: Hash tables configured (established 512 bind 512)
enter ic_enable!
NET4: Unix domain sockets 1.0/SMP for Linux NET4.0.
RAMDISK: Compressed image found at block 0
Freeing initrd memory: 559k freed
EXT2-fs warning: mounting unchecked fs, running e2fsck is recommended
VFS: Mounted root (ext2 filesystem).
Freeing unused kernel memory: 56k init
bash# ls
bin dev etc lib linuxrc lost+found
bash# cd bin
bash# ls
date  lssh
bash# date
Thu Jan  1 02:47:51 UTC 1970
bash# ls
date  lssh
bash# cd lib
init: lib: No such file or directory
bash# cd ..
bash# ls
bin dev etc lib linuxrc lost+found
bash# cd lib
bash# ls
ld.so.1  libcrypt.so.1libtermcap.so.2.0.8
libc-1.99.so libproc.so.1.2.6
libc.so.6libtermcap.so.2
bash# cd ..
bash# ls
bin dev etc lib linuxrc lost+found
bash#



Why Simple-ramdisk.PPCBoot is ok but My ramdisk.image is not ok,i cant find 
the diffrent from this two, ths sh program need libray all exist,why linux cant 
excute successfully?
Can someone give me help ? thank you in advanced!
Hope to get your help!

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/





ramdisk problems: No init found

2001-12-12 Thread Kári Davíðsson

You have to make shure the links excist on the ramdisk, specially then
link from /bin/init to /bin/busybox.

K.D.

> -Original Message-
> From: Alex Zeffertt [mailto:ajz at cambridgebroadband.com]
> Sent: 12. desember 2001 17:22
> To: linuxppc-embedded
> Subject: ramdisk problems: No init found
>
>
>
> All,
>
> I'm trying to get my MPC860 based board to boot using a
> ramdisk.  I build the root filesystem using
> busybox.  I then load the image into flash using PPCBoot.
> When the kernel boots it sees the ramdisk
> and decompresses it.  It then initialises the RAMDISK driver.
>  It even manages to mount the root
> filesystem.  However, it then panics with the message "No init found".
>
> I don't understand why the kernel cannot find /sbin/init - it
> is definitely being built.  (In fact
> busybox builds only one executable /bin/busybox; other
> executables such as /sbin/init are actually
> links to /bin/busybox).
>
> Has anyone else had this problem?
>
> Thanks, Alex
>
> PS Here's the kernel output:
>
>
> Hit any key to stop autoboot:  0
> ## Booting image at 4000 ...
>Image Name:   Linux-2.4.4
>Created:  2001-12-10  16:18:51 UTC
>Image Type:   PowerPC Linux Kernel Image (gzip compressed)
>Data Size:631277 Bytes = 616 kB = 0 MB
>Load Address: 
>Entry Point:  
>Verifying Checksum ... OK
>Uncompressing Kernel Image ... OK
> ## Loading RAMDisk Image at 4010 ...
>Image Name:   ramdisk image
>Created:  2001-12-12  17:01:04 UTC
>Image Type:   PowerPC Linux RAMDisk Image (gzip compressed)
>Data Size:100316 Bytes = 97 kB = 0 MB
>Load Address: 
>Entry Point:  
>Verifying Checksum ... OK
>Loading Ramdisk to 01f62000, end 01f7a7dc ... OK
> Linux version 2.4.4 (ajz at zambia) (gcc version 2.95.3 20010315
> (release/MontaVista)) #3 Mon Dec 10
> 16:17:53 GMT 2001
> On node 0 totalpages:
> 8192
> zone(0): 8192 pages.
> zone(1): 0 pages.
> zone(2): 0 pages.
> Kernel command line: root=/dev/ram
> ip=10.0.0.83:10.0.0.2:10.0.0.1:255.0.0.0:fast::off
> Decrementer Frequency: 300
> Calibrating delay loop... 47.82 BogoMIPS
> Memory: 30260k available (1208k kernel code, 552k data, 52k
> init, 0k highmem)
> Dentry-cache hash table entries: 4096 (order: 3, 32768 bytes)
> Buffer-cache hash table entries: 1024 (order: 0, 4096 bytes)
> Page-cache hash table entries: 8192 (order: 3, 32768 bytes)
> Inode-cache hash table entries: 2048 (order: 2, 16384 bytes)
> POSIX conformance testing by UNIFIX
> Linux NET4.0 for Linux 2.4
> Based upon Swansea University Computer Society NET3.039
> Starting kswapd v1.8
> CPM UART driver version 0.03
> ttyS0 on SMC1 at 0x0280, BRG1
> ttyS1 on SMC2 at 0x0380, BRG2
> pty: 256 Unix98 ptys configured
> block: queued sectors max/low 20034kB/6678kB, 64 slots per queue
> RAMDISK driver initialized: 16 RAM disks of 4096K size 1024 blocksize
> Uniform Multi-Platform E-IDE driver Revision: 6.31
> ide: Assuming 50MHz system bus speed for PIO modes; override
> with idebus=xx
> PCMCIA slot B: phys mem e000...ec00 (size 0c00)
> No card in slot B: PIPR=3900
> eth0: FEC ENET Version 0.2, FEC irq 3, MII irq 4, addr
> 00:cb:bd:00:00:13
> RAMDISK: Compressed image found at block 0
> Freeing initrd memory: 4194301k freed
> JFFS version 1.0, (C) 1999, 2000  Axis Communications AB
> JFFS2 version 2.1. (C) 2001 Red Hat, Inc., designed by Axis
> Communications AB.
>  Amd/Fujitsu Extended Query Table v1.1 at 0x0040
> number of JEDEC chips: 1
> ICU862 flash bank 0: Using static image partition definition
> Creating 8 MTD partitions on "ICU862 Bank 0":
> 0x-0x0010 : "kernel"
> 0x0010-0x0040 : "initrd"
> 0x0040-0x0080 : "jffs"
> 0x0080-0x00c0 : "cramfs"
> 0x00c0-0x00f0 : "jffs2"
> 0x00f0-0x00f4 : "ppcboot"
> 0x00f4-0x00f8 : "environment"
> 0x00f80000-0x0100 : "spare"
> NET4: Linux TCP/IP 1.0 for NET4.0
> IP Protocols: ICMP, UDP, TCP, IGMP
> IP: routing cache hash table of 512 buckets, 4Kbytes
> TCP: Hash tables configured (established 2048 bind 2048)
> NET4: Unix domain sockets 1.0/SMP for Linux NET4.0.
> NET4: Ethernet Bridge 008 for NET4.0
> VFS: Mounted root (ext2 filesystem).
> Freeing unused kernel memory: 52k in?
> Kernel panic: No init found.  Try passing init= option to kernel.
> Rebooting in 180 seconds..
>


** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/





ramdisk problems: No init found

2001-12-12 Thread Alex Zeffertt

All,

I'm trying to get my MPC860 based board to boot using a ramdisk.  I build the 
root filesystem using
busybox.  I then load the image into flash using PPCBoot.  When the kernel 
boots it sees the ramdisk
and decompresses it.  It then initialises the RAMDISK driver.  It even manages 
to mount the root
filesystem.  However, it then panics with the message "No init found".

I don't understand why the kernel cannot find /sbin/init - it is definitely 
being built.  (In fact
busybox builds only one executable /bin/busybox; other executables such as 
/sbin/init are actually
links to /bin/busybox).

Has anyone else had this problem?

Thanks, Alex

PS Here's the kernel output:


Hit any key to stop autoboot:  0
## Booting image at 4000 ...
   Image Name:   Linux-2.4.4
   Created:  2001-12-10  16:18:51 UTC
   Image Type:   PowerPC Linux Kernel Image (gzip compressed)
   Data Size:631277 Bytes = 616 kB = 0 MB
   Load Address: 
   Entry Point:  
   Verifying Checksum ... OK
   Uncompressing Kernel Image ... OK
## Loading RAMDisk Image at 4010 ...
   Image Name:   ramdisk image
   Created:  2001-12-12  17:01:04 UTC
   Image Type:   PowerPC Linux RAMDisk Image (gzip compressed)
   Data Size:100316 Bytes = 97 kB = 0 MB
   Load Address: 
   Entry Point:  
   Verifying Checksum ... OK
   Loading Ramdisk to 01f62000, end 01f7a7dc ... OK
Linux version 2.4.4 (ajz at zambia) (gcc version 2.95.3 20010315 
(release/MontaVista)) #3 Mon Dec 10
16:17:53 GMT 2001
On node 0 totalpages:
8192
zone(0): 8192 pages.
zone(1): 0 pages.
zone(2): 0 pages.
Kernel command line: root=/dev/ram 
ip=10.0.0.83:10.0.0.2:10.0.0.1:255.0.0.0:fast::off
Decrementer Frequency: 300
Calibrating delay loop... 47.82 BogoMIPS
Memory: 30260k available (1208k kernel code, 552k data, 52k init, 0k highmem)
Dentry-cache hash table entries: 4096 (order: 3, 32768 bytes)
Buffer-cache hash table entries: 1024 (order: 0, 4096 bytes)
Page-cache hash table entries: 8192 (order: 3, 32768 bytes)
Inode-cache hash table entries: 2048 (order: 2, 16384 bytes)
POSIX conformance testing by UNIFIX
Linux NET4.0 for Linux 2.4
Based upon Swansea University Computer Society NET3.039
Starting kswapd v1.8
CPM UART driver version 0.03
ttyS0 on SMC1 at 0x0280, BRG1
ttyS1 on SMC2 at 0x0380, BRG2
pty: 256 Unix98 ptys configured
block: queued sectors max/low 20034kB/6678kB, 64 slots per queue
RAMDISK driver initialized: 16 RAM disks of 4096K size 1024 blocksize
Uniform Multi-Platform E-IDE driver Revision: 6.31
ide: Assuming 50MHz system bus speed for PIO modes; override with idebus=xx
PCMCIA slot B: phys mem e000...ec00 (size 0c00)
No card in slot B: PIPR=3900
eth0: FEC ENET Version 0.2, FEC irq 3, MII irq 4, addr 00:cb:bd:00:00:13
RAMDISK: Compressed image found at block 0
Freeing initrd memory: 4194301k freed
JFFS version 1.0, (C) 1999, 2000  Axis Communications AB
JFFS2 version 2.1. (C) 2001 Red Hat, Inc., designed by Axis Communications AB.
 Amd/Fujitsu Extended Query Table v1.1 at 0x0040
number of JEDEC chips: 1
ICU862 flash bank 0: Using static image partition definition
Creating 8 MTD partitions on "ICU862 Bank 0":
0x-0x0010 : "kernel"
0x0010-0x0040 : "initrd"
0x0040-0x0080 : "jffs"
0x0080-0x00c0 : "cramfs"
0x00c0-0x00f0 : "jffs2"
0x00f0-0x00f4 : "ppcboot"
0x00f4-0x00f8 : "environment"
0x00f8-0x0100 : "spare"
NET4: Linux TCP/IP 1.0 for NET4.0
IP Protocols: ICMP, UDP, TCP, IGMP
IP: routing cache hash table of 512 buckets, 4Kbytes
TCP: Hash tables configured (established 2048 bind 2048)
NET4: Unix domain sockets 1.0/SMP for Linux NET4.0.
NET4: Ethernet Bridge 008 for NET4.0
VFS: Mounted root (ext2 filesystem).
Freeing unused kernel memory: 52k in?
Kernel panic: No init found.  Try passing init= option to kernel.
Rebooting in 180 seconds..

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/





ramdisk problems: No init found

2001-12-12 Thread Jean-Denis Boyer

> I don't understand why the kernel cannot find /sbin/init - it
> is definitely being built.

The size of the RAM disk image (97kb) suggests that the shared librairies
that busybox needs are missing. Either you include them in the image, or you
link busybox statically.



 Jean-Denis Boyer, B.Eng., Technical Leader
 Mediatrix Telecom Inc.
 4229 Garlock Street
 Sherbrooke (Qu?bec)
 J1L 2C8  CANADA
 (819)829-8749 x241


** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/





Kernel panic: No init found.

2000-12-14 Thread Graham Stoney

On Wed, Dec 13, 2000 at 04:32:30PM +0100, Nils Hagge wrote:
> "No such file or directory".
> And this is definitely not true. The files do all exist and are readable and
> executable for all (u-g-o).

The files exist, but I'll bet that one or more of the shared libraries they
use don't.  Try execing /bin/sash (which is statically linked) instead.  Once
you get the prompt, do an:
# ldd /bin/bash

and check to see that the libraries it's looking for are really there.
That link from /opt/hardhat/devkit/ppc/8xx/powerpc-hardhat-linux to / on the
target is usually the obscure problem when using the stuff from MV.  Dunno
what they were thinking...

Regards,
Graham
--
Graham Stoney
Assistant Technology Manager
Canon Information Systems Research Australia
Ph: +61 2 9805 2909  Fax: +61 2 9805 2929

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/





Kernel panic: No init found.

2000-12-14 Thread jari.nguyen

Hi all,

Graham Stoney wrote:

> That link from /opt/hardhat/devkit/ppc/8xx/powerpc-hardhat-linux to / on the
> target is usually the obscure problem when using the stuff from MV.  Dunno
> what they were thinking...

I know that this link is used for the application to look for library when it
run.
When you build an application the linker use the directory:

/opt/devkit/hardhat/ppc/8xx/powerpc-hardhat-linux/lib

so that, when the application runs, it'll look for the lib in that directory,
this is the reason
they need the link.

And below is my problem, does anyone try to place the libary on different
directories?
for example, I need to put the limit share library on the rom, the other I'll 
put
it in another
directory in the harddisk. I think that I have to point out the library
directory,
this problem here is I want to use current applications, I don't want to rebuild
all of these.
does anyone know how to do it, or where can I have the information about it?

Thanks in advance,
Jari


** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/





Kernel panic: No init found.

2000-12-14 Thread Jari Nguyen Trung Thanh

Hi Mike Hill and Nils Hagge,

Quoting Mike Hill :

>
> I believe I have seen the same problem.  As I recall, we first started
> seeing this problem when we removed a symlink (/opt/hardhat/devkit to /)
> that was included in the MontaVista target directory.  We were told that
> we
> had it add it back because some of the MontaVista libraries were built
> incorrectly.

Oh, I forgot it, it happened to me in the past, too.
However, this just supports for building another application which can use the
library in the root/lib directory, when it run in the embedded systems...

 You may want to check to see if you have that symlink in
> your
> target directory.
>
Hope this help,
Jari

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/





Kernel panic: No init found.

2000-12-13 Thread Nils Hagge

Hi Jari,

thank for your fast answer. I examined the problem I little bit further,
maybe you find something, that can help me further with this new
piece of information.
> you should see if you have the link sbin -> bin in the target dir or not..
bash-2.03# dir -l
total 100
drwxr-xr-x   2 root root 8192 Dec  5 02:55 bin
drwxr-xr-x   2 root root 4096 Dec  5 03:14 boot
drwxr-xr-x   2 root root 4096 Dec  5 02:54 dev
drwxr-xr-x   6 root root 4096 Dec 13 07:14 etc
drwxr-xr-x   3 root root 4096 Dec  5 02:54 home
drwxr-xr-x   3 root root 4096 Dec  5 02:54 include
-rwxrwxrwx   1 root root30344 Dec  8 06:39 init
drwxr-xr-x   4 root root 4096 Dec  5 02:55 lib
drwxr-xr-x   6 root root 4096 Dec  5 02:55 man
drwxr-xr-x   2 root root 4096 Aug  9 21:17 mnt
drwxr-xr-x   3 root root 4096 Dec  5 02:54 opt
drwxr-xr-x   2 root root 4096 Aug  9 21:17 proc
lrwxrwxrwx   1 root root3 Dec  5 02:54 sbin -> bin
drwxr-xr-x   4 root root 4096 Dec  5 02:55 share
drwxr-xr-x   2 root root 4096 Aug  9 21:17 tmp
drwxr-xr-x   5 root root 4096 Dec  5 02:54 usr
drwxr-xr-x   8 root root 4096 Dec  5 02:55 var
drwxr-xr-x  10 root root 4096 Dec  5 02:55 web
Sure. This link exists. But even if it didnt, it should work nevertheless,
if you take a look at the source file

> the best thing I can show that you should look to the file: /init/main.c
> in your kernel source
that I nearly know by heart

 if (open("/dev/console", O_RDWR, 0) < 0)
  printk("Warning: unable to open an initial console.\n");

 (void) dup(0);
 (void) dup(0);

 /*
  * We try each of these until one succeeds.
  *
  * The Bourne shell can be used instead of init if we are
  * trying to recover a really broken machine.
  */

 if (execute_command)
  printk("Suchen nach %s ", execute_command),
execve(execute_command,argv_init,envp_init),
printk("%d\n", errno);
 printk("Suchen nach /sbin/init "),
execve("/sbin/init",argv_init,envp_init), <---here /sbin/init is
tried to be loaded
printk("%d\n", (errno));
 printk("Suchen nach /etc/init "), execve("/etc/init",argv_init,envp_init),
<- /etc/init
 printk("%d\n", (errno));
 printk("Suchen nach /bin/init "), execve("/bin/init",argv_init,envp_init),
<- /bin/init
 printk("%d\n", (errno));
 printk("Suchen nach /bin/sh "), execve("/bin/sh",argv_init,envp_init),
<- /bin/sh
 printk("%d\n", (errno));
 panic("No init found.  Try passing init= option to kernel.");
}

I added the "printk" statements in order to see the error codes.
And the output is the following:
[]
VFS: Mounted root (NFS filesystem).
Freeing unused kernel memory: 36k init
Suchen nach /bin/init 2
Suchen nach /sbin/init 2
Suchen nach /etc/init 2
Suchen nach /bin/init 2
Suchen nach /bin/sh 2
[...]
Thus the error is always no. 2, which is according to
"include/asm-ppc/errno.h" equal to
"No such file or directory".
And this is definitely not true. The files do all exist and are readable and
executable for all (u-g-o).


** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/





Kernel panic: No init found.

2000-12-13 Thread Nils Hagge

Hi,

I try to run Hard Hat Linux from Montavista as described in the CDK 1.2
manual on an RPX lite board.
Unfortunately, the installation procedure is only for hosts with Red Hat
Linux, I hoped this would work for SuSE, too.

The problem has to do with the NFS filesystem. I can successfully download a
precompiled
Hard Hat Linux boot-image via TFTP and monitor this with the serial port.

The following is the output over the serial port...

 target IP address : 824B8932
 target file name  : rpxlite.srec
 address bias  : 0
Starting tftp download:
inetARP(): OK
.1.2.4.8.16.32.64.128.256.512.1024.2048.4096.8192
load_tftp(): OK
1087283 data bytes, 13764 S-records, 2124 tftp blocks, 0 repeated blocks
start address = 0020
load_tftp_toMem(): OK
Transferring control to downloaded program
loaded at: 0020 0020B1FC
relocated to:  0018 0018B1FC
board data at: 001801C8 001801E4
relocated to:  00200100 0020011C
zimage at: 00206000 0026A4C4
avail ram: 0026B000 0100

Linux/PPC load: root=/dev/nfs rw nfsroot=/opt/hardhat/devkit/ppc/8xx/target
Uncompressing Linux...done.
Now booting the kernel
Linux version 2.2.14 (root at rodan.mvista.com) (gcc version 2.95.2 19991030
(2.95.
3 prerelease/franzo)) #1 Tue Aug 8 02:01:27 PDT 2000
Boot arguments: root=/dev/nfs rw nfsroot=/opt/hardhat/devkit/ppc/8xx/target
time_init: decrementer frequency = 24000/60
Calibrating delay loop... 63.69 BogoMIPS
Memory: 15152k available (740k kernel code, 456k data, 36k init)
[c000,c1000
IP Protocols: ICMP, UDP, TCP
TCP: Hash tables configured (ehash 16384 bhash 16384)
Initializing RT netlink socket
Starting kswapd v 1.5
CPM UART driver version 0.03
ttyS00 at 0x0280 is a SMC
ttyS01 at 0x0380 is a SMC
pty: 256 Unix98 ptys configured
RAM disk driver initialized:  16 RAM disks of 4096K size
loop: registered device at major 7
eth0: CPM ENET Version 0.2, 00:10:ec:00:1b:fb
PPP: version 2.3.7 (demand dialling)
TCP compression code copyright 1989 Regents of the University of California
PPP line discipline registered.
Sending BOOTP requests OK
IP-Config: Got BOOTP answer from 130.75.137.50, my address is 130.75.137.59
Looking up port of RPC 13/2 on 130.75.137.50
Looking up port of RPC 15/1 on 130.75.137.50
VFS: Mounted root (NFS filesystem).
Freeing unused kernel memory: 36k init
Kernel panic: No init found.  Try passing init= option to kernel.
Rebooting in 180 seconds..

snip

The filesystem seems to be mounted, but it does not find any files in there
although the full "linux tree" is available. I also tried adding
  init=/bin/init   init=bin/initinit=/opt/.../target/bin/init
to the boot arguments, but nothing helped.

Do you know that problem or have an idea? Any help is welcome. Thank in
advance.

Nils Hagge


** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/





Kernel panic: No init found.

2000-12-13 Thread Mike Hill

I believe I have seen the same problem.  As I recall, we first started
seeing this problem when we removed a symlink (/opt/hardhat/devkit to /)
that was included in the MontaVista target directory.  We were told that we
had it add it back because some of the MontaVista libraries were built
incorrectly.  You may want to check to see if you have that symlink in your
target directory.

-Mike

- Original Message -
From: "Nils Hagge" <[EMAIL PROTECTED]>
To: 
Sent: Wednesday, December 13, 2000 9:17 AM
Subject: Kernel panic: No init found.


>
> Hi,
>
> I try to run Hard Hat Linux from Montavista as described in the CDK 1.2
> manual on an RPX lite board.
> Unfortunately, the installation procedure is only for hosts with Red Hat
> Linux, I hoped this would work for SuSE, too.
>
> The problem has to do with the NFS filesystem. I can successfully download
a
> precompiled
> Hard Hat Linux boot-image via TFTP and monitor this with the serial port.
>
> The following is the output over the serial port...
>
>  target IP address : 824B8932
>  target file name  : rpxlite.srec
>  address bias  : 0
> Starting tftp download:
> inetARP(): OK
> .1.2.4.8.16.32.64.128.256.512.1024.2048.4096.8192
> load_tftp(): OK
> 1087283 data bytes, 13764 S-records, 2124 tftp blocks, 0 repeated blocks
> start address = 0020
> load_tftp_toMem(): OK
> Transferring control to downloaded program
> loaded at: 0020 0020B1FC
> relocated to:  0018 0018B1FC
> board data at: 001801C8 001801E4
> relocated to:  00200100 0020011C
> zimage at: 00206000 0026A4C4
> avail ram: 0026B000 0100
>
> Linux/PPC load: root=/dev/nfs rw
nfsroot=/opt/hardhat/devkit/ppc/8xx/target
> Uncompressing Linux...done.
> Now booting the kernel
> Linux version 2.2.14 (root at rodan.mvista.com) (gcc version 2.95.2 19991030
> (2.95.
> 3 prerelease/franzo)) #1 Tue Aug 8 02:01:27 PDT 2000
> Boot arguments: root=/dev/nfs rw
nfsroot=/opt/hardhat/devkit/ppc/8xx/target
> time_init: decrementer frequency = 24000/60
> Calibrating delay loop... 63.69 BogoMIPS
> Memory: 15152k available (740k kernel code, 456k data, 36k init)
> [c000,c1000
> IP Protocols: ICMP, UDP, TCP
> TCP: Hash tables configured (ehash 16384 bhash 16384)
> Initializing RT netlink socket
> Starting kswapd v 1.5
> CPM UART driver version 0.03
> ttyS00 at 0x0280 is a SMC
> ttyS01 at 0x0380 is a SMC
> pty: 256 Unix98 ptys configured
> RAM disk driver initialized:  16 RAM disks of 4096K size
> loop: registered device at major 7
> eth0: CPM ENET Version 0.2, 00:10:ec:00:1b:fb
> PPP: version 2.3.7 (demand dialling)
> TCP compression code copyright 1989 Regents of the University of
California
> PPP line discipline registered.
> Sending BOOTP requests OK
> IP-Config: Got BOOTP answer from 130.75.137.50, my address is
130.75.137.59
> Looking up port of RPC 13/2 on 130.75.137.50
> Looking up port of RPC 15/1 on 130.75.137.50
> VFS: Mounted root (NFS filesystem).
> Freeing unused kernel memory: 36k init
> Kernel panic: No init found.  Try passing init= option to kernel.
> Rebooting in 180 seconds..
>
> snip
>
> The filesystem seems to be mounted, but it does not find any files in
there
> although the full "linux tree" is available. I also tried adding
>   init=/bin/init   init=bin/initinit=/opt/.../target/bin/init
> to the boot arguments, but nothing helped.
>
> Do you know that problem or have an idea? Any help is welcome. Thank in
> advance.
>
> Nils Hagge
>
>


** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/





Kernel panic: No init found.

2000-12-13 Thread [EMAIL PROTECTED]

you really should contact MV support for this kind of stuff (if you have
a support contract).

Ot is something with your basic setup.  Did you add the /opt.../target
directory to /etc/exports ? if so, did you restart the nfs server?  is
the nfs server running?

Nils Hagge wrote:
>
> Hi,
>
> I try to run Hard Hat Linux from Montavista as described in the CDK 1.2
> manual on an RPX lite board.
> Unfortunately, the installation procedure is only for hosts with Red Hat
> Linux, I hoped this would work for SuSE, too.
>
> The problem has to do with the NFS filesystem. I can successfully download a
> precompiled
> Hard Hat Linux boot-image via TFTP and monitor this with the serial port.
>
> The following is the output over the serial port...
>
>  target IP address : 824B8932
>  target file name  : rpxlite.srec
>  address bias  : 0
> Starting tftp download:
> inetARP(): OK
> .1.2.4.8.16.32.64.128.256.512.1024.2048.4096.8192
> load_tftp(): OK
> 1087283 data bytes, 13764 S-records, 2124 tftp blocks, 0 repeated blocks
> start address = 0020
> load_tftp_toMem(): OK
> Transferring control to downloaded program
> loaded at: 0020 0020B1FC
> relocated to:  0018 0018B1FC
> boart
ata at: 001801C8 001801E4
> relocated to:  00200100 0020011C
> zimage at: 00206000 0026A4C4
> avail ram: 0026B000 0100
>
> Linux/PPC load: root=/dev/nfs rw nfsroot=/opt/hardhat/devkit/ppc/8xx/target
> Uncompressing Linux...done.
> Now booting the kernel
> Linux version 2.2.14 (root at rodan.mvista.com) (gcc version 2.95.2 19991030
> (2.95.
> 3 prerelease/franzo)) #1 Tue Aug 8 02:01:27 PDT 2000
> Boot arguments: root=/dev/nfs rw nfsroot=/opt/hardhat/devkit/ppc/8xx/target
> time_init: decrementer frequency = 24000/60
> Calibrating delay loop... 63.69 BogoMIPS
> Memory: 15152k available (740k kernel code, 456k data, 36k init)
> [c000,c1000
> IP Protocols: ICMP, UDP, TCP
> TCP: Hash tables configured (ehash 16384 bhash 16384)
> Initializing RT netlink socket
> Starting kswapd v 1.5
> CPM UART driver version 0.03
> ttyS00 at 0x0280 is a SMC
> ttyS01 at 0x0380 is a SMC
> pty: 256 Unix98 ptys configured
> RAM disk driver initialized:  16 RAM disks of 4096K size
> loop: registered device at major 7
> eth0: CPM ENET Version 0.2, 00:10:ec:00:1b:fb
> PPP: version 2.3.7 (demand dialling)
> TCP compression code copyright 1989 Regents of the University of California
> PPP line discipline registered.
> Sending BOOTP requests OK
> IP-Config: Got BOOTP answer from 130.75.137.50, my address is 130.75.137.59
> Looking up port of RPC 13/2 on 130.75.137.50
> Looking up port of RPC 15/1 on 130.75.137.50
> VFS: Mounted root (NFS filesystem).
> Freeing unused kernel memory: 36k init
> Kernel panic: No init found.  Try passing init= option to kernel.
> Rebooting in 180 seconds..
>
> snip
>
> The filesystem seems to be mounted, but it does not find any files in there
> although the full "linux tree" is available. I also tried adding
>   init=/bin/init   init=bin/initinit=/opt/.../target/bin/init
> to the boot arguments, but nothing helped.
>
> Do you know that problem or have an idea? Any help is welcome. Thank in
> advance.
>
> Nils Hagge
>>bN
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/





Problem with RAMDISK "No init found"

2000-03-10 Thread Sebastien Articlaux
Hi all,

I've now Linux booting onto our custom chip,MPC 860,
64M SDRAM, 4M Flash, 1 FPGA&32M DRAM

I've got this message
kmod: failed to exec /sbin/modprobe -s -k
char-major-5, errno = 2

I don't what is modprobe.
I think I must recreate my RAMDIK whith modprobe in
it...

What do you think?


Sebastien ARTICLAUX
-- next part --
An embedded and charset-unspecified text was scrubbed...
Name: log.txt
Url: 
http://ozlabs.org/pipermail/linuxppc-embedded/attachments/2310/fde7a699/attachment.txt