Subject: Re4: Which file should I use to configure the kernel for O2 ?
To: None <port-sgimips@netbsd.org>
From: Isao Nagamori <r17413@email.sps.mot.com>
List: port-sgimips
Date: 03/02/2002 18:09:48
Thank you Rafal !


I'm isao.

> This error message comes from src/sys/lib/libkern/Makefile, from the following
> bit of code:
>
> #       $NetBSD: Makefile,v 1.63 2001/12/12 01:50:04 tv Exp $
>
> LIB=    kern
> NOPIC=  # defined
>
> .include <bsd.own.mk>
>
> .if defined(MACHINE_ARCH) && !empty(MACHINE_ARCH) && \
>     exists(${KERNDIR}/arch/${MACHINE_ARCH})
> ARCHSUBDIR=     ${MACHINE_ARCH}
> .elif defined(MACHINE_CPU) && !empty(MACHINE_CPU) && \
>     exists(${KERNDIR}/arch/${MACHINE_CPU}) 
> ARCHSUBDIR=     ${MACHINE_CPU}
> .else
> .BEGIN:
>         @echo no ARCHSUBDIR for ${MACHINE_ARCH} nor ${MACHINE_CPU}
>         @false
> .endif
> [...]
> 
> So it seems either you are having some make/.mk file problem (why isn't
> MACHINE_CPU printed in that message?) or you don't have sys/arch/mips also
> checked out.  As a sanity check, you may want to try a `make MACHINE=
> sgimips depend' on the command line (the make machinery should figure 
> out the other two) or if that doesn't work a `make MACHINE=sgimips 
> MACHINE_ARCH=sgimips MACHINE_CPU=mips'.


	# make MACHINE=sgimips depend
	depending the kern library objects
	no ARCHSUBDIR for mipseb nor
	*** Error code 1

	Stop.
	*** Error code 1

	Stop.
	# 


That "stop" occurred when I used "csh".  On "csh", I can do 'make depend', if I typed 
'make MACHINE=sgimips MACHINE_ARCH=mipseb MACHINE_CPU=mips depend'

With using "sh", I could do "make depend" and do "make" with no argument.
Thanks.

But could not boot......

//////////////// Boot message with netbsd INDY //////////////////
Option? 5
Command Monitor.  Type "exit" to return to the menu.
> boot -f bootp():/netbsd
Setting $netaddr to 223.1.1.2 (from server 223.1.1.1)
Obtaining /netbsd from server 223.1.1.1
1424912+135944 entry: 0x80069000
Using ARCS for console I/O.
argv[0]: bootp():/netbsd
argv[1]: ConsoleIn=serial(0)
argv[2]: ConsoleOut=serial(0)
argv[3]: SystemPartition=223.1.1.1:/home/indy/root
argv[4]: OSLoader=netbsd.ip32
argv[5]: OSLoadPartition=bootp():/netbsd.ip32
argv[6]: OSLoadFilename=/unix
 [ no symbols available ]
Mem block 1: type 7, base 0x0, size 0x0
Mem block 2: type 1, base 0x1, size 0x1
Mem block 3: type 3, base 0x2, size 0x67
Mem block 4: type 0, base 0x0, size 0x1
Mem block 5: type 5, base 0x69, size 0x17e
Mem block 6: type 3, base 0x1e7, size 0xe79
Mem block 7: type 6, base 0x1060, size 0x3a1
Mem block 8: type 3, base 0x1401, size 0x6bff
Loading cluster 2: 0x2 / 0x69
Cluster 4 contains kernel
Loading cluster 5: 0x1e7 / 0x1060
Loading cluster 7: 0x1401 / 0x8000
panic: r4k sdcache 0 way line size 32


Exception: <vector=Normal>
Status register: 0x20000002<CU1,IPL=8,MODE=KERNEL>
Cause register: 0x8024<CE=0,IP8,EXC=BREAK>
Exception PC: 0x80174700, Exception RA: 0x800b5cd0
Breakpoint exception at address 0x44c290
  Saved user regs in hex (&gpda 0x81060788, &_regs 0x81060988):
  arg: 81070000 870 0 5
  tmp: 81070000 80068f6c 100 0 1e7 8000 1401 69
  sve: 81070000 c0d47fbc 0 460d7fbd 0 c0d98101 0 bf32865e
  t8 81070000 t9 0 at 0 v0 c0cd62f2 v1 0 k1 1
  gp 81070000 fp 0 sp 0 ra 0

