Fwd: execve of /sbin/init fails

2006-05-31 Thread Steve Iribarne (GMail)
Whoops.. forgot to replyall.


-- Forwarded message --
From: Steve Iribarne (GMail) [EMAIL PROTECTED]
Date: May 31, 2006 6:30 AM
Subject: Re: execve of /sbin/init fails
To: Anantharaman Chetan-W16155 Chetan.S.Anantharaman at motorola.com


On 5/30/06, Anantharaman Chetan-W16155
Chetan.S.Anantharaman at motorola.com wrote:
 Thanks for your reply. Yes, the file /sbin/init is in the ramdisk file
 system with execute permissions on it. I am running Busybox (how can I
 check the version?),

I think you can check the version when you do make menuconfig.  I
think the version info is in there somewhere.  Also it may be in the
README.


but my /sbin/init is not Busybox's init.

Right.. so if you are not using Busybox's init, make sure you told
Busybox this.  When you do make menuconfig in Busybox, I think it is
under the General tab, there is a check for using Busybox's init or
not.  I think in 1.00-rc3 they turned that on by default.  They may
have always turned it on, I can't remember.



 One thing I'd like to mention is, I have used the same ramdisk
 filesystem and the same version of Linux 2.4 kernel and U-Boot
 bootloader and have been able to successfully execute the /sbin/init.
 This board has a Xilinx Virtex 2 Pro FPGA with a PPC405. On my new
 board, with a Xilinx Virtex 4 FX100 FPGA, with the kernel running on a
 PPC405 and the same filesystem, the execve of /sbin/init hangs. By
 hangs, I mean there is no output on the console after the below output
 and it does not return (which indicates that it has not encountered an
 error of some sort, since execve returns on error only). So, I am not
 sure where it is stuck and is there any way to tell where it's stuck at?

 Hope this above info and below screen capture provide a bit more
 background to the issue.


 Below is a capture of the screen output:
 Linux NET4.0 for Linux 2.4
 Based upon Swansea University Computer Society NET3.039
 OCP uart ver 1.6.2 init complete
 LSP Revision 42
 ikconfig 0.5 with /proc/ikconfig
 Starting kswapd
 Disabling the Out Of Memory Killer
 Journalled Block Device driver loaded
 devfs: v1.12c (20020818) Richard Gooch (rgooch at atnf.csiro.au)
 devfs: boot_options: 0x1
 pty: 256 Unix98 ptys configured
 Serial driver version 5.05c (2001-07-08) with no serial options enabled
 ttyS00 at 0xfdfff003 (irq = 22) is a 16550A
 xgpio #0 at 0x5000 mapped to 0xC500
 RAMDISK driver initialized: 16 RAM disks of 16384K size 1024 blocksize
 loop: loaded (max 8 devices)
 Tracer: Initialization complete
 RAMDISK: Compressed image found at block 0
 Freeing initrd memory: 5104k freed
 EXT2-fs warning: mounting unchecked fs, running e2fsck is recommended
 VFS: Mounted root (ext2 filesystem).
 Mounted devfs on /dev
 Freeing unused kernel memory: 40k init





 -Original Message-
 From: Jeff.Fellin at rflelect.com [mailto:Jeff.Fellin at rflelect.com]
 Sent: Tuesday, May 30, 2006 3:55 PM
 To: Anantharaman Chetan-W16155
 Cc: linuxppc-embedded at ozlabs.org;
 linuxppc-embedded-bounces+jeff.fellin=rflelect.com at ozlabs.org
 Subject: Re: execve of /sbin/init fails



   Anantharaman Chetan-W16155

   Chetan.S.Anantharaman at motorola.com
 To:   linuxppc-embedded at ozlabs.org
   Sent by:
 cc:
   linuxppc-embedded-bounces+jeff.fellin=rflelect.com
 Subject:  execve of /sbin/init fails
   @ozlabs.org





   05/30/2006 15:59














 Hi,
 I am trying to bring up a custom board with a PPC405 processor running
 Linux 2.4.20 (MontaVista Release) and am having problems with the call
 to
 execve(/sbin/init, argv_init, envp_init) not returning in the file
 main.c. The processor just hangs and there is no output on the
 terminal. I
 have tried to see if I can run bin/sh and even this execve call does
 not
 return. Some things about the board are, the networking option has been
 disabled in the Linux .config file. I am running U-Boot 1.1.1 as the
 bootloader and am downloading the uImage (compressed kernel) and the
 initrd.boot (filesystem) into RAM and accessing the filesystem in RAM.
  Chetan, I would check the contents of the initrd filesystem you created
 to
 verify the files are in the image. If they are monitor the console
 output
 to verfiy the ramdisk filesystem is found and installed into ram.
 Jeff Fellin

 Any help as to what could be causing this to happen or how to debug
 this
 issue would be appreciated. Also, I've tried to capture the return
 value
 of the execve call but since the call does not return, this has not
 helped
 any.

 Thanks,
 Chetan Anantharaman

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





