Bumble.... Bumble....


THIS IS A WORK IN PROGRESS


Required elements:

Other versions may be used, but 4.3-STABLE of mid-july 2001 is what I built with. In addition, 4.3-STABLE after 4 July 2001 provides support for configuring certain features (SSID, WEP key, WEP mode, Auth mode, channel, stationname) of the wi (lucent/orinoco/avaya wavelan 802.11), and an (cisco/aironet) cards. This means that you don't need to include wicontrol or ancontrol or both in the image.

The specific version that I used is 4.3-STABLE of 2001-07-21. I have found that later versions suffer from code bloat that makes it very hard to compile a image small enough to work.




#
#Line starting with #PicoBSD contains PicoBSD build parameters
#marker        def_sz  init    MFS_inodes      floppy_inodes
#       1200
#PicoBSD       400     oinit   3072            32768
options MD_ROOT_SIZE=400

machine     i386
cpu     I486_CPU
ident       AIRPORT
maxusers    2

options     MATH_EMULATE        #Support for x87 emulation
options     INET            #InterNETworking
options     MFS         #Memory Filesystem
options     MD_ROOT         #MFS as root
options     COMPAT_43       #Compatible with BSD 4.3 [KEEP THIS!]
options     NO_SWAPPING

device  isa0
#device pci0

device      npx0    at nexus? port IO_NPX irq 13

device      sio0    at isa? port IO_COM1 flags 0x30 irq 4
options     CONSPEED=115200

device      card
device      pcic0   at isa? port 0x3e0 irq 0 iomem 0xc0000

device lnc0     at isa? port 0x300 irq 10 iomem 0xd0000
device wi
#device an

pseudo-device   loop
pseudo-device   ether
pseudo-device   md




MY_DEVS="std cuaa0 card0"
RELEASE_BUILD_FIXIT="true"
NOIPSEC="true"



#  Additional MFS entries required for custom sized picobsd builds
#  current picobsd code seems to require a 'fd' entry, even for MFS 
#  filesystems


md400:\
    :ty=mfs:se#512:nt#1:rm#360:\
    :ns#800:nc#1:\
    :pa#800:oa#0:ba#4096:fa#512:\
    :pc#800:oc#0:bc#4096:fc#512:


fd400:\
    :ty=mfs:se#512:nt#1:rm#360:\
    :ns#800:nc#1:\
    :pa#800:oa#0:ba#4096:fa#512:\
    :pc#800:oc#0:bc#4096:fc#512:





# $FreeBSD: src/release/picobsd/router/crunch.conf,v 1.1.2.2 2001/02/20 02:53:35 luigi Exp $
#
# NOTE: the string "/usr/src" will be automatically replaced with the
# correct value set in 'build' script - you should change it there

# Default build options
buildopts -DNOPAM -DRELEASE_CRUNCH -DNOSECURE -DNOCRYPT -DNONETGRAPH -DNOIPSEC

# other sources
srcdirs /usr/src/bin
srcdirs /usr/src/sbin/i386
srcdirs /usr/src/sbin
srcdirs /usr/src/usr.bin
srcdirs /usr/src/gnu/usr.bin
srcdirs /usr/src/usr.sbin
srcdirs /usr/src/libexec
# sources for ns & vm
srcdirs /usr/src/release/picobsd/tinyware
srcdirs /usr/src/sys/pccard
srcdirs /usr/src/usr.sbin/pccard

#progs hostname 
#progs cat 

progs oinit 
progs df sps ns vm msg
progs ifconfig 

libs -lipx 

#progs ls
#libs -lmytinfo 
#progs cp rm
#progs reboot
#progs mount
#progs umount
#progs kill
#progs natd
#progs kget

#progs less
#ln less more
#progs ping 
#progs traceroute 
#progs routed
#progs pccardc

progs sysctl route
progs pccardd 

#progs minigzip
#ln minigzip gzip
#libs -lz

ln sps ps
ln ns netstat
ln msg dmesg

#
# bpf
#libs -lpcap 
#
libs -lutil 
libs -lmp 
libs -lgmp 
libs -lm 
libs -lkvm
#
#libs -lgnuregex 
#libs -ledit 
#
#
#libs -lcrypt
#libs -lmd 
#
# natd
#libs -lalias
#
#libs -ltelnet




etc/disktab
etc/fstab
etc/gettytab
etc/group
etc/host.conf
etc/hosts
etc/inetd.conf
etc/login.conf
etc/master.passwd
etc/mfs.login.conf
etc/mfs.rc
etc/motd
etc/pccard_ether
etc/ppp
etc/protocols
etc/rc
etc/rc.conf
etc/rc.firewall
etc/rc.local
etc/rc.network
etc/rc.serial
etc/remote
etc/services
etc/shells
etc/sshd_config
etc/snmpd.conf
etc/termcap
etc/ttys
stand/update




io  0x240-0x360
irq 5 
memory  0xc4000  32k
card "Cisco Systems" "340 Series Wireless LAN Adapter"
    config  auto "an" ?
card "Lucent Technologies" "WaveLAN/IEEE"
    config  0x1 "wi" ?



#!/bin/sh
sysctl -w vm.defer_swapspace_pageouts=1 vm.disable_swapspace_pageouts=1
pccardd -z
ifconfig lo0 inet 127.0.0.1 netmask 0xffffff00
ifconfig lnc0 inet 192.168.1.2 netmask 255.255.255.0
ifconfig wi0 inet 192.168.2.1 netmask 255.255.255.0 ssid LINKNET stationname Bridge-1
sysctl -w net.inet.ip.forwarding=1 net.inet.ip.fastforwarding=1
route add default 192.168.1.1
route add 192.168.3.0/24 192.168.2.2
echo ""
echo ""
echo '+----------- Bridge-1 ------------'
echo '+ PicoBSD 4.3-20010721 (AIRPORT) +'
echo ""
echo ""



contact