PANIC: Unexpected exception

[Press reset or ENTER to restart.]

-------

The configuration file is
//////// INDY0 ///////////////

#	$NetBSD: INDY,v 1.11 2002/01/27 13:23:26 jdolecek Exp $

include		"arch/sgimips/conf/std.sgimips"

# XXX _LOW _HOW og/eller TEXTADDR

makeoptions	TEXTADDR=0x80069000	# O2
#makeoptions	TEXTADDR=0x88069000	# Indy
#makeoptions	TEXTADDR=0x8001c000	# IP27
#makeoptions	TEXTADDR=0x80300000	# IP27 Symmon

maxusers	32

#options 	SYSCALL_DEBUG
#options 	PARANOIADIAG

#options 	PCI_CONFIG_DUMP

options 	SCSI_DELAY=0

options 	IP32			# this is required for an O2

#options 	MIPS1
options 	MIPS3
#options 	MIPS3_L2CACHE_ABSENT
options 	MIPS3_L2CACHE_PRESENT
options 	MIPS3_5200		# XXX

#options 	MEMORY_DISK_HOOKS
#options 	MEMORY_DISK_IS_ROOT
#options 	MEMORY_DISK_SERVER=0
#options 	MINIROOTSIZE=8192

options 	KTRACE
#options	PIPE_SOCKETPAIR		# smaller, but slower pipe(2)

options 	DDB
options 	DDB_HISTORY_SIZE=100
options 	DEBUG
options 	DIAGNOSTIC
#makeoptions	DEBUG="-g"

#options 	EXEC_ECOFF

file-system	FFS
file-system	NFS
file-system	MFS
#file-system	KERNFS
#file-system	PROCFS

options 	SOFTDEP

options 	FFS_EI

options 	INET

options 	SCSIVERBOSE

options 	NFS_BOOT_DHCP
#options 	NFS_BOOT_BOOTPARAM

config		netbsd		root on ? type ?

mainbus0 	at root
cpu0 		at mainbus0

# O2
crime0 		at mainbus0 addr 0x14000000
mace0 		at mainbus0 addr 0x1f000000
macepci0 	at mace0 offset 0x080000 intr 7
pci0 		at macepci0 bus 0
mec0 		at mace0 offset 0x280000 intr 3
pckbc0		at mace0 offset 0x320000 intr 5
lpt0 		at mace0 offset 0x380000 intr 4
com0 		at mace0 offset 0x390000 intr 4
com1 		at mace0 offset 0x398000 intr 4
tlp* 		at pci? dev ? function ?
ne* 		at pci? dev ? function ?
fxp* 		at pci? dev ? function ?
inphy*		at mii? phy ?
nsphy*		at mii? phy ?
ahc0 		at pci0 dev 1 function ?
ahc1 		at pci0 dev 2 function ?
scsibus0 	at ahc0 channel ?
#scsibus1 	at ahc1 channel ?
sd*		at scsibus? target ? lun ?
cd*		at scsibus? target ? lun ?

#pckbd*		at pckbc?
#pms*		at pckbc?
#pmsi*		at pckbc?
#wskbd*		at pckbd? console ?
#wsmouse* 	at pms? mux 0
#wsmouse* 	at pmsi? mux 0

#wsdisplay* 	at foofb? console ?

# Indy
#imc0 		at mainbus0 addr 0x1fa00000
#gio0 		at imc0
#eisa0 		at imc0

#hpc0 		at gio? addr 0x1fb80000
#hpc1 		at gio? addr 0x1fb00000
#hpc2 		at gio? addr 0x1f980000
#sq0 		at hpc0 # net 0
#sbic0 		at hpc0 # hd 0
#sbic1 		at hpc0 # hd 1

#zsc* 		at hpc0 # pbus0 device ?
#zstty*		at zsc? channel ?

#pbus0 		at hpc0

#pckbc0 	at pbus0 device ?


pseudo-device	loop
pseudo-device	pty
pseudo-device	bpfilter	8
pseudo-device	vnd		4
#pseudo-device	md		1
pseudo-device	rnd






-------
In case of netbsd.ip32, I can boot netBSD.

