Subject: Re: Error Booting on HP620lx
To: None <>
From: Christer O. Andersson <>
List: port-hpcsh
Date: 12/27/2005 23:55:07
On Tue, Dec 27, 2005 at 01:09:51PM -0500, wrote:
> I guess this is the part I'm having trouble finding instructions on, 
> getting it pre-installed on a CF card. I don't have a current BSD desktop 
> system, so I don't know if that complicates things. Is there a pointer to 
> an install doc? Sorry, I'm asking a ton of probably newbie questions, but 
> like I said, my bsd knowledge is limited to the common unix commands I 
> know. Thanks again for being patient :)
> Thanks again for all of the help
> Marc

Did you try the installation instructions at:

Those are what I have been installing according to. I don't honestly
beleive there is anything better. OTOH, it should get you going if
you are at all familiar with UNIX. I'd be happy to explain if there
is something there that seems strange, but I would think you get
along just fine. It describes step by step how to install on a cf.

This is a very short alternative description (based on the article
but adjusted to a binary snapshot or release):

mount /dev/wd1a /mnt
cd /mnt
tar -xzvpf <your-path-to-the-distribution>/binary/sets/base.tgz
tar -xzvpf <your-path-to-the-distribution>/binary/sets/etc.tgz
tar -xzvpf <your-path-to-the-distribution>/binary/sets/games.tgz
tar -xzvpf <your-path-to-the-distribution>/binary/sets/misc.tgz
tar -xzvpf <your-path-to-the-distribution>/binary/sets/man.tgz
tar -xzvpf <your-path-to-the-distribution>/binary/sets/text.tgz

If you have a large cf you might want to add:
tar -xzvpf <your-path-to-the-distribution>/binary/sets/comp.tgz
tar -xzvpf <your-path-to-the-distribution>/binary/sets/xbase.tgz
tar -xzvpf <your-path-to-the-distribution>/binary/sets/xcomp.tgz
tar -xzvpf <your-path-to-the-distribution>/binary/sets/xetc.tgz
tar -xzvpf <your-path-to-the-distribution>/binary/sets/xfont.tgz
tar -xzvpf <your-path-to-the-distribution>/binary/sets/xserver.tgz

mkdir proc
mkdir kern
mkdir cf
ln -s /cf/netbsd

vi etc/resolv.conf  | search <domain>
                    | nameserver <ip>
                    | nameserver <ip>

vi etc/rc.conf      | configured=YES
                    | hostname="<name>"
                    | defaultroute="<ip>"
mkdir kern
mkdir cf
ln -s /cf/netbsd

vi etc/resolv.conf  | search <domain>
                    | nameserver <ip>
                    | nameserver <ip>

vi etc/rc.conf      | configured=YES
                    | hostname="name"
                    | defaultroute="<ip>"
                    | no_swap=YES
                    | inetd=NO
                    | cron=NO
                    | wscons=YES
                    | critical_filesystems_local="/cf $critical_filesystems_local"

vi etc/fstab        | /dev/wd0a       /       ffs     rw,noatime,nodevmtime   1 1
                    | #/dev/wd0b      none    swap    sw                      0 0
                    | /dev/wd0e       /cf     msdos   -l,rw                   0 0
                    | kernfs          /kern   kernfs  rw                      0 0
                    | procfs          /proc   procfs  rw                      0 0

vi etc/hosts        | <ip>   <hostname.domain> <hostname>

vi etc/ttys         | console on secure

vi etc/ifconfig.wi0 | up
		    | <ip> netmask 0xffffff00

cd /mnt/dev
umount /mnt

It should work from any UNIX like OS. Possibly you have to adjust
the device name the cf is assigned.

The files you should edit, which I assumed you used vi for :), have
the data you want in them after the vertical bar. Some of them
exists, some doesn't. Just make sure they do exist and contain the
data when you are done. Everything inside < > are variables.
Substitute to whatever is your values, e.g. domain, ip.

The above description is the root fs only. The cf must be prepared
with disklabel and have a small msdos partition where you want to
have hpcboot and your kernel. That partition is assumed to be
mounted as /cf in my instructions. The rest of the cf is a single
large netbsd partition. I don't know any other way of doing this,
then using a NetBSD system. Maybe you can use the install kernel
with miniroot to prepare your cf from the hp620lx if you cannot
get access to a NetBSD system. The exact procedure, with a NetBSD
laptop, is described in the article.

Good luck, and don't hesitate to ask if something is unclear.

Christer O. Andersson