Profile

unixronin: Galen the technomage, from Babylon 5: Crusade (Default)
Unixronin

December 2012

S M T W T F S
      1
2345678
9101112131415
16171819202122
23242526272829
3031     

Page Summary

Most Popular Tags

Expand Cut Tags

No cut tags

July 10th, 2010

unixronin: Sun Ultrasparc III CPU (Ultrasparc III)
Saturday, July 10th, 2010 05:35 pm

Finally, things have progressed from bang-head-on-wall to ... well, progress.

First of all, I've solved PART of the issues with the Mayhem G3 laptop.  I'd previously checked the fans and heatsinks, and they looked fine ... from the outside.  Yesterday, at the suggestion of a friend, I partially disassembled the laptop in order to replace the heatsink themal compound.  (A good call; what was there was mostly gone.  It's now been replaced with a fresh layer of Arctic Alumina.)  And, so long as I had the heatsink assembly out anyway, I disassembled it for a thorough cleaning.

The Mayhem's CPU heatsink is basically a fan-pressurized plenum assembly with fine copper-fin heat exchangers at either end, connected via heat pipes to the CPU.  The inside surfaces of both heat exchangers were totally blocked by a layer of dust so thick and dense that it had formed what amounted to a 1/8" layer of solid felt.  NO WONDER the previous owner had reported that it had begun "crashing" at increasingly-short random intervals; it had no cooling airflow whatsoever, and was going into emergency thermal shutdown to avoid destroying its CPU.

With its heat exchanger cleaned and new thermal compound, the Mayhem is now stable running Windows XP Pro, and has been up for two days without a hiccup; I even stress-tested it playing Halo for about twenty minutes, which was driving it into thermal shutdown within about two minutes prior to the cleanup.  (I will note, however:  If you value your sanity, don't ever try to play Halo — or probably any FPS — with a trackpad.  Just don't.).  So, one problem licked; I know the hardware is sound.  Next, I get to re-tackle the problem of getting it to boot under Linux with ACPI enabled.  (Which may now be a solved problem — it is entirely possible that what was happening was it was getting as far as loading the ACPI code, detecting thermal overtemperature condition, and immediately halting.)  With a 100GB hard disk (well... about 94 real GB), I have it partitioned 45GB and 45GB with a roughly 4GB swap partition, and I'll be leaving the XP installation in place and installing Gentoo dual-boot.

Given this success, I went on to also disassemble the M5309 laptop, which I'd been trying to reinstall for the Dread Pirate Bignum (who has decided to name it Post-Dated Check Loan) until it became unable to successfully compile anything, and replace its heatsink thermal compound as well.  (Which turned out to also be a good call; it was that horrible grey waxy stuff, and very little of it was still between the heatsink and the die.)  I then set out to try a new clean install, which not only exhibited no further problems with failed compilations, but successfully recompiled gcc on the very first try — always a good stresstest of a system.  But it still wouldn't build glibc.

And this was where things REALLY got interesting.

Beware; here be deep geekery. )

Now, with that all figured out, Post-Dated Check Loan is happily compiling away, installing a complete clean system from scratch.  So Pirate is going to have her laptop after all in another day or two.  (We should probably buy her a new battery at some point though; the one we got with the laptop is down to 29% of its original 4400mWh capacity.)

Then, assuming I can sort out the processor speed control issue on the Mayhem laptop, I just need to source a screen from it somewhere.  (It requires a Quanta QD15LT01 15.4" WXGA active-matrix TFT LCD.  I can find one for about $60 used and asserted to be in good condition, about $77 for a "100% compatible" knockoff with a high-glare gloss surface, or $95 for the genuine article.  Saving $18 for a knockoff screen that I already know will have a glare problem just doesn't seem like a good idea.  But whichever I buy, it's going to have to wait on budget.)

unixronin: Hanover Fiste from Heavy Metal (Hanover Fiste)
Saturday, July 10th, 2010 08:02 pm

SO I've been doing Gentoo installs from a sysrescuecd, rather than from a Gentoo minimal install CD, simply because it works better (it has an nfs client, which the Gentoo minimal install CD doesn't, enabling me to do installs over the wire, plus — again unlike the Gentoo minimal CD — its kernel has libata and IDE-SCSI emulation built in, which means disks show up as /dev/sd* the same as they will on the live system).  But, well ...

Let's talk about shell aliases.  Aliases are one way of combining multiple shell commands, or a command with a particular set of standard options, into a single shorthand command.

There are common and useful ones.

There are also common and NOT-useful ones.

And then there are common and downright ANNOYING ones.

sysrescuecd comes with the following predefined shell aliases:

cl=clear
cp='cp -i'
cvs='cvs -z3'
l='ls -ail'
ll='ls -lah'
ls='ls --color=auto'
lsdir='for dir in *;do;if [ -d $dir ];then;du -hsL $dir;fi;done'
reboot='shutdown -r now'
rm='rm -i'
run-help=man
which-command=whence

Now, most of these I'm going to reserve comment on.  But 'cp -i'?  'rm -i'?  (For those of you unfamilar with the Unix command line, the -i option to these commands instructs the shell to ask you whether that's really what you meant to do.  EVERY.  GODDAMN.  TIME.)

These are "safety" aliases typically put there for the benefit of CLI newbies who have very little idea what they're doing in a Unix shell.

IF YOU KNOW ENOUGH ABOUT YOUR OS THAT YOU'VE BURNED A SYSTEM RESCUE CD AND BOOTED THE MACHINE FROM IT TO REPAIR A DAMAGED OS BY HAND, THERE IS AN OBVIOUS PRESUMPTION THAT YOU PROBABLY HAVE AT LEAST SOME CLUE ABOUT WHAT YOU'RE DOING.

(Forgive my shouting, please.)

On a system rescue CD, this is not "a safety feature".  To anyone capable of actually using the rescue CD for its intended purpose, it's just a stupid, pointless annoyance that requires the user of the rescue CD to take the extra step of typing 'unalias cp; unalias rm' in every new shell before being able to actually do any repair work without being nagged to death by your "safety" aliases.