linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
From: Daris A Nevil <dnevil@snmc.com>
To: Alan Wang <wung_y@sina.com>
Cc: Linuxppc-EmbeddedMaillist <linuxppc-embedded@lists.linuxppc.org>
Subject: Re: problem when read internal memory
Date: Wed, 11 Apr 2001 12:06:54 -0500	[thread overview]
Message-ID: <3AD48F2E.2C713B89@snmc.com> (raw)
In-Reply-To: EBEGJCKFJMJLDPEKGAKJOEBGCAAA.wung_y@sina.com


Alan,

It sounds as though you have already changed the value of IMAP_ADDR in
the header file for your specific board (found in linux/include/asm).
You must also make sure that your processor's boot code sets the IMMR
register to this same value before booting the Linux kernel.  Your boot
code should also setup an MMU entry for the IMMR's address by writing to
the MD_EPN register (MMU Data Effective Page Number Reg) of the PPC.
For an example of how this is done you can refer to the boot code for
the QS850 (MPC850-based board).  The source is located at
ftp://qslinux.org.  Once you uncompress the tarball you can go to
snmc/qslinux/qs850boot and view the file init_qs850.s.  Hope this helps.

Regards,
Daris Nevil
SNMC


Alan Wang wrote:
>
> Hi, all
>   we're porting linux-2.2.13 to our customized board(MPC823e). I modified some head file according
> the specification of our board such as memory map. the IMMR is set to 0xff000000. now, the kernel
> can be loaded by bootloader(written by ourselves). but inm8xx_cpm_reset() which is called in
> setup_arch:
> void m8xx_cpm_reset(uint host_page_addr)
> {
>         volatile immap_t         *imp;
>         volatile cpm8xx_t       *commproc;
>         pte_t                   *pte;
>
>         imp = (immap_t *)IMAP_ADDR;
>         commproc = (cpm8xx_t *)&imp->im_cpm;
>  this line generates a machine check exception when write/read to internal memory.
>
> why? any suggestion and comment are welcome. thank you.
>
> A.W.
>

--
Daris A Nevil
Simple Network Magic Corporation
401 Kentucky Lane
McKinney, TX 75069
214-793-7757
dnevil@snmc.com
www.snmc.com
quickstack.com
qslinux.org

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

  reply	other threads:[~2001-04-11 17:06 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-04-11 16:41 problem when read internal memory Alan Wang
2001-04-11 17:06 ` Daris A Nevil [this message]
2001-04-11 19:15   ` Wolfgang Denk
  -- strict thread matches above, loose matches on Subject: below --
2001-04-12  1:39 Alan Wang

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=3AD48F2E.2C713B89@snmc.com \
    --to=dnevil@snmc.com \
    --cc=linuxppc-embedded@lists.linuxppc.org \
    --cc=wung_y@sina.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).