Linux MIPS Architecture development
 help / color / mirror / Atom feed
* questions about early-printk
@ 2005-04-04  4:49 dfsd df
  2005-04-04 11:01 ` Ralf Baechle
  0 siblings, 1 reply; 4+ messages in thread
From: dfsd df @ 2005-04-04  4:49 UTC (permalink / raw)
  To: linux-mips

Hi:
  Had somebody used early-printk? Now, I'm porting
linux to a MIPS machine under instructions of "Linux
MIPS Porting Guide" from junsun.net.

But at the first step, I want to modify the source
code of the barebone program to display "helloworld".

The program uses memory map addr as the UART device's
"base addr",and access the UART by adding offset to
this "base addr".

The "base addr" is assigned to a constant value. and
from the other early-printk patchs, the value of "base
addr" are not equals. So I want to know can I assign
the right value to this "base addr"?

Thanks!

_________________________________________________________
Do You Yahoo!?
150万曲MP3疯狂搜,带您闯入音乐殿堂
http://music.yisou.com/
美女明星应有尽有,搜遍美图、艳图和酷图
http://image.yisou.com
1G就是1000兆,雅虎电邮自助扩容!
http://cn.rd.yahoo.com/mail_cn/tag/1g/*http://cn.mail.yahoo.com/event/mail_1g/

^ permalink raw reply	[flat|nested] 4+ messages in thread
* Re: questions about early-printk
@ 2005-04-04 13:49 dfsd df
  2005-04-04 13:49 ` dfsd df
  0 siblings, 1 reply; 4+ messages in thread
From: dfsd df @ 2005-04-04 13:49 UTC (permalink / raw)
  To: linux-mips

Sorry, It's still Malta board, MIPS4Kc cpu. the UART
is ti16c550c.

The source code at junsun.net is :
------------------------------------------------------
#include "uart16550.h" 

/* === CONFIG === */ 

#define BASE 0xb0000080
------------------------------------------------------

From the MALTA board manual, I can get "BASE"'s
physical addr is 0x1f000900.
What I want to know is how to get "BASE"'s memory
mapped virtual addr correctly?for this example: the
virtual addr is 0xb0000080.

Thanks!

--- Ralf Baechle <ralf@linux-mips.org> wrote:
> On Mon, Apr 04, 2005 at 12:49:53PM +0800, dfsd df
> wrote:
> 
> > Hi:
> >   Had somebody used early-printk? Now, I'm porting
> > linux to a MIPS machine under instructions of
> "Linux
> > MIPS Porting Guide" from junsun.net.
> 
> There's an updated version in the www.linux-mips.org
> wiki.
> 
> > But at the first step, I want to modify the source
> > code of the barebone program to display
> "helloworld".
> > 
> > The program uses memory map addr as the UART
> device's
> > "base addr",and access the UART by adding offset
> to
> > this "base addr".
> > 
> > The "base addr" is assigned to a constant value.
> and
> > from the other early-printk patchs, the value of
> "base
> > addr" are not equals. So I want to know can I
> assign
> > the right value to this "base addr"?
> 
> You haven't even mentioned what hardware you're
> using so don't expect
> answer ...
> 
>   Ralf
> 
> 

_________________________________________________________
Do You Yahoo!?
150万曲MP3疯狂搜,带您闯入音乐殿堂
http://music.yisou.com/
美女明星应有尽有,搜遍美图、艳图和酷图
http://image.yisou.com
1G就是1000兆,雅虎电邮自助扩容!
http://cn.rd.yahoo.com/mail_cn/tag/1g/*http://cn.mail.yahoo.com/event/mail_1g/

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2005-04-04 13:49 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-04-04  4:49 questions about early-printk dfsd df
2005-04-04 11:01 ` Ralf Baechle
  -- strict thread matches above, loose matches on Subject: below --
2005-04-04 13:49 dfsd df
2005-04-04 13:49 ` dfsd df

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox