linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
From: "Sangmoon Kim" <dogoil@etinsys.com>
To: "Richard Danter" <richard.danter@windriver.com>,
	<linuxppc-embedded@lists.linuxppc.org>
Subject: Re: 750/107 CHRP question
Date: Fri, 1 Aug 2003 13:34:24 +0900	[thread overview]
Message-ID: <001501c357e6$2f641a90$212d4cdc@smkim> (raw)
In-Reply-To: 3F2949D3.8020106@windriver.com


Hi,

Some serial port driver doesn't ioremap and directly use the physical address for accessing device.
This doesn't causes any problem when the base address is above 0x80000000.

There are two solutions for this
Solution 1. Change the serial port base address above 0x80000000, such as 0xff000000.

Solution 2. Ioremap to get the base address of the serial port and use the address.
ie. base = ioremap(0x7c000000,0x1000);

I think the solution 2 is more appropriate because changing hardware requires a lot of money.

Regards,
Sangmoon Kim

----- Original Message -----
From: "Richard Danter" <richard.danter@windriver.com>
To: <linuxppc-embedded@lists.linuxppc.org>
Sent: Friday, August 01, 2003 1:54 AM
Subject: 750/107 CHRP question


>
> Hi All,
>
> Sorry if this is a bit of a newbie question....
>
> I am trying to port a 2.4.x kernel to a PPC750 board with a 107
> controller. The board has a serial port connected to one of the ROM
> select lines (at 0x7C000000) and I would like to use this as my console
> port.
>
> So far I can boot the board and see (via the serial port) the kernel
> load addresses etc, and the kernel gets decompressed and starts to run.
> This is all fine as the MMU is off at this point. However, when the
> serial_console_setup() code starts trying to configure the serial port
> again, I get a kernel panic as I am accessing an invalid mem space (MMU
> now on!).
>
> How do I map this correctly???
>
> My build is based on the sandpoint but with all the init stuff for
> devices, such as the RTC, removed. So I have the "standard" mapping in
> the MMU_init code.
>
> Many thanks
> Rich
>
>
>
>

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

  parent reply	other threads:[~2003-08-01  4:34 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-07-31 16:54 750/107 CHRP question Richard Danter
2003-07-31 21:07 ` Matt Porter
2003-07-31 21:41   ` Richard Danter
2003-07-31 22:48     ` Matt Porter
2003-07-31 23:32     ` Wolfgang Denk
2003-08-01  8:16       ` Richard Danter
2003-08-01  4:34 ` Sangmoon Kim [this message]
     [not found] <20030801082845.A38F6C602D@atlas.denx.de>
2003-08-01  9:02 ` Richard Danter
2003-08-01 12:17   ` Wolfgang Denk
2003-08-01 12:24     ` Richard Danter

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='001501c357e6$2f641a90$212d4cdc@smkim' \
    --to=dogoil@etinsys.com \
    --cc=linuxppc-embedded@lists.linuxppc.org \
    --cc=richard.danter@windriver.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).