Here is some information on setting up FreeBSD to run on the Advantech PCM-8520 embedded PC.
I am using a 128 MB CompactFlash card as nonvolatile memory. On this, all software and the operating system is installed.
This CF card is available through the standard IDE disk driver, and detected as ad0. fdisk and disklabel setup are done as follows. As you can see, there is only one partition on the disk - we want to have everything mounted read-only anyways to be able to easily switch off the system, so nothing like syslog will fill up a filesystem.
The (small) swap partition shall not be needed in production use, the kernel will be compiled without any swapping support - but for installation purposes, I have first included a swap partition here, and did not remove it afterwards. In theory, you should be able to live without one, we do not want the system to swap anyways.
******* Working on device /dev/ad0 ******* parameters extracted from in-core disklabel are: cylinders=980 heads=8 sectors/track=32 (256 blks/cyl) parameters to be used for BIOS calculations are: cylinders=980 heads=8 sectors/track=32 (256 blks/cyl) Media sector size is 512 Warning: BIOS sector numbering starts with sector 1 Information from DOS bootblock is: The data for partition 1 is: sysid 165,(FreeBSD/NetBSD/386BSD) start 32, size 250848 (122 Meg), flag 80 (active) beg: cyl 0/ head 1/ sector 1; end: cyl 979/ head 7/ sector 32 The data for partition 2 is: <UNUSED> The data for partition 3 is: <UNUSED> The data for partition 4 is: <UNUSED> </PRE>
# /dev/ad0c: type: ESDI disk: ad2s1 label: flags: bytes/sector: 512 sectors/track: 32 tracks/cylinder: 8 sectors/cylinder: 256 cylinders: 979 sectors/unit: 250848 rpm: 3600 interleave: 1 trackskew: 0 cylinderskew: 0 headswitch: 0 # milliseconds track-to-track seek: 0 # milliseconds drivedata: 0 8 partitions: # size offset fstype [fsize bsize bps/cpg] a: 245760 0 4.2BSD 2048 16384 95 # (Cyl. 0 - 959) b: 5088 245760 swap # (Cyl. 960 - 979*) c: 250848 0 unused 0 0 # (Cyl. 0 - 979*)