NetBSD-Bugs archive

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

port-sgimips/53518: netbsd-INSTALL32_IP2x.ecoff is broken since NetBSD-4.0.1.



>Number:         53518
>Category:       port-sgimips
>Synopsis:       netbsd-INSTALL32_IP2x.ecoff is broken since NetBSD-4.0.1.
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    port-sgimips-maintainer
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Aug 13 18:40:00 +0000 2018
>Originator:     Naruaki Etomi
>Release:        NetBSD/sgimips 8.99.21
>Organization:
Japan
>Environment:
NetBSD  8.99.21 NetBSD 8.99.21 (GENERIC32_IP12) #1: Sun Aug 12 14:48:19 UTC 2018  naruaki@xserve:/usr/obj.sgimips/sys/arch/sgimips/compile/GENERIC32_IP2x sgimips

>Description:
Old Sgi machine (Indigo or Indy) don't understand ELF, so we may need an ECOFF binary.
However, "objcopy -O ecoff-bigmips" is broken.
As a result, netbsd-INSTALL32_IP2x.ecoff is broken.

# file netbsd-INSTALL32_IP2x.ecoff
netbsd-INSTALL32_IP2x.ecoff: MIPSEB ECOFF executable (impure) stripped - version 0.0

>> hinv
                   System: IP20
                Processor: R4000 50 Mhz, with FPU
     Primary I-cache size: 8 Kbytes
     Primary D-cache size: 8 Kbytes
     Secondary cache size: 1024 Kbytes
              Memory size: 144 Mbytes
                 Graphics: LG1
                SCSI Disk: scsi(0)disk(4)


>> bootp()netbsd-INSTALL32_IP2x.ecoff
Obtaining netbsd-INSTALL32_IP2x.ecoff from server xserve
3520504+3743632Exception: <vector=UTLB Miss>
Status register: 0x20004003<CU1,IM7,IPL=???,MODE=KERNEL,EXL,IE>
Cause register: 0x800c<CE=0,IP8,EXC=WMISS>
Exception PC: 0xbfc394ec
Bad address: 0x0
Local I/O interrupt register 0: 0x8 <ENET>
Registers (in hex):
  arg: a8767e8c 10 f8 f8
  tmp: 6d61696e 28292072 a8767d84 f8 a87412e0 a87412e0 0 a8744a88
  sve: 108 a8744a88 391f90 a874931c 0 a87ff760 10000000 bfc45f44
  t8 0 t9 1ade at 0 v0 0 v1 0 k1 80000018
  gp e75c66ad fp bfc4636c sp a87ff368 ra bfc25b40

PANIC: Unexpected exception

[Press reset or RETURN to restart.]

>How-To-Repeat:

>Fix:
---------------------------------------------------------------------------------------------

diff -Naru src.orig/distrib/sgimips/instkernel/Makefile src/distrib/sgimips/instkernel/Makefile
--- src.orig/distrib/sgimips/instkernel/Makefile	2016-03-24 03:00:29.000000000 +0000
+++ src/distrib/sgimips/instkernel/Makefile	2018-08-12 15:34:03.358281894 +0000
@@ -30,9 +30,7 @@
 MDSET_RELEASEDIR=	binary/kernel
 
 MDSET_SUFFIXES.netbsd-INSTALL${NX}_IP2x=ecoff create-ecoff
-create-ecoff=	${OBJCOPY} --impure -O ecoff-bigmips \
-		-R .pdr -R .mdebug.abi32 -R .comment -R .ident \
-		${.TARGET:R} ${.TARGET}
+create-ecoff=	${ELF2ECOFF} ${.TARGET:R} ${.TARGET}
 
 IMAGE_RELEASEDIR=	installation/diskimage

---------------------------------------------------------------------------------------------

1.Please apply this patch.
http://mail-index.netbsd.org/netbsd-bugs/2018/06/23/msg057975.html

