Farsync hardware

308 views
Skip to first unread message

Pascal Charest

unread,
May 31, 2012, 6:02:02 PM5/31/12
to crc-mm...@googlegroups.com
Hello,

We've received a few questions recently about Farsync hardware. Here is
some information that can be useful to you if you are using this piece
of hardware.

We have added a new section on the CRC-DABMUX web page about the Farsync
hardware installation. This new instructions were tested on Ubuntu 11.10
and 12.04. The test was successful on 11.10 (kernel 2.6.38), but not on
12.04 (kernel 3.2). Current version of Farsync drivers are not
compatible with 3.x kernel. Once a version of Farsync drivers that is
compatible with 3.x kernel appears, the same procedure can be followed
as long as the API is backward compatible. Depending of your Linux
distribution, kernel version, Farsync drivers version, some compilations
issues not listed on the web page might happen. We'll improve the list
as people find issue/solution.

Regards,

Pascal

François Picard

unread,
Feb 12, 2013, 12:13:46 PM2/12/13
to crc-mm...@googlegroups.com
Hello,

I'm reading instruction on CRC-DABMUX section
Extract and change to farsync driver source directory. Install the OEM version (default).
> sudo ./install oem
> sudo depmod
- Make sure that the line install farsync.ko went well and that there is message such as cannot stat farsync.ko.
- It is very important to reboot after successfully installing the driver.
Possible issues:
Missing kernel source or headers
sudo ln -s linux_headers-`uname -r` /usr/src/linux

I can't install driver.
I have symbol link inside /usr/src/
lrwxrwxrwx 1 root root    34 2013-02-12 17:31 linux -> linux_header-3.0.0-19-generic-pae
drwxr-xr-x  7 root root 4096 2012-05-02 15:34 linux_header-3.0.0-19-generic-pae

sudo ./install oem
I had message

    Farsync WAN/OEM driver for linux installation
    Cannot find /usr/src/linux
    PLease make a symbolic link callad /usr/src/linux to where your
    Kernel Source tree or Kernel Header files are located.
   
What is problem ?

Brendan Kehoe

unread,
Feb 12, 2013, 12:20:14 PM2/12/13
to crc-mm...@googlegroups.com
Hi,

Francois, which version of the Farsite driver are you trying? If you're trying an older version such as 1.09 then its not compatible with Linux 3.xx kernels and you need 2.9.32 (newest supported). I've been unsuccessful in using the newer version 2 Farsite drivers with DabMux. 

I meant to post a few weeks ago about this but I noticed that Farsite have a newer driver (version 2.xx which supports the version 3.xx Linux kernels) and myself tried to get it set up but I was unable to incorporate the new farsite library into CRC-DabMux, with DabMux failing to compile. I'd integrated the new library from the 1.09 Farsite driver on many occasions before successfully. 

It'd be nice to be able to upgrade my Linux versions by being able to run the latest Farsite drivers so if anyone else has any thoughts or ideas they'd be appreciated.

Cheers, Brendan. 


--
You received this message because you are subscribed to the Google Groups "mmbtools" group.
To unsubscribe from this group and stop receiving emails from it, send an email to crc-mmbtools...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

François Picard

unread,
Feb 14, 2013, 9:30:15 AM2/14/13
to crc-mm...@googlegroups.com
It's working with
  Ubuntu 11.10
  FarSync drivers version 2.0.3 for Linux
There is a error with explications
Read => http://mmbtools.crc.ca/content/view/39/65/
        At this line

            Missing kernel source or headers
            sudo ln -s linux_headers-`uname -r` /usr/src/linux
        The good instruction is
            sudo ln -s linux-headers-`uname -r` /usr/src/linux

Actually my test script is :

CRC-DabMux -L "Label MUX" \
-F output1.dab -k -b 48 -i 1 -p 3 -S -L "Radio 1" -C -i1 \
-F output2.dab -k -b 48 -i 2 -p 3 -S -L "Radio 2" -C -i2 \
-F output3.dab -k -b 48 -i 3 -p 3 -S -L "Radio 3" -C -i3 \
-F output4.dab -k -b 48 -i 4 -p 3 -S -L "Radio 4" -C -i4 \
-O file://out.eti -O simul://

So now I would to send output CRC-Dabmux towards output farsync.

I think it's something like this

CRC-DabMux -L "Label MUX" \
-F output1.dab -k -b 48 -i 1 -p 3 -S -L "Radio 1" -C -i1 \
-F output2.dab -k -b 48 -i 2 -p 3 -S -L "Radio 2" -C -i2 \
-F output3.dab -k -b 48 -i 3 -p 3 -S -L "Radio 3" -C -i3 \
-F output4.dab -k -b 48 -i 4 -p 3 -S -L "Radio 4" -C -i4 \
-O fifo:///dev/sync0

How do I know output name farsite ? (/dev/sync0/ ??)
How do I know which output connector card farsite use ?

Thank you

Brendan Kehoe

unread,
Feb 14, 2013, 9:56:00 AM2/14/13
to crc-mm...@googlegroups.com
Hi Francois,
So you have more than 1 Farsite card? There is only one output connector (marked 'T') on the TE1 card.

Did you not so the API update by the way - that is the part that I couldn't get to work with the v2 Farsite drivers. This was essential in the past anyway.

Brendan

Sent from my iPhone

François Picard

