public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Re: init does not run on 405GP system
@ 2003-06-11 14:12 Jocelyn Mayer
  0 siblings, 0 replies; 5+ messages in thread
From: Jocelyn Mayer @ 2003-06-11 14:12 UTC (permalink / raw)
  To: linux kernel; +Cc: robert


> On Wed, Jun 11, 2003 at 09:53:04AM +0300, Denis Vlasenko wrote: 
> > I once tried to run 686 based libc on a 486, init was rained upon
> > by SIGILLs 'coz it had 586+ instructions. No output on the screen
> > whatsoever.
> 
> 
> I've tried it with the DENX busybox rootimage which is definitely
> tested 
> extensively on PPC4xx, but it does not work. 
> 
> 
> Robert 
> 
Hi,

You may have wrong compilation options.
Please send me your test program and I'll test it on a PPC403 board.
>From my tests, it seems that gcc 3.xx specs are quite buggy for those
embedded processors and need to be patched to produce correct code.

Regards.

-- 
Jocelyn Mayer <jma@netgem.com>


^ permalink raw reply	[flat|nested] 5+ messages in thread
[parent not found: <20030610141047.GU9379@pengutronix.de>]
* init does not run on 405GP system
@ 2003-06-10 20:16 Robert Schwebel
  2003-06-11  6:53 ` Denis Vlasenko
  0 siblings, 1 reply; 5+ messages in thread
From: Robert Schwebel @ 2003-06-10 20:16 UTC (permalink / raw)
  To: linux-kernel

Hi,

I'm currently porting u-boot and Linux to an IBM 405GP based board. The
problem is now that init seems not to be running and does not give any
output. Up to that point where init should make some noise the kernel
boots smoothly (serial console), I see all output and NFS-Root is
mounted via an Intel 82559 network chip. The kernel threads are also
running, I see kupdated & friends being put into the run queue from time
to time.

I have replaced /sbin/init by a statically linked "hello world" (which
also does not give any output). My impression is that the binary code of
the init ELF binary is never run. When I switch on the SHOW_SYSCALLs
macro in arch/ppc/kernel/entry.S I see the system calls for open(),
dup(), dup() and execve() which come from init/main.c. Opening the
console works, execve() to /sbin/init as well. When I follow the path of
execution up to load_elf_binary() in fs/binfmt_elf.c I can even see the
correct code being load and pointed to by elf_entry in that file. But
there is never any output from init, nor does something happen when I
replace init by a piece of code which should immediately make a zero
pointer exception.

Nevertheless, the kernel runs smoothly. I can ping the machine, I can
even floodping it with 0% packet loss. Only that there is no userspace
running.

Has anybody seen something like this before?

- Kernel is 2.4.21-rc2 with bitkeeper from 20030515 plus board port
- userland was tested with Debian bootdisks, Denx 4xx boot image and
  others
- toolchain is the Debian powerpc-linux cross toolchain.

Robert
--
 Dipl.-Ing. Robert Schwebel | http://www.pengutronix.de
 Pengutronix - Linux Solutions for Science and Industry
   Braunschweiger Str. 79,  31134 Hildesheim, Germany
   Handelsregister:  Amtsgericht Hildesheim, HRA 2686
    Phone: +49-5121-28619-0 |  Fax: +49-5121-28619-4

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2003-06-12 19:00 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-06-11 14:12 init does not run on 405GP system Jocelyn Mayer
     [not found] <20030610141047.GU9379@pengutronix.de>
2003-06-12 19:13 ` Robert Schwebel
  -- strict thread matches above, loose matches on Subject: below --
2003-06-10 20:16 Robert Schwebel
2003-06-11  6:53 ` Denis Vlasenko
2003-06-11  7:12   ` Robert Schwebel

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox