public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Marc Singer <elf@buici.com>
To: linux-kernel@vger.kernel.org
Cc: linux-arm <linux-arm@lists.arm.linux.org.uk>
Subject: New 2.6 port: why would kernel not start /sbin/init?
Date: Thu, 19 Feb 2004 20:38:19 -0800	[thread overview]
Message-ID: <20040220043819.GA9592@buici.com> (raw)

I've got a port to a new chip (ARM920 core) that is very close to
booting.  There appears to be something keeping the /sbin/init process
from starting.

In this setup, I'm running a patched 2.6.2 kernel from flash memory.
The root filesystem is a JFFS2 partition in flash.  The
run_init_process() call appears to succeed because it doesn't return.

The sysrq-task list shows that there is an init task, but there seems
to be something wrong with the stack.

                         free                        sibling
  task             PC    stack   pid father child younger older
init          R current      0     1      0     2               (NOTLB)
[<c0021a88>] (show_state+0x44/0xac) from [<c0309e70>] (0xc0309e70)
Backtrace aborted due to bad frame pointer <c0308000>

I've traced through the elf binary loader and gotten to the point
where it does a start_thread().  The only odd thing I see is that that
the interpreter, elf_entry=0x400015f0, refers to an address that
doesn't appear to have any code there.  (I'm using gdb to debug the
kernel through a JTAG emulator.)

(gdb) x/20 elf_entry
0x400015f0:     0x00000000      0x00000000      0x00000000      0x00000000
0x40001600:     0x00000000      0x00000000      0x00000000      0x00000000
0x40001610:     0x00000000      0x00000000      0x00000000      0x00000000
0x40001620:     0x00000000      0x00000000      0x00000000      0x00000000
0x40001630:     0x00000000      0x00000000      0x00000000      0x00000000

My hardware debugger complains of a 'data abort' when I look at that
address which usually means that the CPU returned a page fault.

Should I expect that these pages be mapped already?  Can you offer any
suggestions as to where in the kernel to look for this kind of
failure?

Cheers.

             reply	other threads:[~2004-02-20  4:38 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-02-20  4:38 Marc Singer [this message]
2004-02-20  8:33 ` New 2.6 port: why would kernel not start /sbin/init? Russell King - ARM Linux

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20040220043819.GA9592@buici.com \
    --to=elf@buici.com \
    --cc=linux-arm@lists.arm.linux.org.uk \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox