Jesd Eye scan gtk: eyescan_info does not exist

Hi Analog.

I've build the Jesd eye scan application ( latest commit ) on a clean UB18 VM,  mounted the target device trough sshfs but I can't seem t get a connection with the target JESD device

The file on target: eyescan_info does not exist but the devices are present in the file system.

One thing I've noticed: The "display" drop down menu stays empty.

Any ideas about this? Any help would be welcome

Thanks


Deville

zynqdev@ubuntu:~$ ls mnt/sys/bus/platform/devices/84a60000.axi-adxcvr-rx/
driver  driver_override  modalias  of_node  power  subsystem  uevent

Parents
  • 0
    •  Analog Employees 
    on Apr 26, 2019 3:04 PM over 1 year ago

    You need to use at least our 2018_R2 or master linux branch:

    root@analog:~# ls -al /sys/bus/platform/devices/84a60000.axi-adxcvr-rx/
    total 0
    drwxr-xr-x 3 root root 0 Apr 26 15:01 .
    drwxr-xr-x 18 root root 0 Apr 26 14:53 ..
    lrwxrwxrwx 1 root root 0 Apr 26 15:01 driver -> ../../../../bus/platform/drivers/axi_adxcvr
    -rw-r--r-- 1 root root 4096 Apr 26 15:01 driver_override
    -rw-r--r-- 1 root root 4096 Apr 26 15:01 enable
    -r--r--r-- 1 root root 2091000 Apr 26 15:01 eye_data
    -r--r--r-- 1 root root 4096 Apr 26 14:53 eyescan_info
    -r--r--r-- 1 root root 4096 Apr 26 15:01 modalias
    lrwxrwxrwx 1 root root 0 Apr 26 15:01 of_node -> ../../../../firmware/devicetree/base/fpga-axi@0/axi-adxcvr-rx@84a60000
    drwxr-xr-x 2 root root 0 Apr 26 15:01 power
    -rw-r--r-- 1 root root 4096 Apr 26 15:01 prescale
    -rw------- 1 root root 4096 Apr 26 15:01 reg_access
    lrwxrwxrwx 1 root root 0 Apr 26 15:01 subsystem -> ../../../../bus/platform
    -rw-r--r-- 1 root root 4096 Apr 26 14:53 uevent

  • I have the same problem, I didn't get any eye-data. I din't get eye scan data.

    total 0
    drwxr-xr-x  3 root root       0 Apr 29 12:11 .
    drwxr-xr-x 18 root root       0 Apr 29 12:11 ..
    lrwxrwxrwx  1 root root       0 Apr 29 12:19 driver -> ../../../../bus/platform/drivers/axi_adxcvr
    -rw-r--r--  1 root root    4096 Apr 29 12:19 driver_override
    -rw-r--r--  1 root root    4096 Apr 29 12:22 enable
    -r--r--r--  1 root root 2091000 Apr 29 12:19 eye_data
    -r--r--r--  1 root root    4096 Apr 29 12:19 eyescan_info
    -r--r--r--  1 root root    4096 Apr 29 12:19 modalias
    lrwxrwxrwx  1 root root       0 Apr 29 12:19 of_node -> ../../../../firmware/devicetree/base/fpga-axi@0/axi-adxcvr-rx@84a60000
    drwxr-xr-x  2 root root       0 Apr 29 12:19 power
    -rw-r--r--  1 root root    4096 Apr 29 12:22 prescale
    -rw-------  1 root root    4096 Apr 29 12:19 reg_access
    lrwxrwxrwx  1 root root       0 Apr 29 12:11 subsystem -> ../../../../bus/platform
    -rw-r--r--  1 root root    4096 Apr 29 12:11 uevent
    

    I am running my application on a remote location with follow instruction. Is this enough?

    dave@HAL9000:/home/dave# mkdir /home/dave/mnt
    dave@HAL9000:/home/dave# sudo sshfs -o allow_other -o sync_read root@10.44.2.224:/ /home/dave/mnt
    dave@HAL9000:/home/dave# jesd_eye_scan -p /home/dave/mnt



  • 0
    •  Analog Employees 
    on Apr 29, 2019 2:17 PM over 1 year ago in reply to JV-IE

    Does the sshfs mount succeed?

    If you go to the mount location /home/dave/mnt/sys/bus/platform/devices do you see both the JESD XCVR and link layer cores?

    -Michael

