Re: [casper] Dropped packets during HASHPIPE data acquisition

2020-04-17 Thread David MacMahon
Hi, Mark, Yeah packet sockets do require extra privileges. The solution/workaround that Hashpipe uses is to instal hashpipe with the suid bit set. The init() functions of the threads will be called with the privileges of the suid user. Then hashpipe will drop the suid privileges before

Re: [casper] Dropped packets during HASHPIPE data acquisition

2020-04-17 Thread Mark Ruzindana
Hi all, Hope you're doing fine. I was able to add packet sockets and the functions provided by Hashpipe in hashpipe_pktsock.h, but I get permission issues when trying to capture packets as a non-root user. The method I am trying to use to overcome this is owning the plugins/executables as root

Re: [casper] HLS VIvado with the casper-toolflow

2020-04-17 Thread Sebastian Antonio Jorquera Tapia
Yes, the error comes from the Vivado compilation stage.. Today I changed the hls code to not use the hls_stream objects in the input/output ports and I have been able to compile the model, so the problem seems to be in that direction. I think I need more time reading the hls_stream documentation

Re: [casper] Re: Red Pitaya Tutorial 2 Reg

2020-04-17 Thread Aravind Venkitasubramony
Thanks Adam I am not building a custom FPGA board. I will be using the Red Pitaya and ZCU 111 to build custom projects and applications I can do with these boards. I am sorry if I didn't make that clear. I was just checking how to proceed further since I got all the tutorials to work and have a

Re: [casper] Re: Red Pitaya Tutorial 2 Reg

2020-04-17 Thread Adam Isaacson
Hi Aravind, I am assuming you are referring to custom boards other than the Red Pitaya and that you are using the Red Pitaya as a learning platform? If so our annual Hardware Porting Workshop is a great way to learn how to port to custom hardware - alas, that has been postponed this year. In

Re: [casper] Re: Red Pitaya Tutorial 2 Reg

2020-04-17 Thread Aravind Venkitasubramony
Thank you Adam, I will send the email out to learn more about the ZCU111 work going on. I did join the Slack channel. I will check that out as well. What would be a good way to build on these red pitaya tutorials to develop custom applications? On Thu, Apr 16, 2020 at 1:18 PM Adam Isaacson

Re: [casper] ROACH1 - ethernet problem.

2020-04-17 Thread James Smith
Ramesh, I've never actually gotten a ROACH to talk directly to a server. The auto-negotiation in the NIC is not great. You pretty much need a switch in-between. Which is why Jason recommended using an old 100Mbps switch. Regards, James On Fri, Apr 17, 2020 at 4:00 PM Ramesh Karuppusamy

Re: [casper] ROACH1 - ethernet problem.

2020-04-17 Thread Jason Manley
Yeah, but as I say, this never fixed the 1Gbps problem anyway. Was a weird problem. Jason > On 17 Apr 2020, at 16:00, Ramesh Karuppusamy wrote: > > > > I just tried this by putting a spare network interface on to 100mbps and also > forcing the ROACH1 eth0 to 100mpbs - this did not help.

Re: [casper] ROACH1 - ethernet problem.

2020-04-17 Thread Ramesh Karuppusamy
I just tried this by putting a spare network interface on to 100mbps and also forcing the ROACH1 eth0 to 100mpbs - this did not help. Looks like the ethernet device on the ROACH1 is dead. I used mii-tool to force 100mbps operation: root@roach:~# mii-tool -F 100baseTx-HD eth0 root@roach:~#

Re: [casper] ROACH1 - ethernet problem.

2020-04-17 Thread Indrajit Vittal Barve
Dear Ramesh, Here is the link you can download and write the image to the SD card. If possible use the 2GB SD card which is shipped along with the board. https://drive.google.com/open?id=1sK69IUDKkdEw3W6aF0r7wll0QR1KoSiS sudo dd of=/dev/mmcblk0p1 if=~/roach1_imagebkup_20190416_2GB.img Note

Re: [casper] ROACH1 - ethernet problem.

2020-04-17 Thread Ramesh Karuppusamy
Hi Indrajit, Useful to know - I believe I do have our original ROACH1 image somewhere, therefore I will try what you suggested. Thanks! Cheers, Ramesh > On 17. Apr 2020, at 15:30, Indrajit Vittal Barve wrote: > > Dear Ramesh Karuppusamy, > > This kind of issues we faced several times,

Re: [casper] ROACH1 - ethernet problem.

2020-04-17 Thread James Smith
Just to add to what Jason has said, older 100 Mbps switches are easy enough to pick up secondhand on eBay and such, depending on where you are. They're quite cheap. On Fri, Apr 17, 2020 at 3:19 PM Jason Manley wrote: > > > Since we are running the ancient Debian Etch on this unit, I have no >

Re: [casper] HLS VIvado with the casper-toolflow

2020-04-17 Thread Jack Hickish
Hi Sebastian, What you're suggesting _should_ work, but I don't know of anyone that has actually tried. Before getting too deep, does your design compile without the HLS black box in simulink? Does your error come from system generator or from the backend vivado compile? If the latter, you can

Re: [casper] ROACH1 - ethernet problem.

2020-04-17 Thread Indrajit Vittal Barve
Dear Ramesh Karuppusamy, This kind of issues we faced several times, We use to do re-write the SD card image. Then it gets resolved. If you want the image for the roach1 I can provide the same. Then you can copy your BOF and run your code. --- Thanks and Regards Indrajit Vittal Barve On

Re: [casper] ROACH1 - ethernet problem.

2020-04-17 Thread Jason Manley
> Since we are running the ancient Debian Etch on this unit, I have no access > to ethtool, with which I understand that you can switch to 100mpbs. Is there > any other way to force 100mbps operation? This actually wouldn't work anyway (we tried it). Something is broken in that Nat.Semi

Re: [casper] ROACH1 - ethernet problem.

2020-04-17 Thread Ramesh Karuppusamy
Thanks Jason, I thought about it. Since we are running the ancient Debian Etch on this unit, I have no access to ethtool, with which I understand that you can switch to 100mpbs. Is there any other way to force 100mbps operation? Cheers, Ramesh > On 17. Apr 2020, at 15:10, Jason Manley

Re: [casper] ROACH1 - ethernet problem.

2020-04-17 Thread Jason Manley
Can you try it with a 100mbps link partner? ROACH1's PHY was notoriously fickle at 1Gbps. We never did get to the bottom of it, even with Nat.Semi's support, and switched PHYs on ROACH2. Jason Manley DSP Manager SKA-SA Cell: +27 82 662 7726 Work: +27 21 506 7300 > On 17 Apr 2020, at 14:56,

[casper] ROACH1 - ethernet problem.

2020-04-17 Thread Ramesh Karuppusamy
Dear All, I hope you are all staying healthy. The gigabit ethernet on our ~10 year old ROACH1 board went silent all of a sudden this morning. The ethernet port show no activity (the yellow LED flickers very occasionally). On booting the unit off the SD card, and manually bringing up the