unread,
Feb 14, 2013, 10:12:10 AM2/14/13
to crc-mm...@googlegroups.com
I used one Farsite card, I find output connector  (marked T)
I did this

    tar -zxvf farsync-2.0.3.tar.gz
    ./install oem
    sudo depmod
    sudo ln –s linux-headers-`uname –r` /usr/src/linux
    cp farsync-???/include/farsync.h crc-dabmux-???/lib/farsync/
    cd /home/…../crc-dabmux
    make clean
    make
    make install

Pascal Charest

unread,
Feb 14, 2013, 10:40:39 AM2/14/13
to crc-mm...@googlegroups.com
Hi François,

François Picard wrote:
> I used one Farsite card, I find output connector (marked T)
> I did this
>
> tar -zxvf farsync-2.0.3.tar.gz
> ./install oem
> sudo depmod
> sudo ln –s linux-headers-`uname –r` /usr/src/linux
> cp farsync-???/include/farsync.h crc-dabmux-???/lib/farsync/
> cd /home/…../crc-dabmux
> make clean
> make
> make install

Did you change the question marks with package version that you are using?

>> It's working with
>> Ubuntu 11.10
>> FarSync drivers version 2.0.3 for Linux
>> There is a error with explications
>> Read => http://mmbtools.crc.ca/content/view/39/65/
>> <http://mmbtools.crc.ca/content/view/39/65/>
>> At this line
>> Missing kernel source or headers
>> sudo ln -s linux_headers-`uname -r` /usr/src/linux
>> The good instruction is
>> sudo ln -s linux-headers-`uname -r` /usr/src/linux
>

Right. I've updated the website accordingly. Sorry for the inconvenient.

Pascal

François Picard

unread,
Feb 14, 2013, 10:45:04 AM2/14/13
to crc-mm...@googlegroups.com


Le jeudi 14 février 2013 16:40:39 UTC+1, Pascal Charest a écrit :
Hi François,

François Picard wrote:
> I used one Farsite card, I find output connector  (marked T)
> I did this
>
>     tar -zxvf farsync-2.0.3.tar.gz
>     ./install oem
>     sudo depmod
>     sudo ln –s linux-headers-`uname –r` /usr/src/linux
>     cp farsync-???/include/farsync.h crc-dabmux-???/lib/farsync/
>     cd /home/…../crc-dabmux
>     make clean
>     make
>     make install

Did you change the question marks with package version that you are using?

Yes,

 

Pascal Charest

unread,
Feb 14, 2013, 12:02:32 PM2/14/13
to crc-mm...@googlegroups.com
Hi François,

François Picard wrote:
> So now I would to send output CRC-Dabmux towards output farsync.
>
> I think it's something like this
>
> CRC-DabMux -L "Label MUX" \
> -F output1.dab -k -b 48 -i 1 -p 3 -S -L "Radio 1" -C -i1 \
> -F output2.dab -k -b 48 -i 2 -p 3 -S -L "Radio 2" -C -i2 \
> -F output3.dab -k -b 48 -i 3 -p 3 -S -L "Radio 3" -C -i3 \
> -F output4.dab -k -b 48 -i 4 -p 3 -S -L "Radio 4" -C -i4 \
> -O fifo:///dev/sync0
>
> How do I know output name farsite ? (/dev/sync0/ ??)
> How do I know which output connector card farsite use ?

The scheme for ETI card is not fifo, but raw. See URL section in
CRC-DABMUX documentation for more information.

To get the name of the device, run command 'ifconfig -a'. This will list
every network interface on your computer, including regular ethernet and
the G.703 interface. Device name should be hdlc0 (for Cyclades) or sync0
(for Farsync). Then, the output option should look:
-O raw://sync0

Output connector is identified as T.

Hope it will help you,

Pascal

François Picard

unread,
Feb 15, 2013, 4:11:05 AM2/15/13
to crc-mm...@googlegroups.com
Hi Pascal,

command :
  ifconfig -a

result :
  sync0     Link encap:UNSPEC  HWaddr F3-37-45-46-31-44-42-32-00-00-00-00-00-00-00-00
            UP POINTOPOINT RUNNING NOARP  MTU:6144  Metric:1
            Packets reçus:14743 erreurs:0 :14743 overruns:0 frame:0
            TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
            collisions:0 lg file transmission:100
            Octets reçus:90580992 (90.5 MB) Octets transmis:0 (0.0 B)


My script :
            #!/bin/bash

            # S'assurer que les logiciels ne fonctionnent plus
            killall crc-dabplus &>/dev/null
            killall CRC-DabMux &>/dev/null
            killall mbuffer &>/dev/null

            sleep 1

            # Creation des fifos
            for i in `seq 4`; do
                filename=output$i.dab
                if [ -e $filename ]; then
                    rm $filename
                fi
                mkfifo $filename
            done

            # Demarrer le mux en arriere-plan

            CRC-DabMux -L "Label MUX" \
                    -F output1.dab -k -b 48 -i 1 -p 3 -S -L "Radio 1" -C -i1 \
                    -F output2.dab -k -b 48 -i 2 -p 3 -S -L "Radio 2" -C -i2 \
                    -F output3.dab -k -b 48 -i 3 -p 3 -S -L "Radio 3" -C -i3 \
                    -F output4.dab -k -b 48 -i 4 -p 3 -S -L "Radio 4" -C -i4 \
                    -O raw://sync0 &

            # Demarrer les encodeurs audios en arriere-plan
            crc-dabplus -i card://ch1 -b 48 | mbuffer -m 100k -P 100 > output1.dab &
            crc-dabplus -i card://ch2 -b 48 | mbuffer -m 100k -P 100 > output2.dab &
            crc-dabplus -i card://ch3 -b 48 | mbuffer -m 100k -P 100 > output3.dab &
            crc-dabplus -i card://ch0 -b 48 | mbuffer -m 100k -P 100 > output4.dab &

            # Attendre que tous les processes soit terminés
            wait

