Port-sgimips archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Indigo R3000, Indigo R4000 and Indy R5000



Hi Naruaki,

On 08/22/2018 08:01 PM, Naruaki.Etomi wrote:
> Hello!
> 
> I wrote some PR.
> [...]
> According to these PR, I believe that NetBSD/sgimips is going to be alright.

Great, that's really awesome work! Much obliged.

> 
> I hadn't sent Indigo R3000 patch yet.
> Give me a sec to explain...
> Please use this IP12 kernel instead.
> *Indigo R3000 bootloader binary
> https://github.com/nullnilaki/NetBSD_irisboot/blob/master/r3000_iris/irisboot
> 
> *Indigo R3000 ECOFF kernel
> https://github.com/nullnilaki/NetBSD_irisboot/blob/master/IndigoR3K/netbsd_ecoff

Thanks for providing a ready-to-use ECOFF kernel. I just now gave it a 
try on my Indigo R3K. It starts good but later it isn't able to get the 
needed BOOTP/DHCP info. Not sure why, but the MAC address of the sq0 
device is all 0 (00:00:00:00:00:00) as soon as the kernel starts. The 
MAC address looks OK in the PROM monitor though and netbooting actually 
works as expected from there:

```
>> eaddr

Ethernet address is ---- 08:00:69:11:22:33

>> boot
Setting $netaddr to 172.16.2.103 (from server )
Obtaining  from server
2829712+0+82768 entry: 0x80002000
[   1.0000000] arcemu: unknown console "", using serial
[   1.0000000] Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 
2003, 2004, 2005,
[   1.0000000]     2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014, 
2015, 2016, 2017,
[   1.0000000]     2018 The NetBSD Foundation, Inc.  All rights 
reserved.
[   1.0000000] Copyright (c) 1982, 1986, 1989, 1991, 1993
[   1.0000000]     The Regents of the University of California.  All 
rights reserved.

[   1.0000000] NetBSD 8.99.24 (GENERIC32_IP12) #3: Sun Aug 19 13:04:21 
UTC 2018
[   1.0000000]  naruaki@:/usr/obj.sgimips/sys/arch/sgimips/compile
/GENERIC32_IP12
[...]
```

...but the provided kernel seems to not be able to determine or use the 
correct MAC address later:

```
[   1.0000050] sq0 at hpc0 offset 0x100: SGI Seeq 8003
[   1.0000050] sq0: Ethernet address 00:00:00:00:00:00
[   1.0000050] wdsc0 at hpc0 offset 0x11f: WD33C93A (20.0 MHz clock, 
BURST DMA, SCSI ID 0)
[...]
[   5.7553090] boot device: sq0
[   5.7852450] root on sq0
[   5.8143410] nfs_boot: trying DHCP/BOOTP
[   9.8652370] nfs_boot: DHCP next-server: 0.0.0.0
[   9.9242610] nfs_boot: my_domain=machine-hall.org
[   9.9796450] nfs_boot: my_addr=172.16.1.13
[  10.0277650] nfs_boot: my_mask=255.255.0.0
[  10.0758610] nfs_boot: gateway=172.16.0.1
[  13.1252370] nfs_boot: missing options (need IP, netmask, gateway, 
next-server, root-path)
[  13.2188770] nfs_boot: trying RARP (and RPC/bootparam)
[  26.2752370] revarp failed, error=51
[...]
```

I noticed, that the kernel you used when producing your log further 
below is actually revision 8.99.21 and was built at an earlier date 
than the one from GitHub. Another difference is that my log is missing 
the "wdsc0: microcode revision 0x0c, Fast SCSI" line.

So could it be that there is a small difference between both kernel 
revisions that somehow breaks the MAC address?

Here is my full log for reference:
```

>> boot
Setting $netaddr to 172.16.2.103 (from server )
Obtaining  from server
2829712+0+82768 entry: 0x80002000
[   1.0000000] arcemu: unknown console "", using serial
[   1.0000000] Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 
2003, 2004, 2005,
[   1.0000000]     2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014, 
2015, 2016, 2017,
[   1.0000000]     2018 The NetBSD Foundation, Inc.  All rights 
reserved.
[   1.0000000] Copyright (c) 1982, 1986, 1989, 1991, 1993
[   1.0000000]     The Regents of the University of California.  All 
rights reserved.

[   1.0000000] NetBSD 8.99.24 (GENERIC32_IP12) #3: Sun Aug 19 13:04:21 
UTC 2018
[   1.0000000]  naruaki@:/usr/obj.sgimips/sys/arch/sgimips/compile
/GENERIC32_IP12
[   1.0000000] total memory = 24576 KB
[   1.0000000] (0 reserved for ARCS)
[   1.0000000] avail memory = 21124 KB
[   1.0000000] WARNING: module error: sequencer: can't find builtin 
dependency `midi'
[   1.0000000] mainbus0 (root): SGI-IP12 [SGI, IP12], 1 processor
[   1.0000000] cpu0 at mainbus0: MIPS R3000A CPU (0x230) Rev. 3.0 with 
MIPS R3010 FPC Rev. 4.0
[   1.0000000] cpu0: 32KB/4B direct-mapped Instruction cache, 64 TLB 
entries
[   1.0000000] cpu0: 32KB/4B direct-mapped write-through Data cache
[   1.0000000] int0 at mainbus0 addr 0x1fb801c0
[   1.0000050] pic0 at mainbus0 addr 0x1fa00000
[   1.0000050] pic0: Revision B: dblk (0x2), iblk (0x8)
[   1.0000050] pic0: Indigo R3000, board revision 1
[   1.0000050] pic0: cache disabled, store partial, bus drive
[   1.0000050] gio0 at pic0
[   1.0000050] light0 at gio0: SGI LG2 (board revision 3)
[   1.0000050] wsdisplay0 at light0 kbdmux 1
[   1.0000050] hpc0 at gio0: SGI HPC1.5 (onboard)
[   1.0000050] zsc0 at hpc0 offset 0xd10arcemu: unknown console "", 
using serial

