[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Discuss-gnuradio] Gnuradio over Zynq

From: Daniel Camara
Subject: Re: [Discuss-gnuradio] Gnuradio over Zynq
Date: Thu, 30 Oct 2014 08:12:19 +0100

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...


On Tue, Oct 28, 2014 at 8:58 AM, Daniel Camara <address@hidden> wrote:


   I would like to run the example from the GNURadio adaptation for 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

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 <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:
(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...

    Best regards...

reply via email to

[Prev in Thread] Current Thread [Next in Thread]