Sunday, April 25, 2021

Refurb weekend: Hewlett-Packard 9000/350

I'm not really a "big iron" enthusiast; I've always liked small systems (for one thing, you can collect more of them without annoying your spouse, though my wife points out for the record she is generally tolerant of my hobbies). One really must specialize in those kind of machines as a collector, not only for their power and space demands, but also their sometimes unusually complex maintenance requirements.

That doesn't mean I don't have larger machines, however. Besides my three Apple Network Servers (about the size of a decent dorm fridge), a PDP-11/44 in storage I'm not sure what to do with yet and the 2U-in-a-tower IBM POWER6 which runs Floodgap, my other "big" system is my only 1980s-era Un*x workstation, a 1987 HP 9000/350. It came to me already named (homer).

Homer's system processing unit has a 25MHz 68020 and 20MHz 68881 FPU paired with HP's custom MMU (not a 68851) and 32K of cache, which HP claimed was four times as fast as the VAX 11/780 at integer math. It is closely related to the slower, stripped-down 330 (both CPU and FPU at 16.67MHz, no cache; in fact, HP calls the 350 a 98562B and the 330 a 98562A). 9000/300 systems are unusually modular by modern standards: the SPU is in a separate, self-contained box from the rest of the peripherals, all of which are installed in a custom HP steel rack. As internal options it has a HP 98545A colour graphics board (in the bundled configuration HP sold as the 350C) that delivers 1024x768 graphics with 16 colours, 16MB of parity RAM (up to 32MB, but that needs the three-connector system bus plate which I don't have) and a standard Human Interface board (HP 98562-66530, with later versions sold as the HP 98247A) containing low-speed HP-IB, NIC (10Base2, the last Thinnet machine on my household network), HP-HIL (with 46010A keyboard and 46060A mouse), audio and RS-232, plus the HP 98562-66531 optional high-speed HP-IB board necessary for booting from a hard disk. The monitor is the largest CRT display I own, a 19" Sony GDM-1902 that HP repackaged as the 98782A, capable of 1024x768 megapixel graphics.

Over high-speed HP-IB it is connected to a HP 6000 C2203A 670H, an indestructable 670MB CS/80 hard disk with the system name on the front that will outlast the cockroaches. I also have a benighted 9144A tape drive that refuses to stay locked in the rack and requires pre-formatted IOTAMAT QIC cartridges yet won't read them even with a retrofitted capstan, and a 9122D dual DS/DD 3.5" floppy drive. (Yet to be racked, pending investigation, are a 600/A CD-ROM and a 6400 C1511A 1300H DDS-1 tape drive.) It runs HP-UX 8.0, though I am told the NetBSD port is excellent.

In 1987 this would have been a heck of a computer, but you would have paid somewhere north of $50,000 for this configuration which would be a whopping $115,000+ in 2021 money. For comparison, the most I've ever personally paid for a computer was $11,000 for my POWER6, purchased used in 2010 (in 2021 about $13,300), whereas this machine I got for "come and get it" over a decade and a half ago (tip of the hat to Stan and Kevin). It also came with a separate 9000/319C+ system unit, but that's in storage since the 350 is much more powerful (the 319C+ is essentially a consolidated, cost-reduced and minimally upgradeable 330). The Homer Simpson doll was included.

A refurb weekend was planned for Homer for awhile owing to the dead clock battery (it uses the slightly larger 2325 lithium coin cells instead of the more typical 2032s), and it had always had a flaky 10Base2 connection to the network backbone which I chalked up to cabling because I could usually fix this with messing with the cable and resetting the LAN hardware in /usr/bin/landiag.

This time, however, no amount of tweaking and cajoling could get the network connection back up again. The time had finally come for ... a Refurb Weekend!

The 350 and relatives subdivide internally into RAM board(s), the CPU board, any graphics and other option boards, and the Human Interface board, which is where most of the peripheral connections reside in the default loadout. Its original HP 98562-66530 board looks like this:

The low-speed HP-IB, HP-HIL, audio, RS-232 and NIC are all consolidated onto a single unit, replacing the separate boards (HP 98625 HP-IB, HP 98643 LAN, HP 98620B DMA and HP 98644 serial port cards) required in earlier models. The golden board piggybacked on it is the 98562-66531 high-speed HP-IB board with an integrated cable, which is a functional substitute for the HP 98625B. The unified Human Interface board idea is nice in that you don't need a separate expansion box to get a good mix of devices but bad in that repair is correspondingly much less granular.

The self-test screen showed a valid MAC address for the NIC (the 080009... code), which suggested the MAC portion was working and the problem was either the port or the Thinnet PHY (you kids today have it easy with your newfangled integrated NIC chipsets). On a board of this era they would be separated, and later we'll demonstate this, but you can already see that everything was soldered down and not socketed. Since I was uncertain at the time what really was the fault, let alone what I would actually replace the faulty component with, I decided to see if I could simply replace the board.

This turned out to be serendipitous because someone was selling a two-pack of 98562-66534 Human Interface boards for a very reasonable price.

("MADE IN USA": don't see that much anymore!) These newer boards were introduced with the later 360 and 370, but because those SPUs are also quite similar to the 350, they'll work just fine in a 330 or 350. In particular the 66534 variant was especially handy to find because it had a more conventional AUI connector to the MAC (the 360/370's 66533 variant was also Thinnet). Just make sure when you get the board that you slide it into the card guides and fully engage the connectors, or you'll get weird DMA and device failures like this:

After an initial moment of panic, making sure the board had a good connection made the problem go away. Both of them checked out and passed the system self-test. Still, since one had thumbscrews and the other didn't, I decided to use the thumbscrewed one. First, let's replace that bad old battery which was almost certainly burned out as well:

A nice 3 volts and change. Next, let's move the high-speed HP-IB board over (the 670H cannot be booted from the on-board low-speed HP-IB). The integrated cable needs to be removed first, so a bit of nylon spudger action frees that up:

With the cable disconnected, removing the board is then a matter of removing the four screws holding it on its standoffs and levering it out of its connector with the spudger again:

Inspecting the 66531 board.

No damage, pin headers look good. Lots of glue logic and not much else.

Now to slip off the cable. The integrated cable has two metal chokes which serve to orient it on the rear plate. You don't need to remove these chokes, but you do need to slide the part of the plate holding the backmost choke off to the side (a pair of pliers helps). Don't pull out that stud holding it; the stud is merely an axis. Just grab and pull the plate tab itself.

With the plate tab off, the cable can now be gently pulled out of its clamp.

When installing the high-speed board in its new home, connect the HP-IB cable to the board first (there's a hollow tab that serves as a key; in the installed position this hollow tab should be up and visible) so that you don't trap the cable under the card installing it. The 66534 board does not have a moveable tab, just a gap for the divot in the rear choke to sit in as shown here. Also, the cable clamp is facing up on the 66534 and not to the side as in the 66530, so the whole thing just goes straight down onto it and the board connector.

Seat the board and put the screws back in. It may flex a little until it settles into its connector. I then made sure the DIP switches matched between the old board and the new board since they would be configured the same way.

One last detail is what we'll use to connect it to the network. While my hub does have an AUI port, so I could just run a straight-thru DA-15 cable, might as well put that box of MAU transceivers I have to good use. I've been in this business long enough to even have some favourite brands:

BoseLAN MAUs have lots of blinkenlights and are the most compact, but this model's RJ-45 jack is to the side, which would be right in the way of the high-speed board's HP-IB cable. (BoseLAN got bought by Cable Design Technologies, which later merged with Belden.) I am also a big fan of Allied Telesyn gear (now Allied Telesis) -- that 10MBit backbone hub is a AT unit that has been in almost continuous service since about 1999 -- and their MAUs are also very good but I don't like opening up NOS boxes if I have something loose that will suffice. So I dug out a Transition (still around, apparently) MAU which has very few blinkenlights but wasn't sitting pretty in a new box either. Yes, I've got a shoebox stuffed full of these things.

Installed the new board, but not without a little bit of blood from the side rails. I'm not sure the degrading foam from the sides of the rack are so good for open wounds either.

Booting HP-UX. No more errors!

And testing out the new network card by firing up the Chimera web browser under HP VUE. CDE jockeys will recognise the Visual User Environment as an ancestor, not least of which due to the Motif interface, and indeed CDE was strongly influenced by it.

After all that, a post-mortem: was the board repairable? Other than minor differences in chip and component revision (and tape covering an EPROM window, which was replaced by a conventional ROM on the later card), the only differences of significance between the 66531 and 66534 are in the corner near the bar code where the AUI or 10b2 port would be. The most obvious change is a large chip marked Reliability 2VP5U9 ("QUALITY IS RELIABILITY") which is not present on the 66534. The 2VP5U9 LAN-PAC is a DC/DC converter that turns up many places, including the Commodore A2065 Ethernet card, and according to its blurb "is designed to provide power and isolation for Local Area Network transceiver chips."

The pinout for these things is quite simple (here is a scan from the datasheet); most of the pins are wired together. There are other variants of this part but this one specifically serves for Thinnet (which was also called "Cheapernet" because it was cheaper than the alternatives, as shown in the table).

The underside of the board shows its connections. The chip itself is at U20. There's really only one line involved here, which naturally is one of the outputs.

With the pinout and following the lone trace, it looks like the 2VP5U9 powers U14, which is some glue logic also not on the 66534, and the surrounding discrete components, but not T1 (you'll notice the traces carefully avoid its pins), which is preserved on the 66534. Helpfully the region is outlined in a lighter green than the PCB, which likely constitutes the entirety of the PHY, but any of these components or any combination thereof could have been faulty. HP warns about this in the service manual: "Field Repair Philosophy for the Model 330/350 Computers and the HP 98568A Opt. 132 and 98570A Expander is assembly, or board level." Well, I guess that's what we ended up doing anyway.

I'm happy to have it fully working again, though it's sad not to have a reason to mess with Thinnet anymore. Or, maybe it's not that sad: I remember how much I hated it in large deployments. But now that it's back in action I'd like to get at least one tape drive working too; that and a port of Crypto Ancienne will be the next project(s).

Tuesday, April 20, 2021

The better way to get VICE on Ethernet with SELinux

Although I was a registered hardcore user of Power64 when my daily driver was still a Power Mac, now that I'm a daily Linux user on this Raptor Talos II the best Commodore 64 emulator is clearly VICE, the Versatile Commodore Emulator. It not only has highly accurate emulation, but can talk to real disk drives over OpenCBM (I use it with a ZoomFloppy xum1541) and even emulates a whole mess of peripherals, including Ethernet cartridges like the RRNet and clones (on my real Commodore 128, I use a 64NIC+).

However, I'm a Fedora user and SELinux is on by default. SELinux will really ruin your day here because it (quite reasonably) sees a random user application trying to tunnel out a network connection through libpcap/libnet as a security risk and disables it by policy. You find this out the hard way by trying to enable the Ethernet cartridge from the VICE preferences interface and getting a message you need to run it as root. I don't run things like Commodore emulators as root, spank you very much.

Fortunately, there's an easy, (probably) one time workaround; with libpcap and libnet installed (using tun/tap isn't supported yet), you will have to be root just once to fix the problem. Assuming x64sc (or whichever VICE component you're using) is in /usr/bin, you can give it raw network access with setcap cap_net_raw,cap_net_admin=eip /usr/bin/x64sc. Now you should be able to run it without root privileges and be able to access the raw interface. Here's a little test in Kipper BASIC:

Makes cross-development a lot easier!

Sunday, April 18, 2021

Don't be fooled by cheap USB multimeters

A fair number of computers people nowadays would refer to as vintage have USB either as an option or built-in, and USB ports crap out like everything else. Accordingly there are testers: at Big Box Hardware Store the other day while I was buying paint, they had one on clearance for just $3 each. That was worth picking up a couple to mess with.

Whoever wrote the package copy was either a slick advertiser or a liar, but I repeat myself. Among other things it bills itself as a "USB multimeter." This is barely technically true since it does measure both DC voltage and amperage, but is definitely not what you'd consider a typical multimeter. It also says on the back that it's "USB 3.0-3.1 Type A" yet it lacks the blue tongue and extra pins of a true Type A USB 3.x connector.

Still, it's cheap, and it will correctly tell you the voltage off the port (as tested with one of my real multimeters). This isn't enough to tell you if the whole shebang including data lines and signaling is working but it seems unlikely you'd have voltage but nothing else, assuming no monkey business like a "condom" was installed. If that's all you want, plus some reassurance the voltage you're getting is nominal, then this is $3 well spent.

However, what it doesn't accurately tell you, and apparently none of the similar small devices of this type will, is the available current. You'll be able to estimate the current draw by plugging something in the other end, but you won't be able to use it to tell if you're connected to a 1 amp or 2.1 amp port. There are USB testers that will put an adjustable constant load of however many amps on the line, and you can determine the available current by how high you can go before the lines sag, but while basic ones aren't exorbitant they certainly cost more than this one did.

You may be able to infer that a device is drawing more power than is available, but you'll need a powered hub to compare. For example, attaching my INOGENI VGA2USB3 showed exactly 60mA draw and a voltage of 4.99V as connected directly to this Raptor Talos II (and doesn't work). Connected to a powered USB 3.0 hub, however, it reads 5.14V and 550mA (and works). You wouldn't have any idea it's not enough without seeing how it performs connected to something else, and you can't assume the port only offers 60mA because the device may simply not draw anything when it fails to initialize. Likewise, the voltage difference probably isn't salient because the USB spec allows up to 5% variance under load, meaning even a voltage of 4.75V wouldn't necessarily be "sagging" per se.

Cheap USB testers like this aren't utterly useless but they're really more useful for confirming normal function rather than troubleshooting. If you get low voltage you'd still need to test the computer's power supply as well, and you can only correctly estimate a device's current demand if it's actually functioning and drawing power. You can't also conclude anything about the port's performance under a consistent load since it doesn't generate one. I don't think I wasted my money but you probably don't want to spend any more than that for such a limited device either.


See more of my general vintage computing projects,
mostly microcomputers, 6502, PalmOS, 68K/Power Mac
and Unix workstations, but that's not all. Be kind, REWIND and PLAY.

Buy Me a Coffee at ko-fi.com

Old VCR is advertisement- and donation-funded, and what I get
goes to maintaining the hardware here at Floodgap.
I don't drink coffee, but the Mr Pibb doesn't buy itself. :-)
Thanks for reading. -- Cameron Kaiser