Result :

./farsitescript : ligne 34 :  2326 Abandon 
CRC-DabMux -L "Label MUX" -F output1.dab -k -b 48 -i 1 -p 3 -S -L "Radio 1" -C -i1 -F
                             output2.dab -k -b 48 -i 2 -p 3 -S -L "Radio 2" -C -i2 -F
                             output3.dab -k -b 48 -i 3 -p 3 -S -L "Radio 3" -C -i3 -F
                             output4.dab -k -b 48 -i 4 -p 3 -S -L "Radio 4" -C -i4 -O
                             raw://sync0
Using GStreamer 0.10.35.0
General:
        Mode:     encoder
Input:
        Scheme:   card
        Path:     ch3
Output:
        Scheme:   file
        Path:     /dev/stdout
Options:
        DAB bitrate:      48000 bps
        AAC bitrate:      43200 bps
        PAD bitrate:      0 bps
        DAB+ overhead:    800 bps
        DAB+ protection:  3999 bps
        Channels:         2
        Samplerate:       48000

Using GStreamer 0.10.35.0
General:
        Mode:     encoder
Input:
        Scheme:   card
        Path:     ch0
Output:
        Scheme:   file
        Path:     /dev/stdout
Options:
        DAB bitrate:      48000 bps
        AAC bitrate:      43200 bps
        PAD bitrate:      0 bps
        DAB+ overhead:    800 bps
        DAB+ protection:  3999 bps
        Channels:         2
        Samplerate:       48000

Using GStreamer 0.10.35.0
General:
        Mode:     encoder
Input:
        Scheme:   card
        Path:     ch2
Output:
        Scheme:   file
        Path:     /dev/stdout
Options:
        DAB bitrate:      48000 bps
        AAC bitrate:      43200 bps
        PAD bitrate:      0 bps
        DAB+ overhead:    800 bps
        DAB+ protection:  3999 bps
        Channels:         2
        Samplerate:       48000

Using GStreamer 0.10.35.0
General:
        Mode:     encoder
Input:
        Scheme:   card
        Path:     ch1
Output:
        Scheme:   file
        Path:     /dev/stdout
Options:
        DAB bitrate:      48000 bps
        AAC bitrate:      43200 bps
        PAD bitrate:      0 bps
        DAB+ overhead:    800 bps
        DAB+ protection:  3999 bps
        Channels:         2
        Samplerate:       48000

Setting pipeline state to PAUSED
Can not set pipeline to pause
Setting pipeline state to NULL
An error occured when building the pipeline
Setting pipeline state to PAUSED
Can not set pipeline to pause
Setting pipeline state to NULL
An error occured when building the pipeline
Setting pipeline state to PAUSED
Can not set pipeline to pause
Setting pipeline state to NULL
An error occured when building the pipeline
Setting pipeline state to PAUSED
Can not set pipeline to pause
Setting pipeline state to NULL
An error occured when building the pipeline

My script doesn't run, what is my problem ?

Pascal Charest

unread,
Feb 15, 2013, 3:39:04 PM2/15/13
to crc-mm...@googlegroups.com
Hi Françcois,

François Picard wrote:
> Hi Pascal,
>
> command :
> ifconfig -a
> result :
> sync0 Link encap:UNSPEC HWaddr
> F3-37-45-46-31-44-42-32-00-00-00-00-00-00-00-00

So, the device is really sync0.

> Result :
>
> ./farsitescript : ligne 34 : 2326 Abandon
> Can not set pipeline to pause
> Setting pipeline state to NULL
> An error occured when building the pipeline
>
> My script doesn't run, what is my problem ?

These error messages are from CRC-DABPLUS. It will help to have only
CRC-DABMUX output. Here is a simple command that can do the job (no audio):

CRC-DabMux -T -S -C -O raw://sync0

But I suspect that the problem is that you don't have sufficient
permission. Usually, only root has access to raw network device
interface. Try to run the precedent command with administrative privilege:

sudo CRC-DabMux -T -S -C -O raw://sync0

Regards,

Pascal

François Picard

unread,
Feb 18, 2013, 4:16:10 AM2/18/13
to crc-mm...@googlegroups.com
I'm running this command

sudo CRC-DabMux -T -S -C -O raw://sync0