>> bootp()netbsd-INSTALL32_IP2x.ecoff
Obtaining netbsd-INSTALL32_IP2x.ecoff from server xserve
6514320+0+109904 entry: 0x88069000
[   1.0000000] phys segment: 0x5e000 @ 0x8002000
[   1.0000000] adding 0x5e000 @ 0x8002000 to freelist 0
[   1.0000000] phys segment: 0x652000 @ 0x8060000
[   1.0000000] adding 0x8000 @ 0x8060000 to freelist 0
[   1.0000000] skipping 0x64a000 @ 0x8068000 (kernel)
[   1.0000000] phys segment: 0x8e000 @ 0x86b2000
[   1.0000000] adding 0x8e000 @ 0x86b2000 to freelist 0
[   1.0000000] phys segment: 0x7800000 @ 0x8800000
[   1.0000000] adding 0x7800000 @ 0x8800000 to freelist 0
[   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.21 (INSTALL32_IP2x) #1: Sun Aug 12 15:18:35 UTC 2018
[   1.0000000] 	naruaki@xserve:/usr/obj.sgimips/sys/arch/sgimips/compile/INSTALL32_IP2x
[   1.0000000] total memory = 128 MB
[   1.0000000] (768 KB reserved for ARCS)
[   1.0000000] avail memory = 118 MB
[   1.0000000] mainbus0 (root): SGI-IP20 [SGI, 69063ecf], 1 processor
[   1.0000000] cpu0 at mainbus0: MIPS R4000 CPU (0x422) Rev. 2.2 with MIPS R4010 FPC Rev. 0.0
[   1.0000000] cpu0: 48 TLB entries, 16MB max page size
[   1.0000000] cpu0: 8KB/16B direct-mapped L1 instruction cache
[   1.0000000] cpu0: 8KB/16B direct-mapped write-back L1 data cache
[   1.0000000] cpu0: 1024KB/128B direct-mapped write-back L2 unified cache
[   1.0000000] int0 at mainbus0 addr 0x1fb801c0
[   1.0000000] int0: bus 50MHz, CPU 100MHz
[   1.0000000] imc0 at mainbus0 addr 0x1fa00000: revision 3
[   1.0000000] gio0 at imc0
[   1.0000000] light0 at gio0: SGI LG2 (board revision 3)
[   1.0000000] wsdisplay0 at light0 kbdmux 1
[   1.0000000] hpc0 at gio0: SGI HPC1.5 (onboard)
[   1.0000000] zsc0 at hpc0 offset 0xd10
[   1.0000000] zstty0 at zsc0 channel 1 (console i/o)
[   1.0000000] zstty1 at zsc0 channel 0
[   1.0000000] zsc1 at hpc0 offset 0xd00
[   1.0000000] zsms0 at zsc1 channel 1: baud rate 4800
[   1.0000000] wsmouse0 at zsms0 mux 0
[   1.0000000] zskbd0 at zsc1 channel 0: baud rate 600
[   1.0000000] wskbd0 at zskbd0 mux 1
[   1.0000000] sq0 at hpc0 offset 0x100: SGI Seeq 80c03
[   1.0000000] sq0: Ethernet address 08:00:69:06:3e:cf
[   1.0000000] wdsc0 at hpc0 offset 0x11f: WD33C93B (20.0 MHz clock, BURST DMA, SCSI ID 0)

 NetBSD/sgimips 8.99.21

 This menu-driven tool is designed to help you install NetBSD to a hard disk,
 or upgrade an existing NetBSD system, with a minimum of work.
 In the following menus type the reference letter (a, b, c, ...) to select an
 item, or type CTRL+N/CTRL+P to select the next/previous item.
 The arrow keys and Page-up/Page-down may also work.
 Activate the current selection from the menu by typing the enter key.
 


                &#9484;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9488;
                &#9474;>a: Installation messages in English         &#9474;
                &#9474; b: Messages d'installation en fran?ais      &#9474;
                &#9474; c: Installation auf Deutsch                 &#9474;
                &#9474; d: Komunikaty instalacyjne w jezyku polskim &#9474;
                &#9474; e: Mensajes de instalacion en castellano    &#9474;
                &#9492;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9496;

Tested on Indy and Indigo R4000.



Home | Main Index | Thread Index | Old Index