execve of /sbin/init fails

2006-05-30 Thread Anantharaman Chetan-W16155
Hi, 

I am trying to bring up a custom board with a PPC405 processor running
Linux 2.4.20 (MontaVista Release) and am having problems with the call
to execve(/sbin/init, argv_init, envp_init) not returning in the file
main.c. The processor just hangs and there is no output on the terminal.
I have tried to see if I can run bin/sh and even this execve call does
not return. Some things about the board are, the networking option has
been disabled in the Linux .config file. I am running U-Boot 1.1.1 as
the bootloader and am downloading the uImage (compressed kernel) and the
initrd.boot (filesystem) into RAM and accessing the filesystem in RAM. 

 

Any help as to what could be causing this to happen or how to debug this
issue would be appreciated. Also, I've tried to capture the return value
of the execve call but since the call does not return, this has not
helped any.

 

Thanks,

Chetan Anantharaman

 

 

-- next part --
An HTML attachment was scrubbed...
URL: 
http://ozlabs.org/pipermail/linuxppc-embedded/attachments/20060530/09c64124/attachment.htm
 


execve of /sbin/init fails

2006-05-30 Thread [EMAIL PROTECTED]

  
  Anantharaman Chetan-W16155  
  
  Chetan.S.Anantharaman at motorola.com   
   To:   linuxppc-embedded at ozlabs.org  
  Sent by:  
cc:   
  linuxppc-embedded-bounces+jeff.fellin=rflelect.com
Subject:  execve of /sbin/init fails  
  @ozlabs.org   
  

  

  
  05/30/2006 15:59  
  

  

  








Hi,
I am trying to bring up a custom board with a PPC405 processor running
Linux 2.4.20 (MontaVista Release) and am having problems with the call to
execve(?/sbin/init?, argv_init, envp_init) not returning in the file
main.c. The processor just hangs and there is no output on the terminal. I
have tried to see if I can run ?bin/sh? and even this execve call does not
return. Some things about the board are, the networking option has been
disabled in the Linux .config file. I am running U-Boot 1.1.1 as the
bootloader and am downloading the uImage (compressed kernel) and the
initrd.boot (filesystem) into RAM and accessing the filesystem in RAM.
 Chetan, I would check the contents of the initrd filesystem you created to
verify the files are in the image. If they are monitor the console output
to verfiy the ramdisk filesystem is found and installed into ram.
Jeff Fellin

Any help as to what could be causing this to happen or how to debug this
issue would be appreciated. Also, I?ve tried to capture the return value
of the execve call but since the call does not return, this has not helped
any.

Thanks,
Chetan Anantharaman

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


execve of /sbin/init fails

2006-05-30 Thread Andy Gospodarek
You could also try compiling init statically.  I've had success with
that in the past until I figured out what the actual problem was.