Result :
<6> Welcome to CRC-DabMux 0.3.0.4, compiled at Feb 14 2013, 13:02:26
<6>
<6> Copyright (C) 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011
<6> Her Majesty the Queen in Right of Canada,
<6> (Communications Research Centre Canada) All rights reserved.
<6>
<6> Input URLs supported: prbs test slip udp fifo file
<6> Inputs format supported: raw bridge mpeg packet dmb epm
<6> Output URLs supported: file fifo udp tcp raw simul
<6>
<7> Farsync card identified.
<7> Set configuration.
<7> Disable notify.
<7> Get flags.
<7> Set flags.
<7> Get MTU.
<7> Get flags.
<7> Set flags.
<7> Get index.
<7> Bind interface.
*** stack smashing detected ***: CRC-DabMux terminated
======= Backtrace: =========
/lib/i386-linux-gnu/libc.so.6(__fortify_fail+0x45)[0xb74b1c75]
/lib/i386-linux-gnu/libc.so.6(+0xe8c27)[0xb74b1c27]
CRC-DabMux[0x8055e64]
======= Memory map: ========
08048000-08062000 r-xp 00000000 68:01 15997236   /usr/local/bin/CRC-DabMux
08062000-08063000 r--p 00019000 68:01 15997236   /usr/local/bin/CRC-DabMux
08063000-08064000 rw-p 0001a000 68:01 15997236   /usr/local/bin/CRC-DabMux
08064000-08065000 rw-p 00000000 00:00 0
08dcb000-08dec000 rw-p 00000000 00:00 0          [heap]
b739c000-b739f000 rw-p 00000000 00:00 0
b739f000-b73c7000 r-xp 00000000 68:01 11272346   /lib/i386-linux-gnu/libm-2.13.so
b73c7000-b73c8000 r--p 00028000 68:01 11272346   /lib/i386-linux-gnu/libm-2.13.so
b73c8000-b73c9000 rw-p 00029000 68:01 11272346   /lib/i386-linux-gnu/libm-2.13.so
b73c9000-b7541000 r-xp 00000000 68:01 11272342   /lib/i386-linux-gnu/libc-2.13.so
b7541000-b7543000 r--p 00178000 68:01 11272342   /lib/i386-linux-gnu/libc-2.13.so
b7543000-b7544000 rw-p 0017a000 68:01 11272342   /lib/i386-linux-gnu/libc-2.13.so
b7544000-b7547000 rw-p 00000000 00:00 0
b7547000-b7563000 r-xp 00000000 68:01 11273146   /lib/i386-linux-gnu/libgcc_s.so.1
b7563000-b7564000 r--p 0001b000 68:01 11273146   /lib/i386-linux-gnu/libgcc_s.so.1
b7564000-b7565000 rw-p 0001c000 68:01 11273146   /lib/i386-linux-gnu/libgcc_s.so.1
b7565000-b7643000 r-xp 00000000 68:01 15603053   /usr/lib/i386-linux-gnu/libstdc++.so.6.0.16
b7643000-b7644000 ---p 000de000 68:01 15603053   /usr/lib/i386-linux-gnu/libstdc++.so.6.0.16
b7644000-b7648000 r--p 000de000 68:01 15603053   /usr/lib/i386-linux-gnu/libstdc++.so.6.0.16
b7648000-b7649000 rw-p 000e2000 68:01 15603053   /usr/lib/i386-linux-gnu/libstdc++.so.6.0.16
b7649000-b7651000 rw-p 00000000 00:00 0
b7651000-b7668000 r-xp 00000000 68:01 11273256   /lib/i386-linux-gnu/libpthread-2.13.so
b7668000-b7669000 r--p 00016000 68:01 11273256   /lib/i386-linux-gnu/libpthread-2.13.so
b7669000-b766a000 rw-p 00017000 68:01 11273256   /lib/i386-linux-gnu/libpthread-2.13.so
b766a000-b766c000 rw-p 00000000 00:00 0
b766c000-b767f000 r-xp 00000000 68:01 15997227   /usr/local/lib/libfec.so.3.0.1
b767f000-b7680000 r--p 00012000 68:01 15997227   /usr/local/lib/libfec.so.3.0.1
b7680000-b7681000 rw-p 00013000 68:01 15997227   /usr/local/lib/libfec.so.3.0.1
b7681000-b770e000 rw-p 00000000 00:00 0
b771f000-b7721000 rw-p 00000000 00:00 0
b7721000-b7722000 r-xp 00000000 00:00 0          [vdso]
b7722000-b7740000 r-xp 00000000 68:01 11272339   /lib/i386-linux-gnu/ld-2.13.so
b7740000-b7741000 r--p 0001d000 68:01 11272339   /lib/i386-linux-gnu/ld-2.13.so
b7741000-b7742000 rw-p 0001e000 68:01 11272339   /lib/i386-linux-gnu/ld-2.13.so
bf979000-bf999000 rwxp 00000000 00:00 0          [stack]
bf999000-bf99a000 rw-p 00000000 00:00 0
Abandon

-------------------------------

Pascal Charest

unread,
Feb 19, 2013, 5:43:36 PM2/19/13
to crc-mm...@googlegroups.com
Can you compile CRC-DabMux with debug symbols and run it under the
debugger? It will give the line where it crashes.

To compile with debug symbols, remove the --disable-debug option with
configure. Do a 'make clean' before the make.
To start under the debugger, run 'sudo gdb --args CRC-DabMux -T -S -C -O
raw://sync0 ' and press 'r' and <enter>.

Thank you,

Pascal


François Picard

unread,
Feb 21, 2013, 9:37:11 AM2/21/13
to crc-mm...@googlegroups.com
Hello,
I've compiled dabmux, I've done this command

make clean
./configure 
make
make install
 
gdb --args CRC-DabMux -T -S -C -O raw://sync0
------
result =>

