Subject: Re: NetBSD 2.0G doesn't boot on Axi 311 (sparc 10 clone)
To: Gert Doering <gert@greenie.muc.de>
From: Manuel Bouyer <bouyer@antioche.eu.org>
List: port-sparc
Date: 07/28/2004 22:04:02
On Wed, Jul 28, 2004 at 07:40:31PM +0200, Gert Doering wrote:
> Hi,
> 
> I'm a quite happy Sparc64 user (Ultra5), and recently I had the chance
> to get a "real SMP machine" - an Axil 311 with two SM41 modules.  (Yes,
> I know that this is slow as hell, but it's SMP!!! - and I'm a big fan of
> these oldish machines).
> 
> Installing 1.6.3 on the Axil 311 went flawlessly, but of course that's
> uniprocessor only.
> 
> Then I tried cross-compiling a 2.0G release on the Sparc64 (because it's
> 5 times as fast), and booting the resulting GENERIC.MP and GENERIC
> kernels.  Didn't work.  "OK, so the cross-build is weird".
> 
> Now I built a kernel on the 1.6.3 sparc system locally, using the
> netbsd-2-0 tagged sources as of 2004-07-27.  Building took 8 hours :-) but
> eventually finished with:
> 
> ===> Summary of results:
>          build.sh command: ./build.sh -M /home/obj -T /home/obj.tools -u tools kernel=GENERIC.MP
>          build.sh started: Wed Jul 28 09:19:07 CEST 2004
>          No /home/obj.tools/bin/nbmake, needs building.
>          Bootstrapping nbmake
>          MACHINE:          sparc
>          MACHINE_ARCH:     sparc
>          TOOLDIR path:     /home/obj.tools
>          DESTDIR path:     /home/obj/usr/src/destdir.sparc
>          RELEASEDIR path:  /home/obj/usr/src/releasedir
>          Created /home/obj.tools/bin/nbmake
>          makewrapper:      /home/obj.tools/bin/nbmake-sparc
>          Updated /home/obj.tools/bin/nbmake-sparc
>          Tools built to /home/obj.tools
>          Building kernel:  GENERIC.MP
>          Build directory: /home/obj/usr/src/sys/arch/sparc/compile/GENERIC.MP
>          Kernels built from GENERIC.MP:
>           /home/obj/usr/src/sys/arch/sparc/compile/GENERIC.MP/netbsd
>          build.sh started: Wed Jul 28 09:19:07 CEST 2004
>          build.sh ended:   Wed Jul 28 17:04:39 CEST 2004
> 
> 
> copied that kernel to /netbsd, and tried booting into it...:
> 
> ------------------------------------------------
> <#0> ok boot disk1 netbsd
> Šesetting ... 
> AXIL-311MP (2 X 390Z55), No Keyboard
> ROM Rev. 2.10, 32 MB memory installed, Serial #8788084.
> Ethernet address 0:0:3b:80:1b:78, Host ID: 72861874.

I have one:
Axil-311 MP (2 X 390Z55), No Keyboard
ROM Rev. 2.19 , 96 MB memory installed, Serial #9901724.
Ethernet address 0:0:3b:80:39:b0, Host ID: 7297169c.

> 
> 
> Rebooting with command: disk1 netbsd                                  
> Boot device: /iommu/sbus/espdma@f,400000/esp@f,800000/sd@1,0   File and
> args: netbsd
> >> NetBSD/sparc Secondary Boot, Revision 1.12
> >> (autobuild@tgm.netbsd.org, Wed Feb 11 07:53:48 UTC 2004)
> Booting netbsd
> 3100660+100324+329476 [190528Illegal Instruction
> Type  help  for more information
> <#0> ok 

This can be an issue with the boot loader. Try to install the boot loader
from a 2.0_BETA snapshot.
You can get one from ftp://releng.netbsd.org/pub/NetBSD-Daily/
(or ftp://ftp.fr.netbsd.org/pub/NetBSD-Daily/ which should be closed from
you :).
Or you can try to build a trimmed-down kernel, I guess the bootloader
you have installed can't load such a large kernel.

-- 
Manuel Bouyer <bouyer@antioche.eu.org>
     NetBSD: 26 ans d'experience feront toujours la difference
--