mail archive of the barebox mailing list
 help / color / mirror / Atom feed
From: Sascha Hauer <s.hauer@pengutronix.de>
To: Alexander Shiyan <shc_work@mail.ru>
Cc: barebox@lists.infradead.org
Subject: Re: NOR memory driver fail with MMU enabled
Date: Wed, 6 Feb 2013 13:11:34 +0100	[thread overview]
Message-ID: <20130206121134.GE1906@pengutronix.de> (raw)
In-Reply-To: <1360148498.214727698@f366.mail.ru>

On Wed, Feb 06, 2013 at 03:01:38PM +0400, Alexander Shiyan wrote:
> Hello.
> 
> I have a problem with NOR flash when enabling MMU.
> Probably this happen due NOR start address is 0x0.
> Should we a remap memory addresses same as we do it for kernel? 
> Or can someone tell what could be the problem?

This is because the zero page is set to faulting so that you can
catch NULL pointer exceptions. You could disable this (see
vectors_init), but then you can't catch NULL pointer exceptions
anymore. So the best you can do is use map_io_sections and map
your flash to some free region, maybe like this:

map_io_sections(0x0, (void *)SZ_1M, SZ_32M);

Then register your flash flash with address 1M instead of 0x0.

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:[~2013-02-06 12:11 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-02-06 11:01 Alexander Shiyan
2013-02-06 12:11 ` Sascha Hauer [this message]
2013-02-06 13:13   ` Re[2]: " Alexander Shiyan
2013-02-07  9:26   ` Alexander Shiyan
2013-02-07 10:02     ` Sascha Hauer

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=20130206121134.GE1906@pengutronix.de \
    --to=s.hauer@pengutronix.de \
    --cc=barebox@lists.infradead.org \
    --cc=shc_work@mail.ru \
    /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