Re: [casper] Error in tut3.py: No module named spead64_48
Hello Xavier, Casperfpga is lacking a bit of documentation, but see Jason Manley's email to the list from yesterday. It's got a bit of a primer, and it works broadly similarly to Corr but with some added useful time-saving features. It would be good to get around to writing a user manual for it at some point... Regards, James On Mon, Jun 12, 2017 at 5:04 PM, Xavier Boschwrote: > Hi Jack, > Yes, I only need it for communications, I do not need the corr_functions. > I could not find documentation on casperfpga, so I end using the > katcp_wrapper.py together with katcp==0.5.1, a version of what you > suggested. > For now it is working. > Thank you, > XB > > > > > On Wed, Jun 7, 2017 at 8:45 AM Jack Hickish wrote: > >> Hi Xavier, >> >> Assuming you're only going to use the katcp stuff in Corr to talk to your >> boards, you don't really need corr_functions at all. >> >> In fact you can edit the __init__.py file in Corr/ to remove a lot of the >> superfluous imports if they are causing you trouble. >> The real solution is that everyone should be using the casperfpga >> package, not Corr, but I don't know if this is adequately documented on the >> wiki (I still use corr myself, because it works and I don't like change). >> Purging the tutorials and wiki of suggestions to install corr will be part >> of the workshop prep work in the next couple of months. >> >> Jack >> >> PS. When you get the corr import working, you might find you get another >> error(!) when you try to make a connection to a board. I think you'll find >> you need to downgrade your katcp version (my local setup uses 0.5.4). >> >> >> On Mon, Jun 5, 2017, 12:33 PM Xavier Bosch >> wrote: >> >>> hi everyone, >>> I am new in this list and also new in the CASPER world. I am learning >>> through the tutorials provided in https://github.com/casper- >>> astro/tutorials_devel.git . I am using Ubuntu 14.04.5 and I been able >>> to compile and sensitize (generate the .bof file) up to tut3, included. Now >>> I am trying to get data out of the ROACH2 using the Python file that comes >>> with the tutorial and I am getting the following error: >>> >>> File "/usr/local/lib/python2.7/dist-packages/corr/corr_functions.py", >>> line 55, in >>> import spead64_48 as spead >>> ImportError: No module named spead64_48 >>> >>> I have the following Python modules installed in my system: >>> >>> corr==0.7.3 >>> construct==2.8.12 -> I had to downgrade it to==2.5.3 because it was >>> giving me trouble. >>> katcp==0.6.1 >>> numpy==1.12.1 >>> spead==0.5.1 >>> ... >>> >>> but there is nothing like spead64_48 in my system. I tried changing >>> thing here and there but nothing worked so far. >>> What I am doing wrong? >>> Thanks, >>> XB >>> >>> -- >>> You received this message because you are subscribed to the Google >>> Groups "casper@lists.berkeley.edu" group. >>> To unsubscribe from this group and stop receiving emails from it, send >>> an email to casper+unsubscr...@lists.berkeley.edu. >>> To post to this group, send email to casper@lists.berkeley.edu. >>> >> -- > You received this message because you are subscribed to the Google Groups " > casper@lists.berkeley.edu" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to casper+unsubscr...@lists.berkeley.edu. > To post to this group, send email to casper@lists.berkeley.edu. > -- You received this message because you are subscribed to the Google Groups "casper@lists.berkeley.edu" group. To unsubscribe from this group and stop receiving emails from it, send an email to casper+unsubscr...@lists.berkeley.edu. To post to this group, send email to casper@lists.berkeley.edu.
[casper] NFS file handle error
Hello everyone... I had a NFS server working with the ROACH, but I had to reconfigured the server from scratch. When I try to boot the ROACH from flash memory, I get the following errors find: ./sshd.pid: Stale NFS file handle find: ./motd: Stale NFS file handle rm: cannot remove `./sshd.pid': Stale NFS file handle rm: cannot remove `./motd': Stale NFS file handle * bootclean: Failure cleaning /var/run. /etc/rcS.d/S55bootmisc.sh: line 43: /var/run/motd: Stale NFS file handle /etc/rcS.d/S55bootmisc.sh: line 44: /var/run/motd: Stale NFS file handle chown: failed to get attributes of `/var/log/dmesg': Stale NFS file handle chmod: failed to get attributes of `/var/log/dmesg': Stale NFS file handle touch: cannot touch `/var/log//dmesg.0': Stale NFS file handle /etc/rcS.d/S55bootmisc.sh: line 50: /var/log/dmesg: Stale NFS file handle chgrp: cannot access `/var/log/dmesg': Stale NFS file handle rm: cannot remove `/var/lib/urandom/random-seed': Stale NFS file handle INIT: Entering runlevel: 2 8 Oct 16:05:40 ntpdate[475]: no servers can be used, exiting Can this been occurring due to the client still maintains and actively references to the previous configuration of the server? and if so, How can I resolve this? Any idea? Regards Claudio Rivera -- You received this message because you are subscribed to the Google Groups "casper@lists.berkeley.edu" group. To unsubscribe from this group and stop receiving emails from it, send an email to casper+unsubscr...@lists.berkeley.edu. To post to this group, send email to casper@lists.berkeley.edu.
Re: [casper] Error in tut3.py: No module named spead64_48
Hi Jack, Yes, I only need it for communications, I do not need the corr_functions. I could not find documentation on casperfpga, so I end using the katcp_wrapper.py together with katcp==0.5.1, a version of what you suggested. For now it is working. Thank you, XB On Wed, Jun 7, 2017 at 8:45 AM Jack Hickishwrote: > Hi Xavier, > > Assuming you're only going to use the katcp stuff in Corr to talk to your > boards, you don't really need corr_functions at all. > > In fact you can edit the __init__.py file in Corr/ to remove a lot of the > superfluous imports if they are causing you trouble. > The real solution is that everyone should be using the casperfpga package, > not Corr, but I don't know if this is adequately documented on the wiki (I > still use corr myself, because it works and I don't like change). Purging > the tutorials and wiki of suggestions to install corr will be part of the > workshop prep work in the next couple of months. > > Jack > > PS. When you get the corr import working, you might find you get another > error(!) when you try to make a connection to a board. I think you'll find > you need to downgrade your katcp version (my local setup uses 0.5.4). > > > On Mon, Jun 5, 2017, 12:33 PM Xavier Bosch > wrote: > >> hi everyone, >> I am new in this list and also new in the CASPER world. I am learning >> through the tutorials provided in >> https://github.com/casper-astro/tutorials_devel.git . I am using Ubuntu >> 14.04.5 and I been able to compile and sensitize (generate the .bof file) >> up to tut3, included. Now I am trying to get data out of the ROACH2 using >> the Python file that comes with the tutorial and I am getting the following >> error: >> >> File "/usr/local/lib/python2.7/dist-packages/corr/corr_functions.py", >> line 55, in >> import spead64_48 as spead >> ImportError: No module named spead64_48 >> >> I have the following Python modules installed in my system: >> >> corr==0.7.3 >> construct==2.8.12 -> I had to downgrade it to==2.5.3 because it was >> giving me trouble. >> katcp==0.6.1 >> numpy==1.12.1 >> spead==0.5.1 >> ... >> >> but there is nothing like spead64_48 in my system. I tried changing thing >> here and there but nothing worked so far. >> What I am doing wrong? >> Thanks, >> XB >> >> -- >> You received this message because you are subscribed to the Google Groups >> "casper@lists.berkeley.edu" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to casper+unsubscr...@lists.berkeley.edu. >> To post to this group, send email to casper@lists.berkeley.edu. >> > -- You received this message because you are subscribed to the Google Groups "casper@lists.berkeley.edu" group. To unsubscribe from this group and stop receiving emails from it, send an email to casper+unsubscr...@lists.berkeley.edu. To post to this group, send email to casper@lists.berkeley.edu.
Re: [casper] Uploading JASPER files on SKARAB
Hi Mark The package you're looking for is called casperfpga. https://github.com/ska-sa/casperfpga Many people were only using corr for the FPGA interaction, so we split this out into separate packages, casperfgpa and corr2. Development on the old corr package has stopped. casperfpga is compatible with ROACH2 and SKARAB, using different classes because the protocols differ: myroach2 = casperfpga.KatcpFpga("hostname_or_ip_address") or, myskarab = casperfpga.SkarabFpga('hostname_or_ip_address') After that, interacting with the two should be the same, but is a bit different from corr... Firstly, you should consider using the new .fpg files, rather than the .bof files. There's a lot more metadata in the fpg files that casperfpga supports, including a nifty feature of bit-wise addressing of registers and automatic unpacking of snapshot blocks. to program: myskarab.upload_to_ram_and_program('myfile.fpg') to read registers: In [6]: f.registers.status_barrel.read() Out[6]: {'data': {'dv_cnt': 0, 'eof_cnt': 0, 'hdrfix_cnt': 0}, 'timestamp': 1497249196.65738} or, to read a snapshot block: f.snapshots.snap_cd0_ss.read() You can also pass a number of parameters to control them: f.snapshots.snap_cd0_ss.read(man_trig=True, man_valid=True, read_nowait=True) If you just want a quick 'n dirty printout of all the values in there to your ipython session, consider f.snapshots.snap_acc.print_snap() instead of read(). If you don't like the object-oriented approach though, the old read and write functions are still there in casperfpga, so you can use it in much the same way as the old corr. Not everything is fully implemented for SKARAB yet. Shared BRAM writing is not currently working, and you can only use the 1G or first 40G port for controlling the board (in fact, atm, I think you *have* to have one 40G port in the design for it to work properly, since this pulls-in the microblaze etc). It's a work in progress! Happy to chat in telecon to discuss details. Jason On 09 Jun 2017, at 22:18, Peryer, Mark A.wrote: > Hello, > > I am currently trying to find a way to load the .bof file generated from > JASPER onto a SKARAB. Does a library such as corr, that is used for the > ROACH2, exist for the SKARAB, or is there some other method that needs to be > used? > > Thanks, > > Mark > > -- > You received this message because you are subscribed to the Google Groups > "casper@lists.berkeley.edu" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to casper+unsubscr...@lists.berkeley.edu. > To post to this group, send email to casper@lists.berkeley.edu. -- You received this message because you are subscribed to the Google Groups "casper@lists.berkeley.edu" group. To unsubscribe from this group and stop receiving emails from it, send an email to casper+unsubscr...@lists.berkeley.edu. To post to this group, send email to casper@lists.berkeley.edu.