GNU gdb (Ubuntu/Linaro 7.3-0ubuntu2) 7.3-2011.08
Copyright (C) 2011 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "i686-linux-gnu".
For bug reporting instructions, please see:
<http://bugs.launchpad.net/gdb-linaro/>...
Reading symbols from /usr/local/bin/CRC-DabMux...done.
(gdb) r
Starting program: /usr/local/bin/CRC-DabMux -T -S -C -O raw://sync0
[Thread debugging using libthread_db enabled]
<6> Welcome to CRC-DabMux 0.3.0.4, compiled at Feb 21 2013, 15:08:54
<6>
<6> Copyright (C) 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011
<6> Her Majesty the Queen in Right of Canada,
<6> (Communications Research Centre Canada) All rights reserved.
<6>
<6> Input URLs supported: prbs test slip udp fifo file
<6> Inputs format supported: raw bridge mpeg packet dmb epm
<6> Output URLs supported: file fifo udp tcp raw simul
<6>
<7> Farsync card identified.
<7> Set configuration.
<7> Disable notify.
<7> Get flags.
<7> Set flags.
<7> Get MTU.
<7> Get flags.
<7> Set flags.
<7> Get index.
<7> Bind interface.
*** stack smashing detected ***: /usr/local/bin/CRC-DabMux terminated
======= Backtrace: =========
/lib/i386-linux-gnu/libc.so.6(__fortify_fail+0x45)[0xb7d6fc75]
/lib/i386-linux-gnu/libc.so.6(+0xe8c27)[0xb7d6fc27]
/usr/local/bin/CRC-DabMux[0x8055e64]
======= Memory map: ========
08048000-08062000 r-xp 00000000 68:01 15997236   /usr/local/bin/CRC-DabMux
08062000-08063000 r--p 00019000 68:01 15997236   /usr/local/bin/CRC-DabMux
08063000-08064000 rw-p 0001a000 68:01 15997236   /usr/local/bin/CRC-DabMux
08064000-08086000 rw-p 00000000 00:00 0          [heap]
b7c5a000-b7c5d000 rw-p 00000000 00:00 0
b7c5d000-b7c85000 r-xp 00000000 68:01 11272346   /lib/i386-linux-gnu/libm-2.13.so
b7c85000-b7c86000 r--p 00028000 68:01 11272346   /lib/i386-linux-gnu/libm-2.13.so
b7c86000-b7c87000 rw-p 00029000 68:01 11272346   /lib/i386-linux-gnu/libm-2.13.so
b7c87000-b7dff000 r-xp 00000000 68:01 11272342   /lib/i386-linux-gnu/libc-2.13.so
b7dff000-b7e01000 r--p 00178000 68:01 11272342   /lib/i386-linux-gnu/libc-2.13.so
b7e01000-b7e02000 rw-p 0017a000 68:01 11272342   /lib/i386-linux-gnu/libc-2.13.so
b7e02000-b7e05000 rw-p 00000000 00:00 0
b7e05000-b7e21000 r-xp 00000000 68:01 11273146   /lib/i386-linux-gnu/libgcc_s.so.1
b7e21000-b7e22000 r--p 0001b000 68:01 11273146   /lib/i386-linux-gnu/libgcc_s.so.1
b7e22000-b7e23000 rw-p 0001c000 68:01 11273146   /lib/i386-linux-gnu/libgcc_s.so.1
b7e23000-b7f01000 r-xp 00000000 68:01 15603053   /usr/lib/i386-linux-gnu/libstdc++.so.6.0.16
b7f01000-b7f02000 ---p 000de000 68:01 15603053   /usr/lib/i386-linux-gnu/libstdc++.so.6.0.16
b7f02000-b7f06000 r--p 000de000 68:01 15603053   /usr/lib/i386-linux-gnu/libstdc++.so.6.0.16
b7f06000-b7f07000 rw-p 000e2000 68:01 15603053   /usr/lib/i386-linux-gnu/libstdc++.so.6.0.16
b7f07000-b7f0f000 rw-p 00000000 00:00 0
b7f0f000-b7f26000 r-xp 00000000 68:01 11273256   /lib/i386-linux-gnu/libpthread-2.13.so
b7f26000-b7f27000 r--p 00016000 68:01 11273256   /lib/i386-linux-gnu/libpthread-2.13.so
b7f27000-b7f28000 rw-p 00017000 68:01 11273256   /lib/i386-linux-gnu/libpthread-2.13.so
b7f28000-b7f2a000 rw-p 00000000 00:00 0
b7f2a000-b7f3d000 r-xp 00000000 68:01 15997227   /usr/local/lib/libfec.so.3.0.1
b7f3d000-b7f3e000 r--p 00012000 68:01 15997227   /usr/local/lib/libfec.so.3.0.1
b7f3e000-b7f3f000 rw-p 00013000 68:01 15997227   /usr/local/lib/libfec.so.3.0.1
b7f3f000-b7fcc000 rw-p 00000000 00:00 0
b7fdd000-b7fdf000 rw-p 00000000 00:00 0
b7fdf000-b7fe0000 r-xp 00000000 00:00 0          [vdso]
b7fe0000-b7ffe000 r-xp 00000000 68:01 11272339   /lib/i386-linux-gnu/ld-2.13.so
b7ffe000-b7fff000 r--p 0001d000 68:01 11272339   /lib/i386-linux-gnu/ld-2.13.so
b7fff000-b8000000 rw-p 0001e000 68:01 11272339   /lib/i386-linux-gnu/ld-2.13.so
bffdf000-c0000000 rwxp 00000000 00:00 0          [stack]
 
