Subject: Re: my diffs for Magnum
To: Toru Nishimura <nisimura@itc.aist-nara.ac.jp>
From: Mark Abene <phiber@radicalmedia.com>
List: port-arc
Date: 02/07/2001 16:51:50
On Wed, Feb 07, 2001 at 02:27:01PM +0900, Toru Nishimura wrote:
> > a new kernel config file called "MAGNUM",
> > which is what I'm building with.
> >
> > Any questions or comments, feel free.
> 
> You can expect totally revamped NetBSD/mips code in near future, and
> it would definitely contribute to integrate your efforts.
> 
> Tohru Nishimura

Cool!  So I got the tsleep thing worked out.  It turned out I was missing
clock interrupts because I was using the following formula:

temp := read compare register;
temp += 225000;
write compare register(temp);

When I SHOULD'VE been doing:

temp := read count register;
temp +=225000;
write compare register(temp);

Subtle difference, drastic results.  :)
So it's all fixed now.  The scsi settle delay really is 2 seconds now, and
the nfs timeouts really are within 5 seconds, instead of many minutes.
But now I'm having a weird problem with nfs root...  rarp and bootparam are
working perfectly, and I see the mountd request from the magnum, but it
never seems to connect to the nfsd and mount root!  I'm sharing the root
from a freebsd machine to everyone, -maproot=root.  I've verified from another
machine that I can mount the filesystem just fine.  In this filesystem, I've
unpacked base, etc, and comp from 1.5.  And I've run MAKEDEV all in /dev.
Nothing else.  Here's what I see:

root device (default fd0a): sn0
dump device: 
file system (default nfs): 
root on sn0
nfs_boot: trying RARP (and RPC/bootparam)
sonic: no heartbeat
nfs_boot: client_addr=192.168.1.4 (RARP from 192.168.1.9)
nfs_boot: server_addr=192.168.1.9
nfs_boot: hostname=marduk
nfs_boot: gateway=192.168.1.9
root on ziggurat:/home/marduk

And it just sits here forever.  I left it there overnight, it was still there
today.  It's not frozen, I can break to DDB at any time just fine, and cont
just fine.  It just never seems to get moving!  A "showmount" on ziggurat
shows that marduk (the magnum) is in fact mounting root, but I see no traffic
to nfsd/2049...  Very strange.  Any clues?

-Mark