Sun Netra t1 compact flash root

From WTFwiki
Revision as of 12:14, 31 October 2007 by Jontow (talk | contribs) (add config -e notes)
Jump to navigation Jump to search

Hardware

To make this work; you need a CF-->laptop IDE (44pin) adapter, and a short ribbon cable.
I had to trim the side-clips off the IDE cable because of the curious mechanism on the netra.

Installation

Boot into OpenBSD install media (I used 4.2, and a miniroot install because it was convenient),
and then realize that it won't work with your CF card(?)--at this point, reboot into the install
media but pass the '-c' flag so that you get into UKC (userconfig).

Once in UKC, it should eyeball kinda like this:

UKC> change wd*
change? y
channel: [-1] (hit enter)
flags: [whatever]: 0xff0
UKC> quit


Now you'll be ready to install. After the installation finishes, you need to pass '-c' again, but
this time it gets waaaaay more stupid.. OpenBoot has no concept of this particular drive, so you need
to boot from a custom devalias:

 boot /pci@1f,0/pci@1/pci@1/ide@e/disk@2:a -c

Follow the same procedure for UKC, and you can later hardcode it in the kernel from a running multiuser
system with config(8) like this:

 # config -o /bsd-cf -e /bsd
 [follow procedure for UKC above]
 # mv /bsd /bsd-orig && mv /bsd-cf /bsd


Maybe, however, it makes sense to setup a real devalias for this, and not have to type that crap:

 nvalias cf /pci@1f,0/pci@1/pci@1/ide@e/disk@2:a

Once all of your installation is finalized, maybe it also makes sense to fix the boot order:

 setenv boot-device cf disk net

Coming soon.. some documentation on OpenBSD with a read-only root filesystem, in general.