9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: peter@plan9.com peter@plan9.com
Subject: Exception #4 with net booting a NeXT Cube
Date: Sun,  1 Oct 1995 02:30:12 -0400	[thread overview]
Message-ID: <19951001063012.8Hz6DRP4KuWkRw3okAddYyLqKYCZjcMgGpwBkzLjv4Q@z> (raw)

> I was trying to boot my NeXT Cube (ROM 2.4) into a Plan 9 terminal
> with u9fs running on a PC running NeXTSTEP. While loading
> 9nextstation, I got Exception #4. What does this mean and how can I
> fix it?

The problem is the 2l program that produced the 9nextstation kernel  
does not setup for the entry point properly.  This problem will not  
show itself if you use an early verson of the NeXT boot program.

A quick fix if you don't have an early version boot program is to  
start the kernel manually with the following commands to the ROM  
monitor, after the exception occurs:

> r pc
? 4000000
> c

This changes the program counter to the correct entry point 4000000  
and then execution is begun at that point.

Geoff Collyer of Bell Labs gave me considerable help while I was  
tracking this problem down.  Be sure you have his bug fix installed  
ih the kernel.  If you don't it won't get very far.  I repeat it  
here.  These diffs are relative to the cd rom.

diff ./io.h /sys/src/9/next/io.h
19a20
> #define VIDEOOUTLIMIT	IO(0x02004184)
diff ./main.c /sys/src/9/next/main.c
66a67,76
>
> 	/*
> 	 * the boot rom is supposed to set all the video out  
registers sensibly,
> 	 * and indeed the v2.2 boot rom does so.  The v2.1 boot rom  
does not,
> 	 * and the video limit register contains a very large  
garbage number;
> 	 * thus we need to set the limit register here in order to  
get `clock'
> 	 * interrupts near each frame end to run the scheduler.   
The value 0xea
> 	 * is what the v2.2 boot rom sets the limit register to.
> 	 */
> 	*(ulong*)VIDEOOUTLIMIT = 0xea;

Regards,

Peter G. Weiner







             reply	other threads:[~1995-10-01  6:30 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1995-10-01  6:30 peter [this message]
  -- strict thread matches above, loose matches on Subject: below --
1995-10-01  5:26 Ta-Wei

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=19951001063012.8Hz6DRP4KuWkRw3okAddYyLqKYCZjcMgGpwBkzLjv4Q@z \
    --to=peter@plan9.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).