Subject: Re: cross build of -current
To: Rolf Grossmann <grossman@securitas.net>
From: Timm Wetzel <twetzel@gwdg.de>
List: port-next68k
Date: 12/07/1999 03:42:45
On Thu, 2 Dec 1999, Rolf Grossmann wrote:

> on Tue, 30 Nov 1999 15:16:14 +0100 (MET) Timm Wetzel wrote 
> concerning "cross build of -current" something like this:
[...]
> There should not be a -Werror setting in the Makefiles for next68k.
> I certainly remember seeing some unused variables and there may be

It seems one can disable -Werror with `NOGCCERROR=YES'.

[...]
> > BTW, I wouldn't have expected the kernel to work since I have turbo
> > hardware, but I couldn't even test: Neither my freshly compiled boot nor
> > an older one (Rev1.5) could load the kernel from sd or en.
> 
> Hmm, do you get any error messages?

The following is with a 1.2 boot (from 1.4/1.4.1), the output from
-current is similar. (Perhaps the working boot was from a snapshot?)
I suspect some libsa/libkern details might have changed if boot was
reasonably stable.

I'd lay the blame on my egcs-1.1.1 cross-compiler, but the following is
from a ftp release:
(The kernel specified is probably non-existant, but that doesn't seem to
matter.)

NeXT>bfd
boot fd(0,0,0)
>> NetBSD BOOT [$Revision: 1.2 $ #1]
fd: no such device - Configured devices are:
 sd en
load of fd()/me/boot/netbsd: Device not configured
boot: sd()/me/boot/netbsd
open: sd(0,0,0)
trying target 0 lun 0.
scsiicmd: [0, 6] -> 0 (0, 0)
  *intrstat = 0x0	*intrmask = 0x0
  *intrstat = 0x0	*intrmask = 0x0
scsiicmd: regs[intr=20, stat=80, step=c0]
trying target 1 lun 0.
scsiicmd: [0, 6] -> 1 (0, 0)
  *intrstat = 0x0	*intrmask = 0x0
scsiicmd: regs[intr=18, stat=83, step=84]
status phase: status is 0x2.
  *intrstat = 0x1000	*intrmask = 0x0
scsiicmd: regs[intr=8, stat=87, step=c4]
  *intrstat = 0x1000	*intrmask = 0x0
scsiicmd: regs[intr=20, stat=80, step=c4]
scsiicmd: [0, 6] -> 1 (0, 0)
  *intrstat = 0x0	*intrmask = 0x0
scsiicmd: regs[intr=18, stat=83, step=c4]
status phase: status is 0x0.
  *intrstat = 0x1000	*intrmask = 0x0
scsiicmd: regs[intr=8, stat=87, step=c4]
  *intrstat = 0x1000	*intrmask = 0x0
scsiicmd: regs[intr=20, stat=80, step=c4]
scsiicmd: [12, 6] -> 1 (5ffefa2, 44)
  *intrstat = 0x0	*intrmask = 0x0
scsiicmd: regs[intr=18, stat=81, step=c4]
dma_start: 5ffefa2, 44 byte.
dma_buffer: start: 0x438a990 end: 0x438a9c0
  *intrstat = 0x4000000	*intrmask = 0x0
scsiicmd: dma intr
Got unexpected trap: format=7 vector=8 sr=2600 pc=4381c36
dregs: 3 0 81 9000000 d000018 2c 5ffefa2 7
aregs: 2114000 5fffb72 4385a5c 4385a5c 0 0 5ffefa2 5ffeed6
Halting.

Regards,
Timm