FBB under Linux :

b28 is only a fix for netrom interface.

If you already run a previous linux version, only replace the 
files in the bin directory.

otherwise :

First go in super-user (root) mode.

Put the compressed tar archive in /tmp

Create the base directory (ex : /usr/local/fbb)

mkdir /usr/local/fbb
cd /usr/local/fbb
tar xvzf /tmp/x700b25.tgz

To install the software, run ./install.sh

To run the software, go to base directory and run "./xfbb.sh" in a xterm.

daemon version may be run with "./xfbb.sh -d &"

The system files should be compatible with WinFBB 7.0 files, so it is a
good idea to put the base directory in a DOS filesystem shared with WinFBB,
to be able to change from Windows to Linux, and back. In this case, you have
to run MODLABEL.EXE under DOS to create a YAPPLBL.DAT file needed by 7.00b
version.

If there is no reason to share the files, then any filesystem should work.

Edit the file /usr/local/fbb/init.srv and change any unwanted parameter.

By default, the PORT.SYS is configured for one TNC (WA8DED hostmode) on COM1
(/dev/cua0)

The declaration of ports in PORT.SYS is a little bit different :

Two options are available :

- Using external TNC on a RS232 with WA8DED hostmode :

	PORT.SYS : Interface is 9, hostmode is D
	Address is the device name (/dev/cua0). Be sure you have the rights 
		to acces to the device (rw-rw-rw-).

- Using kernel AF_AX25 socket :

	PORT.SYS : Interface is 9, hostmode is X
	Address is not used. 
	MultCh is the port name (ax0)



Example of PORT.SYS using the AF_25 socket of Linux kernel :

# FBB7.00
#
#
#Ports TNCs
 1     4
#
# Interface 6 = Windows
# Interface 7 = TCPIP
# Interface 8 = TFWin.dll
# Interface 9 = LINUX
#
# LINUX :  Address is logic name of the device if used (/dev/cua0)
#
#Com Interface Adress (Hex) Baud
 1   9         ****         9600
#
# if LINUX MultCh field is :
#   AX25 socket         : logic name of the port in axports
# Maxframe: The maximum nb of frames the TNC will send at a time.
# NbFwd   : Number of channels for OUTGOING forward at same time.
# MxBloc  : Size of forward-block in kb.
#
# M/P-Fwd : Minute of the hour for start of forward, and period
#           (how many minutes between each forward-start).
# Mode    : One of these:
#           B : BBS-mode.
#           G : "Guest"-mode.
#           U : Normal-mode.
# Type host-mode, one of these:
#           D : WA8DED
#           K : KAM hostmode.
#           M : Telephone-modem.
#           P : PK-232
#           Q : BPQ v 4.x
#           X : AF_AX25 Kernel Linux
# Addition: One of these letters can be used too:
#           L : Send unproto beacon after each arriving mail.
#           Y : Yapp allowed on this QRG.
#           W : Gateway allowed TO this QRG.
#           R : Read-Only acces.
# Freq.   : Text to describe this port (max 9 characters, no space)
# Same number of lines as number of TNCs.
#
#TNC NbCh Com MultCh Pacln Maxfr NbFwd MxBloc M/P-Fwd Mode  Freq
 0   0    0   0      0     0     0     0      00/01   ----  File-fwd.
 1   8    1   ax0    250   3     1     10     30/60   XUWYL VHF port
 2   2    1   ax1    250   2     1     10     00/60   XUWY  UHF port
 3   6    1   ax2    250   3     4     10     30/60   XUWY  Network
 4   1    1   ax3    80    1     1     10     30/60   XUWY  HF
#
# Special callsigns and modes for some channels.
#
#TNC Nbs Callsign-SSID Mode
#1    2   XXXXX-1       B
#
# End of file.
#

Associated axports file :

ax0 PORT-0 1200 128 2 Port 1
ax1 PORT-1 1200 128 2 Port 2
ax2 PORT-2 1200 128 2 Port 3
ax3 PORT-3 1200 128 2 Port 4

axattach commands for PA0HZP (or ATEPRA) SCC4 card :

#! /bin/sh
/sbin/sccinit
/usr/sbin/axattach /dev/scc0 ax0
/usr/sbin/axattach /dev/scc1 ax1
/usr/sbin/axattach /dev/scc2 ax2
/usr/sbin/axattach /dev/scc3 ax3


# z8530drv.rc - initialization for the Z8530 SCC driver v 2.0
#
# Lines must not be longer than 255 bytes!
#
#
# Hardware section
#
# SCC chip 1
#
chip	1
data_a 0x153
data_b 0x151
ctrl_a 0x152
ctrl_b 0x150
irq 7
pclock 4915200
board PA0HZP
vector 0x168
escc no
#
# (*) option, default value is 0
# (+) option, default is 4915200
#
# SCC chip 2
#
chip	2
data_a 0x157
data_b 0x155
ctrl_a 0x156
ctrl_b 0x154
irq 7
pclock 4915200
board PA0HZP
vector 0x168
escc no
#
# (#) all chips can share one interrupt, or you may use multiple INTs,
#     but there must be at least one IRQ defined in this system.
# ($) only one Vector Latch for all Chips is allowed.
#
#
# Software section
#
# The order of entries IS important!
#
# 	first     : DEVICE
# 	then      : MODEM section
# 	after that: Level 1 parameters
#
# Definition of /dev/scc0
#
device	/dev/scc0
#
# MODEM related stuff
#
speed	1200			# 1200 baud
clock	dpll			# clock source: use the dpll
mode	nrzi			# normal NRZI operation
#
# Level 1 parameters
#
txdelay 36			# You should know about these already!
persist 64
slot	8
tail	8
fulldup	0
wait    12
min	3
maxkey	7
idle	3
maxdef  120
group   0
txoff   off
softdcd off			# use software dcd
slip    off			# KISS not SLIP
#
#
# Definition of /dev/scc1
#
#
device	/dev/scc1
#
speed	1200
clock	dpll
mode	nrzi
#
txdelay 36
persist 64
slot	8
tail	8
fulldup	0
wait    12
min	3
maxkey	7
idle	3
maxdef  120
group   0
txoff   off
softdcd off
slip    off
#
#
# Definiton of /dev/scc2
#
#
device	/dev/scc2
#
speed	1200
clock	dpll
mode	nrzi
#
txdelay 36
persist 64
slot	8
tail	8
fulldup	0
wait    12
min	3
maxkey	7
idle	3
maxdef  120
group   0
txoff   off
softdcd off
slip    off
#
#
# Definition of /dev/scc3
#
#
device	/dev/scc3
speed	300
clock	dpll
mode	nrzi
#
txdelay 36
persist 64
slot	8
tail	8
fulldup	0
wait    12
min	3
maxkey	7
idle	3
maxdef  120
group   0
txoff   off
softdcd off
slip    off
#
# End of File
#



