All of lore.kernel.org
 help / color / mirror / Atom feed
From: Drasko DRASKOVIC <drasko.draskovic@gmail.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] Enabling ARM DCache (and MMU setup) in U-Boot
Date: Mon, 6 Apr 2009 19:42:33 +0200	[thread overview]
Message-ID: <5ec3d7930904061042g7996ec96nc7c839791668d803@mail.gmail.com> (raw)
In-Reply-To: <20090331140917.GB24923@game.jcrosoft.org>

On Tue, Mar 31, 2009 at 4:09 PM, Jean-Christophe PLAGNIOL-VILLARD wrote:
> if you want to use the dcache you must first correctly setup the MMU and
the TLB

I set-up :
1) pagetable in the SDRAM (one master pagetable, to map all 4096 pages of
address space to map from the virtual to the same addresses in physical
address)
2) I use client domain 3
3) set up all permissions to RW
4) attached pagetable (put info about master table address into CP15 reg)

When I try to switch MMU on after all of this (in CP15 reg), u-boot blocks.

I created one command to do all this init, and in the end write into CP15
reg to switch on MMU. Is this approach OK? but for some reason, u-boot
blocks there, right after switching MMU on.

I am sure that MMU works, because I can boot Linux on the same board, and
Linux works.

With JTAG I can see that pagetable is written on SDRAM on given address, so
I suspect on permissions, but from each pagetable entry I have that domain
and access permissions as I said (domain 3 client, RW).

Do you have any idea what can be wrong and where to look?

Best regards,
Drasko

  parent reply	other threads:[~2009-04-06 17:42 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-03-30 19:56 [U-Boot] Enabling ARM DCache (and MMU setup) in U-Boot Drasko DRASKOVIC
2009-03-30 20:31 ` Jean-Christophe PLAGNIOL-VILLARD
2009-03-31 12:20   ` Drasko DRASKOVIC
2009-03-31 12:21     ` Jean-Christophe PLAGNIOL-VILLARD
2009-03-31 13:36       ` Drasko DRASKOVIC
2009-03-31 14:09         ` Jean-Christophe PLAGNIOL-VILLARD
2009-03-31 15:13           ` Drasko DRASKOVIC
2009-04-06 17:42           ` Drasko DRASKOVIC [this message]
2009-03-31 14:09         ` Drasko DRASKOVIC
2010-01-26 11:25 A. Geisreiter
2010-07-01 15:35 Rasha Eqbal
2010-07-01 15:57 ` Alessandro Rubini
     [not found]   ` <AANLkTilN2FXWrLGTAiTAeuWDIlevjISEsvE9dsihe-xq@mail.gmail.com>
     [not found]     ` <20100701175458.GA14755@morgana.i.gnudd.com>
2010-07-02  5:36       ` Rasha Eqbal
2010-07-05  5:31 ` Lv Terry-R65388

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=5ec3d7930904061042g7996ec96nc7c839791668d803@mail.gmail.com \
    --to=drasko.draskovic@gmail.com \
    --cc=u-boot@lists.denx.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.