| 1 |
<HTML> |
| 2 |
<HEAD> |
| 3 |
<TITLE>Linux help (Appendix 23)</TITLE> |
| 4 |
</HEAD> |
| 5 |
<BODY BACKGROUND="/back_fbb.jpg"> |
| 6 |
<P> |
| 7 |
<IMG WIDTH="32" HEIGHT="32" SRC="fbb.gif"> |
| 8 |
<H1 ALIGN=Center> |
| 9 |
<SMALL>Installation-help for Linux.</SMALL> |
| 10 |
</H1> |
| 11 |
<P> |
| 12 |
<SMALL></SMALL> |
| 13 |
<P> |
| 14 |
<B>The contents of this file is:</B> |
| 15 |
<PRE> |
| 16 |
<A HREF="#Why">Why use FBB with Linux ?</A> |
| 17 |
<A HREF="#Info">Info on AF_AX25, AF_NETROM and AF_ROSE.</A> |
| 18 |
<A HREF="#Install">Install AF_AX25, AF_NETROM and AF_ROSE.</A> |
| 19 |
<A HREF="#Config">Config AF_AX25, AF_NETROM and AF_ROSE for KISS TNC and SCC card.</A> |
| 20 |
<A HREF="fmttelne.htm">Telnet installation (Appendix 24).</A> |
| 21 |
|
| 22 |
|
| 23 |
<A NAME="Why"><!-- --></A><IMG SRC="/red.gif" WIDTH="14" HEIGHT="14"><B>Why use FBB with Linux ?</B> |
| 24 |
|
| 25 |
LINUX is a true multitasking system where many applications may run |
| 26 |
concurently. When Linux (and other UNIX systems) has finished booting |
| 27 |
it is possible to run one ore more applications running concurently (NODE, |
| 28 |
BBS, CLUSTER, TCPIP, etc...) on the same CPU and above all very fast and |
| 29 |
secure. |
| 30 |
|
| 31 |
Another good thing for linux is that the AX25 is included in the kernel, |
| 32 |
and then you need no TNC, no BPQ or other. You only need hardware. (think |
| 33 |
of a DOS including Netrom, Rose, AX25, TCPIP and other software....) |
| 34 |
|
| 35 |
|
| 36 |
<A NAME="Info"><!-- --></A><IMG SRC="/blue.gif" WIDTH="14" HEIGHT="14"><B>Info on AF_AX25, AF_NETROM ans AF_ROSE.</B> |
| 37 |
|
| 38 |
Standard kernel AF_AX25, AF_NETROM and AF_ROSE sockets |
| 39 |
AX.25, NET/ROM and ROSE protocol are built into the Linux kernel. |
| 40 |
|
| 41 |
I recommend to use these interfaces, because it will give you |
| 42 |
more flexibility to build a system with many futures.. |
| 43 |
|
| 44 |
This choice may be little difficult to set up, |
| 45 |
because the functions is depended of lots of things.. eg: |
| 46 |
- Linux kernel version |
| 47 |
- ax25-utils version |
| 48 |
- z8530drv version |
| 49 |
- net-tools version |
| 50 |
... and more |
| 51 |
|
| 52 |
If you desire to use this/these interfaces, |
| 53 |
i strongly recommend to read at least AX25-HOWTO! |
| 54 |
|
| 55 |
The AX25-HOWTO located at: |
| 56 |
http://sunsite.unc.edu/mdw/HOWTO/AX25-HOWTO.html |
| 57 |
|
| 58 |
More HOWTO´s located at: |
| 59 |
http://sunsite.unc.edu/mdw/HOWTO/HOWTO-INDEX-3.html |
| 60 |
|
| 61 |
The Linux Documentation Project Homepage is located at |
| 62 |
http://sunsite.unc.edu/mdw/linux.html |
| 63 |
|
| 64 |
|
| 65 |
<A NAME="Install"><!-- --></A><IMG SRC="/cyan.gif" WIDTH="14" HEIGHT="14"><B>Install AF_AX25, AF_NETROM and AF_ROSE.</B> |
| 66 |
|
| 67 |
How to set up Linux kernel AF_AX25, AF_NETROM, AF_ROSE socket. |
| 68 |
|
| 69 |
These examples are for Linux kernel 2.0.27 patched with ax25-module-7. |
| 70 |
|
| 71 |
First, get these files (or newer files). |
| 72 |
Linux kernel 2.0.27 |
| 73 |
available @ ftp://ftp.funet.fi/pub/Linux/PEOPLE/Linus/ |
| 74 |
|
| 75 |
ax25-utils-2.0.12c.tar.gz |
| 76 |
ax25-module-7.tar.gz |
| 77 |
ax25-utils-module-7.tar.gz |
| 78 |
available @ http://www.cs.nott.ac.uk/~jsn/ |
| 79 |
|
| 80 |
Unpack kernel 2.0.27 in ´/usr/src´ with ´tar zxvf linux-2.0.27.tar.gz´ |
| 81 |
this will unpack kernel 2.0.27 to a directory called ´linux´ , |
| 82 |
beware if you already have a directory named ´linux´ in ´/usr/src´. |
| 83 |
|
| 84 |
Tip: |
| 85 |
I rename my kernel source directory to kernel version with ´mv linux linux-2.0.27´ |
| 86 |
then i do a symbolic link to this directory with ´ln -s linux-2.0.27 linux´ |
| 87 |
|
| 88 |
Before i install a new kernel, i remove the symbolic link (eg: rm linux), |
| 89 |
this allows me to have more kernel sources installed at same time.. :- |
| 90 |
|
| 91 |
Okay, now it´s time to compile the ´ax25-utils-2.0.12c.tar.gz´ , |
| 92 |
unpack this file in ´/usr/src´ with ´tar zxvf ax25-utils-2.0.12c.tar.gz´. |
| 93 |
|
| 94 |
I can´t compile ´ax25-utils-2.0.12c.tar.gz´ after patching the kernel |
| 95 |
with ´ax25-module-7.tar.gz´... :-/ |
| 96 |
|
| 97 |
Read the ´INSTALL´ file how to compile, and install this package. |
| 98 |
|
| 99 |
Now it´s time to patch the kernel with ´ax25-module-7.tar.gz´, |
| 100 |
unpack this file in ´/usr/src´ with ´tar zxvf ax25-module-7.tar.gz´, |
| 101 |
then type ´cat ax25-module-7/ax25-2.0.27-2.1.19.diff | patch -p0´ |
| 102 |
|
| 103 |
Okay, do ´cd linux´ now, read the file README now, to know how to set up the kernel! |
| 104 |
|
| 105 |
Okay, now it´s time to run ´make config´ , be sure that you enable |
| 106 |
- Amateur Radio AX.25 Level 2 (CONFIG_AX25) |
| 107 |
- Amateur Radio NET/ROM (CONFIG_NETROM) |
| 108 |
|
| 109 |
If you want to use ROSE, enable this.. |
| 110 |
- Amateur Radio X.25 PLP (Rose) (CONFIG_ROSE) |
| 111 |
|
| 112 |
You can make these as loadable modules, or to be compiled into the kernel. |
| 113 |
|
| 114 |
After you finished with ´make config´ , then type ´make dep; make clean; make zImage´ |
| 115 |
to compile the new kernel with AX.25 and NET/ROM support (and ROSE if defined). |
| 116 |
|
| 117 |
After compilation, install the new kernel, as in the /usr/src/linux/README file. |
| 118 |
|
| 119 |
Okay, you should have rebooted and started up the new kernel now.. |
| 120 |
|
| 121 |
Now it´s time to compile ´ax25-utils-module-7.tar.gz´ , |
| 122 |
unpack this file in ´/usr/src´ with ´tar zxvf ax25-utils-module-7.tar.gz´, |
| 123 |
do ´cd ax25-utils.module-7´ and read the INSTALL file how to compile and install! |
| 124 |
|
| 125 |
If all steps has gone without problem, you are now ready to set up your Linux system |
| 126 |
to work with kernel AX.25, NET/ROM (and ROSE if defined), CONGRATULATIONS! |
| 127 |
|
| 128 |
Now you should go to ´/usr/src/ax25-utils-2.0.12c´ and read the README file, |
| 129 |
to find out what files you should need to change for suite you. |
| 130 |
|
| 131 |
All configuration files are in ´/etc/ax25´. |
| 132 |
|
| 133 |
|
| 134 |
Tip: |
| 135 |
Read the AX25-HOWTO @ http://sunsite.unc.edu/mdw/HOWTO/AX25-HOWTO.html |
| 136 |
|
| 137 |
|
| 138 |
<A NAME="Config"><!-- --></A><IMG SRC="/yellow.gif" WIDTH="14" HEIGHT="14"><B>Config AF_AX25, AF_NETROM and AF_ROSE for KISS TNC and SCC card.</B> |
| 139 |
|
| 140 |
How to setup LinFBB to use kernel AF_AX25, AF_NETROM and AF_ROSE sockets. |
| 141 |
|
| 142 |
Here is a example with LinFBB and one KISS TNC at COM1, 8 channels. |
| 143 |
|
| 144 |
# /etc/ax25/axports |
| 145 |
# |
| 146 |
# The format of this file is: |
| 147 |
# |
| 148 |
#name callsign speed paclen window description |
| 149 |
# |
| 150 |
ax0 SM6TKY-3 9600 256 7 Tx: 437.975 Rx: 434.000 MHz 9600bps |
| 151 |
|
| 152 |
|
| 153 |
---- |
| 154 |
|
| 155 |
|
| 156 |
# /usr/local/fbb/system/port.sys |
| 157 |
# |
| 158 |
# Comments is deleted to save space |
| 159 |
# |
| 160 |
#Ports TNCs |
| 161 |
1 1 |
| 162 |
# |
| 163 |
# |
| 164 |
#Com Interface Adress (device) Baud |
| 165 |
1 9 **** 9600 |
| 166 |
# |
| 167 |
# Same number of lines as TNCs: |
| 168 |
# |
| 169 |
#TNC NbCh Com MultCh Pacln Maxfr NbFwd MxBloc M/P-Fwd Mode Freq |
| 170 |
1 8 1 ax0 250 7 2 10 30/01 XUWYL ax0 |
| 171 |
# |
| 172 |
# Special callsigns and modes for some channels. |
| 173 |
# |
| 174 |
#TNC Nbs Callsign-SSID Mode |
| 175 |
#1 2 SK6BA-0 B |
| 176 |
# |
| 177 |
# End of file. |
| 178 |
# |
| 179 |
|
| 180 |
---- |
| 181 |
|
| 182 |
# /etc/rc.d/rc.ax25 |
| 183 |
# |
| 184 |
# This file is called from /etc/rc.d/rc.local |
| 185 |
# |
| 186 |
# attach a TNC2 with KISS |
| 187 |
# |
| 188 |
# (/dev/cua0 = COM1, /dev/cua1 = COM2, /dev/cua2 = COM3, /dev/cua3 = COM4) |
| 189 |
# |
| 190 |
/usr/sbin/kissattach -i 44.140.208.129 /dev/cua0 ax0 |
| 191 |
# |
| 192 |
# set up default IP routings |
| 193 |
# This is not needed if you don´t want to run TCP/IP on Radio |
| 194 |
# |
| 195 |
/sbin/ifconfig ax0 44.140.208.129 netmask 255.255.255.0 broadcast 44.140.208.255 arp mtu 256 |
| 196 |
/sbin/route add -host sk6ba.ampr.org ax0 |
| 197 |
/sbin/route add -net 44.140.208.0 gw sk6ba.ampr.org netmask 255.255.255.0 ax0 |
| 198 |
/sbin/route add default gw sk6ba.ampr.org ax0 |
| 199 |
# |
| 200 |
# Send ID every 10 min |
| 201 |
# |
| 202 |
/usr/sbin/beacon -t 10 ax0 "This Packet Radio Node is Powered with Linux Unix" & |
| 203 |
# |
| 204 |
# If you want to run LinFBB in X-Windows, |
| 205 |
# comment out this below... |
| 206 |
# |
| 207 |
# Start up LinFBB deamon |
| 208 |
# |
| 209 |
/home/xfbb/xfbb.sh -d & |
| 210 |
# |
| 211 |
|
| 212 |
------------------------------------- |
| 213 |
|
| 214 |
Here is one example with one KISS TNC2 on COM2, NET/ROM interface, 16 channels. |
| 215 |
|
| 216 |
|
| 217 |
# /etc/ax25/axports |
| 218 |
# |
| 219 |
# The format of this file is: |
| 220 |
# |
| 221 |
#name callsign speed paclen window description |
| 222 |
# |
| 223 |
ax0 SM6TKY-3 9600 256 7 Tx: 437.975 Rx: 434.000 MHz 9600bps |
| 224 |
|
| 225 |
---- |
| 226 |
|
| 227 |
# /etc/ax25/nrports |
| 228 |
# |
| 229 |
nr0 SM6TKY-13 #IP 236 Radio 9600bps |
| 230 |
nr1 SM6TKY-0 XFBB 236 NET/ROM<->XFBB |
| 231 |
|
| 232 |
---- |
| 233 |
|
| 234 |
# /etc/ax25/nrbroadcast |
| 235 |
ax0 1 192 10 1 |
| 236 |
|
| 237 |
---- |
| 238 |
|
| 239 |
# /usr/local/fbb/port.sys |
| 240 |
# |
| 241 |
# Comments is deleted to save space |
| 242 |
# |
| 243 |
#Ports TNCs |
| 244 |
1 2 |
| 245 |
# |
| 246 |
# |
| 247 |
#Com Interface Adress (device) Baud |
| 248 |
1 9 **** 9600 |
| 249 |
# |
| 250 |
# Same number of lines as TNCs: |
| 251 |
# |
| 252 |
#TNC NbCh Com MultCh Pacln Maxfr NbFwd MxBloc M/P-Fwd Mode Freq |
| 253 |
1 8 1 ax0 250 7 2 10 30/01 XUWYL ax0 |
| 254 |
2 8 1 nr1 236 7 2 10 30/01 XUY netrom |
| 255 |
# |
| 256 |
# Special callsigns and modes for some channels. |
| 257 |
# |
| 258 |
#TNC Nbs Callsign-SSID Mode |
| 259 |
#1 2 SK6BA-0 B |
| 260 |
# |
| 261 |
# End of file. |
| 262 |
# |
| 263 |
|
| 264 |
---- |
| 265 |
|
| 266 |
# /etc/rc.d/rc.ax25 |
| 267 |
# |
| 268 |
# This file is called from /etc/rc.d/rc.local |
| 269 |
# |
| 270 |
# attach a TNC2 with KISS |
| 271 |
# |
| 272 |
# (/dev/cua0 = COM1, /dev/cua1 = COM2, /dev/cua2 = COM3, /dev/cua3 = COM4) |
| 273 |
# |
| 274 |
/usr/sbin/kissattach -i 44.140.208.129 /dev/cua1 ax0 |
| 275 |
# |
| 276 |
# attach NET/ROM interface |
| 277 |
/usr/sbin/nrattach -i 44.140.208.129 nr0 |
| 278 |
# |
| 279 |
# This is for LinFBB NET/ROM |
| 280 |
/usr/sbin/nrattach -i 44.140.208.129 nr1 |
| 281 |
# |
| 282 |
# set up default IP routings |
| 283 |
# This is not needed if you don´t want to run TCP/IP on Radio |
| 284 |
# |
| 285 |
/sbin/ifconfig ax0 44.140.208.129 netmask 255.255.255.0 broadcast 44.140.208.255 arp mtu 256 |
| 286 |
/sbin/route add -host sk6ba.ampr.org ax0 |
| 287 |
/sbin/route add -net 44.140.208.0 gw sk6ba.ampr.org netmask 255.255.255.0 ax0 |
| 288 |
/sbin/route add default gw sk6ba.ampr.org ax0 |
| 289 |
# |
| 290 |
# Start up NET/ROM deamon |
| 291 |
/usr/sbin/netromd |
| 292 |
/usr/sbin/nrparms -parms -qual 192 |
| 293 |
# |
| 294 |
# Send ID every 10 min |
| 295 |
/usr/sbin/beacon -t 10 ax0 "This Packet Radio Node is Powered with Linux Unix" & |
| 296 |
# |
| 297 |
# If you want to run LinFBB in X-Windows, |
| 298 |
# comment out this below... |
| 299 |
# |
| 300 |
# Start up LinFBB deamon |
| 301 |
/home/xfbb/xfbb.sh -d & |
| 302 |
# |
| 303 |
|
| 304 |
------------------------------------- |
| 305 |
|
| 306 |
Here is a example with 2 ports SCC (PA0HZP compatibelt) card installed, 16 channels, |
| 307 |
and SCC driver is a loadable module. |
| 308 |
|
| 309 |
# /etc/z8530drv.conf |
| 310 |
# |
| 311 |
# Lines must not be longer than 255 bytes! |
| 312 |
# |
| 313 |
# |
| 314 |
# Hardware section |
| 315 |
# |
| 316 |
# SCC chip 1 |
| 317 |
# |
| 318 |
chip 1 |
| 319 |
data_a 0x153 # data port A |
| 320 |
ctrl_a 0x152 # control port A |
| 321 |
data_b 0x151 # data port B |
| 322 |
ctrl_b 0x150 # control port B |
| 323 |
irq 5 # IRQ No. 5 (#) |
| 324 |
pclock 4915200 # clock (+) |
| 325 |
# board PA0HZP |
| 326 |
# escc yes |
| 327 |
# escc no # enhanced SCC chip? (8580/85180/85280) (*) |
| 328 |
# vector 0 # latch for interrupt vector ($) |
| 329 |
# special no # address of special function register (*) |
| 330 |
# option 0 # option to set via sfr (*) |
| 331 |
# |
| 332 |
# (*) option, default value is 0 |
| 333 |
# (+) option, default is 4915200 |
| 334 |
# |
| 335 |
# SCC chip 2 |
| 336 |
# |
| 337 |
# chip 2 |
| 338 |
# data_a 0x157 |
| 339 |
# ctrl_a 0x156 |
| 340 |
# data_b 0x155 |
| 341 |
# ctrl_b 0x154 |
| 342 |
# irq 5 # IRQ No. 5 (#) |
| 343 |
# pclock 4915200 # clock (+) |
| 344 |
# board PA0HZP |
| 345 |
# escc no |
| 346 |
# vector 0 |
| 347 |
# special no |
| 348 |
# option 0 |
| 349 |
# |
| 350 |
# (#) all chips can share one interrupt, or you may use multiple INTs, |
| 351 |
# but there must be at least one IRQ defined in this system. |
| 352 |
# ($) only one Vector Latch for all Chips is allowed. |
| 353 |
# |
| 354 |
# |
| 355 |
# Software section |
| 356 |
# |
| 357 |
# The order of entries IS important! |
| 358 |
# |
| 359 |
# first : DEVICE |
| 360 |
# then : MODEM section |
| 361 |
# after that: Level 1 parameters |
| 362 |
# |
| 363 |
# Definition of /dev/scc0 |
| 364 |
# |
| 365 |
device /dev/scc0 |
| 366 |
speed 9600 |
| 367 |
clock divider |
| 368 |
mode nrzi |
| 369 |
# rxbuffers 8 |
| 370 |
# txbuffers 16 |
| 371 |
# bufsize 1152 |
| 372 |
# |
| 373 |
txdelay 30 |
| 374 |
persist 250 |
| 375 |
slot 8 |
| 376 |
tail 8 |
| 377 |
fulldup 0 |
| 378 |
wait 12 |
| 379 |
min 3 |
| 380 |
maxkey 7 |
| 381 |
idle 3 |
| 382 |
maxdef 120 |
| 383 |
group 0 |
| 384 |
txoff off |
| 385 |
softdcd off # use software dcd |
| 386 |
# |
| 387 |
# Definition of /dev/scc1 |
| 388 |
# |
| 389 |
device /dev/scc1 |
| 390 |
speed 1200 |
| 391 |
clock divider |
| 392 |
mode nrzi |
| 393 |
# rxbuffers 8 |
| 394 |
# txbuffers 16 |
| 395 |
# bufsize 1152 |
| 396 |
# |
| 397 |
txdelay 30 |
| 398 |
persist 250 |
| 399 |
slot 8 |
| 400 |
tail 8 |
| 401 |
fulldup 0 |
| 402 |
wait 12 |
| 403 |
min 3 |
| 404 |
maxkey 7 |
| 405 |
idle 3 |
| 406 |
maxdef 120 |
| 407 |
group 0 |
| 408 |
txoff off |
| 409 |
softdcd off |
| 410 |
|
| 411 |
---- |
| 412 |
|
| 413 |
# /etc/ax25/axports |
| 414 |
# |
| 415 |
# The format of this file is: |
| 416 |
# |
| 417 |
#name callsign speed paclen window description |
| 418 |
# |
| 419 |
scc0 SM6TKY-3 9600 256 7 Tx: 437.975 Rx: 434.000 MHz 9600bps |
| 420 |
scc1 SM6TKY-1 1200 256 7 MARKnet Lan 144.800 MHz 1200bps |
| 421 |
|
| 422 |
---- |
| 423 |
|
| 424 |
# /usr/local/fbb/port.sys |
| 425 |
# |
| 426 |
# Comments is deleted to save space |
| 427 |
# |
| 428 |
#Ports TNCs |
| 429 |
1 2 |
| 430 |
# |
| 431 |
# |
| 432 |
#Com Interface Adress (device) Baud |
| 433 |
1 9 **** 9600 |
| 434 |
# |
| 435 |
# Same number of lines as TNCs: |
| 436 |
# |
| 437 |
#TNC NbCh Com MultCh Pacln Maxfr NbFwd MxBloc M/P-Fwd Mode Freq |
| 438 |
1 8 1 scc0 250 7 2 10 30/01 XUWYL scc0 |
| 439 |
2 8 1 scc1 250 7 2 10 30/01 XUWYL scc1 |
| 440 |
# |
| 441 |
# Special callsigns and modes for some channels. |
| 442 |
# |
| 443 |
#TNC Nbs Callsign-SSID Mode |
| 444 |
#1 2 SK6BA-0 B |
| 445 |
# |
| 446 |
# End of file. |
| 447 |
# |
| 448 |
|
| 449 |
----- |
| 450 |
|
| 451 |
# /etc/rc.d/rc.ax25 |
| 452 |
# |
| 453 |
# This file is called from /etc/rc.d/rc.local |
| 454 |
# |
| 455 |
# Load the SCC module and init |
| 456 |
/sbin/insmod scc |
| 457 |
/sbin/sccinit |
| 458 |
# |
| 459 |
# attach the SCC card |
| 460 |
# |
| 461 |
/sbin/ifconfig scc0 44.140.208.129 hw ax25 sm6tky-3 up |
| 462 |
/sbin/ifconfig scc1 44.140.208.129 hw ax25 sm6tky-1 up |
| 463 |
# |
| 464 |
# set up default IP routings |
| 465 |
# This is not needed if you don´t want to run TCP/IP on Radio |
| 466 |
# |
| 467 |
/sbin/ifconfig scc0 44.140.208.129 netmask 255.255.0.0 broadcast 44.140.255.255 arp mtu 256 |
| 468 |
/sbin/ifconfig scc1 44.140.208.129 netmask 255.255.255.0 broadcast 44.140.208.255 arp mtu 256 |
| 469 |
/sbin/route add -host sk6ba.ampr.org scc1 |
| 470 |
/sbin/route add -net 44.140.208.0 gw sk6ba.ampr.org netmask 255.255.255.0 scc1 |
| 471 |
/sbin/route add default gw sk6ba.ampr.org scc1 |
| 472 |
# |
| 473 |
# |
| 474 |
# Send ID every 10 min |
| 475 |
/usr/sbin/beacon -t 10 scc0 "This Packet Radio Node is Powered with Linux Unix" & |
| 476 |
/usr/sbin/beacon -t 10 scc1 "This Packet Radio Node is Powered with Linux Unix" & |
| 477 |
# |
| 478 |
# If you want to run LinFBB in X-Windows, |
| 479 |
# comment out this below... |
| 480 |
# |
| 481 |
# Start up LinFBB deamon |
| 482 |
/home/xfbb/xfbb.sh -d & |
| 483 |
# |
| 484 |
|
| 485 |
|
| 486 |
|
| 487 |
|
| 488 |
<A HREF="doc.htm"><IMG WIDTH="108" HEIGHT="28" SRC="contents.gif"></A> |
| 489 |
|
| 490 |
<A HREF="/"><IMG SRC="/button_home.gif" WIDTH="90" HEIGHT="29"></A> |
| 491 |
|
| 492 |
<FONT COLOR="#800000">This page was last updated <!--#config timefmt="%d-%b-%y"--><!--#echo var="LAST_MODIFIED"--></FONT> |
| 493 |
|
| 494 |
</PRE> |
| 495 |
</BODY></HTML> |