Hi Heystek, I adapted casperfpga to work with ROACH but before you take the following advice please bear in mind that I haven't updated my working version of it for some time: I'm on commit 475ed6826b893230d62da8c7dcdcc2541bea83cf of the devel branch, Fri Mar 4 17:27:09 2016. Newer versions *shouldn't* break the approach that I use but I can't guarantee it as I haven't tested it.
So with that having been said, this is what I do to fire up ROACH1 boards with casperfpga: gateware = "my_compiled_file" fpga = casperfpga.katcp_fpga.KatcpFpga(RoachIP, roachKATCPPort) fpga.system_info['program_filename'] = '%s.bof' % gateware #bof needs to be in appropriate directory on roachfs fpga.program() fpga.get_system_information('%s.fpg' % gateware) # fpg file needs to be in same directory as script being run Proceed as normal with casperfpga. If that doesn't work, post again with the error messages you get and we'll see what we can do. Regards, James On Mon, Apr 24, 2017 at 9:32 AM, Marc Welz <m...@ska.ac.za> wrote: > It has been a while, but I am not sure if/how the remote upload was > implemented in the roach1 and what its syntax was - it might have been > different. Telnet to port 7147 on the roach and type ?help - if there > is no progremote, see if you can find something similar ... > > On Sat, Apr 22, 2017 at 11:26 AM, Heystek Grobler > <heystekgrob...@gmail.com> wrote: > > Good day > > > > I have an interesting problem. I'm used to working on a ROACH2 and now I > > must do a project on a ROACH1 board. > > > > When Running the casperfpga package I received this error: > > > > In [1]: import casperfpga > > > > In [2]: fpga=casperfpga.katcp_fpga.KatcpFpga('192.168.33.3') > > In [3]: > > fpga.upload_to_ram_and_program('heystek_tut3_2017_ > Apr_19_1133.bof')------------------------------------------- > -------------------------------- > > RuntimeError Traceback (most recent call > last) > > <ipython-input-3-bec45faa4f38> in <module>() > > ----> 1 fpga.upload_to_ram_and_program('heystek_tut3_2017_ > Apr_19_1133.bof') > > > > /usr/local/lib/python2.7/dist-packages/casperfpga/katcp_fpga.pyc in > > upload_to_ram_and_program(self, filename, port, timeout, wait_complete) > > 442 if request_result != '': > > 443 raise RuntimeError('progremote request(%s) on host %s > > failed' % > > --> 444 (request_result, self.host)) > > 445 > > 446 # start the upload thread and join > > > > RuntimeError: progremote request(Request to client 192.168.33.3 failed.) > on > > host 192.168.33.3 failed > > > > I then tried running the corr package and I got this error: > > > > In [7]: fpga=corr.katcp_wrapper.FpgaClient('192.168.33.3',7147) > > ------------------------------------------------------------ > --------------- > > TypeError Traceback (most recent call > last) > > <ipython-input-7-455a6a194fea> in <module>() > > ----> 1 fpga=corr.katcp_wrapper.FpgaClient('192.168.33.3',7147) > > > > /usr/local/lib/python2.7/dist-packages/corr/katcp_wrapper.pyc in > > __init__(self, host, port, tb_limit, timeout, logger) > > 86 self.host = host > > 87 self._timeout = timeout > > ---> 88 self.start(daemon = True) > > 89 > > 90 # async stuff > > > > TypeError: start() got an unexpected keyword argument 'daemon' > > > > With my ROACH2 I had to update the kernel and file system with this > > instructions to solve the problem: > > https://www.mail-archive.com/casper@lists.berkeley.edu/msg06452.html > > > > but this does not work on the ROACH1 so I reverted back to this kernel > and > > file system > > https://casper.berkeley.edu/wiki/Setting_Up_BORPH_on_ROACH > > > > What am I doing wrong? > > > > Thanks for the help > > > > Heystek > > > > -- > > 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.