Subject: Re: Problems booting a sun4m (Part2)
To: None <port-sparc@NetBSD.ORG>
From: Peter Boeckmann <pgpeter@informatik.uni-siegen.de>
List: port-sparc
Date: 01/28/1997 18:45:45
> > Hello,
> > i hope this isnt a FAQ and you dont get this message twice:
> >
> > I installed NetBSD1.2 on an Seagate2.7-GigDrive under my sun4c
> > with NetBSD and an 1GigIBM-Drive.
> > When i connected the Seagate to my SS10(AxilClone) i got the
> > following:
> > ----
> > ttya initialized
> > Cpu #0 TI,TMS390Z50^@
> [snip]
> > mainbus0 (root): SUNW,Axil-311
> > cpu0 at mainbus0: TI,TMS390Z50 @ 36 MHz, on-chip FPU
> > cpu0: physical 20K instruction (64 b/l), 16K data (32 b/l) cache enabled
> > ---------
> > Now happens nothing :(
> 
> Looks like the Axil has a supersparc-like CPU, but without the ecache. The
> cache doesn't yet work on these machines (there's a coherency problem),
> and it is supposed to get disabled. My best guess is that the chip isn't
> getting recognized as such because its a clone rather than the real thing.
> If you can rebuild the kernel, try commenting out the call to cache_enable()
> at around line 419 of sys/arch/sparc/sparc/cpu.c, as below (the line
> number is from 1.2B, so it may differ in 1.2):
> 
>                 } else
>                         printf("%s: physical %dK combined cache (%d bytes/"
>                                 "line) ", dev->dv_xname,
>                                 cacheinfo.c_totalsize/1024,
>                                 cacheinfo.c_linesize);
>                 /* cache_enable(); */
>         }
> }

I did this and now it boots but hangs before the fsck's:
------------------------------------------------------------------ BEGIN
Boot device: /iommu/sbus/espdma@f,400000/esp@f,800000/sd@3,0   File and args: netbsd2
>> NetBSD BOOT [$Revision: 1.4 $]
Booting netbsd2 @ 0x4000
1130464+108992+70088+[45312+49546]=0x15adfa
Copyright (c) 1982, 1986, 1989, 1991, 1993
	The Regents of the University of California.  All rights reserved.

NetBSD 1.2 (ICKIS) #1: Tue Jan 28 04:10:08 MET 1997
    pgpeter@santana:/a/aretha/local/4/pgpeter/netbsd/source/usr/src/sys/arch/sparc/compile/ICKIS
real mem = 32813056
avail mem = 28901376
using 400 buffers containing 1638400 bytes of memory
bootpath: /iommu@f,e0000000/sbus@f,e0001000/espdma@f,400000/esp@f,800000/sd@3,0
mainbus0 (root): SUNW,Axil-311 
cpu0 at mainbus0: TI,TMS390Z50 @ 36 MHz, on-chip FPU
cpu0: physical 20K instruction (64 b/l), 16K data (32 b/l) obio0 at mainbus0
clocxfd0 at fdc0 drive 0: 1.44MB 80 cyl, 2 head, 18 sec
power0 at obio0 addr 0xf1a01000
iommu0 at mainbus0 ioaddr 0xe0000000: version 3/0, page-size 4096, range 64MB
sbus0 at iommu0: clock = 18 MHz
dma0 at sbus0 slot 15 offset 0x400000: rev 2
esp0 at dma0 s0 40Mhz, target 7
scsibus0 at esp0
cd0 at scsibus0 targ 2 lun 0: <PLEXTOR, CD-ROM PX-4XCE, 1.02> SCSI2 5/cdrom removable
sd0 at scsibus0 targ 3 lun 0: <SEAGATE, ST43400N, 1028> SCSI2 0/direct fixed
sd0: 2777MB, 2737 cyl, 21 head, 98 sec, 512 bytes/sec
sd1 at scsibus0 targ 6 lun 0: <SyQuest, SQ5110, CFA> SCSI1 0/direct removable
sd1: drive offline
ledma0 at sbus0 slot 15 offset 0x400010: rev 2
le0 at ledma0 slot 0xf offset 0xc00000 pri 6: address 00:40:dc:00:12:1c
le0: 8 receive buffers, 2 transmit buffers
SUNW,bpp at sbus0 slot 15 offset 0x4800000 not configured
SUNW,DBRIe at sbus0 slot 15 offset 0x8010000 not configured
cgsix0 at sbus0 slot 0 offset 0x0: SUNW,501-1672, 1152 x 900, rev 7
root on sd0a
------------------------------------------------------------------ END
Now it hangs and does nothing (even Stop-A doesnt work)

On the Sparc2 it boots:
------------------------------------------------------------------ BEGIN
ok boot disk1 netbsd2
Boot device: /sbus/esp@0,800000/sd@1,0   File and args: netbsd2
>> NetBSD BOOT [$Revision: 1.4 $]
Booting netbsd2 @ 0x4000
1130464+108992+70088+[45312+49546]=0x15adfa
Copyright (c) 1982, 1986, 1989, 1991, 1993
	The Regents of the University of California.  All rights reserved.
