Subject: Re: Problem booting on a R4000 Indy
To: Miguel Mendez <flynn@energyhq.es.eu.org>
From: Alban Hertroys <dalroi@solfertje.student.utwente.nl>
List: port-sgimips
Date: 07/12/2003 15:47:05
--0-1804289383-1058017633=:6550
Content-Type: TEXT/plain; CHARSET=US-ASCII

On 12 Jul, Miguel Mendez punched keys in this particular order:
> Erik Reid <reide@darkest.org> wrote :
> 
> Hi,
> 
>> How well does the rest of the system work?
>  
> Unfortunately, the system panics in the middle of the install process
> with a TLB related error. I'll get a trace and post it. Both 1.6.1 and
> 1.6U with the patch have the same problem. The hardware probes fine, the
> newfs is completed but the install dies in the extract phase. I'm
> booting from a kernel with root on sq0, which I mount via nfs. ftp and
> nfs installs die after 5-10 mins of activity. I'm suspecting it to be
> networking related, but no idea how to fix it. 

Now that this subject is rolling... I have a very similar (probably the
same) problem on an R4400 Indigo2. The panic says:

	trap: TLB miss (load or instr. fetch) in kernel mode
	status=0x40003, cause=0x10000000, epc=0x0, vaddr=0x0
	pid=82 cmd=dev_mkdb usp=0x0 ksp=0xca567e88
	Stopped in pid 82 (dev_mkdb) at          0:   invalid address.
	db>

hinv says:

	System: IP22
	Processor: 250 MHz R4400, with FPU
	P. I-cache: 16 kB
	P. D-cache: 16 kB
	S. cache: 2048 kB
	Memory: 128 MB
	Graphics: MG10 Impact
	Audio: Iris Audio Processor: version A2 rev. 1.1.0

This machine boots from the net, install done by extracting the tar
archives on the host platform and making devices, configuring /etc,
etcetera...
Booting only works from a terminal, due to the GIO graphics card
(details can be found in a previous thread).

The machine is not capable of compiling kernels, due to cc and cpp
segfaulting frequently, presumably because of aforementioned problem.
I have succesfully installed a number of packages.

I'm trying to collect more complete information, but there are a number
of things in the way. One of them is that I apparently don't have a
dump device to dump the kernel cores to. What do I need for that?

Attached is the dmesg output, with another kernel panic in between the
mentioned one and a successful login for the dmesg output.

-- 

Alban Hertroys                              http://solfertje.student.utwente.nl
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
AD&D:		You fall from the cliff.
		The ground attacks you.
		It missed.

--0-1804289383-1058017633=:6550
Content-Type: TEXT/plain; CHARSET=US-ASCII
Content-Disposition: attachment ; filename="dmesg.terpentijn"

64 buffers
mainbus0 (root): SGI-IP22 [SGI, 69098cee], 1 processor
cpu0 at mainbus0: MIPS R4400 CPU (0x460) Rev. 6.0 with MIPS R4010 FPC Rev. 0.0
cpu0: 16KB/16B direct-mapped L1 Instruction cache, 48 TLB entries
cpu0: 16KB/16B direct-mapped write-back L1 Data cache
cpu0: 2048KB/128B direct-mapped write-back L2 Unified cache
imc0 at mainbus0 addr 0x1fa00000
imc0: Revision 3
gio0 at imc0
hpc0 at gio0 addr 0x1fb80000: SGI HPC3
zsc0 at hpc0 offset 0x59830
zstty0 at zsc0 channel 1 (console i/o)
zstty1 at zsc0 channel 0
sq0 at hpc0 offset 0x54000: SGI Seeq 80c03
sq0: Ethernet address 08:00:69:09:8c:ee
wdsc0 at hpc0 offset 0x44000: WD33C93B SCSI, rev=0, target 7
scsibus2 at wdsc0: 8 targets, 8 luns per target
wdsc1 at hpc0 offset 0x4c000: WD33C93B SCSI, rev=0, target 7
scsibus3 at wdsc1: 8 targets, 8 luns per target
dsclock0 at hpc0 offset 0x60000
biomask 07 netmask 07 ttymask 0f clockmask bf
scsibus2: waiting 2 seconds for devices to settle...
scsibus3: waiting 2 seconds for devices to settle...
boot device: sq0
root on sq0
nfs_boot: trying DHCP/BOOTP
nfs_boot: BOOTP next-server: 10.236.150.10
nfs_boot: my_name=terpentijn
nfs_boot: my_addr=10.236.150.3
nfs_boot: my_mask=255.255.255.0
nfs_boot: gateway=10.236.150.1
root on dorknoper:diskless/roots/terpentijn
root file system type: nfs
nfs server dorknoper:/diskless/systems/NetBSD/sgimips/usr: not responding
nfs server dorknoper:/diskless/systems/NetBSD/sgimips/usr: is alive again
trap: TLB miss (load or instr. fetch) in kernel mode
status=0x40003, cause=0x10000008, epc=0x0, vaddr=0x0
pid=170 cmd=sshd usp=0x0 ksp=0xca567908
syncing disks... trap: reserved instruction in kernel mode
status=0x3, cause=0x8028, epc=0x8ffff008, vaddr=0xc2027000
pid=170 cmd=sshd usp=0x7fffec84 ksp=0xca567448
rebooting...

Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002
    The NetBSD Foundation, Inc.  All rights reserved.
