[Soekris] CF card, OpenBSD, boot block writing

dirkx@covalent.net dirkx at covalent.net
Thu Jul 4 19:29:51 UTC 2002


Sofar I've used the Soekris devices with PXE/Bootloading. Which works fine
(FreeBSD is a breeze, OpenBSD a fiddle :-)

But now that I am getting closer to the final version, I'd like to get
things onto a flash card.

I found the head/cyl data on the vendors website:

	cylinders: 492 heads: 4 sectors/track: 32 (128 sectors/cylinder)

So I ran the following (after the trying the flashdish.sh script which
semed to calculate the partition size wrong.)

# mount /dev/wd0a /mnt
# /usr/mdec/installboot -v -s 32 -h 4 /mnt/boot /usr/mdec/biosboot
/dev/rwd1c
boot: /mnt/boot
proto: /usr/mdec/biosboot
device: /dev/rwd1c
/usr/mdec/biosboot: entry point 0
proto bootblock size 512
room for 12 filesystem blocks at 0x16f
Will load 7 blocks of size 8192 each.
Using disk geometry of 32 sectors and 4 heads.
 0: 15 @(1 1 18) (177-191)
 1: 32 @(1 2 1) (192-223)
 2: 32 @(1 3 1) (224-255)
 3: 17 @(2 0 1) (256-272)
 4: 13 @(1 0 20) (147-159)
 5:  3 @(1 1 1) (160-162)
/mnt/boot: 6 entries total
using MBR partition 3: type 166 (0xa6) offset 17 (0x11)
# fdisk wd1
fdisk: sysctl(machdep.bios.diskinfo): Device not configured
Disk: wd1       geometry: 1024/8/17 [63488 Sectors]
Offset: 0       Signature: 0xAA55
         Starting       Ending       LBA Info:
 #: id    C   H  S -    C   H  S [       start:      size   ]
------------------------------------------------------------------------
 0: 00    0   0  0 -    0   0  0 [           0:           0 ] unused
 1: 00    0   0  0 -    0   0  0 [           0:           0 ] unused
 2: 00    0   0  0 -    0   0  0 [           0:           0 ] unused
*3: A6    0   1  1 - 1023   7 17 [          17:      139247 ] OpenBSD
# umount /mnt

And then a reboot will give the traditional:

	Using Drive: 0 Partition: 3
	Invalid system disk
	Replace the disk, and then press any key

Any ideas what is wrong ?

Dw
-- 
Dirk-Willem van Gulik







More information about the Soekris-tech mailing list