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 09/06/2018 07:45 PM, Naruaki.Etomi wrote:
> I want you to try this kernel.(ECOFF)
> 
> https://github.com/nullnilaki/NetBSD_irisboot/blob/master/IndigoR3K/re_netbsd.ecoff
> 
> I wrote read NVRAM routine.
> If this kernel work well, I understand bootloader installed HDD.
> (I understand "bootfile" Environment value)

Cool! I'd say it works the same way on my Indigo R3K:
```
>> printenv
netaddr=172.16.2.103
dbaud=9600
rbaud=1200
bootfile=bootp():
bootmode=c
console=d
volume=128
path=bootp()
cpufreq=33
diskless=1

>> boot
Setting $netaddr to 172.16.2.103 (from server )
Obtaining  from server
2830608+0+82896 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) #27: Thu Sep  6 16:46:41 
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.0000050] hpc0 at gio0: SGI HPC1.5 (onboard)
[   1.0000050] ---DUMP EEPROM---
[   1.0000050] netaddr = 172.16.2.103
[   1.0000050] bootfile = bootp():
[   1.0000050] console = d
[   1.0000050] enaddr0 = 8
[   1.0000050] enaddr1 = 0
[   1.0000050] enaddr2 = 69
[   1.0000050] enaddr3 = 11
[   1.0000050] enaddr4 = 22
[   1.0000050] enaddr5 = 33
[   1.0000050] ---DUMP EEPROM---
[   1.0000050] zsc0 at hpc0 offset 0xd10arcemu: unknown console "", 
using serial
[...]
[   5.6209730] boot device: sq0
[   5.6600450] root on sq0
[   5.6893170] nfs_boot: trying DHCP/BOOTP
[...]
```
...notice, the kernel seems to be able to detect that it was booted via 
`sq0`.

> I think that bootfile/netbsd is default path to the kernel in irisboot.

Not sure about that. Because when I try to start with just `boot 
dksc(0,1,8)irisboot` I get the same as when I first started my Indigo 
R3K today and it started to boot automatically: i.e. "Invalid argument":
```
                             Starting the system...

               To perform system maintenance instead, press <Esc>

NetBSD/sgimips 8.99.24 Yet another Bootstrap, Revision 1.0 (Sun Aug 19 
08:53:34 UTC 2018)

Invalid argument
i.e., dksc(X,Y,8)loader dksc(X,Y,0)/kern
```

And checking the PROM monitor environment:
```
>> printenv
netaddr=192.0.2.1
dbaud=9600
rbaud=1200
bootfile=dksc(0,1,8)irisboot
bootmode=c
console=d
diskless=0
volume=128
path=dksc(0,1,8)
cpufreq=33
```
...so a default seems to be not used in this case, or the PROM monitor 
supplies a "hidden" argument automatically in such cases.

BTW, `boot dksc(0,1,0)/netbsd` with the above PROM monitor environment 
seems to work the same way as `boot -f dksc(0,1,8)irisboot 
dksc(0,1,0)/netbsd` and first boots the loader which then loads and 
starts the kernel:
```
>> boot dksc(0,1,0)/netbsd
56784+0+1832 entry: 0x80368000

NetBSD/sgimips 8.99.24 Yet another Bootstrap, Revision 1.0 (Sun Aug 19 
08:53:34 UTC 2018)

2829712+82768 [185024+176400]=0x31fa74
[   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.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.8152930] scsibus0: waiting 2 seconds for devices to settle...
[   2.5053090] WARNING: module error: sequencer: can't find builtin 
dependency `midi'
[   3.9452690] sd0 at scsibus0 target 1 lun 0: <SEAGATE, ST39216N, 0010> 
disk fixed
[   4.0357250] sd0: 8761 MB, 14384 cyl, 3 head, 415 sec, 512 bytes/sect 
x 17942584 sectors
[   4.1361810] sd0: sync (200.00ns offset 12), 8-bit (5.000MB/s) 
transfers, tagged queueing
[   5.7552530] boot device: <unknown>
[   5.8007490] root device:

                             Starting the system...

               To perform system maintenance instead, press <Esc>
```

Cheers,
Frank


Home | Main Index | Thread Index | Old Index