Copyright (c) 1982, 1986, 1989, 1991, 1993
    The Regents of the University of California.  All rights reserved.

NetBSD 1.6.1 (GENERIC_INDY) #0: Wed Apr  9 00:52:12 UTC 2003
    autobuild@tgm.daemon.org:/autobuild/netbsd-1-6/sgimips/OBJ/autobuild/netbsd-1-6/src/sys/arch/sgimips/compile/GENERIC_INDY
128 MB memory, 114 MB free, 768 KB for ARCS, 6656 KB in 1664 buffers
mainbus0 (root): SGI-IP22 [SGI, 69098cee], 1 processor
cpu0 at mainbus0: MIPS R4400 CPU (0x460) Rev. 6.0 with MIPS R4010 FPC Rev. 0.0
cpu0: 16KB/16B direct-mapped L1 Instruction cache, 48 TLB entries
cpu0: 16KB/16B direct-mapped write-back L1 Data cache
cpu0: 2048KB/128B direct-mapped write-back L2 Unified cache
imc0 at mainbus0 addr 0x1fa00000
imc0: Revision 3
gio0 at imc0
hpc0 at gio0 addr 0x1fb80000: SGI HPC3
zsc0 at hpc0 offset 0x59830
zstty0 at zsc0 channel 1 (console i/o)
zstty1 at zsc0 channel 0
sq0 at hpc0 offset 0x54000: SGI Seeq 80c03
sq0: Ethernet address 08:00:69:09:8c:ee
wdsc0 at hpc0 offset 0x44000: WD33C93B SCSI, rev=0, target 7
scsibus2 at wdsc0: 8 targets, 8 luns per target
wdsc1 at hpc0 offset 0x4c000: WD33C93B SCSI, rev=0, target 7
scsibus3 at wdsc1: 8 targets, 8 luns per target
dsclock0 at hpc0 offset 0x60000
biomask 07 netmask 07 ttymask 0f clockmask bf
scsibus2: waiting 2 seconds for devices to settle...
scsibus3: waiting 2 seconds for devices to settle...
boot device: sq0
root on sq0
nfs_boot: trying DHCP/BOOTP
nfs_boot: BOOTP next-server: 10.236.150.10
nfs_boot: my_name=terpentijn
nfs_boot: my_addr=10.236.150.3
nfs_boot: my_mask=255.255.255.0
nfs_boot: gateway=10.236.150.1
root on dorknoper:diskless/roots/terpentijn
root file system type: nfs
nfs server dorknoper:diskless/roots/terpentijn: not responding
nfs server dorknoper:diskless/roots/terpentijn: is alive again
nfs server dorknoper:/diskless/systems/NetBSD/sgimips/usr: not responding
nfs server dorknoper:/diskless/systems/NetBSD/sgimips/usr: is alive again
nfs server dorknoper:/diskless/home/: not responding
nfs server dorknoper:/diskless/home/: is alive again
nfs server dorknoper:/diskless/systems/NetBSD/src: not responding
nfs server dorknoper:/diskless/systems/NetBSD/src: is alive again

--0-1804289383-1058017633=:6550--