Also the latest versions has kcpcmd built in. You can telnet to port 23 and
then run "kcpcmd command" e.g.

# kcpcmd progdev boffile

Note no need for the ?, also this is just a utility that talks to
tcpborphserver3 which is listening on port 7147 (which is the port you
telnet to to run katcp commands). So this still expects the file in /usr/bof


On Fri, Sep 6, 2013 at 3:26 PM, Alec Rust <[email protected]> wrote:

> You have to run progdev in the telnet session.
>
> telnet roach_ip 7147
> then
> ?help for a list of commands
> ?progdev boffile
>
> Lemme know if that works.
>
>
> On Fri, Sep 6, 2013 at 3:24 PM, Kujawski, Joseph <[email protected]>wrote:
>
>> Alec,
>>
>> progdev does not exist on my ROACH2 when booted with soloboot:
>>
>> /usr/bof # wget http://169.254.241.40/casper_test_2013_Aug_21_1251.bof
>> Connecting to 169.254.241.40 (169.254.241.40:80)
>> casper_test_2013_Aug 100%
>> |**********************************************************************************************************|
>> 19131k  0:00:00 ETA
>> /usr/bof # progdev casper_test_2013_Aug_21_1251.bof
>> -sh: progdev: not found
>> /usr/bof #
>>
>> Do you have any other suggestions?
>>
>> -Joe Kujawski
>>
>>
>> On Fri, Sep 6, 2013 at 9:19 AM, Alec Rust <[email protected]> wrote:
>>
>>> Hi Joe, the bof file should be uploaded in to /usr/bof (note with
>>> tcpborphserver3 the boffiles are not executable any more, you have to use
>>> progdev).
>>>
>>> Telnet to the ROACH and run progdev:
>>> telnet roach_ip 7147
>>>   ?progdev boffile
>>>
>>> You should get !progdev ok
>>> ?listdev should list all your registers
>>>
>>> type ?help for a list of commands.
>>>
>>> You can transfer and program the boffile in one move using ?upload port,
>>> or just transfer using ?uploadbof port filename.
>>>
>>> #help upload
>>> upload\_and\_program\_a\_(possibly\_compressed)\_boffile\_(?upload\_[port\_[length\_[timeout]]])
>>> #help uploadbof
>>> upload\_a\_(possibly\_compressed)\_boffile\_(?uploadbof\_port\_filename\_[length\_[timeout]])
>>>
>>> Note the file then needs to be sent across using a separate TCP stream
>>> to the specified port (in linux use netcat, not sure what to use in windows
>>> but there is probably some netcat client available)
>>>
>>> Please let me know if you need more info.
>>>
>>> Regards
>>> Alec
>>>
>>>
>>> On Fri, Sep 6, 2013 at 1:25 AM, Kujawski, Joseph <[email protected]>wrote:
>>>
>>>> Laura,
>>>>
>>>> I am not using KATCP as the instruction set that I have access to does
>>>> not explain how to use it.  Do you have a link to some 'using KATCP'
>>>> instructions that I can follow?
>>>>
>>>> My question is simply this:
>>>>
>>>> Given that I have a .bof file on my PC, how do I program the FPGA on
>>>> the ROACH2 system to execute the program?
>>>>
>>>> I already know that:
>>>> 1) The ROACH2 boots into soloboot.
>>>> 2) I can physically connect to the ROACH2 (i.e. I have the proper
>>>> hardware in place).
>>>> 3) I can Telnet into the ROACH2 (i.e. the proper software is in place
>>>> on both my Windows machine and the ROACH2).
>>>> 4) I have a valid .bof file on the Windows machine.
>>>> 5) I can transfer this file to the ROACH2.
>>>>
>>>> -Joe Kujawski
>>>>
>>>>
>>>> On Thu, Sep 5, 2013 at 6:47 PM, Laura Vertatschitsch 
>>>> <[email protected]>wrote:
>>>>
>>>>> hey joe,
>>>>>
>>>>> how far did you get with KATCP and progdev?
>>>>>
>>>>> is your question perhaps about using the uploadbof command (mail list
>>>>> archive<http://www.mail-archive.com/[email protected]/msg03726.html>
>>>>> )?
>>>>>
>>>>> --Laura
>>>>>
>>>>>
>>>>> On Thu, Sep 5, 2013 at 11:21 PM, Kujawski, Joseph <[email protected]
>>>>> > wrote:
>>>>>
>>>>>> I have a ROACH2 that is in the following configuration:
>>>>>>
>>>>>> 1) My external computer is a Windows 7 (64 bit) computer.
>>>>>> 2) The Windows machine is connected to the ROACH2 via a direct cable
>>>>>> connection from the PC to the PPC ethernet port on the ROACH2.
>>>>>> 3) I am able to telnet into the ROACH2 and transfer files from the PC
>>>>>> to the ROACH2.
>>>>>>
>>>>>> According to the instructions on the CASPER website, I should be able
>>>>>> to program the system by executing the .bof file, however, this does not
>>>>>> work.  One individual associated with the project has indicated that the
>>>>>> ROACH2 cannot be executed and instead needs to be programmed via KATCP's
>>>>>> "progdev" command.  What do I do next?
>>>>>>
>>>>>> Thanks,
>>>>>>
>>>>>> -Joe Kujawski
>>>>>>
>>>>>> --
>>>>>> **************************************
>>>>>> * Joe Kujawski
>>>>>> * Siena College
>>>>>> * Dept. of Physics and Astronomy, RB 113
>>>>>> * 515 Loudon Road
>>>>>> * Loudonville, NY 12211-1462
>>>>>> *
>>>>>> * Email: [email protected]
>>>>>> * Phone: 518-782-6885
>>>>>> * Fax: 518-783-2986
>>>>>> **************************************
>>>>>>
>>>>>>
>>>>>
>>>>
>>>>
>>>> --
>>>> **************************************
>>>> * Joe Kujawski
>>>> * Siena College
>>>> * Dept. of Physics and Astronomy, RB 113
>>>> * 515 Loudon Road
>>>> * Loudonville, NY 12211-1462
>>>> *
>>>> * Email: [email protected]
>>>> * Phone: 518-782-6885
>>>> * Fax: 518-783-2986
>>>> **************************************
>>>>
>>>>
>>>
>>
>>
>> --
>> **************************************
>> * Joe Kujawski
>> * Siena College
>> * Dept. of Physics and Astronomy, RB 113
>> * 515 Loudon Road
>> * Loudonville, NY 12211-1462
>> *
>> * Email: [email protected]
>> * Phone: 518-782-6885
>> * Fax: 518-783-2986
>> **************************************
>>
>>
>

Reply via email to