Subject: Re: /usr/mdec/boot and bim.8
To: Jon Buller <jon@bullers.net>
From: Simon Burge <simonb@wasabisystems.com>
List: port-pc532
Date: 09/14/2001 08:12:56
Jon Buller wrote:

> Simon Burge <simonb@wasabisystems.com> wrote:
> 
> > Jon Buller wrote:
> > 
> > > I then did typed the rom
> > > download command, but with no 0x on the 260000.  Could that be your
> > > problem?
> > 
> > Haha!  Is was the 0x that caused the problems.  The 1.5 install notes
> > mention
> > 
> > 	3.   load the floppy-144.fs at 0x260000
> > 	4.   run at 0x3BE020
> 
> Good!
> 
> > Maybe change the release notes to reflect this?
> 
> Perhaps we should, but if you have a different monitor, the forth one
> perhaps, the rules for typing that command might be markedly different.
> That probably is not a big problem with this group though. 8^)
> 
> Perhaps we should just add something like: You can do this with the standard
> ROM monitor by typing "download 260000" and "run 3be020".

This sounds good.  I'm sure our volumes of users will appreciate it. :)

> > I'm now up to setting up pppd, but it's been a while and I don't seem
> > to be able to get the Magick(tm) right.  Can I grab a copy of your ppp
> > config files please?

Well, I typed something I can't remember into my annex, and ppp
magically worked.

I put the '532's options in /etc/ppp/peers/thistledown (my local network
name) and have ppp_peers='thistledown' in /etc/rc.conf.  Works like a
charm, only a tad slow compared with ethernet.  Does anyone know of a
source for those Cabletron SCSI-ethernet boxes?

Now, the next two problems...

1)  The ROM monitor can't find the bim info.  The monitor just says
    something like "disk not set up" or similar.  If I manually load the
    kernel (good think I wrote the location down!), and run bim again,
    it can find the previously entered info.  Note that I have a 500MB
    disk (not big enough for a source tree) and my boot partition is at
    the end of the disk.

2)  I tried to build a -current kernel, and all but one file compiled
    ok with -O2:

	pc532:pc532/compile/GENERIC 144> cc  -O2 -msb -Werror -Wall -Wstrict-prototypes -Wmissing-prototypes  -Wpointer-arith -Wno-format -Wno-uninitialized -Wno-main -I. -I/sys/arch -I/sys -nostdinc -DLKM -DCPU30MHZ -DMAXUSERS=8 -D_KERNEL -D_KERNEL_OPT  -c /sys/netinet6/ip6_mroute.c
	/sys/netinet6/ip6_mroute.c: In function `phyint_send':
	/sys/netinet6/ip6_mroute.c:1512: internal error--insn does not satisfy its constraints:
	(insn 371 249 374 (set (reg:SI 7 r7)
		(plus:SI (const:SI (plus:SI (symbol_ref:SI ("ro.87"))
			    (const_int 4)))
		    (const_int 8))) 67 {addsi3} (nil)
	    (nil))
	/sd1f/netbsd-1.4/src/gnu/usr.bin/egcs/common/../../../dist/gcc/toplev.c:1360: Internal compiler error in function fatal_insn

    Dropping back to -O1 allows this file to compile.  When it comes to
    linking, I get a lot of:

	ld -z -Ttext E0002000 -e start -S -o netbsd ${SYSTEM_OBJ} vers.o
	ld: Double word displacement -535668632, out of range
	ld: Double word displacement -535668628, out of range
	ld: Double word displacement -535668640, out of range
	ld: Double word displacement -535668644, out of range
	ld: Double word displacement -535714296, out of range
	ld: Double word displacement -535714296, out of range
	ld: Double word displacement -535714296, out of range
	...

    but the kernel still links and runs.  Total build time for GENERIC
    -current is around 3 hours, 10 minutes.


One of the things I want to do is convert the pc532 to ELF.  As far as
I can see, there never has been a ns32k ELF spec.  If anyone has thought
of this in the past, feel free to forward on any thoughts or ideas you
had. :-)

Simon.
--
Simon Burge                            <simonb@wasabisystems.com>
NetBSD CDs, Support and Service:    http://www.wasabisystems.com/