[   1.0000050] zstty0 at zsc0 channel 1 (console i/o)
[   1.0000050] zstty1 at zsc0 channel 0
[   1.0000050] zsc1 at hpc0 offset 0xd00arcemu: unknown console "", 
using serial

[   1.0000050] zsms0 at zsc1 channel 1: baud rate 4800
[   1.0000050] wsmouse0 at zsms0 mux 0
[   1.0000050] zskbd0 at zsc1 channel 0: baud rate 600
[   1.0000050] wskbd0 at zskbd0 mux 1
[   1.0000050] sq0 at hpc0 offset 0x100: SGI Seeq 8003
[   1.0000050] sq0: Ethernet address 00:00:00:00:00:00
[   1.0000050] wdsc0 at hpc0 offset 0x11f: WD33C93A (20.0 MHz clock, 
BURST DMA, SCSI ID 0)
[   1.0000050] scsibus0 at wdsc0: 8 targets, 8 luns per target
[   1.0000050] dpclock0 at mainbus0 addr 0x1fb80e00
[   1.8152850] scsibus0: waiting 2 seconds for devices to settle...
[   2.5053010] WARNING: module error: sequencer: can't find builtin 
dependency `midi'
[   3.9452610] sd0 at scsibus0 target 1 lun 0: <SEAGATE, ST1280, 5822> 
disk fixed
[   4.0352530] sd0: 228 MB, 1476 cyl, 5 head, 63 sec, 512 bytes/sect x 
468655 sectors
[   4.1253170] sd0: sync (200.00ns offset 12), 8-bit (5.000MB/s) 
transfers, tagged queueing
[   5.7553090] boot device: sq0
[   5.7852450] root on sq0
[   5.8143410] nfs_boot: trying DHCP/BOOTP
[   9.8652370] nfs_boot: DHCP next-server: 0.0.0.0
[   9.9242610] nfs_boot: my_domain=machine-hall.org
[   9.9796450] nfs_boot: my_addr=172.16.1.13
[  10.0277650] nfs_boot: my_mask=255.255.0.0
[  10.0758610] nfs_boot: gateway=172.16.0.1
[  13.1252370] nfs_boot: missing options (need IP, netmask, gateway, 
next-server, root-path)
[  13.2188770] nfs_boot: trying RARP (and RPC/bootparam)
[  26.2752370] revarp failed, error=51
[  26.3123090] Supported file systems: mfs ffs nfs procfs kernfs tmpfs 
ptyfs
[  26.3854930] no file system for sq0
[  26.4325650] cannot mount root, error = 79
[  26.4827490] root device (default sq0):

```

UPDATE: Configuring 00:00:00:00:00:00 for my Indigo R3K in `/etc/ethers` 
for rarpd actually allows it to continue the netboot process, but still 
the MAC address is broken, when netbooting has finished:

```
[...]
[  62.0879010] nfs_boot: trying RARP (and RPC/bootparam)
[  68.3043330] nfs_boot: server_addr=172.16.0.1
[  68.3581330] nfs_boot: hostname=indigo-r3k
[  83.4543250] nfs_boot: timeout...
[  88.4843250] nfs_boot: timeout...
[  93.5143250] nfs_boot: timeout...
[  98.5944370] root on 172.16.0.2:/srv/nfs/indigo-r3k/root
[  98.6565090] root file system type: nfs
[  98.7014530] kern.module.path=/stand/sgimips/8.99.24/modules
[  98.7683650] WARNING: preposterous TOD clock time
[  98.8243570] WARNING: using filesystem time
[  98.8730530] WARNING: CHECK AND RESET THE DATE!
[  98.9343570] warning: no /dev/console
[  98.9789090] init path (default /sbin/init): 
[  99.5505570] init: trying /sbin/init
Created tmpfs /dev (245760 byte, 448 inodes)
/etc/rc.conf is not configured.  Multiuser boot aborted.
Enter pathname of shell or RETURN for /bin/sh: 
We recommend that you create a non-root account and use su(1) for root 
access.
indigo-r3k# mount
172.16.0.2:/srv/nfs/indigo-r3k/root on / type nfs
tmpfs on /dev type tmpfs (union, local)
indigo-r3k# ifconfig
sq0: flags=0x8263<UP,BROADCAST,NOTRAILERS,RUNNING,ALLMULTI,MULTICAST> 
mtu 1500
        address: 00:00:00:00:00:00
        inet 172.16.1.13/16 broadcast 172.16.255.255 flags 0x0
        inet 172.16.2.103/16 broadcast 172.16.255.255 flags 0x0
lo0: flags=0x8048<LOOPBACK,RUNNING,MULTICAST> mtu 33160
```

Hey, but this is much closer to useful than ever before. Thanks for 
that! :-D

Cheers,
Frank


Home | Main Index | Thread Index | Old Index