On 5/30/06, Anantharaman Chetan-W16155
Chetan.S.Anantharaman at motorola.com wrote:




 Hi,

 I am trying to bring up a custom board with a PPC405 processor running Linux
 2.4.20 (MontaVista Release) and am having problems with the call to
 execve(/sbin/init, argv_init, envp_init) not returning in the file main.c.
 The processor just hangs and there is no output on the terminal. I have
 tried to see if I can run bin/sh and even this execve call does not
 return. Some things about the board are, the networking option has been
 disabled in the Linux .config file. I am running U-Boot 1.1.1 as the
 bootloader and am downloading the uImage (compressed kernel) and the
 initrd.boot (filesystem) into RAM and accessing the filesystem in RAM.



 Any help as to what could be causing this to happen or how to debug this
 issue would be appreciated. Also, I've tried to capture the return value of
 the execve call but since the call does not return, this has not helped any.



 Thanks,

 Chetan Anantharaman




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





execve of /sbin/init fails

2006-05-30 Thread Steve Iribarne (GMail)
On 5/30/06, Anantharaman Chetan-W16155
Chetan.S.Anantharaman at motorola.com wrote:




 Hi,

 I am trying to bring up a custom board with a PPC405 processor running Linux
 2.4.20 (MontaVista Release) and am having problems with the call to
 execve(/sbin/init, argv_init, envp_init) not returning in the file main.c.


Hmm.. Ok.. so I've read the other suggestions all good, but I think we
are missing some info.  Are you running Busybox?  If you are using
Busybox, what version?  Also, what init are you using?  Are you using
busyboxes?

The ramdisk suggestion was a good one.  First off, check what is in
your ramdisk.  Also check the rights of the files in the ramdisk.
Make sure you have the execute bit set.  I've seen exactly what you
are seeing when my rights on the file init were messed up.

Also I think I've seen a hang with an older version of Busybox using
their version of init.  I just got sysinit and that seemed to fix it,
(Although I had to reconfig Busybox to not use their version of init)




 The processor just hangs and there is no output on the terminal.


When you say the process just hangs, where are you in the boot
cycle?  Is it before you see the linux kernel starting to load?  Or do
you see any kernel messages start to spew out?

Hope this helps a little.

-stv



execve of /sbin/init fails

2006-05-30 Thread Andy Gospodarek
On 5/30/06, Steve Iribarne (GMail) netstv at gmail.com wrote:
 On 5/30/06, Anantharaman Chetan-W16155
 Chetan.S.Anantharaman at motorola.com wrote:
 
 
 
 
  Hi,
 
  I am trying to bring up a custom board with a PPC405 processor running Linux
  2.4.20 (MontaVista Release) and am having problems with the call to
  execve(/sbin/init, argv_init, envp_init) not returning in the file main.c.


 Hmm.. Ok.. so I've read the other suggestions all good, but I think we
 are missing some info.  Are you running Busybox?  If you are using
 Busybox, what version?  Also, what init are you using?  Are you using
 busyboxes?

 The ramdisk suggestion was a good one.  First off, check what is in
 your ramdisk.  Also check the rights of the files in the ramdisk.
 Make sure you have the execute bit set.  I've seen exactly what you
 are seeing when my rights on the file init were messed up.

 Also I think I've seen a hang with an older version of Busybox using
 their version of init.  I just got sysinit and that seemed to fix it,
 (Although I had to reconfig Busybox to not use their version of init)


I guess I totally assumed busybox was being used, so good suggestion.
I too saw this with an older version of busybox (0.60 maybe?) and I
ended up editing the config to contain only init and then compiled it
statically and placed it on the rootfs.  It turned out to be just the
right size and functionality for my needs.  I think I later updated to
a 1.0 or 1.1-series and didn't have to use the same hack.





  The processor just hangs and there is no output on the terminal.


 When you say the process just hangs, where are you in the boot
 cycle?  Is it before you see the linux kernel starting to load?  Or do
 you see any kernel messages start to spew out?

 Hope this helps a little.

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




