Farsite Farsynch T1 driver install/compilation

207 views
Skip to first unread message

Federico Allegretti

unread,
Jun 1, 2016, 9:48:16 AM6/1/16
to mmbtools
Hello, I recently recevied the Farsynch TE1 board.
Set into the server and boot up the debian 8 operating system.

A brief analysis with lspci gives me:
Communication controller: FarSite Communications Ltd FarSync TE1 (T1,E1) (rev 03)

lsmod | grep far gives me:
farsync                20986  0
hdlc                   12822  1 farsync

So Linux recognize the board and loads kernel drivers, but  still no /dev/sync0 like in http://wiki.opendigitalradio.org/Farsync_card

so i decided to go to the full driver reinstall.

linked the kernel source with:
sudo ln -s /usr/src/linux-config-3.16/  /usr/src/linux

unloaded default modules with:
rmmod farsync

and started the install script with:
sudo ./install

... but what does it mean:
"Parameter must be oem or wan"


Federico Allegretti

unread,
Jun 1, 2016, 10:14:57 AM6/1/16
to mmbtools
ops ... i made the wrong link.

removed sudo ln -s /usr/src/linux-config-3.16/  /usr/src/linux
and now sudo ln -s /usr/src/linux-source-3.16/  /usr/src/linux

but still do not know what to use oem or wan ...
Message has been deleted

Stan Maxxima

unread,
Jun 1, 2016, 2:01:32 PM6/1/16
to mmbtools
As this card is basically an E1/T1 interface it can be used as a network interface too and will appear as an additional Net interface on your system (with wan option). But in thise case of DAB mux output you must use OEM option when you install the driver.  With this option you will be able to work in 'raw' mode mandatory for the DAB mux output over the BNC G703 interface. (we need to send directly the mux stream output to the card)

Since the version 2.2.13 you don't need anymore to apply any patchs, just install the driver with oem option.

Did the test this afternoon on the latest Debian Jessie and Driver 2.2.13 from farsites, works perfectly.

cl...@radioalfa.dk

unread,
Jun 5, 2016, 3:35:45 AM6/5/16
to mmbtools
I use oem driver. If You want to install the driver in Ubuntu 16.04 You have to do some changes prior to install.

Edit file kernel-oem/farsync.c in the installation folder and change:

 

if (!pci_dma_supported(pdev, 0xffffffff))

{

printk("Can't do DMA on this device\n");

}


To:


#if 0

if (!pci_dma_supported(pdev, 0xffffffff))

{

printk("Can't do DMA on this device\n");

}

#endif



Cheers,

Claus

Federico Allegretti

unread,
Jun 6, 2016, 12:27:59 PM6/6/16
to mmbtools
Solved the question OEM or WAN, i've got some weird errors in compiling factory drivers.

in bried, i got farsite drivers in /src/farsync-2.2.13-b271 and the install script is there.

i get into /usr/src and there i managed to have linux source code with:
sudo apt-get source linux

this downloads in the folder /usr/src the files:
linux_3.16.7-ckt25-2.dsc
linux_3.16.7-ckt25-2.debian.tar.xz
linux_3.16.7-ckt25.orig.tar.xz

and inflates the folder:
linux-3.16.7-ckt25

now i make a symbolic link to the linux-3.16.7-ckt25 folder named linux with:
sudo ln -s /usr/src/linux-3.16.7-ckt25/  /usr/src/linux

I suppose is time to run the installs cript for farsite borad so i go to the driver folder with:
cd
cd src/farsync-2.2.13-b271/
and then i run the install script with:
sudo ./install oem

... but i got those error:

Installing OEM Development drivers
Kernel source identified as version 3.16.0


Installing the driver sources

Installing the OEM driver module
rm -rf *.o *.ko .*.cmd
make -C /lib/modules/3.16.0-4-686-pae/build SUBDIRS=/home/opendab/src/farsync-2.2.13-b271/kernel-oem modules
make[1]: *** /lib/modules/3.16.0-4-686-pae/build: No such file or directory.  Stop.
Makefile:19: recipe for target 'modules' failed
make: *** [modules] Error 2
... really do not know what is the problem .....



On Wednesday, 1 June 2016 15:48:16 UTC+2, Federico Allegretti wrote:

Federico Allegretti

unread,
Jun 6, 2016, 12:41:52 PM6/6/16
to mmbtools
similar effects using this command to specify linux version in /usr/src (removed all in /usr/src and retry):
apt-get source linux-image-$(uname -r)

now got similar files and inflated folders ...

made the link:

sudo ln -s /usr/src/linux-3.16.7-ckt25/  /usr/src/linux

but now i got that error after running: sudo ./install oem (in the /home/user/src/farnellstuff/)

Installing OEM Development drivers
Kernel source identified as version 3.16.0


Installing the driver sources

Installing the OEM driver module
rm -rf *.o *.ko .*.cmd
make -C /lib/modules/3.16.0-4-686-pae/build SUBDIRS=/home/opendab/src/farsync-2.2.13-b271/kernel-oem modules
make[1]: *** /lib/modules/3.16.0-4-686-pae/build: No such file or directory.  Stop.
Makefile:19: recipe for target 'modules' failed
make: *** [modules] Error 2

:-( still confused


On Wednesday, 1 June 2016 15:48:16 UTC+2, Federico Allegretti wrote:

Federico Allegretti

unread,
Jun 7, 2016, 7:31:02 AM6/7/16
to mmbtools
UPDATE:

missing header files!

SOLVED going in /usr/src and
sudo apt-get install linux-headers-$(uname -r)

after that going in /home/username/src/farsite
then sudo ./install eom

now compiling :D


On Wednesday, 1 June 2016 15:48:16 UTC+2, Federico Allegretti wrote:
Reply all
Reply to author
Forward
0 new messages