Linux MIPS Architecture development
 help / color / mirror / Atom feed
From: Keith M Wesolowski <wesolows@foobazco.org>
To: joshua@babbage.millersv.edu
Cc: linux-mips@oss.sgi.com
Subject: Re: porting from headers
Date: Wed, 23 May 2001 08:19:05 -0700	[thread overview]
Message-ID: <20010523081905.A10516@foobazco.org> (raw)
In-Reply-To: <Pine.LNX.4.21.0105230943440.10519-100000@babbage.millersville.edu>; from joshua@babbage.millersv.edu on Wed, May 23, 2001 at 09:45:54AM -0400

On Wed, May 23, 2001 at 09:45:54AM -0400, joshua@babbage.millersv.edu wrote:

> The other day on irc.openprojects.net #mipslinux, someone said that the
> initial O2 port was done using the irix header files to glean enough
> hardware info to make the needed changes.  How would this process
> work?  Could someone post examples of how parts of the header files
> indicate how to get something else to boot on the hardware?

Start with common sense: 

1. It's ARCS, so prom_printf and the ARCS memory map work.  2. It's
got an already-supported MIPS CPU.

That's enough if you don't screw it up to get to the having no root
and must scream point.  Then, you look at the headers and see that it
has two 16550 serial ports, and you know their addresses.  Plug those
into the standard peecee serial driver and you have a serial console.
Likewise the RTC.  You look at crime.h and see the CRIME_TIME
mechanism, along with its frequency, and you guess that you can
calibrate your system timer from that.  Now your timers are right.

You want PCI, that's another matter; you can pull out the config space
pointers and read/write the config space rather easily from the
headers, and likewise it gives you the CPU physical addresses for
device BARs.  But nobody will tell you that most of these spaces need
to be swapped... :-)

Basically the headers give you the addresses of registers and
occasionally their formats.  If you're clever you can figure out how
to go from there.  I'm not so clever so it's been something like 8
months I've been fooling with this.

-- 
Keith M Wesolowski <wesolows@foobazco.org> http://foobazco.org/~wesolows
------(( Project Foobazco Coordinator and Network Administrator ))------
	"Nothing motivates a man more than to see his boss put
	 in an honest day's work." -- The fortune file

  reply	other threads:[~2001-05-23 15:20 UTC|newest]

Thread overview: 74+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-05-21 22:45 newest kernel George Gensure
2001-05-21 23:10 ` Pete Popov
2001-05-21 23:23   ` Jun Sun
2001-05-21 23:25     ` Pete Popov
2001-05-22 12:33     ` Florian Lohoff
2001-05-22 17:04       ` George Gensure
2001-05-22 17:04         ` George Gensure
2001-05-22 22:46       ` MIPS_ATOMIC_SET again (Re: " Jun Sun
2001-05-23  6:37         ` Joe deBlaquiere
2001-05-23 13:34           ` Maciej W. Rozycki
2001-05-23 17:48             ` Joe deBlaquiere
2001-05-23 18:20               ` Kevin D. Kissell
2001-05-23 18:20                 ` Kevin D. Kissell
2001-05-23 19:37                 ` Maciej W. Rozycki
2001-05-23 23:49                   ` Kevin D. Kissell
2001-05-23 23:49                     ` Kevin D. Kissell
2001-05-24  4:11                     ` Joe deBlaquiere
2001-05-24 10:56                       ` Maciej W. Rozycki
2001-05-24 10:44                     ` Maciej W. Rozycki
2001-05-24 15:15                       ` Kevin D. Kissell
2001-05-24 15:15                         ` Kevin D. Kissell
2001-05-24 16:21                         ` Maciej W. Rozycki
2001-05-24 22:46                           ` Joe deBlaquiere
2001-05-25 17:19                             ` Maciej W. Rozycki
2001-05-25 22:02                             ` Surprise! (Re: " Jun Sun
2001-05-25 23:56                               ` Jun Sun
2001-05-28 15:34                               ` Maciej W. Rozycki
2001-05-29 22:32                                 ` Jun Sun
2001-05-30  6:46                                   ` Kevin D. Kissell
2001-05-30  6:46                                     ` Kevin D. Kissell
2001-05-30 13:42                                   ` Maciej W. Rozycki
2001-05-30 17:39                                     ` Jun Sun
2001-05-31  8:37                                       ` Maciej W. Rozycki
2001-05-31 11:54                                 ` Ralf Baechle
2001-05-31 19:16                                   ` Jun Sun
2001-05-23 18:41               ` Jun Sun
2001-05-23 18:54                 ` Florian Lohoff
2001-05-23 18:55                   ` Florian Lohoff
2001-05-23 20:04                     ` Joe deBlaquiere
2001-05-24  9:32                       ` Maciej W. Rozycki
2001-05-26 13:14                         ` Florian Lohoff
2001-05-28 15:37                           ` Maciej W. Rozycki
2001-05-26 13:15                       ` Florian Lohoff
2001-05-28 15:43                         ` Maciej W. Rozycki
2001-05-28 16:25                           ` Kevin D. Kissell
2001-05-28 16:25                             ` Kevin D. Kissell
2001-05-28 17:10                             ` Maciej W. Rozycki
2001-05-29  6:57                               ` Geert Uytterhoeven
2001-05-29 10:45                                 ` Maciej W. Rozycki
2001-05-29 13:02                               ` Joe deBlaquiere
2001-05-29 15:45                                 ` Mike McDonald
2001-05-30  1:32                                   ` Mike McDonald
2001-05-30  7:09                                   ` Kevin D. Kissell
2001-05-30  7:09                                     ` Kevin D. Kissell
2001-05-30 14:48                                   ` J. Scott Kasten
2001-05-30 14:48                                     ` J. Scott Kasten
2001-05-29 22:37                               ` Jun Sun
2001-05-30 12:01                                 ` Maciej W. Rozycki
2001-05-30 17:54                                   ` Jun Sun
2001-05-31  7:39                                     ` Maciej W. Rozycki
2001-05-23 19:44                   ` Maciej W. Rozycki
2001-05-24  4:25                     ` Keith M Wesolowski
2001-05-23 21:06                   ` Jun Sun
2001-05-23 19:29               ` Maciej W. Rozycki
2001-05-23 17:10           ` Jun Sun
2001-05-23 13:18         ` Maciej W. Rozycki
2001-05-23 17:38           ` Jun Sun
2001-05-23 18:47             ` Maciej W. Rozycki
2001-05-23 20:58               ` Jun Sun
2001-05-23 13:45         ` wrt irc joshua
2001-05-23 15:19           ` Keith M Wesolowski [this message]
2001-05-23 15:55           ` nick
2001-05-23 15:57             ` Keith M Wesolowski
2001-05-23 16:03               ` nick

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=20010523081905.A10516@foobazco.org \
    --to=wesolows@foobazco.org \
    --cc=joshua@babbage.millersv.edu \
    --cc=linux-mips@oss.sgi.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