Program received signal SIGABRT, Aborted.
0xb7fdf424 in __kernel_vsyscall ()
(gdb)

Best regards

Pascal Charest

unread,
Feb 21, 2013, 10:22:51 AM2/21/13
to crc-mm...@googlegroups.com
François Picard wrote:
> Hello,
> I've compiled dabmux, I've done this command
>
> make clean
> ./configure
> make
> make install
>
> gdb --args CRC-DabMux -T -S -C -O raw://sync0
> ------
> result =>
> *** stack smashing detected ***: /usr/local/bin/CRC-DabMux terminated
> ======= Backtrace: =========
> /lib/i386-linux-gnu/libc.so.6(__fortify_fail+0x45)[0xb7d6fc75]
> /lib/i386-linux-gnu/libc.so.6(+0xe8c27)[0xb7d6fc27]
> /usr/local/bin/CRC-DabMux[0x8055e64]
> ======= Memory map: ========
>
> Program received signal SIGABRT, Aborted.
> 0xb7fdf424 in __kernel_vsyscall ()
> (gdb)

Thank you for taking the time. It seems that that the information is
still the same. Can you write bt <enter> in gdb once the application
crash? I hope to get more details with the backtrace, detail such as the
source code line where it crashes.

Thank you,

Pascal

François Picard

unread,
Feb 22, 2013, 6:14:56 AM2/22/13
to crc-mm...@googlegroups.com
This is source code line where it crashes.


#0  0xb7fdf424 in __kernel_vsyscall ()
#1  0xb7cb4c8f in raise () from /lib/i386-linux-gnu/libc.so.6
#2  0xb7cb82b5 in abort () from /lib/i386-linux-gnu/libc.so.6
#3  0xb7cec15c in ?? () from /lib/i386-linux-gnu/libc.so.6
#4  0xb7d6fc75 in __fortify_fail () from /lib/i386-linux-gnu/libc.so.6
#5  0xb7d6fc27 in __stack_chk_fail () from /lib/i386-linux-gnu/libc.so.6
#6  0x08055e64 in dabOutputRawOpen (args=0x0, filename=0x0)
    at dabOutput.cpp:620
#7  0x00000000 in ?? ()

Bye

Pascal Charest

unread,
Feb 26, 2013, 11:35:22 AM2/26/13
to crc-mm...@googlegroups.com
Hum... this one looks tricky. It is some kind of stack overflow.
Probably this happens with an ioctl get function with a driver different
than the one that that I've used. The API might have slightly changed.

Which OS are you using? (ex: Ubuntu 12.10)

Are you using an unmodified version of CRC-DADMUX 0.3.0.4?

Pascal

François Picard

unread,
Mar 12, 2013, 10:54:36 AM3/12/13
to crc-mm...@googlegroups.com
Hello,
I used Ubuntu 11.10, kernel 3.0.0-19.
For use a old kernel, I have to install a new ubuntu version.
Have you got a best solution ?

Best regards
François




Le vendredi 1 juin 2012 00:02:02 UTC+2, Pascal Charest a écrit :

François Picard

unread,
Apr 8, 2013, 10:44:02 AM4/8/13
to crc-mm...@googlegroups.com
Hello,

We've tried to install 1.09.05.02 driver for our TE1 Farsync card.
Currently, we are on Ubuntu 11.10 (Kernel 2.6.38 – 020638-generic).
After entering the command :    ./install oem
we've obtained :


    FarSync WAN/OEM driver for Linux installation

       Copyright (C) 2001-2008 FarSite Communications Ltd.

Installing OEM Development drivers
Kernel source identified as version 2.6.38


Installing the driver sources

Installing the OEM driver module
make -C /lib/modules/2.6.38-020638-
generic/build
SUBDIRS=/home/gram/Téléchargements/farsync/farsync-1.09.05-02/kernel2.6-oem
modules
make[1]: entrant dans le répertoire «
/usr/src/linux-headers-2.6.38-020638-generic »
  CC [M]
