linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
From: "Greg Griffes" <ggg@ieee.org>
To: "Matt Porter" <mporter@mvista.com>
Cc: <linuxppc-embedded@lists.linuxppc.org>
Subject: Re: 7400 mmu_init problem
Date: Sat, 6 Apr 2002 19:47:11 -0500	[thread overview]
Message-ID: <000d01c1ddcd$c71a2c60$6401a8c0@attbi.com> (raw)
In-Reply-To: 20020405102854.A15453@home.com


Matt,

Thanks a ton for the advice.  Looking at log_buf did the trick.
The Oops logs helped me to track down each access violation
and troubleshoot the rest of my bugs.  I'm getting text from
printk now!  I am sooo excited :-))

The BDI2000 wouldn't work with my hardware for some reason.
It complained that it could not break on the boot vector.
Tried it with both hard and soft breaks.  Booting from flash, so,
maybe that has something to do with it.

Question.  How do you recommend mapping in hardware that is
common to mach_dep code and drivers?
Specifically, the ASIC is mapped using ioremap in setup_arch so
that functions like get_irq will work.  The ASIC also has the serial
ports.  So, for the tty driver, it seems wasteful to map the ASIC
again in the driver init code.  What I did, was to put serial_in
and serial_out into myboard_setup.c where the pre-initialized
virtual address is stored.  Is there a better approach?

Greg

To answer your questions...

> 7400 (subject line) or 750? :)

The board actually supports either as you hinted.  Right now, I have a 750
version.

> and most likely got to start_kernel:setup_arch.  I can only guess
> that you access an unmapped area in your <board>_setup_arch.

BINGO!  I had some ppc_md.progress calls after mmu_init() and before the ioremap
calls.


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

  reply	other threads:[~2002-04-07  0:47 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-04-05 10:45 7400 mmu_init problem Greg Griffes
2002-04-05 17:28 ` Matt Porter
2002-04-07  0:47   ` Greg Griffes [this message]
2002-04-07  4:53     ` Matt Porter
2002-04-07  8:08       ` Wolfgang Denk

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='000d01c1ddcd$c71a2c60$6401a8c0@attbi.com' \
    --to=ggg@ieee.org \
    --cc=linuxppc-embedded@lists.linuxppc.org \
    --cc=mporter@mvista.com \
    /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;
as well as URLs for NNTP newsgroup(s).