tech-embed archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

tough problem with fla0a



Good morning list,
I have a problem. My situation is that I have a pci board straight from
manufacturing. So it's blank. It has an AMD cpu on it, flashmemory and
some ram.
It's a NIC.
I want it to run openbsd, so I built a minimal kernel with the /dev/fla
device compiled in the kernel. the whole thing, kernel, /usr, /sys,
/etc and so on is tared
to a file named openbsd.tar
I have built a disk image with the following:


# dd if=/dev/zero of=disk.image bs=512k count=28
28+0 records in
28+0 records out
14680064 bytes transferred in 0.021 secs (668217215 bytes/sec)
#
# vnconfig -v -c svnd0 disk.image
svnd0: 14680064 bytes on disk.image
#
# disklabel -w svnd0 flashroot
# newfs -O -m 0 -o space -i 5120 -c 30 /dev/rsvnd0a
/dev/rsvnd0a:   15360 sectors in 30 cylinders of 4 tracks, 128 sectors
        7.5MB in 1 cyl groups (30 c/g, 7.50MB/g, 1504 i/g)
super-block backups (for fsck -b #) at: 32,
#
# mount /dev/svnd0a /mnt
# tar xpvf openbsd.tar -C /mnt
# umount /mnt
# vnconfig -u svnd0

This is where I am stuck.

question 1: I have the following in my /etc/disktab. How do I configure
space for 16MB for example? I still don't get how disktab works.
flashroot:\
        :ty=ramdisk:se#512:nt#4:ns#128:nc#30:\
        :pa#15360:oa#0:ta=4.2BSD:ba#4096:fa#512:\
        :pb#0:ob#0:tb=swap:\
        :pc#15360:oc#0:

question2: Now that I have this image (disk.image), how do I flash it on
the flashmemory on the pci board?
Also how can I set the MAC address in the process?
Do you know of any special adapter, utility, tools, anything else to do
this?

Thank you,
Jerry



Home | Main Index | Thread Index | Old Index