Reply Children
  • 0
    •  Analog Employees 
    on Apr 29, 2019 2:58 PM over 1 year ago in reply to JV-IE

    You use the latest source from master for the jesd_eye_scan app?

    Do you get any errors?

  • 0
    •  Analog Employees 
    on Apr 29, 2019 3:11 PM over 1 year ago in reply to mhennerich
    If you see: Warning: empty x range [-0:-0], adjusting to [-1:1]
    Then your locale is set incorrectly, try forcing it to the gnuplot default.

    dave@HAL9000:/home/dave# LC_ALL=C jesd_eye_scan -p /home/dave/mnt
  • I get it source code from here: https://github.com/analogdevicesinc/jesd-eye-scan-gtk.git

    During build i see:

    ~/jesd-eye-scan-gtk-master$ make
    cc  -g -O2 -Wall `pkg-config --cflags gtk+-3.0` -Wl,--export-dynamic jesd_eye_scan.c `pkg-config --libs gtk+-3.0` -o jesd_eye_scan -lm
    jesd_eye_scan.c: In function ‘get_eye’:
    jesd_eye_scan.c:707:2: warning: ‘gdk_threads_enter’ is deprecated [-Wdeprecated-declarations]
      gdk_threads_enter();
      ^
    In file included from /usr/include/gtk-3.0/gdk/gdk.h:56:0,
                     from /usr/include/gtk-3.0/gtk/gtk.h:30,
                     from jesd_eye_scan.c:65:
    /usr/include/gtk-3.0/gdk/gdkthreads.h:46:10: note: declared here
     void     gdk_threads_enter                    (void);
              ^
    jesd_eye_scan.c:716:2: warning: ‘gdk_threads_leave’ is deprecated [-Wdeprecated-declarations]
      gdk_threads_leave();
      ^
    In file included from /usr/include/gtk-3.0/gdk/gdk.h:56:0,
                     from /usr/include/gtk-3.0/gtk/gtk.h:30,
                     from jesd_eye_scan.c:65:
    /usr/include/gtk-3.0/gdk/gdkthreads.h:48:10: note: declared here
     void     gdk_threads_leave                    (void);
              ^
    jesd_eye_scan.c: In function ‘worker’:
    jesd_eye_scan.c:881:2: warning: ‘gdk_threads_enter’ is deprecated [-Wdeprecated-declarations]
      gdk_threads_enter();
      ^
    In file included from /usr/include/gtk-3.0/gdk/gdk.h:56:0,
                     from /usr/include/gtk-3.0/gtk/gtk.h:30,
                     from jesd_eye_scan.c:65:
    /usr/include/gtk-3.0/gdk/gdkthreads.h:46:10: note: declared here
     void     gdk_threads_enter                    (void);
              ^
    jesd_eye_scan.c:890:2: warning: ‘gdk_threads_leave’ is deprecated [-Wdeprecated-declarations]
      gdk_threads_leave();
      ^
    In file included from /usr/include/gtk-3.0/gdk/gdk.h:56:0,
                     from /usr/include/gtk-3.0/gtk/gtk.h:30,
                     from jesd_eye_scan.c:65:
    /usr/include/gtk-3.0/gdk/gdkthreads.h:48:10: note: declared here
     void     gdk_threads_leave                    (void);
              ^
    jesd_eye_scan.c: In function ‘save_plot_pressed_cb’:
    jesd_eye_scan.c:951:39: warning: ‘GtkStock’ is deprecated [-Wdeprecated-declarations]
                                           GTK_STOCK_CANCEL,
                                           ^
    jesd_eye_scan.c:953:39: warning: ‘GtkStock’ is deprecated [-Wdeprecated-declarations]
                                           GTK_STOCK_SAVE,
                                           ^
    jesd_eye_scan.c: In function ‘set_lable_text’:
    jesd_eye_scan.c:1132:3: warning: ‘gtk_widget_modify_fg’ is deprecated: Use 'gtk_widget_override_color' instead [-Wdeprecated-declarations]
       gtk_widget_modify_fg(label, GTK_STATE_NORMAL, &color);
       ^
    In file included from /usr/include/gtk-3.0/gtk/gtk.h:263:0,
                     from jesd_eye_scan.c:65:
    /usr/include/gtk-3.0/gtk/deprecated/gtkstyle.h:749:13: note: declared here
     void        gtk_widget_modify_fg          (GtkWidget            *widget,
                 ^
    jesd_eye_scan.c: In function ‘set_per_lane_status’:
    jesd_eye_scan.c:1219:4: warning: ‘gtk_widget_modify_fg’ is deprecated: Use 'gtk_widget_override_color' instead [-Wdeprecated-declarations]
        gtk_widget_modify_fg(label, GTK_STATE_NORMAL, &color);
        ^
    In file included from /usr/include/gtk-3.0/gtk/gtk.h:263:0,
                     from jesd_eye_scan.c:65:
    /usr/include/gtk-3.0/gtk/deprecated/gtkstyle.h:749:13: note: declared here
     void        gtk_widget_modify_fg          (GtkWidget            *widget,
                 ^
    jesd_eye_scan.c: In function ‘jesd_update_status’:
    jesd_eye_scan.c:1273:2: warning: ‘gtk_widget_modify_fg’ is deprecated: Use 'gtk_widget_override_color' instead [-Wdeprecated-declarations]
      gtk_widget_modify_fg(measured_link_clock, GTK_STATE_NORMAL, &color);
      ^
    In file included from /usr/include/gtk-3.0/gtk/gtk.h:263:0,
                     from jesd_eye_scan.c:65:
    /usr/include/gtk-3.0/gtk/deprecated/gtkstyle.h:749:13: note: declared here
     void        gtk_widget_modify_fg          (GtkWidget            *widget,
                 ^
    jesd_eye_scan.c:1282:2: warning: ‘gtk_widget_modify_fg’ is deprecated: Use 'gtk_widget_override_color' instead [-Wdeprecated-declarations]
      gtk_widget_modify_fg(lane_rate_div, GTK_STATE_NORMAL, &color);
      ^
    In file included from /usr/include/gtk-3.0/gtk/gtk.h:263:0,
                     from jesd_eye_scan.c:65:
    /usr/include/gtk-3.0/gtk/deprecated/gtkstyle.h:749:13: note: declared here
     void        gtk_widget_modify_fg          (GtkWidget            *widget,
                 ^
    jesd_eye_scan.c: In function ‘main’:
    jesd_eye_scan.c:1397:2: warning: ‘g_mutex_new’ is deprecated [-Wdeprecated-declarations]
      mutex = g_mutex_new();
      ^
    In file included from /usr/include/glib-2.0/glib.h:107:0,
                     from /usr/include/gtk-3.0/gdk/gdkconfig.h:13,
                     from /usr/include/gtk-3.0/gdk/gdk.h:30,
                     from /usr/include/gtk-3.0/gtk/gtk.h:30,
                     from jesd_eye_scan.c:65:
    /usr/include/glib-2.0/glib/deprecated/gthread.h:277:17: note: declared here
     GMutex *        g_mutex_new             (void);
                     ^
    jesd_eye_scan.c:1400:2: warning: ‘gdk_threads_init’ is deprecated [-Wdeprecated-declarations]
      gdk_threads_init();
      ^
    In file included from /usr/include/gtk-3.0/gdk/gdk.h:56:0,
                     from /usr/include/gtk-3.0/gtk/gtk.h:30,
                     from jesd_eye_scan.c:65:
    /usr/include/gtk-3.0/gdk/gdkthreads.h:44:10: note: declared here
     void     gdk_threads_init                     (void);
              ^
    jesd_eye_scan.c:1401:2: warning: ‘gdk_threads_enter’ is deprecated [-Wdeprecated-declarations]
      gdk_threads_enter();
      ^
    In file included from /usr/include/gtk-3.0/gdk/gdk.h:56:0,
                     from /usr/include/gtk-3.0/gtk/gtk.h:30,
                     from jesd_eye_scan.c:65:
    /usr/include/gtk-3.0/gdk/gdkthreads.h:46:10: note: declared here
     void     gdk_threads_enter                    (void);
              ^
    jesd_eye_scan.c:1424:2: warning: ‘gdk_color_parse’ is deprecated: Use 'gdk_rgba_parse' instead [-Wdeprecated-declarations]
      gdk_color_parse("red", &color_red);
      ^
    In file included from /usr/include/gtk-3.0/gdk/gdkcairo.h:26:0,
                     from /usr/include/gtk-3.0/gdk/gdk.h:33,
                     from /usr/include/gtk-3.0/gtk/gtk.h:30,
                     from jesd_eye_scan.c:65:
    /usr/include/gtk-3.0/gdk/deprecated/gdkcolor.h:79:11: note: declared here
     gboolean  gdk_color_parse     (const gchar    *spec,
               ^
    jesd_eye_scan.c:1425:2: warning: ‘gdk_color_parse’ is deprecated: Use 'gdk_rgba_parse' instead [-Wdeprecated-declarations]
      gdk_color_parse("green", &color_green);
      ^
    In file included from /usr/include/gtk-3.0/gdk/gdkcairo.h:26:0,
                     from /usr/include/gtk-3.0/gdk/gdk.h:33,
                     from /usr/include/gtk-3.0/gtk/gtk.h:30,
                     from jesd_eye_scan.c:65:
    /usr/include/gtk-3.0/gdk/deprecated/gdkcolor.h:79:11: note: declared here
     gboolean  gdk_color_parse     (const gchar    *spec,
               ^
    jesd_eye_scan.c:1426:2: warning: ‘gdk_color_parse’ is deprecated: Use 'gdk_rgba_parse' instead [-Wdeprecated-declarations]
      gdk_color_parse("orange", &color_orange);
      ^
    In file included from /usr/include/gtk-3.0/gdk/gdkcairo.h:26:0,
                     from /usr/include/gtk-3.0/gdk/gdk.h:33,
                     from /usr/include/gtk-3.0/gtk/gtk.h:30,
                     from jesd_eye_scan.c:65:
    /usr/include/gtk-3.0/gdk/deprecated/gdkcolor.h:79:11: note: declared here
     gboolean  gdk_color_parse     (const gchar    *spec,
               ^
    jesd_eye_scan.c:1515:2: warning: ‘gdk_threads_leave’ is deprecated [-Wdeprecated-declarations]
      gdk_threads_leave();
      ^
    In file included from /usr/include/gtk-3.0/gdk/gdk.h:56:0,
                     from /usr/include/gtk-3.0/gtk/gtk.h:30,
                     from jesd_eye_scan.c:65:
    /usr/include/gtk-3.0/gdk/gdkthreads.h:48:10: note: declared here
     void     gdk_threads_leave                    (void);
    

    Where can I see those error messages?

    When I press start, the eye scan tool get stuck. The only thing I can do is kill the process of the application.

  • 0
    •  Analog Employees 
    on Apr 29, 2019 7:35 PM over 1 year ago in reply to JV-IE

    Warnings and errors are typically printed to the console where the process is started via stdout and stderr.

    If the app just get's stuck try to open it strace and provide the log.