NetBSD 1.2 (ICKIS) #1: Tue Jan 28 04:10:08 MET 1997
    pgpeter@santana:/a/aretha/local/4/pgpeter/netbsd/source/usr/src/sys/arch/sparc/compile/ICKIS
real mem = 16637952
avail mem = 14077952
using 203 buffers containing 831488 bytes of memory
bootpath: /sbus0/esp@0,800000/sd@1,0
mainbus0 (root)
cpu0 at mainbus0: SUNW,Sun 4/75 (RT601 or L64811 v2 @ 40 MHz, L64814 FPU)
cpu0: cache chip bug; trap page uncached
cpu0: 65536 byte write-through, 32 bytes/line, hw flush cache enabled
memreg0 at mainbus0 ioaddr 0xf4000000
clock0 at mainbus0 ioaddr 0xf2000000: mk48t02 (eeprom)
timer0 at mainbus0 ioaddr 0xf3000000 delay constant 17
auxreg0 at mainbus0 ioaddr 0xf7400003
zs0 at mainbus0 ioaddr 0xf1000000 pri 12, softpri 6
zs0a: console output
zs1 at mainbus0 ioaddr 0xf0000000 pri 12, softpri 6
audio0 at mainbus0 ioaddr 0xf7201000 pri 13, softpri 4
sbus0 at mainbus0 ioaddr 0xf8000000: clock = 20 MHz
dma0 at sbus0 slot 0 offset 0x400000: rev 1+
esp0 at sbus0 slot 0 offset 0x800000 pri 3: ESP100A 20Mhz, target 7
scsibus0 at esp0
sd0 at scsibus0 targ 1 lun 0: <SEAGATE, ST43400N, 1028> SCSI2 0/direct fixed
sd0: 2777MB, 2737 cyl, 21 head, 98 sec, 512 bytes/sec
cd0 at scsibus0 targ 2 lun 0: <PLEXTOR, CD-ROM PX-4XCE, 1.02> SCSI2 5/cdrom removable
sd1 at scsibus0 targ 3 lun 0: <IBM, DPES-31080, S31Q> SCSI2 0/direct fixed
sd1: 1034MB, 4903 cyl, 4 head, 108 sec, 512 bytes/sec
sd2 at scsibus0 targ 6 lun 0: <SyQuest, SQ5110, CFA> SCSI1 0/direct removable
sd2: drive offline
le0 at sbus0 slot 0 offset 0xc00000 pri 5: address 00:00:3b:86:1a:20
le0: 8 receive buffers, 2 transmit buffers
PTI,ptsio at sbus0 slot 1 offset 0x1000000 not configured
Aurora-210SJ- at sbus0 slot 2 offset 0x0 not configured
cgthree0 at sbus0 slot 3 offset 0x0: SUNW,501-1415, 1152 x 900
cgthree0: attached to /dev/fb
fdc0 at mainbus0 ioaddr 0xf7200000 pri 11, softpri 4: chip 82072
fd0 at fdc0 drive 0: 1.44MB 80 cyl, 2 head, 18 sec
root on sd0a
A/dev/sd0a: file system not clean; please fsck(8)
utomatic boot in progress: starting file system checks.
/dev/rsd0a: FREE BLK COUNT(S) WRONG IN SUPERBLK (SALVAGED)
/dev/rsd0a: 749 files, 29915 used, 18452 free (20 frags, 2304 blocks, 0.0% fragmentation)
/dev/rsd0a: MARKING FILE SYSTEM CLEAN
/dev/rsd0g: file system is clean; not checking
setting tty flags
starting network
le0: lost carrier
add host oblina: gateway localhost
starting rpc daemons: portmap.
starting system logger, time daemon.
checking for core dump...
le0: lost carrier
le0: lost carrier
le0: lost carrier
savecore: can't find device 115/47
checking quotas:le0: lost carrier
 done.
Jan 28 14:15:33 oblina savecore: can't find device 115/47

building databases...
le0: lost carrier
clearing /tmp
standard daemons: update cron.
starting network daemons: routed printerle0: lost carrier
 inetd.
creating runtime link editor directory cache.
starting local daemons:.
Tue Jan 28 14:15:39 MET 1997
Jan 28 14:15:40 oblina init: kernel security level changed from 0 to 1

NetBSD/sparc (oblina) (console)
login: root
------------------------------------------------------------------ END

Another problem which i think only happens when i use output-device=ttya
instead of 'screen' to be able to capture the output is:
The letters of 'Automatic boot in progress: starting file system checks.'
only come in Pairs/Triples when i press a key on the sun-keyboard.
Is there some problem with the tty-settings or code or do i have to look
at the settings of the Terminal (actually: 9600,8,n,1, no Xon/off, no RTS/CTS, no DTR)
or ttya-...-eeprom-settings ?

Bye and thanks in advance
    Peter