Linux-Hams archive - June 1997: Baycom Linux & 16550A working!

Baycom Linux & 16550A working!

Nuno Sucena Almeida ()
28 Jun 1997 00:30:07 GMT

hello guys.
Today i made an upgrade of my 386DX40MHz to a 486DX100MHz, with onboard
controler, serial, pararel, etc.
The 386DX had 16450 uarts and the 486DX has 16550A .
With the previous experience of trying to make the baycom ser12 driver for
linux working on a computer of a friend ( P166 with 16550A onboard too )
the software didn't work has i expected on the 486 either.
So, i've compiled the serial support has a module and changed a bit my
rc's scripts ... The steps that i'm using for this thing to work are has
follows ( i didn't test if the baycom hardware is working cause now its
a bit late to go to the garage and switch the radio power on, but
at least when i make cat /proc/interrupts is running and not with only the
inicialization ticks - i'm working at my bedroom connected to the other
PC by ethernet... - but tomorrow i'm going to test it if i get a serial
cable for it , cause the controller is onboard, and i'll tell you if its
really working . I'll tell also to my P166 friend to test this out just
to see if he can too get it working.) :

- run the my own rc.ax25 script with special attention to the lines
containing /bin/setserial and ^skip_test
- insert the serial module ( /sbin/insmod serial )
- run the /etc/rc.d/rc.serial script

My rc.ax25 is like this ( cutted the portuguese comments :) now:

/bin/setserial /dev/cua1 -a -v uart 16550A port 0x2F8 irq 3 ^skip_test
/bin/setserial /dev/cua1 uart none

echo "Instalacao dos modulos em memoria (ax25,hdlcdrv,baycom):"
/sbin/insmod ax25 >/dev/null 2>&1
/sbin/insmod hdlcdrv >/dev/null 2>&1
/sbin/insmod baycom mode="ser12*" iobase=0x2f8 irq=3
echo "Configurando device (bc0) com sethdlc:"
/usr/sbin/sethdlc -p -i bc0 -a txd 200 slot 100 ppersist 128 half

echo "ifconfig (TCP/IP) :"
/sbin/ifconfig bc0 netmask broadcast mtu 512 up
echo "axparms :"
/usr/sbin/axparms -setcall bc0 CT6XXX
echo "route (TCP/IP):"
/sbin/route add -net rede_ax25 netmask dev bc0

echo "AX25 Daemon:"
echo "Logging & Broadcasting:"
/usr/sbin/beacon -s radio "Ligacao por radio activa"
touch /var/run/server.ax25-beacon

The first 2 setserial lines don't do nothing at the first time ( i think,
since the serial support is not loaled), but when you shutdown your ax.25
support ( like running ifconfig bc0 down , rmmod modules, etc ) and run after
the rc.ax25 WITHOUT these lines it doesn't work! cat /proc/interrupts shows
no change at the baycom serial interrupt!

My rc.serial that i use configures the serial ports manually, but i think
you can use what you like...but here it is the relevant parts:
# /etc/rc.serial
# Initializes the serial ports on your system

${SETSERIAL} /dev/cua0 uart 16550A port 0x3F8 irq 4
${SETSERIAL} /dev/cua1 uart 16550A port 0x2F8 irq 3
# for the internal modem:
${SETSERIAL} /dev/cua3 -av spd_hi uart 16550A port 0x2E8 irq 5
echo -e "RTS/CTS Flow Control on cua3\c"
${STTYBIN} crtscts < /dev/cua3

bye for now.when i test it more i will tell you

Nuno Sucena
CT1FOX CQG9304 CQM9228                  Eng.Electrote'cnica FCTUC
To reply by e-mail use "slug" as user and "" as domain.
My web page & PGP sig are located at the same place.