From: Robert Schwebel <robert@schwebel.de>
To: linuxppc-dev@lists.linuxppc.org, linux-kernel@vger.kernel.org
Subject: Re: init does not run on 405GP system
Date: Thu, 12 Jun 2003 21:13:44 +0200 [thread overview]
Message-ID: <20030612191344.GR9379@pengutronix.de> (raw)
In-Reply-To: <20030610141047.GU9379@pengutronix.de>
On Tue, Jun 10, 2003 at 04:10:47PM +0200, Robert Schwebel wrote:
> 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.
We have some new information about what happens on that machine, and the
more I know the stranger it is :-(
When you look at fs/exec.c:setup_arg_pages() there is a call to
put_dirty_pages(). After that call the argv and env data should be found
on the stack, at 0x7fffffda, which can also be looked at when you
generate a kernel mapping with kmap(page) plus an offset of 0xfba. These
both addresses should point to the same piece of physical RAM. I have
printed out the content of the TLBs and they look correct:
...
TLB 7, v = 1, sz = 1, flags = 0x0110, EPN 0x7ffff000, RPN 0x0014a000
...
TLB 63, v = 1, sz = 7, flags = 0x0300, EPN 0xc1000000, RPN 0x01000000
...
Nevertheless, when I set a breakpoint to the location after the
put_dirty_pages() call I see different memory. The kernel mapping
contains correct content:
"init",0,"HOME=/",0,"TERM=linux",0,"/sbin/init"
But the user mapping (0x7fffffda) shows crap. It is a writable piece of
memory, I can place something in it by writing after the
put_dirty_pages(). When I write a "unique" pattern to that place, stop
the processor with the BDI and read out a complete memory dump I don't
find the pattern any more - this looks like a caching problem, but I'm
not entirely sure. I've tried an invalidate_dcache_range() to the user
space mapping addresses without success.
-+-+-
What could happen here? Is the cache handling code bullet proof? I'm
running out of ideas.
Kernel is still 2.4.21-rc2-ppc20030515 plus port to the board in
question.
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
next parent reply other threads:[~2003-06-12 19:00 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20030610141047.GU9379@pengutronix.de>
2003-06-12 19:13 ` Robert Schwebel [this message]
2003-06-11 14:12 Jocelyn Mayer
-- 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
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=20030612191344.GR9379@pengutronix.de \
--to=robert@schwebel.de \
--cc=linux-kernel@vger.kernel.org \
--cc=linuxppc-dev@lists.linuxppc.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
all inboxes | Powered by JetHome®