execve of /sbin/init fails

2006-05-30 Thread Anantharaman Chetan-W16155
Thanks for your reply. Yes, the file /sbin/init is in the ramdisk file
system with execute permissions on it. I am running Busybox (how can I
check the version?), but my /sbin/init is not Busybox's init.

One thing I'd like to mention is, I have used the same ramdisk
filesystem and the same version of Linux 2.4 kernel and U-Boot
bootloader and have been able to successfully execute the /sbin/init.
This board has a Xilinx Virtex 2 Pro FPGA with a PPC405. On my new
board, with a Xilinx Virtex 4 FX100 FPGA, with the kernel running on a
PPC405 and the same filesystem, the execve of /sbin/init hangs. By
hangs, I mean there is no output on the console after the below output
and it does not return (which indicates that it has not encountered an
error of some sort, since execve returns on error only). So, I am not
sure where it is stuck and is there any way to tell where it's stuck at?

Hope this above info and below screen capture provide a bit more
background to the issue.


Below is a capture of the screen output:
Linux NET4.0 for Linux 2.4
Based upon Swansea University Computer Society NET3.039
OCP uart ver 1.6.2 init complete
LSP Revision 42
ikconfig 0.5 with /proc/ikconfig
Starting kswapd
Disabling the Out Of Memory Killer
Journalled Block Device driver loaded
devfs: v1.12c (20020818) Richard Gooch (rgooch at atnf.csiro.au)
devfs: boot_options: 0x1
pty: 256 Unix98 ptys configured
Serial driver version 5.05c (2001-07-08) with no serial options enabled
ttyS00 at 0xfdfff003 (irq = 22) is a 16550A
xgpio #0 at 0x5000 mapped to 0xC500
RAMDISK driver initialized: 16 RAM disks of 16384K size 1024 blocksize
loop: loaded (max 8 devices)
Tracer: Initialization complete
RAMDISK: Compressed image found at block 0
Freeing initrd memory: 5104k freed
EXT2-fs warning: mounting unchecked fs, running e2fsck is recommended
VFS: Mounted root (ext2 filesystem).
Mounted devfs on /dev
Freeing unused kernel memory: 40k init



-Original Message-
From: Jeff.Fellin at rflelect.com [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, May 30, 2006 3:55 PM
To: Anantharaman Chetan-W16155
Cc: linuxppc-embedded at ozlabs.org;
linuxppc-embedded-bounces+jeff.fellin=rflelect.com at ozlabs.org
Subject: Re: execve of /sbin/init fails

 

  Anantharaman Chetan-W16155

  Chetan.S.Anantharaman at motorola.com
To:   linuxppc-embedded at ozlabs.org  
  Sent by:
cc:   
  linuxppc-embedded-bounces+jeff.fellin=rflelect.com
Subject:  execve of /sbin/init fails  
  @ozlabs.org

 

 

  05/30/2006 15:59

 

 










Hi,
I am trying to bring up a custom board with a PPC405 processor running
Linux 2.4.20 (MontaVista Release) and am having problems with the call
to
execve(/sbin/init, argv_init, envp_init) not returning in the file
main.c. The processor just hangs and there is no output on the
terminal. I
have tried to see if I can run bin/sh and even this execve call does
not
return. Some things about the board are, the networking option has been
disabled in the Linux .config file. I am running U-Boot 1.1.1 as the
bootloader and am downloading the uImage (compressed kernel) and the
initrd.boot (filesystem) into RAM and accessing the filesystem in RAM.
 Chetan, I would check the contents of the initrd filesystem you created
to
verify the files are in the image. If they are monitor the console
output
to verfiy the ramdisk filesystem is found and installed into ram.
Jeff Fellin

Any help as to what could be causing this to happen or how to debug
this
issue would be appreciated. Also, I've tried to capture the return
value
of the execve call but since the call does not return, this has not
helped
any.

Thanks,
Chetan Anantharaman

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