> >> Are there any specific problems or (even better) PRs for this > >> brokenness? > > > > PR port-hpcmips/43738. > > > > In general, (not specific at all ;p) > > - post-your-fix kernel + pre-mips64-merge userland work fine > > - post-your-fix kernel + post-mips64-merge userland don't work > > on mips ports I tried. > > That's not quite what I see on sgimips. > With an old userland and a new kernel I still get numerous binaries > which dump core on startup, namely all shells except in single user. A > kernel prior to Simon's fixes would not run a single userland binary, > a fixed kernel seems to run most but not all of them. I didn't try a > post merge userland yet. > So, the machine will get to userland, show a login prompt, let you > login but then immediately drop back to the login prompt since the > shell died, same effect via ssh. > > I see this on both Indy and O2, both have R5k CPUs in case it matters.
Hmm, I tried R5000 180MHz O2, then - 5.99.38 kernel + 5.99.15 userland: login works - same kernel + 5.99.38 base.tgz: getty fails (note partial mips64 merge happened during 5.99.22) 5.99.38 kernel + 5.99.15 userland: --- Starting up the system... To perform system maintenance instead, press <Esc> NetBSD/sgimips 5.99.10 Bootstrap, Revision 1.5 (tsut...@airtrek, Tue Apr 7 21:29:32 JST 2009) devopen: pci(0)scsi(0)disk(1)rdisk(0)partition(0) type scsi file /netbsd 5337856+260680 [298144+285217]=0x5e5940 Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 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 5.99.38 (GENERIC32_IP3x) #216: Fri Aug 27 20:05:41 JST 2010 tsut...@mirage:/usr/src/sys/arch/sgimips/compile/GENERIC32_IP3x total memory = 256 MB (6848 KB reserved for ARCS) avail memory = 237 MB mainbus0 (root): SGI-IP32 [SGI, 9], 1 processor cpu0 at mainbus0: MIPS R5000 CPU (0x2321) Rev. 2.1 with built-in FPU Rev. 1.0 cpu0: 48 TLB entries, 16MB max page size cpu0: 32KB/32B 2-way set-associative L1 Instruction cache cpu0: 32KB/32B 2-way set-associative write-back L1 Data cache cpu0: 512KB/32B direct-mapped write-through L2 Unified cache crime0 at mainbus0 addr 0x14000000: rev 1.1 (CRIME_ID: 161) crmfb0 at mainbus0 addr 0x16000000: SGI CRIME Graphics Display Engine crmfb0: device unusable if not setup by firmware mace0 at mainbus0 addr 0x1f000000 lpt0 at mace0 offset 0x380000 intr 4 intrmask 0xf0000 com0 at mace0 offset 0x390000 intr 4 intrmask 0x3f00000: ns16550a, working fifo com0: console com1 at mace0 offset 0x398000 intr 4 intrmask 0xfc000000: ns16550a, working fifo macekbc0 at mace0 offset 0x320000 intr 5 intrmask 0x0: PS2 controller mcclock0 at mace0 offset 0x3a0000 intrmask 0x0 mec0 at mace0 offset 0x280000 intr 3 intrmask 0x0: MAC-110 Ethernet, rev 1 mec0: Ethernet address 08:00:69:0c:95:79 nsphy0 at mec0 phy 8: DP83840 10/100 media interface, rev. 0 nsphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto mavb0 at mace0 offset 0x300000 intr 6 intrmask 0x0: AD1843 rev 1 audio0 at mavb0: full duplex, playback, capture, independent macepci0 at mace0 offset 0x80000 intr 7 intrmask 0x0: rev 1 pci0 at macepci0 bus 0 ahc0 at pci0 dev 1 function 0: Adaptec aic7880 Ultra SCSI adapter ahc0: interrupting at crime interrupt 8 ahc0: Using left over BIOS settings ahc0: Host Adapter has no SEEPROM. Using default SCSI target parameters ahc0: aic7880: Ultra Wide Channel A, SCSI Id=0, 16/253 SCBs scsibus0 at ahc0: 16 targets, 8 luns per target ahc1 at pci0 dev 2 function 0: Adaptec aic7880 Ultra SCSI adapter ahc1: interrupting at crime interrupt 9 ahc1: Using left over BIOS settings ahc1: Host Adapter has no SEEPROM. Using default SCSI target parameters ahc1: aic7880: Ultra Wide Channel A, SCSI Id=0, 16/253 SCBs scsibus1 at ahc1: 16 targets, 8 luns per target tl0 at pci0 dev 3 function 0 tl0: Compaq Netelligent 10/100 TX tl0: Ethernet address 00:80:5f:8b:55:cc tl0: interrupting at crime interrupt 10 nsphy1 at tl0 phy 1: DP83840 10/100 media interface, rev. 1 nsphy1: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto tlphy0 at tl0 phy 31: ThunderLAN 10BASE-T media interface, rev. 5 tlphy0: no media present scsibus0: waiting 2 seconds for devices to settle... scsibus1: waiting 2 seconds for devices to settle... WARNING: module error: can't find builtin dependency `compat_svr4' sd0 at scsibus0 target 1 lun 0: <SGI, IBM DCAS-32160W, S62A> disk fixed sd0: 2049 MB, 8188 cyl, 3 head, 170 sec, 512 bytes/sect x 4197405 sectors sd0: sync (50.00ns offset 8), 16-bit (40.000MB/s) transfers, tagged queueing cd0 at scsibus0 target 4 lun 0: <TOSHIBA, CD-ROM XM-5701TA, 0167> cdrom removable cd0: sync (100.00ns offset 8), 8-bit (10.000MB/s) transfers boot device: sd0 root on sd0a dumps on sd0b root file system type: ffs pid 1(init): ABI set to O32 (e_flags=0x1007) Fri Aug 27 20:08:01 JST 2010 swapctl: adding /dev/sd0b as swap device at priority 0 Starting file system checks: /dev/rsd0a: file system is clean; not checking Setting tty flags. Setting sysctl variables: kern.no_sa_support: 1 -> 1 ddb.onpanic: 1 -> 0 Starting network. Hostname: airtrek NIS domainname: mydomain IPv6 mode: host Configuring network interfaces: mec0. Adding interface aliases:. add net default: gateway mirage Building databases: dev, utmp, utmpx done Starting syslogd. Setting date via ntp. Checking for core dump... savecore - - - no core dump Starting rpcbind. Starting ypbind. Mounting all filesystems... Clearing temporary files. Starting amd. Checking quotas: done. Setting securelevel: kern.securelevel: 0 -> 1 Starting virecover. Starting local daemons:. Updating motd. Starting ntpd. Starting sshd. postfix/postfix-script: starting the Postfix mail system Starting inetd. Starting cron. Fri Aug 27 20:08:36 JST 2010 Aug 27 20:08:38 airtrek getty[445]: /dev/ttyE0: NetBSD/sgimips (airtrek) (ttyC0) login: root Password: Aug 27 20:08:42 airtrek login: ROOT LOGIN (root) ON ttyC0 Last login: Wed Sep 2 00:19:55 2009 on ttyC0 Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 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 5.99.38 (GENERIC32_IP3x) #216: Fri Aug 27 20:05:41 JST 2010 Welcome to NetBSD! Terminal type is vt100. We recommend creating a non-root account and using su(1) for root access. # ls -l /lib/libc.so.12.* -r--r--r-- 1 root wheel 1405631 Aug 1 2008 /lib/libc.so.12.162 -r--r--r-- 1 root wheel 1406473 Aug 22 2008 /lib/libc.so.12.163 -r--r--r-- 1 root wheel 1511739 Jun 28 2009 /lib/libc.so.12.168 -r--r--r-- 1 root wheel 1526037 Sep 1 2009 /lib/libc.so.12.170 # file /lib/libc.so.12.170 /lib/libc.so.12.170: ELF 32-bit MSB shared object, MIPS, MIPS-I version 1 (SYSV), dynamically linked, for NetBSD 5.99.15, not stripped # 5.99.38 kernel + 5.99.38 base.tgz (other userland binaries are 5.99.15): --- Starting up the system... To perform system maintenance instead, press <Esc> NetBSD/sgimips 5.99.10 Bootstrap, Revision 1.5 (tsut...@airtrek, Tue Apr 7 21:29:32 JST 2009) devopen: pci(0)scsi(0)disk(1)rdisk(0)partition(0) type scsi file /netbsd 5337856+260680 [298144+285217]=0x5e5940 Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 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 5.99.38 (GENERIC32_IP3x) #216: Fri Aug 27 20:05:41 JST 2010 tsut...@mirage:/usr/src/sys/arch/sgimips/compile/GENERIC32_IP3x total memory = 256 MB (6848 KB reserved for ARCS) avail memory = 237 MB mainbus0 (root): SGI-IP32 [SGI, 9], 1 processor cpu0 at mainbus0: MIPS R5000 CPU (0x2321) Rev. 2.1 with built-in FPU Rev. 1.0 cpu0: 48 TLB entries, 16MB max page size cpu0: 32KB/32B 2-way set-associative L1 Instruction cache cpu0: 32KB/32B 2-way set-associative write-back L1 Data cache cpu0: 512KB/32B direct-mapped write-through L2 Unified cache crime0 at mainbus0 addr 0x14000000: rev 1.1 (CRIME_ID: 161) crmfb0 at mainbus0 addr 0x16000000: SGI CRIME Graphics Display Engine crmfb0: device unusable if not setup by firmware mace0 at mainbus0 addr 0x1f000000 lpt0 at mace0 offset 0x380000 intr 4 intrmask 0xf0000 com0 at mace0 offset 0x390000 intr 4 intrmask 0x3f00000: ns16550a, working fifo com0: console com1 at mace0 offset 0x398000 intr 4 intrmask 0xfc000000: ns16550a, working fifo macekbc0 at mace0 offset 0x320000 intr 5 intrmask 0x0: PS2 controller mcclock0 at mace0 offset 0x3a0000 intrmask 0x0 mec0 at mace0 offset 0x280000 intr 3 intrmask 0x0: MAC-110 Ethernet, rev 1 mec0: Ethernet address 08:00:69:0c:95:79 nsphy0 at mec0 phy 8: DP83840 10/100 media interface, rev. 0 nsphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto mavb0 at mace0 offset 0x300000 intr 6 intrmask 0x0: AD1843 rev 1 audio0 at mavb0: full duplex, playback, capture, independent macepci0 at mace0 offset 0x80000 intr 7 intrmask 0x0: rev 1 pci0 at macepci0 bus 0 ahc0 at pci0 dev 1 function 0: Adaptec aic7880 Ultra SCSI adapter ahc0: interrupting at crime interrupt 8 ahc0: Using left over BIOS settings ahc0: Host Adapter has no SEEPROM. Using default SCSI target parameters ahc0: aic7880: Ultra Wide Channel A, SCSI Id=0, 16/253 SCBs scsibus0 at ahc0: 16 targets, 8 luns per target ahc1 at pci0 dev 2 function 0: Adaptec aic7880 Ultra SCSI adapter ahc1: interrupting at crime interrupt 9 ahc1: Using left over BIOS settings ahc1: Host Adapter has no SEEPROM. Using default SCSI target parameters ahc1: aic7880: Ultra Wide Channel A, SCSI Id=0, 16/253 SCBs scsibus1 at ahc1: 16 targets, 8 luns per target tl0 at pci0 dev 3 function 0 tl0: Compaq Netelligent 10/100 TX tl0: Ethernet address 00:80:5f:8b:55:cc tl0: interrupting at crime interrupt 10 nsphy1 at tl0 phy 1: DP83840 10/100 media interface, rev. 1 nsphy1: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto tlphy0 at tl0 phy 31: ThunderLAN 10BASE-T media interface, rev. 5 tlphy0: no media present scsibus0: waiting 2 seconds for devices to settle... scsibus1: waiting 2 seconds for devices to settle... WARNING: module error: can't find builtin dependency `compat_svr4' sd0 at scsibus0 target 1 lun 0: <SGI, IBM DCAS-32160W, S62A> disk fixed sd0: 2049 MB, 8188 cyl, 3 head, 170 sec, 512 bytes/sect x 4197405 sectors sd0: sync (50.00ns offset 8), 16-bit (40.000MB/s) transfers, tagged queueing cd0 at scsibus0 target 4 lun 0: <TOSHIBA, CD-ROM XM-5701TA, 0167> cdrom removable cd0: sync (100.00ns offset 8), 8-bit (10.000MB/s) transfers boot device: sd0 root on sd0a dumps on sd0b root file system type: ffs pid 1(init): ABI set to O32 (e_flags=0x1007) Fri Aug 27 20:17:12 JST 2010 swapctl: adding /dev/sd0b as swap device at priority 0 Starting file system checks: /dev/rsd0a: file system is clean; not checking Setting tty flags. Setting sysctl variables: kern.no_sa_support: 1 -> 1 ddb.onpanic: 1 -> 0 Starting network. Hostname: airtrek NIS domainname: mydomain IPv6 mode: host Configuring network interfaces: mec0. Adding interface aliases:. add net default: gateway mirage Building databases: dev, utmp, utmpx done Starting syslogd. Setting date via ntp. Checking for core dump... savecore: no core dump Starting rpcbind. Starting ypbind. Mounting all filesystems... Clearing temporary files. Starting amd. Checking quotas: done. Setting securelevel: kern.securelevel: 0 -> 1 Starting virecover. Starting local daemons:. Updating motd. Starting ntpd. Starting sshd. postfix/postfix-script: starting the Postfix mail system Starting inetd. Starting cron. Fri Aug 27 20:17:54 JST 2010 Aug 27 20:17:56 airtrek getty[316]: /dev/ttyE0: NetBSD/sgimips (airtrek) (ttyC0) Aug 27 20:17:57 airtrek init: getty repeating too quickly on port `/dev/ttyC0', sleeping --- Izumi Tsutsui