linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
From: "Mark Chambers" <markc@mail.com>
To: "Vijay Padiyar" <vijay_padiyar@hotmail.com>,
	"LinuxPPC Support" <linuxppc-embedded@ozlabs.org>
Subject: Re: problem with accessing memory mapped area
Date: Fri, 11 Feb 2005 08:27:47 -0500	[thread overview]
Message-ID: <001101c5103d$7ed78470$0301a8c0@chuck2> (raw)
In-Reply-To: BAY1-DAV32181D4E594557F8931608B770@phx.gbl

> In addition, in the address range 0x30000000-0x300000FF, I have a CPLD
> mapped.
>
> Now, I wish to access the registers of this CPLD. For this, I create a
> module and insert it into the kernel. Now, in my 'init_module' function, I
> map the address range 0x30000000-0x300000FF to cpld_mem:
>
> But when I execute this program on the target, it crashes after displaying
> "Writing to CPLD". Sometimes it says 'Bus error' and some other times I
get
> a 'Kernel panic' message and the system reboots.
>

If you are getting 'bus error' it sounds like the memory controller is not
set
up [correctly] for this address.  Do you know if the bootloader is
configuring
the CPLD chip select correctly?

      reply	other threads:[~2005-02-11 13:48 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-02-11  4:37 problem with accessing memory mapped area Vijay Padiyar
2005-02-11 13:27 ` Mark Chambers [this message]

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='001101c5103d$7ed78470$0301a8c0@chuck2' \
    --to=markc@mail.com \
    --cc=linuxppc-embedded@ozlabs.org \
    --cc=vijay_padiyar@hotmail.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).