The Boston Diaries

The ongoing saga of a programmer who doesn't live in Boston, nor does he even like Boston, but yet named his weblog/journal “The Boston Diaries.”

Go figure.

Friday, July 15, 2005

Drool

I want one of these keyboards! (link via Jason Kottke)


Postmortem on a Cobalt RaQ4 install/upgrade

Oddly enough, installing Linux on a Cobalt RaQ 1 or 2 is easier than installing Linux on a Cobalt RaQ 3 or 4, dispite the 1/2 not being an Intel based machine.

But yesterday, as I was lying face down on my bloodied keyboard, I suddenly realized that Smirk was telling me something. “Sean,” he said. “you don't have to get Apache running on the firewall.”

I had gotten close yesterday—with Wlofie's help the night before, we were able to recover one of the RaQ4s with it's initial distribution, and I had gotten a Linux 2.4 kernel and iptables installed and running. It was only getting Apache running that I did a horrible mistake: I mounted the working drive in my workstation! That right there was a monumental mistake.

You see, the Cobalt RaQ firmware (which is responsible for loading Linux off the disk) only supports an ext2 revision 0 file system and the fact of my just mounting said drive (for write access no less) “fixed” it so that it was no longer a revision 0 file system. In fact, I'm not sure what exactly happened, but the upshot of mounting a filesystem formatted under Linux 2.2 onto a Linux 2.6 system munged every symbolic link on the file system. Move the drive back to the Cobalt RaQ, and attempt to load Apache, I kept getting stuff like: Apache: libfoo.so not found. I then check to see what's up:

-rw-r--r-- 1 root root 120184 Mar 28 2000  libfoo.a
lrwxrwxrwx 1 root root     11 Jul 14 14:44 libfoo.so
-rw-r--r-- 1 root root 120528 Mar 28 2000  libfoo.so.1

Well, libfoo.so is there, but it should look like:

-rw-r--r-- 1 root root 120184 Mar 28 2000  libfoo.a
lrwxrwxrwx 1 root root     11 Jul 14 14:44 libfoo.so -> libfoo.so.1
-rw-r--r-- 1 root root 120528 Mar 28 2000  libfoo.so.1

And it wasn't just one or two symbolic links, but (at least in /usr/lib) every symbolic link was borked in this manner.

What I did next only made things worse (resulted in the “kernel panic: counldn't find init” error) so I won't bother going into detail about that.

No, what eventually worked was the following:

  1. Hook NULL serial cable between Cobalt RaQ and PC B
  2. Start serial software on PC B and configure serial port to 115,200bps 8n1
  3. Hook Cobalt RaQ up to switch using network cable.
  4. Turn on Cobalt RaQ, and make sure it will use the serial console (you may have to shove a paper clip into the small hole next to the LCD screen as you power up to enable the serial console).
  5. Log into the Cobalt RaQ as root.
  6. Configure the network to something usable (ifconfig, route, etc).
  7. Download the latest version of the firmware (2.10 works fine in both RaQ3s and RaQ4s).
  8. Install new firmware.
  9. Shutdown Cobalt RaQ.
  10. Hook up PC A to network.
  11. Install rescue CD into CD-ROM.
  12. Reboot PC A from rescue CD.
  13. Accept license agreement.
  14. Turn on Cobalt RaQ holding down the “S” button, select “boot net” option.
  15. Play Solitare, Tetris, or eat lunch for the next half hour or so.
  16. Power cycle Cobalt RaQ.
  17. Power cycle Cobalt RaQ when it asks.
  18. Log into Cobalt RaQ as root.
  19. Run passwd and install a root password.
  20. Download special Linux 2.4 kernel for Cobalt RaQ.
  21. Install Linux 2.4 kernel and kernel modules.
  22. Reboot.
  23. Reconfigure as required.

That last step, “reconfigure as required” may take a while. It may include stuff like downloading the source for such packages as ssh, Apache, MySQL, extracting the files, and doing the magical incantation:

./configure
make
make install

a few times over the next few days (since I had already done this step before a few months ago, I could just copy the existing binaries).

Obligatory Picture

An abstract representation of where you're coming from]

Obligatory Contact Info

Obligatory Feeds

Obligatory Links

Obligatory Miscellaneous

Obligatory AI Disclaimer

No AI was used in the making of this site, unless otherwise noted.

You have my permission to link freely to any entry here. Go ahead, I won't bite. I promise.

The dates are the permanent links to that day's entries (or entry, if there is only one entry). The titles are the permanent links to that entry only. The format for the links are simple: Start with the base link for this site: https://boston.conman.org/, then add the date you are interested in, say 2000/08/01, so that would make the final URL:

https://boston.conman.org/2000/08/01

You can also specify the entire month by leaving off the day portion. You can even select an arbitrary portion of time.

You may also note subtle shading of the links and that's intentional: the “closer” the link is (relative to the page) the “brighter” it appears. It's an experiment in using color shading to denote the distance a link is from here. If you don't notice it, don't worry; it's not all that important.

It is assumed that every brand name, slogan, corporate name, symbol, design element, et cetera mentioned in these pages is a protected and/or trademarked entity, the sole property of its owner(s), and acknowledgement of this status is implied.

Copyright © 1999-2024 by Sean Conner. All Rights Reserved.