///////////////////  Boot message with netbsd.ip32 ///////////////////
> boot -f bootp():/netbsd.ip32
Setting $netaddr to 223.1.1.2 (from server 223.1.1.1)
Obtaining /netbsd.ip32 from server 223.1.1.1
1245528+36896+152192 entry: 0x80002000
memory 0x163000 0x1060000
memory 0x1401000 0x8000000
Copyright (c) 1996, 1997, 1998, 1999, 2000
    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.5A (INDY) #142: Tue Jun 27 17:40:37 CEST 2000
    soren@meow:/usr/home/soren/netbsd/src/sys/arch/sgimips/compile/INDY
128 MB memory, 81856 KB free, 3716 KB for ARCS, 39240 KB in 9810 buffers
mainbus0 (root): SGI-IP32 [SGI, 1]
cpu0 at mainbus0: MIPS R5000 CPU (0x2321) Rev. 2.1 with built-in FPU Rev. 1.0
cpu0: L1 cache: 32KB/32B instruction, 32KB/32B data, two way set associative
cpu0: L2 cache: 512KB/32B mixed, snooping
crime0 at mainbus0 addr 0x14000000: rev 1.1
mace0 at mainbus0 addr 0x1f000000
com0 at mace0 offset 0x390000 intr 4: ns16550a, working fifo
com0: console
com1 at mace0 offset 0x398000 intr 4: ns16550a, working fifo
pckbc0 at mace0 offset 0x320000 intr 5: stub
lpt0 at mace0 offset 0x380000 intr 4
mec0 at mace0 offset 0x280000 intr 3: MAC-110 Ethernet, rev 1
mec0: station address 08:00:69:0a:ba:21
mec0: sorry, this is not a real driver
nsphy0 at mec0 phy 11: DP83840 10/100 media interface, rev. 0
nsphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
macepci0 at mace0 offset 0x80000 intr 7: rev 1
macepci0: control 0ff0005ff
pci0 at macepci0 bus 0
pci0: i/o space, memory space enabled, rd/line, rd/mult, wr/inv ok
ahc0 at pci0 dev 1 function 0
ahc0: interrupting at mace
ahc0: No SEEPROM available
ahc0: Using left over BIOS settings
ahc0: aic7880 Wide Channel A, SCSI Id=0, 16/255 SCBs
scsibus0 at ahc0 channel 0: 16 targets, 8 luns per target
ahc1 at pci0 dev 2 function 0
ahc1: interrupting at mace
ahc1: No SEEPROM available
ahc1: Using left over BIOS settings
ahc1: aic7880 Wide Channel A, SCSI Id=0, 16/255 SCBs
scsibus at ahc1 channel 0 not configured
tlp0 at pci0 dev 3 function 0: DECchip 21140A Ethernet, pass 2.0
tlp0: interrupting at mace
tlp0: Ethernet address 00:40:9f:30:05:8a
tlp0: 10baseT, 100baseTX, 10baseT-FDX, 100baseTX-FDX
biomask 7f netmask 7f ttymask 7f clockmask ff
ahc0: target 1 using tagged queuing
sd0 at scsibus0 target 1 lun 0: <SGI, IBM DCAS-32160W, S62A> SCSI2 0/direct fixe
d
sd0: drive offline
cd0 at scsibus0 target 4 lun 0: <TOSHIBA, CD-ROM XM-5401TA, 3605> SCSI2 5/cdrom
removable
boot device: <unknown>
root device: tlp0
dump device:
file system (default generic):
root on tlp0
mountroot: trying nfs...
nfs_boot: trying DHCP/BOOTP
tlp0: transmit underrun; new threshold: 96/256 bytes
tlp0: transmit underrun; new threshold: 128/512 bytes
tlp0: transmit underrun; new threshold: 160/1024 bytes
tlp0: transmit underrun; new threshold: store and forward mode
nfs_boot: DHCP server: 223.1.1.1
nfs_boot: my_addr=223.1.1.3
nfs_boot: my_mask=255.255.255.0
root on 223.1.1.1:/home/indy/root
root time: 0x3c80f90c
root file system type: nfs
init: copying out flags `-s' 3
init: copying out path `/sbin/init' 11
Enter pathname of shell or RETURN for sh:
Terminal type is vt100.
We recommend creating a non-root account and using su(1) for root access.
#