mail archive of the barebox mailing list
 help / color / mirror / Atom feed
From: Sascha Hauer <s.hauer@pengutronix.de>
To: Rolf Evers-Fischer <embedded24@evers-fischer.de>
Cc: barebox@lists.infradead.org
Subject: Re: New driver crashes with "unable to handle paging request"
Date: Thu, 24 Apr 2014 08:58:48 +0200	[thread overview]
Message-ID: <20140424065848.GV5858@pengutronix.de> (raw)
In-Reply-To: <1566538733.276756.1398269380974.open-xchange@email.1und1.de>

Hi Rolf,

On Wed, Apr 23, 2014 at 06:09:40PM +0200, Rolf Evers-Fischer wrote:
> I'm just trying to port the USB driver "musb" (for the AM335x platform) from
> linux kernel to barebox.
> But whenever I want to read any address in the range 0x47401400-0x474017ff, the
> barebox crashes with "unable to handle paging request".
> I have already tried to invoke a "map_io_sections(0x0, 0x47400000, 0x2000)", but
> it didn't help.

barebox creates a flat 1:1 mapping when the MMU is enabled. You won't
need any calls to map_io_sections or some ioremap correspondent
function.

It may be that you have to enable some bus clocks in order to access the
musb.

To make sure you don't have MMU trouble could you post the output of
'mmuinfo 0x47400000'?

Sascha

-- 
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

  reply	other threads:[~2014-04-24  6:59 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-04-23 16:09 Rolf Evers-Fischer
2014-04-24  6:58 ` Sascha Hauer [this message]
2014-04-24  8:52   ` Rolf Evers-Fischer
2014-04-30 14:08     ` Rolf Evers-Fischer
2014-05-01 22:50       ` Christoph Fritz
2014-05-05 12:13         ` Rolf Evers-Fischer
2014-05-12 12:57           ` Rolf Evers-Fischer
2014-05-13 11:03             ` Alexander Aring
2014-05-13 12:49               ` Christoph Fritz
2014-05-15 11:37                 ` Rolf Evers-Fischer

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=20140424065848.GV5858@pengutronix.de \
    --to=s.hauer@pengutronix.de \
    --cc=barebox@lists.infradead.org \
    --cc=embedded24@evers-fischer.de \
    /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