I think Jason is right, ROACH-2 file system and kernel on my board were old and didn't match the version of casperfpga. I updated the kernel, and now I can program my FPGA using corr package. I'll migrate to casperfpga if needed, but now corr is enough.
Just as Jason said, do NOT overwrite uboot. It took me a long time to recover from a damaged uboot and it really worried me a lot. I'm very thankful to Mo and Jason who help me a lot. Thanks. Shanquan On Thu, Aug 4, 2016 at 2:39 AM, Jason Manley <[email protected]> wrote: > I suspect a mismatch between your casperfpga version and ROACH2 > filesystem. Like progremote is not supported? We are running different > versions so I can't be sure which version you should be running, but it > looks like these are the latest public releases: > > romfs (root filesystem for Linux, which should have the new > tcpborphserver): > https://github.com/ska-sa/roach2_nfs_uboot/blob/master/boot/roach2-root-phyprog-release-2015-04-01.romfs > > and > > You might need a new kernel to go with it, if your version is very old: > https://github.com/ska-sa/roach2_nfs_uboot/blob/master/boot/uImage-roach2-3.16-hwmon > > From https://casper.berkeley.edu/wiki/ROACH_kernel_uboot_update the > procedure to update the root filesystem is NOT SHOWN. Please do NOT > overwrite uboot (step #2 and #3), because then you can't recover from a > failed upload and you will brick the board (then only recoverable with a > jtag flash). IIRC, the command is run newroot and then you transfer the > file via ymodem. printenv will show you the available macros. It's quite > slow (many minutes) over the serial interface. You can also do it over the > network, but then you have to setup a tftp server. As long as you don't > overwrite uboot, you can recover from any failed upload by trying again. > > I'm cc'ing Marc Welz and Alec Rust for their comment in case I've got the > versions wrong, or there's a newer version that you should be using that > hasn't been uploaded to git yet. > > Jason > > > On 03 Aug 2016, at 23:50, Alec Josaitis <[email protected]> wrote: > > > Dear Casperites, > > > > I'm facing the same error that Shanquan was facing when following the > "Introduction to Simulink" (first tutorial) for the Roach2. Please see > below: > > > > > > RuntimeError Traceback (most recent call > last) > > <ipython-input-4-51f328acfe29> in <module>() > > ----> 1 > fpga.upload_to_ram_and_program('/u/home/josaitis/mlib_devel/fpg_files_casper_tutorial/atj_t1_2016_Jul_20_1519.fpg') > > > > > /usr/local/anaconda/lib/python2.7/site-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 roach020D19 failed.) > on host roach020D19 failed > > > > > > Something to also note, when this error occurs in iPython (as instructed > to use in the tutorial), the following printout statement occurs in my > minicom connection to the Roach2 board: > > > > call: no dispatch function for ?progremote > > > > Does anybody have recommendation on how to help Shanquan and my issue? > > > > Best, > > Alec > > > > > > > > > > Alec Josaitis > > Candidate for B.S., Honors Physics > > University of Michigan Men's Glee Club, Alumni Relations Manager > > > > On Mon, Jul 18, 2016 at 3:10 PM, Shanquan Tian <[email protected]> > wrote: > > Dear CASPER experts, > > > > I'm sorry for this spam. I'm an exchange undergraduate student working > in Yale university now. I had a problem while using Python to connect my PC > to the ROACH2 board. > > I've gotten .fpg files already using Simulink and Xilinx ISE. Now my > purpose is to load the file to the board and program it. > > > > I connected my RHEL_6 PC to ROACH-2, it loaded Busybox from flash, it > also gets access to the Internet (my PC 192.168.1.2, board:192.168.1.3), > and I can use telnet to log in the board successfully. > > But when I used Python, it gave me error. Look: > > > > > /**************************************************************************************************************************************************/ > > Python 2.7.10 (default, Jul 18 2016, 09:53:11) > > [GCC 4.4.7 20120313 (Red Hat 4.4.7-17)] on linux2 > > Type "help", "copyright", "credits" or "license" for more information. > > >>> import casperfpga > > >>> fpga=casperfpga.katcp_fpga.KatcpFpga('192.168.1.3') > > >>> > fpga.upload_to_ram_and_program('/nfs_share/tut1_2016_Jul_14_1129.fpg') > > Traceback (most recent call last): > > File "<stdin>", line 1, in <module> > > File > "/usr/local/lib/python2.7/site-packages/casperfpga/katcp_fpga.py", line > 358, in upload_to_ram_and_program > > raise RuntimeError('progremote request(%s) on host %s failed' % > (request_result, self.host)) > > RuntimeError: progremote request(Request to client 192.168.1.3 failed.) > on host 192.168.1.3 failed > > > /***************************************************************************************************************************************************/ > > > > Maybe the reason is I havn't set up python client on the board > correctly. How can I set it up? > > Help me please, thank you very much! > > > > Sincerely, > > Shanquan Tian > > Exchange undergraduate student, Yale > > > >