/home/gram/Téléchargements/farsync/farsync-1.09.05-02/kernel2.6-oem/farsync.o
/home/gram/Téléchargements/farsync/farsync-1.09.05-02/kernel2.6-oem/farsync.c:
In function ‘fst_sync_release’:
/home/gram/Téléchargements/farsync/farsync-1.09.05-02/kernel2.6-oem/farsync.c:3082:6:
attention : variable ‘unit’ set but not used [-Wunused-but-set-variable]
/home/gram/Téléchargements/farsync/farsync-1.09.05-02/kernel2.6-oem/farsync.c:
In function ‘fst_read_async_data’:
/home/gram/Téléchargements/farsync/farsync-1.09.05-02/kernel2.6-oem/farsync.c:3133:18:
attention : variable ‘i’ set but not used [-Wunused-but-set-variable]
/home/gram/Téléchargements/farsync/farsync-1.09.05-02/kernel2.6-oem/farsync.c:
Hors de toute fonction :
/home/gram/Téléchargements/farsync/farsync-1.09.05-02/kernel2.6-oem/farsync.c:3970:9:
attention : initialization from incompatible pointer type [enabled by
default]
/home/gram/Téléchargements/farsync/farsync-1.09.05-02/kernel2.6-oem/farsync.c:3970:9:
attention : (near initialization for ‘fst_mem_fops.aio_read’) [enabled by
default]
/home/gram/Téléchargements/farsync/farsync-1.09.05-02/kernel2.6-oem/farsync.c:3971:9:
attention : initialization from incompatible pointer type [enabled by
default]
/home/gram/Téléchargements/farsync/farsync-1.09.05-02/kernel2.6-oem/farsync.c:3971:9:
attention : (near initialization for ‘fst_mem_fops.aio_write’) [enabled by
default]
/home/gram/Téléchargements/farsync/farsync-1.09.05-02/kernel2.6-oem/farsync.c:3976:2:
erreur: unknown field ‘ioctl’ specified in initializer
/home/gram/Téléchargements/farsync/farsync-1.09.05-02/kernel2.6-oem/farsync.c:3976:2:
attention : initialization from incompatible pointer type [enabled by
default]
/home/gram/Téléchargements/farsync/farsync-1.09.05-02/kernel2.6-oem/farsync.c:3976:2:
attention : (near initialization for ‘fst_mem_fops.readdir’) [enabled by
default]
/home/gram/Téléchargements/farsync/farsync-1.09.05-02/kernel2.6-oem/farsync.c:
In function ‘fst_openport’:
/home/gram/Téléchargements/farsync/farsync-1.09.05-02/kernel2.6-oem/farsync.c:9434:6:
attention : variable ‘txq_length’ set but not used
[-Wunused-but-set-variable]
/home/gram/Téléchargements/farsync/farsync-1.09.05-02/kernel2.6-oem/farsync.c:
In function ‘fst_open’:
/home/gram/Téléchargements/farsync/farsync-1.09.05-02/kernel2.6-oem/farsync.c:9522:13:
attention : variable ‘orig_mtu’ set but not used
[-Wunused-but-set-variable]
/home/gram/Téléchargements/farsync/farsync-1.09.05-02/kernel2.6-oem/farsync.c:
In function ‘fst_close’:
/home/gram/Téléchargements/farsync/farsync-1.09.05-02/kernel2.6-oem/farsync.c:9619:16:
attention : variable ‘rx_dma_done’ set but not used
[-Wunused-but-set-variable]
/home/gram/Téléchargements/farsync/farsync-1.09.05-02/kernel2.6-oem/farsync.c:9618:16:
attention : variable ‘tx_dma_done’ set but not used
[-Wunused-but-set-variable]
/home/gram/Téléchargements/farsync/farsync-1.09.05-02/kernel2.6-oem/farsync.c:
In function ‘fst_remove_one’:
/home/gram/Téléchargements/farsync/farsync-1.09.05-02/kernel2.6-oem/farsync.c:10315:12:
attention : variable ‘used_space’ set but not used
[-Wunused-but-set-variable]
make[2]: ***
[/home/gram/Téléchargements/farsync/farsync-1.09.05-02/kernel2.6-oem/farsync.o]
Erreur 1
make[1]: ***
[_module_/home/gram/Téléchargements/farsync/farsync-1.09.05-02/kernel2.6-oem]
Erreur 2
make[1]: quittant le répertoire «
/usr/src/linux-headers-2.6.38-020638-generic »
make: *** [modules] Erreur 2
install farsync.ko /etc/farsite/modules
install: impossible d'évaluer «farsync.ko»: Aucun fichier ou dossier de ce
type
make: *** [install] Erreur 1

Installing support utilities and scripts

Network configuration is non-Red Hat like (possibly Debian like)
Installing farutil
rm -f *.o fartest farutil farhdlc fardsl fardsltest farmon
cc -Wall -Wstrict-prototypes -I../includes    farutil.c   -o farutil
cc -o fardsl -Wall -Wstrict-prototypes -I../includes fardsl.c
cc -o farmon -Wall -Wstrict-prototypes -I../includes farmon.c
farmon.c: In function ‘dump_hex’:
farmon.c:133:7: attention : format ‘%x’ expects argument of type ‘unsigned
int’, but argument 2 has type ‘char *’ [-Wformat]
farmon.c: In function ‘get_one_message’:
farmon.c:415:16: attention : format ‘%d’ expects argument of type ‘int’,
but argument 4 has type ‘long unsigned int’ [-Wformat]
farmon.c:418:16: attention : format ‘%d’ expects argument of type ‘int’,
but argument 4 has type ‘long unsigned int’ [-Wformat]
farmon.c: In function ‘test_xfer’:
farmon.c:442:10: attention : variable ‘last_time’ set but not used
[-Wunused-but-set-variable]
farmon.c:441:10: attention : variable ‘start_time’ set but not used
[-Wunused-but-set-variable]
farmon.c: In function ‘main’:
farmon.c:546:7: attention : variable ‘nports’ set but not used
[-Wunused-but-set-variable]
Installing Man pages
Checking for System V directory layout
/etc/init.d exists
Info: /etc/rc0.d] exists
Info: /etc/rc1.d] exists
Info: /etc/rc2.d] exists
Info: /etc/rc3.d] exists
Info: /etc/rc4.d] exists
Info: /etc/rc5.d] exists
Info: /etc/rc6.d] exists
insserv: warning: script 'K90aksusbd' missing LSB tags and overrides
insserv: warning: script 'K20acpi-support' missing LSB tags and overrides
insserv: Service network has to be enabled to start service farsync
insserv: exiting now!
Installing init scripts manually


Copying ppp scripts

Checking to see what the next actions should be...

... Start the system

                    Installation complete
                    ---------------------

As far as I can tell the install is now complete and you should be able to
start the farsync driver with the following command

   /etc/init.d/farsync start

