Subject: Re: Instruction Access Exception on SS20
To: NetBSD port-sparc mailing list <port-sparc@netbsd.org>
From: Julian Coleman <jdc@coris.demon.co.uk>
List: port-sparc
Date: 09/25/2002 07:41:46
> What's the size of the various kernels? I've recently hit a problem
> where the kernel size of GENERIC is fine, but adding IPSEC makes it
> unbootable and I have to remove other things.

Having been trying to build a cut-down kernel for a 4/600 (but including
adding IPSEC), I kept getting illegal instruction in the secondary boot.
Grant pointed out that this was because the size of the kernel made it
overrun the secondary boot.

In /usr/src/sys/arch/sparc/stand/Makefile.buildboot, there is a commented
line :

  #RELOCS+=	200000 400000 700000		# additional link addresses

I uncommented this and used boot.400000 for the secondary boot (/boot).
Now it boots perfectly :

  Booting netbsd
  3187552+105436+223304 [197392+153383]=0x3c0380

(note that 0x3c0380 is larger than the default address of 0x388000).

It's probably a good idea to have a way of recovering if you try a different
address.  I remember (check the list archives) that there were problems with
some of the addesses on some machines.  I tested first on a second disk to
make sure that it worked.

J

-- 
                    My other computer also runs NetBSD
                          http://www.netbsd.org/