Port-sparc64 archive

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

NetBSD on Sun T5220



Hello, I managed to get NetBSD-current booting into single user mode on
Sun T5220, by replacing /bin/sh with the copy from older NetBSD-9.4
version, plus a few other hacks.

# sysctl hw | grep cpu
hw.model = SUNW,SPARC-Enterprise-T5220 (cpu @ 1415.103 MHz)
hw.ncpu = 1
hw.ncpuonline = 1
hw.cpu0.name = cpu
hw.cpu0.id = 0
hw.cpu0.clock_frequency = 1415103392
hw.cpu0.ver = 0

However /bin/sh seems very unstable and keeps crashing:

# /etc/rc.d/motd XXX
[ 605.1768095] pid 359 (sh), uid 0: exited on signal 11 (core dumped)
[1]   Segmentation fault (core dumped) /etc/rc.d/motd status

It should have printed usage:

/etc/rc.d/motd: unknown directive 'XXX'.
Usage: /etc/rc.d/motd [fast|force|one](start stop restart rcvar)

GDB is also crashing the entire system:

# gdb /bin/sh ./sh.core 
gdb: warning: Couldn't determine a path for the index cache directory.
GNU gdb (GDB) 16.3
...
Reading symbols from /bin/sh...
(No debugging symbols found in /bin/sh)
[ 2033.3467176] trap type 0x34: cpu 0, pc=1009804 npc=1009808 pstate=0x110014<MM_TSO,PEF,PRIV>
[ 2033.3467176] kernel trap 34: mem address not aligned

ERROR: Last Trap: Watchdog Reset

{0} ok 

Many other commands in /bin, /sbin, /usr/bin, /usr/sbin, seem to work,
but I haven't tried them all.


Home | Main Index | Thread Index | Old Index