[Soekris] 4511 using FreeBSD boot from CF

Andrew tacoboy24 at dragoweb.com
Thu Sep 9 12:17:18 UTC 2004

I  have been using a 4511 with SUSE linux and a 256MB CF without any 

I wanted to learn FreeBSD so I decided to put FreeBSD 5.1 on a 128MB CF 
and run it on the 4511. Using http://neon1.net/misc/minibsd.html#tl as 
a guide, I composed my own configuration file, built the kernel. The 
using fdisk and disklabel, I created a slice and partitions on the CF. 
Then I created the file system and mounted it. p.s. I just copied  the 
files to the CF. I didn't go through all the steps of creating a memory 
device MD per the guide I was using.

For convenience I composed a folder called minibsd to hold all the 
files/devices I wanted to be put on the CF.

As best I can tell, FreeBSD boots from the CF and the file system is 
mounted. Devices such as ethernet, pcmcia devices, and hard drive all 
appear to be detected and configured.

However, eventually an error about /bin/sh occurs. I am puzzled as to 
the cause. I ran ldd on /bin/sh and ldd reports that /bin/sh is 
statically linked (not dynamic).  Thinking the /bin/sh image was bad, I 
mounted the CF on the host system, and ran /bin/sh. It ran without 

I verified that /bin/sh is really at /bin/sh. Also during the creation 
of the CF boot image, the device slice is da0s1a. At boot time it is 

I have enclosed the log output of the 4511 during the boot phase up the 
point of the error. I have also enclosed the geometry printout from 
disklabel with the -A option.

I am a newbie to FreeBSD so it is very possible I did something very 
dumb. Hopefully someone pick up what it is.


============ 4511 boot log===================
  Copyright (c) 1992-2003 The FreeBSD Project.A0010000 00000000 11
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
0:19:0 1The Regents of the University of California. All rights 
FreeBSD 5.1-RELEASE #3: Fri Sep  3 11:21:32 EDT 2004
     root at freebsd51:/usr/obj/usr/src/sys/MINIBSDr entering Monitor.
Preloaded elf kernel "/boot/kernel/kernel" at 0xc039d000.
Timecounter "i8254"  frequency 1189160 Hz
CPU: AMD Enhanced Am486DX4/Am5x86 Write-Back (486-class CPU)
   Origin = "AuthenticAMD"  Id = 0x494  Stepping = 4
real memory  = 33554432 (32 MB)
avail memory = 28880896 (27 MB)
pcibios: BIOS version 2.00
*** WARNING: missing CPU_ELAN -- timekeeping may be wrong
pcib0: <AMD Elan SC520 host to PCI bridge> at pcibus 0 on motherboard
pci0: <PCI bus> on pcib0
cbb0: <TI1410 PCI-CardBus Bridge> mem 0xa0000000-0xa0000fff irq 10 at 
device 9.0
cardbus0: <CardBus bus> on cbb0
pccard0: <16-bit PCCard bus> on cbb0
pci0: <network, ethernet> at device 16.0 (no driver attached)
sis0: <NatSemi DP83815 10/100BaseTX> port 0xe100-0xe1ff mem 
sis0: Ethernet address: 00:00:24:c1:1b:bc
miibus0: <MII bus> on sis0
ukphy0: <Generic IEEE 802.3u media interface> on miibus0
ukphy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
sis1: <NatSemi DP83815 10/100BaseTX> port 0xe200-0xe2ff mem 
sis1: Ethernet address: 00:00:24:c1:1b:bd
miibus1: <MII bus> on sis1
ukphy1: <Generic IEEE 802.3u media interface> on miibus1
ukphy1:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
isa0: <ISA bus> on motherboard
orm0: <Option ROM> at iomem 0xc8000-0xd1fff on isa0
pmtimer0 on isa0
ata0 at port 0x3f6,0x1f0-0x1f7 irq 14 on isa0
ata1 at port 0x376,0x170-0x177 irq 15 on isa0
atkbdc0: <Keyboard controller (i8042)> at port 0x64,0x60 on isa0
sio0 at port 0x3f8-0x3ff irq 4 flags 0x10 on isa0
sio0: type 16550A, console
sio1 at port 0x2f8-0x2ff irq 3 on isa0
sio1: type 16550A
Timecounters tick every 10.000 msec
pccard0: Allocation failed for cfe 0
ata2: <KINGSTON DP-PCM2/5GB> at port 0x100-0x10f irq 10 function 0 
config 1 on 0
ad0: 122MB <TRANSCEND 128M> [978/8/32] at ata0-master PIO2
ad4: 4794MB <KINGSTON DP-PCM2/5GB> [10390/15/63] at ata2-master PIO2
Mounting root from ufs:/dev/ad0s1a
WARNING: /mnt was not properly dismounted
pid 34 (sh), uid 0: exited on signal 8   <---------- This is the error
JEnter full pathname of shell or RETURN for /bin/sh:

============== CF geometry ====================

# /dev/da0s1a:
type: unknown
disk: amnesiac
bytes/sector: 512
sectors/track: 32
tracks/cylinder: 64
sectors/cylinder: 2048
cylinders: 121
sectors/unit: 249824
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:   249824       32    4.2BSD     2048 16384 15616
   c:   249824       32    unused        0     0         # "raw" part, 
don't edit

More information about the Soekris-tech mailing list