# Gnuradio over Zynq

**URL:** <https://www.ruby-forum.com/t/gnuradio-over-zynq/232783>\
**Category:** GNU Radio\
**Created:** [October 28, 2014, 8:59am UTC](https://www.ruby-forum.com/t/gnuradio-over-zynq/232783 "2014-10-28T08:59:47Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![addis\_a](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/c4cdca/32.png) [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Post date:** [October 28, 2014, 8:59am UTC](https://www.ruby-forum.com/t/gnuradio-over-zynq/232783/1 "2014-10-28T08:59:47Z")

</div>

Hi,

I would like to run the example from the GNURadio adaptation for Zynq  
(  
[http://gnuradio.org/redmine/projects/gnuradio/wiki/Zynq](http://gnuradio.org/redmine/projects/gnuradio/wiki/Zynq)), but I am not  
able  
to run it, it gives me a coredump.

I managed to create the bootable card, at least I think so as the  
example  
does not work.

What I did:

zedboard\> cat zedboard.bin \> /dev/xdevcfg  
zedboard\> cat /sys/devices/amba.0/f8007000.ps7-dev-cfg/prog\_done  
1

zedboard\> ./zynq\_fir\_filter\_example  
Read the FPGA status…  
/sys/devices/amba.0/f8007000.ps7-dev-cfg/prog\_done = 1  
Setup the driver…  
Segmentation fault (core dumped)

zedboard\> file zynq\_fir\_filter\_example  
zynq\_fir\_filter\_example: ELF 32-bit LSB executable, ARM, EABI5 version 1  
(SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.16,  
BuildID[sha1]=b241efee0c9289c30bd2c24975a628f74c270b4d, not stripped

zedboard\> uname -a  
Linux zedboard-zynq7 3.14.2-xilinx #1 SMP PREEMPT Fri Oct 24 09:13:25  
CEST  
2014 armv7l GNU/Linux

zedboard\> # gdb  
GNU gdb (GDB) 7.6.2  
Copyright (C) 2013 Free Software Foundation, Inc.  
License GPLv3+: GNU GPL version 3 or later  
\<[The GNU General Public License v3.0 - GNU Project - Free Software Foundation](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 “arm-oe-linux-gnueabi”.  
For bug reporting instructions, please see:  
[http://www.gnu.org/software/gdb/bugs/](http://www.gnu.org/software/gdb/bugs/).  
(gdb) core core  
[New LWP 882]  
Core was generated by `./zynq\_fir\_filter\_example’.  
Program terminated with signal 11, Segmentation fault.  
#0 0xb6eade80 in ?? ()  
(gdb) bt  
#0 0xb6eade80 in ?? ()  
#1 0x0000966c in ?? ()  
#2 0x0000966c in ?? ()  
Backtrace stopped: previous frame identical to this frame (corrupt  
stack?)

* * *

The compilation of the example was OK, no error, the compilation and  
installation of gr-zynq module, the same.

Have some one else tried this zynq implementation recently?

–  
Best regards…

```
                 Daniel

```

---

<div class="post-metadata">

**Author:** ![dcarneiro](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/e36b37/32.png) [@dcarneiro](https://www.ruby-forum.com/u/dcarneiro)\
**Post date:** [October 28, 2014, 6:03pm UTC](https://www.ruby-forum.com/t/gnuradio-over-zynq/232783/2 "2014-10-28T18:03:25Z")

</div>

I know we have been talking over email, but I wanted to post this for  
everyone to see.

The Zynq build wiki has gotten a little out of date and over the next  
few  
weeks I’ll be updating it to fix various issues that have been brought  
up.  
As well, there has been a lot great work on the Open Embedded side that  
makes building images even easier, so expect a rather large update to  
the  
wiki.

–  
View this message in context:  
[http://gnuradio.4.n7.nabble.com/Gnuradio-over-Zynq-tp51051p51061.html](http://gnuradio.4.n7.nabble.com/Gnuradio-over-Zynq-tp51051p51061.html)  
Sent from the GnuRadio mailing list archive at [Nabble.com](http://Nabble.com).

---

<div class="post-metadata">

**Author:** ![dcarneiro](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/e36b37/32.png) [@dcarneiro](https://www.ruby-forum.com/u/dcarneiro)\
**Post date:** [October 30, 2014, 8:14am UTC](https://www.ruby-forum.com/t/gnuradio-over-zynq/232783/3 "2014-10-30T08:14:16Z")

</div>

Hi, just to register the cause of the error, if can be helpful for  
others  
in the future!

The problem was that the module user\_peripheral was missing. Apparently  
when you configure the it and when you get the oe manifest with the  
daisy  
branch it does not come by default. The ideal is to use the stable  
branch.

> git clone git://github.com/balister/oe-gnuradio-manifest.git -b stable

moreover, after,you manage to have a bootable card, before trying the  
example you need to insert the module. For me:

> insmod /lib/modules/3.8.11-xilinx/extra/user\_peripheral.ko

Otherwise you will get an null pointer exception when it tries to get  
the  
attributes of the device on the line:  
\*buffer\_length = atol(udev\_device\_get\_sysattr\_value(dev,  
“xx\_buf\_len”));

Best regards…

```
Daniel

```

On Tue, Oct 28, 2014 at 8:58 AM, Daniel C. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
wrote:

> What I did:
> 
> GNU gdb (GDB) 7.6.2  
> [New LWP 882]  
> The compilation of the example was OK, no error, the compilation and  
> installation of gr-zynq module, the same.
> 
> Have some one else tried this zynq implementation recently?
> 
> –  
> Best regards…
> 
> ```
> Daniel
> 
> ```

–  
Best regards…

```
                 Daniel

```