You may need to load the required WAN modules first.
See the Post Install Instructions in the install document to
find out how to load and unload them with the farsync driver.

If this does not result in the driver being loaded then please
consult the Trouble Shooting Guide.

Finally you will need to configure the new synchronous network interfaces.
See the Install documentation for more details.
-----------------------------------------------------------------------------------------

When we read those lines we don't know if the installation has done or not.
Can you help us about this point ?
Then, we've wroten the following commands :

/etc/init.d/farsync stop
/etc/init.d/farsync start

We've recieved :

root@LinuxRNT:~# /etc/init.d/farsync start
waiting for farsync to load
waiting for farsync to load
waiting for farsync to load
waiting for farsync to load
waiting for farsync to load


Why the program is waiting ? It's right or there is a problem ?

Thank you.
best regards





Le vendredi 1 juin 2012 00:02:02 UTC+2, Pascal Charest a écrit :

François Picard

unread,
Apr 9, 2013, 11:25:44 AM4/9/13
to crc-mm...@googlegroups.com
The card doesn't install because if I'm testing
ifconfig -a

There isn't sync0 in the list.

Does driver farsync 1.09.05-02 works ? what does driver use ?

Bye





Le vendredi 1 juin 2012 00:02:02 UTC+2, Pascal Charest a écrit :

François Picard

unread,
Apr 11, 2013, 6:47:07 AM4/11/13
to crc-mm...@googlegroups.com
Hello,
But I ask myself, which driver version you've tested on Ubuntu 11.10 ?
Because you did not specify that version in your answer.



Regards.


Le vendredi 1 juin 2012 00:02:02 UTC+2, Pascal Charest a écrit :

Pascal Charest

unread,
Apr 18, 2013, 11:30:04 AM4/18/13
to crc-mm...@googlegroups.com
François Picard wrote:
> Hello,
>
> We've tried to install 1.09.05.02 driver for our TE1 Farsync card.
> Currently, we are on Ubuntu 11.10 (Kernel 2.6.38 – 020638-generic).
> After entering the command : ./install oem
> we've obtained :

I see compilation problems in the output.

My work office and lab were recently moved. I currently don't have any
system with the FarSync card, only for USRP.

Is there anybody on this mailing list able to help with FraSync card?

Pascal


Pascal Charest

unread,
Apr 18, 2013, 11:33:53 AM4/18/13
to crc-mm...@googlegroups.com
François Picard wrote:
> The card doesn't install because if I'm testing
> ifconfig -a
>
> There isn't sync0 in the list.
>
> Does driver farsync 1.09.05-02 works ? what does driver use ?
>
> Bye

I've never tried the 2 driver serie, only 1.09 driver serie.

In the ifconfig output, do you have anything else than eth, waln or lo?

Pascal

Pascal Charest

unread,
Apr 18, 2013, 11:43:59 AM4/18/13
to crc-mm...@googlegroups.com
François Picard wrote:
> Hello,
>
> In a previous answer, you've said:
>
> Le vendredi 1 juin 2012 00:02:02 UTC+2, Pascal Charest a écrit :
>
> Hello,
>
> We've received a few questions recently about Farsync hardware.
> Here is
> some information that can be useful to you if you are using this
> piece
> of hardware.
>
>
> *But I ask myself, which driver version you've tested on Ubuntu 11.10 ?
> Because you did not specify that version in your answer.*

Hum, looking at the date of my previous message, it is definitely not
2.03. As mentionned in my previous message, I don't have a system with
the FarSync and can not validate my answer, but I'm pretty confident
that it was 1.09.05-02.

I've looked on the web page of 2.0.3 version and it is not mentioned
that the API have changed. So my guess is that it should work. As usual,
there might be some minor tweaks required in order to make it works. YMMV

Pascal

Brendan Kehoe

unread,
Apr 18, 2013, 3:20:10 PM4/18/13
to crc-mm...@googlegroups.com
The 2.xx driver works perfectly with CRC-DabMux assuming one updates the farsync.h file as with the 1.09.05 version, albeit I've only been running it on Ubuntu 10.04 - haven't been around the machine to try upgrade it to a newer version since the new Farsite drivers supporting the 3.xx kernels have been released. 



Pascal

Pascal Charest

unread,
Apr 18, 2013, 3:46:04 PM4/18/13
to crc-mm...@googlegroups.com
Thanks a lot Brendan for the information.

Pascal

Brendan Kehoe wrote:
> The 2.xx driver works perfectly with CRC-DabMux assuming one updates
> the farsync.h file as with the 1.09.05 version, albeit I've only been
> running it on Ubuntu 10.04 - haven't been around the machine to try
> upgrade it to a newer version since the new Farsite drivers supporting
> the 3.xx kernels have been released.
>
>
> On 18 April 2013 17:43, Pascal Charest <pascal....@crc.gc.ca

Sylvain LATU

unread,
Apr 30, 2013, 3:32:50 AM4/30/13
to crc-mm...@googlegroups.com
Hello,
I am currently conducting a DABMUX DABPLUS and installation.
I use Ubuntu 11.04 with Kernel 2.6.38-8.
To complete my installation, I took a TE1 FARSITE.
Is this a good choice?
I installed the 2.0.3 driver as I previously saw DABMUX was compatible.
How can I send data through the TE1 with a script ?
And could I adapt the output stream?

Regards,

Sylvain LATU
Reply all
Reply to author
Forward
0 new messages