Re: Re: [casper] How to check or modify the network setting on ROACH2 ?
Thanks for you help. I will try that as your suggestion. Cheers! >---- ZHANG Laiyu Phone(China) 010-88233078 Cellphone(China) 13681385567 E-mail:zhan...@ihep.ac.cn Address: 19B Yuquan Road,Shijingshan District,Beijing,China Department:Center for Particle Astrophysics Office:Astrophysics Building 205 Institute of High Energy Physics, CAS web: http://www.ihep.cas.cn > -原始邮件- 发件人:"John Ford" 发送时间:2020-12-23 01:13:14 (星期三) 收件人: LIST 抄送: 主题: Re: [casper] How to check or modify the network setting on ROACH2 ? Hi. Since you can receive 1500 packets error-free, it seems like your PC is getting more data than it can handle and starts losing packets.As Jack says, the PPC doesn't get involved in it at all. Using small packets like you are using makes for more work on the PC side, as many more interrupts need to be processed. You might try making your packets bigger and using jumbo packets to save on overhead. Some things to try, besides as you said, optimizing your C++ code: Lock all memory in place in the PC with mlockall() If you have a multi-CPU (not multi-core) machine, make sure your processes access the local memory on that CPU by binding them to the CPU and also the interrupt handler CPU. single-processor multicore machines don't have this problem. Tune the buffers in the kernel. There are some mails in this archive with reasonable values. Tune the interface card driver. Some settings like interrupt coalescing will help. You may need a buffering scheme like hashpipe or other packet processing pipeline to smooth out the flow. John On Tue, Dec 22, 2020 at 3:41 AM zhang laiyu wrote: Hi,Jack I realized a firmware that acquire data using ADC_MKID_4X yellow block and then pack the data into multi 64bits data to 10Gb yellow block in ROACH2.The PC receiver UDP package through 10Gb cable.The ADC_MKID_4x board clock is 512MHz,and the ROACH2 worked on 128MHz. I use part of Tutorial 2 's design to control the tx_valid port and tx_end_of_frame port of the 10Gb yellow block .I set the tx_valid is 1081 and the tx_end_of_frame was set to 1441. The UDP package is 8648 bytes less than the max capacity (8k+512) of 10Gb yellow block . Now,the firmware worked well. I can get about 1500 UDP frames without losing data in the PC server once a time. Because every UDP frame has frame counter,so I can judge that the frames is continuous or not.The firmware was running continuously,and I can get right data from PC during different time. The frame counter is continuous. But when I want to receive much more packages,such as 10 packages once a time, I found that the fram counter is not continuous, part of the frame was lost.The valid data (ADC data)rate is 6.144Gb/s. (512*10^6*12bit/s) I suspect the reason of losting UDP frams coming from two sources. Frist, the PC server's receive program(C++) need to optimize to realize high frequency and large capacity udp data receiving . Another reason may be coming from the network setting of the linux system in PowerPC on ROACH2, I am not sure. My question is how to check and modidy the network setting of the linux system in ROACH2? I want to check the max send buffer (MTU )of the PowerPC. Thank you! Cheers! >-------- ZHANG Laiyu Phone(China) 010-88233078 Cellphone(China) 13681385567 E-mail: zhan...@ihep.ac.cn Address: 19B Yuquan Road,Shijingshan District,Beijing,China Department:Center for Particle Astrophysics Office:Astrophysics Building 205 Institute of High Energy Physics, CAS web: http://www.ihep.cas.cn > -- 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 view this discussion on the web visit https://groups.google.com/a/lists.berkeley.edu/d/msgid/casper/7e0e704.f595.1768a09a04f.Coremail.zhangly%40ihep.ac.cn. -- 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 view this discussion on the web visit https://groups.google.com/a/lists.berkeley.edu/d/msgid/casper/CABmH8B-C6nh1HdffxWxq5DLQxFDDJO6Mi1EvS_EvKLL-9-gAyQ%40mail.gmail.com. -- You received this message because you are subscribed to the Google Groups "casper@lists.berkeley.edu" group. To unsubscribe from this gr
[casper] Re: Re: How to check or modify the network setting on ROACH2 ?
Hi Thank you Jack. I didn't see tx overflow indicate and I connect the 10Gb tx_overflow port to led2 of ROACH2. In different seeting,I found when there is a overflow and I can not received any package.In my firmware, I also select the option of 'Enable Large TX Frames(8k+512).So, I am sure the firmware worked well. And I need to check the receive code. Cheers! >---- ZHANG Laiyu Phone(China) 010-88233078 Cellphone(China) 13681385567 E-mail:zhan...@ihep.ac.cn Address: 19B Yuquan Road,Shijingshan District,Beijing,China Department:Center for Particle Astrophysics Office:Astrophysics Building 205 Institute of High Energy Physics, CAS web: http://www.ihep.cas.cn > -原始邮件- 发件人:"Jack Hickish" 发送时间:2020-12-22 19:45:30 (星期二) 收件人: "zhang laiyu" 抄送: casper 主题: Re: How to check or modify the network setting on ROACH2 ? Traffic from the ROACH doesn't go through the PowerPC, so my guess would be that it's unlikely anything is causing issues there. I'm not actually sure how you change PPC settings which aren't set via the "start_tap" command. For >8kB packets, you should check any options to increase the TX buffer options in the 10GbE yellow block. The 10GbE block has output ports indicating overflows in the TX path -- if you are not seeing these strobe ever, and you are confident that the transmission logic in your firmware is working, then I think that it is very likely that any issues they are in your receive code. Cheers Jack On Tue, 22 Dec 2020 at 10:40, zhang laiyu wrote: Hi,Jack I realized a firmware that acquire data using ADC_MKID_4X yellow block and then pack the data into multi 64bits data to 10Gb yellow block in ROACH2.The PC receiver UDP package through 10Gb cable.The ADC_MKID_4x board clock is 512MHz,and the ROACH2 worked on 128MHz. I use part of Tutorial 2 's design to control the tx_valid port and tx_end_of_frame port of the 10Gb yellow block .I set the tx_valid is 1081 and the tx_end_of_frame was set to 1441. The UDP package is 8648 bytes less than the max capacity (8k+512) of 10Gb yellow block . Now,the firmware worked well. I can get about 1500 UDP frames without losing data in the PC server once a time. Because every UDP frame has frame counter,so I can judge that the frames is continuous or not.The firmware was running continuously,and I can get right data from PC during different time. The frame counter is continuous. But when I want to receive much more packages,such as 10 packages once a time, I found that the fram counter is not continuous, part of the frame was lost.The valid data (ADC data)rate is 6.144Gb/s. (512*10^6*12bit/s) I suspect the reason of losting UDP frams coming from two sources. Frist, the PC server's receive program(C++) need to optimize to realize high frequency and large capacity udp data receiving . Another reason may be coming from the network setting of the linux system in PowerPC on ROACH2, I am not sure. My question is how to check and modidy the network setting of the linux system in ROACH2? I want to check the max send buffer (MTU )of the PowerPC. Thank you! Cheers! >-------- ZHANG Laiyu Phone(China) 010-88233078 Cellphone(China) 13681385567 E-mail: zhan...@ihep.ac.cn Address: 19B Yuquan Road,Shijingshan District,Beijing,China Department:Center for Particle Astrophysics Office:Astrophysics Building 205 Institute of High Energy Physics, CAS web: http://www.ihep.cas.cn > -- 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 view this discussion on the web visit https://groups.google.com/a/lists.berkeley.edu/d/msgid/casper/31cb0350.f601.1768a5742ff.Coremail.zhangly%40ihep.ac.cn.
[casper] How to check or modify the network setting on ROACH2 ?
Hi,Jack I realized a firmware that acquire data using ADC_MKID_4X yellow block and then pack the data into multi 64bits data to 10Gb yellow block in ROACH2.The PC receiver UDP package through 10Gb cable.The ADC_MKID_4x board clock is 512MHz,and the ROACH2 worked on 128MHz. I use part of Tutorial 2 's design to control the tx_valid port and tx_end_of_frame port of the 10Gb yellow block .I set the tx_valid is 1081 and the tx_end_of_frame was set to 1441. The UDP package is 8648 bytes less than the max capacity (8k+512) of 10Gb yellow block . Now,the firmware worked well. I can get about 1500 UDP frames without losing data in the PC server once a time. Because every UDP frame has frame counter,so I can judge that the frames is continuous or not.The firmware was running continuously,and I can get right data from PC during different time. The frame counter is continuous. But when I want to receive much more packages,such as 10 packages once a time, I found that the fram counter is not continuous, part of the frame was lost.The valid data (ADC data)rate is 6.144Gb/s. (512*10^6*12bit/s) I suspect the reason of losting UDP frams coming from two sources. Frist, the PC server's receive program(C++) need to optimize to realize high frequency and large capacity udp data receiving . Another reason may be coming from the network setting of the linux system in PowerPC on ROACH2, I am not sure. My question is how to check and modidy the network setting of the linux system in ROACH2? I want to check the max send buffer (MTU )of the PowerPC. Thank you! Cheers! >---- ZHANG Laiyu Phone(China) 010-88233078 Cellphone(China) 13681385567 E-mail:zhan...@ihep.ac.cn Address: 19B Yuquan Road,Shijingshan District,Beijing,China Department:Center for Particle Astrophysics Office:Astrophysics Building 205 Institute of High Energy Physics, CAS web: http://www.ihep.cas.cn > -- 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 view this discussion on the web visit https://groups.google.com/a/lists.berkeley.edu/d/msgid/casper/7e0e704.f595.1768a09a04f.Coremail.zhangly%40ihep.ac.cn.
Re: Re: [casper] ROACH2 QDR testing address problem
Thanks Jack. That is what I need. What I want to do is using CPU interface to write data into QDR and using firmware interface to read data out from QDR. The two interface of QDR make me confused. -- Cheers! >---- ZHANG Laiyu Phone(China) 010-88233078 Cellphone(China) 13681385567 E-mail:zhan...@ihep.ac.cn Address: 19B Yuquan Road,Shijingshan District,Beijing,China Department:Center for Particle Astrophysics Office:Astrophysics Building 205 Institute of High Energy Physics, CAS web: http://www.ihep.cas.cn > -原始邮件- 发件人:"Jack Hickish" 发送时间:2020-12-21 19:29:19 (星期一) 收件人: casper 抄送: sebastian.jorqu...@ug.uchile.cl 主题: Re: [casper] ROACH2 QDR testing address problem I'm not sure how that particular script / firmware works, but in general, a single read/write action in the ROACH2 QDR transfers 144 bits. The granularity of the python read writes is 32-bits, so what actually happens is that a read from casperfpga grabs 144 bytes, carves it up into 4x36 bit words, throws away the most significant 4 bits of each chunk, and then returns the appropriate 32 bits. Note that this makes writes from software particularly tricky -- if you don't write in bursts of 16 bytes, (aligned to 16-byte addresses) there is a very high probability that things will not work the way you want. These lines ( this and this ) show how the 32-bit selection is implemented. The commit message associated with the second line linked says "MSb 32 bits are read first, followed by bits 32 to 63". I'm not sure how this relates to the convention assumed in the firmware interface. I would imagine the intention is that for a QDR write (which takes 2 clock cycles and writes 64 bits on each) the logic is (with addressing in 32-bit words): First write cycle: most significant bits = word 0; least significant bits = word 1 Second write cycle: most significant bits = word 2; least significant bits = word 3; I don't know of many occasions when both the CPU and firmware QDR interfaces are both used, so it's very possible that the relationship between the firmware and software interfaces is either not as intended, or is as intended but with an odd, undocumented mapping. Hopefully the above helps point you in the right direction(?) Hopefully it doesn't just add to the confusion(?) Cheers Jack On Mon, 21 Dec 2020 at 10:12, zhang laiyu wrote: Hi Thanks for your help. The firmware and python script had worked (qdr_basic and qdr_counter).I can get the plot. But I can not understand the PPC readout script in qdr_counter.py thoroughly .The address is really weird. After studying the wiki of the CASPER QDR yellow block and datasheet of the QDR chip(CY7C2565KV18), I still can not understand the python script very well. Why the 'PPC data' was picked like that? Could you give me some suggestion about where can I find more clear information about the addree of QDR interface to PowerPC? Cheers! >---- ZHANG Laiyu Phone(China) 010-88233078 Cellphone(China) 13681385567 E-mail: zhan...@ihep.ac.cn Address: 19B Yuquan Road,Shijingshan District,Beijing,China Department:Center for Particle Astrophysics Office:Astrophysics Building 205 Institute of High Energy Physics, CAS web: http://www.ihep.cas.cn > -- 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 view this discussion on the web visit https://groups.google.com/a/lists.berkeley.edu/d/msgid/casper/606c0c11.e7c3.17684c842a5.Coremail.zhangly%40ihep.ac.cn. -- 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 view this discussion on the web visit https://groups.google.com/a/lists.berkeley.edu/d/msgid/casper/CAG1GKSkVM8Y2Odu%2BW%2BjOMSLbZw8kaOq5jhzUEc_hkZtS2Jdmcg%40mail.gmail.com. -- 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 view this discussion on the web visit https://groups.google.com/a/lists.berkeley.edu/d/msgid/casper/58e39772.eeb0.176189e.Coremail.zhangly%40ihep.ac.cn.
[casper] ROACH2 QDR testing address problem
Hi Thanks for your help. The firmware and python script had worked (qdr_basic and qdr_counter).I can get the plot. But I can not understand the PPC readout script in qdr_counter.py thoroughly .The address is really weird. After studying the wiki of the CASPER QDR yellow block and datasheet of the QDR chip(CY7C2565KV18), I still can not understand the python script very well. Why the 'PPC data' was picked like that? Could you give me some suggestion about where can I find more clear information about the addree of QDR interface to PowerPC? Cheers! >---- ZHANG Laiyu Phone(China) 010-88233078 Cellphone(China) 13681385567 E-mail:zhan...@ihep.ac.cn Address: 19B Yuquan Road,Shijingshan District,Beijing,China Department:Center for Particle Astrophysics Office:Astrophysics Building 205 Institute of High Energy Physics, CAS web: http://www.ihep.cas.cn > -- 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 view this discussion on the web visit https://groups.google.com/a/lists.berkeley.edu/d/msgid/casper/606c0c11.e7c3.17684c842a5.Coremail.zhangly%40ihep.ac.cn. import calandigital as calan import numpy as np import time, struct import matplotlib.pyplot as plt IP = '192.168.0.40' bof = 'qdr_counter.bof.gz' fpga = calan.initialize_roach(IP, boffile=bof, upload=1) time.sleep(1) my_qdr = calan.Qdr(fpga, 'qdr0') my_qdr.qdr_cal(fail_hard=1, verbosity=1) time.sleep(1) fpga.write_int('sel',0) ##just single cycle of data at input qdr ##(diferent from what says the wiki) fpga.write_int('rst',1) fpga.write_int('rst',0) fpga.write_int('wen',1) time.sleep(4) ##finish writting fpga.write_int('wen',0) fpga.write_int('rst',1) fpga.write_int('rst',0) fpga.write_int('ren',1) time.sleep(4) fpga.write_int('ren',0) ##read the data qdr_data = struct.unpack('>1024I',fpga.read('dout',1024*4)) plt.plot(qdr_data,label='qdr_data') plt.plot(np.arange(1024), label='gold data') plt.grid() ##there is a 2 delay in the cast that i didnt see when compiling ##either way, the data is consistent :P ##read the data with the ppc interface ##the addressing is really weird.. study this!! fpga.write_int('qdr0_ctrl', 0) dat = fpga.read('qdr0_memory', 4*1024*4) vals = np.array(struct.unpack('>4096I', dat)) vals = vals.reshape([-1,4]) vals = vals[::2,:].flatten() vals = vals[1::2] plt.plot(vals, label='PPC data') plt.legend() plt.show()
Re: Re: [casper] search demo model+ python script for QDR on ROACH2
Thanks for your help. I will try it. Cheers! >---- ZHANG Laiyu Phone(China) 010-88233078 Cellphone(China) 13681385567 E-mail:zhan...@ihep.ac.cn Address: 19B Yuquan Road,Shijingshan District,Beijing,China Department:Center for Particle Astrophysics Office:Astrophysics Building 205 Institute of High Energy Physics, CAS web: http://www.ihep.cas.cn > -原始邮件- 发件人:"Sebastian Antonio Jorquera Tapia" 发送时间:2020-12-17 18:41:38 (星期四) 收件人: casper@lists.berkeley.edu 抄送: 主题: Re: [casper] search demo model+ python script for QDR on ROACH2 Hi, for what I remember this should work https://github.com/sebajor/simulink_models/tree/stable/QDR/ROACH2 Also, here is a model with the transpose qdr if you are looking for it too. https://github.com/sebajor/simulink_models/tree/stable/Million_Channels_Spectrometer/ROACH2/qdr_transpose El jue, 17 dic 2020 a las 3:16, zhang laiyu () escribió: Hi I want to test QDR on ROACH2. From the Casper mail list I found that Henno Kriel had sent such model file + python script to David MacMahon several years ago. Could you sent a copy to me ? If anyone have a test and/or demo model for ROACH2 that exercises the QDR chips, please send it to me. Thanks! Cheers! >-------- ZHANG Laiyu Phone(China) 010-88233078 Cellphone(China) 13681385567 E-mail: zhan...@ihep.ac.cn Address: 19B Yuquan Road,Shijingshan District,Beijing,China Department:Center for Particle Astrophysics Office:Astrophysics Building 205 Institute of High Energy Physics, CAS web: http://www.ihep.cas.cn > -- 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 view this discussion on the web visit https://groups.google.com/a/lists.berkeley.edu/d/msgid/casper/41f66a28.c363.1766f57460f.Coremail.zhangly%40ihep.ac.cn. -- 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 view this discussion on the web visit https://groups.google.com/a/lists.berkeley.edu/d/msgid/casper/CAASoV%3DOP9hL5DbsCWLsiH9KYf5%2B2eUSyuEWBpcYWgZ4fo%2BOtGw%40mail.gmail.com. -- 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 view this discussion on the web visit https://groups.google.com/a/lists.berkeley.edu/d/msgid/casper/17ee43b1.c9b4.17670ab62d2.Coremail.zhangly%40ihep.ac.cn.
Re: Re: [casper] search demo model+ python script for QDR on ROACH2
Hi, Thanks for you very timely reply. From the link that you given me, I git clone from https://github.com/ska-sa/roach2_testing. In the fold I can find qdr_tst.bof file and .py file,but I can not find .slx file or .mdl file. Where can I find it? Thanks you very much again. -- Cheers! >---- ZHANG Laiyu Phone(China) 010-88233078 Cellphone(China) 13681385567 E-mail:zhan...@ihep.ac.cn Address: 19B Yuquan Road,Shijingshan District,Beijing,China Department:Center for Particle Astrophysics Office:Astrophysics Building 205Institute of High Energy Physics, CAS web: http://www.ihep.cas.cn> > -Original Messages- > From: "Alec Rust" > Sent Time: 2020-12-17 15:28:41 (Thursday) > To: casper > Cc: > Subject: Re: [casper] search demo model+ python script for QDR on ROACH2 > > Hi, have a look at this document and contact me directly if you have > any questions: > https://docs.google.com/document/d/1tqw4C6uZ6EULl1OykTFL_vQTnK52UBr0aYqTg44E5wg/edit?usp=sharing > > Regards > Alec > > On Thu, Dec 17, 2020 at 8:16 AM zhang laiyu wrote: > > > > Hi > > > >I want to test QDR on ROACH2. > > > >From the Casper mail list I found that Henno Kriel had sent such model > > file + python script to David MacMahon several years ago. Could you sent a > > copy to me ? > > > >If anyone have a test and/or demo model for ROACH2 that exercises the > > QDR chips, please send it to me. > > > >Thanks! > > > > Cheers! > > > > > > > ZHANG Laiyu > > Phone(China) 010-88233078 > > Cellphone(China) 13681385567 > > E-mail:zhan...@ihep.ac.cn > > Address: 19B Yuquan Road,Shijingshan District,Beijing,China > > Department:Center for Particle Astrophysics > > Office:Astrophysics Building 205 > > > > Institute of High Energy Physics, CAS > > web: http://www.ihep.cas.cn > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > -- > > 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 view this discussion on the web visit > > https://groups.google.com/a/lists.berkeley.edu/d/msgid/casper/41f66a28.c363.1766f57460f.Coremail.zhangly%40ihep.ac.cn. > > -- > 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 view this discussion on the web visit > https://groups.google.com/a/lists.berkeley.edu/d/msgid/casper/CAAkZC3gPu7N8pL4pd5oGeTNW9QESBHD%2BZvxPEXMA%2Bf-kvsXqdQ%40mail.gmail.com. -- 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 view this discussion on the web visit https://groups.google.com/a/lists.berkeley.edu/d/msgid/casper/5b9e8a8b.c6bf.1766fcb9622.Coremail.zhangly%40ihep.ac.cn.
[casper] search demo model+ python script for QDR on ROACH2
Hi I want to test QDR on ROACH2.From the Casper mail list I found that Henno Kriel had sent such model file + python script to David MacMahon several years ago. Could you sent a copy to me ? If anyone have a test and/or demo model for ROACH2 that exercises the QDR chips, please send it to me. Thanks!Cheers! >---- ZHANG Laiyu Phone(China) 010-88233078 Cellphone(China) 13681385567 E-mail:zhan...@ihep.ac.cn Address: 19B Yuquan Road,Shijingshan District,Beijing,China Department:Center for Particle Astrophysics Office:Astrophysics Building 205Institute of High Energy Physics, CAS web: http://www.ihep.cas.cn> -- 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 view this discussion on the web visit https://groups.google.com/a/lists.berkeley.edu/d/msgid/casper/41f66a28.c363.1766f57460f.Coremail.zhangly%40ihep.ac.cn.
Re: Re: [casper] MKID ADC-4x problem the clock rate of FPGA
Hi,Dan Thanks for you reply. The adc_mkid_4x yellow block for ROACH2 was designed by Madden, Timothy J. From mail list I found that it has some different from the yellow block for ROACH. If you have some results,please inform me Thank you. Cheers! >---- ZHANG Laiyu Phone(China) 010-88233078 Cellphone(China) 13681385567 E-mail:zhan...@ihep.ac.cn Address: 19B Yuquan Road,Shijingshan District,Beijing,China Department:Center for Particle Astrophysics Office:Astrophysics Building 205 Institute of High Energy Physics, CAS web: http://www.ihep.cas.cn > -原始邮件- 发件人:"Dan Werthimer" 发送时间:2020-10-27 02:48:59 (星期二) 收件人: zhan...@ihep.ac.cn 抄送: tmad...@anl.gov, "CASPER Mailing List" , "Rick Raffanti" 主题: Re: [casper] MKID ADC-4x problem the clock rate of FPGA hi ZHANG Laiyu, from rick, who designed that ADC board: "The ADC produces full-parallel data at 550 or 400MHz DDR, so the ADC core would normally run at half of this- I don't see any reason to run it slower. I can't remember who did the yellow block; I have code that runs on a mini-roach for testing these. Rick" On Wed, Oct 21, 2020 at 2:21 AM zhang laiyu wrote: Hi,all I use ROACH2 and MKID ADC-4x board(2*ADS54RF63) to acquire data and send it through 10Gb to computer. I use adc_mkid_4x yellow block in the firmware. Now,I can get data from 10Gb . But I found that the data package have repeated data. When I input the ADC_I with 100KHz sine signal (Vpp is 200mv). I can get the curve,but is not very correct.From the raw data, I fount every 8 data(12bits),exist 4 point was same. datapackage like: d1d2d3d4d1d2d3d4d5d6d7d8d5d6d7d8It sames that the FPGA's clock is 1/2 of ADC clock. When I modified the firmware,replace the adc yellow block with counters,I can get right data. There are not repeat data. So I suspected that the FPGA's clock is 1/2 of MKID-ADC clock. From MKID ADC boad schematic design,the clock send to FPGA is 1/2 ADC clock. But from the mail list and other papers,I got that the clock rate of FPGA should be 1/4 ADC clock generated by adc_mkid_4x yellow block. Anyone can give me some help or suggestion? Attachment is firmware and one test result curve. Thanks. Cheers! >---- ZHANG Laiyu Phone(China) 010-88233078 Cellphone(China) 13681385567 E-mail: zhan...@ihep.ac.cn Address: 19B Yuquan Road,Shijingshan District,Beijing,China Department:Center for Particle Astrophysics Office:Astrophysics Building 205 Institute of High Energy Physics, CAS web: http://www.ihep.cas.cn > -- 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 view this discussion on the web visit https://groups.google.com/a/lists.berkeley.edu/d/msgid/casper/385ac38a.2cdee.1754a768364.Coremail.zhangly%40ihep.ac.cn. -- 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 view this discussion on the web visit https://groups.google.com/a/lists.berkeley.edu/d/msgid/casper/75af4cf3.30251.17568bf8890.Coremail.zhangly%40ihep.ac.cn.
Re: Re: [casper] 10GbE_V2 adc_mkid_4x tut2
Hi, Dan Thanks for you help. I'll try the first solution as you mentioned. Cheers! >---- ZHANG Laiyu Phone(China) 010-88233078 Cellphone(China) 13681385567 E-mail:zhan...@ihep.ac.cn Address: 19B Yuquan Road,Shijingshan District,Beijing,China Department:Center for Particle Astrophysics Office:Astrophysics Building 205 Institute of High Energy Physics, CAS web: http://www.ihep.cas.cn > -原始邮件- 发件人:"Dan Werthimer" 发送时间:2020-07-24 01:32:50 (星期五) 收件人: "CASPER Mailing List" , zhan...@ihep.ac.cn 抄送: 主题: Re: [casper] 10GbE_V2 adc_mkid_4x tut2 hi zhang laiyu, here are three things you could try: 1) send your adc samples into a short fifo, then feed five of the 12 bit ADC samples at a time (instead of four samples) from the fifo into each 64 bit word feeding the 10Gbe block. do this for the first 103 fpga clocks out of 128, then lower valid for the next 15 fpga clocks. 2) increase the fpga clock by 2X send ADC samples into a FIFO, then burst them out of the FIFO for 128 clocks, then lower valid for the next 128 clocks. 3) use two 10Gbe ports, with 50% duty cycle, alternating between the two ports: send the first 512 adc samples to one 10Gbe for the first 128 clocks, then lower valid on this 10Gbe for 128 clocks. send the next 512 adc samples to the other 10GBe for the second 128 clocks, then lower valid for 128 clocks. choice three is the easiest to implement, but requires two 10Gbe cables. best wishes, dan On Wed, Jul 22, 2020 at 3:22 AM zhang laiyu wrote: Hi, I'm trying to sample data with adc_mkid_4x (MUSIC ADC-DAC board) and send the samples over 10gbE. The frequency of ADC is 491.52MHz,and the frequency of FPGA is 122.88MHz. I combined data_i0,data_i1,data_i2, data_i3 of MKID_ADC to a 64 bits data and directly connected to tx_data of gbe0. I used the tut2 pkt_sim block to control the tx-valid and eof port of gbe0. Now,I can get UDP packages through 10Gb cable. I set the package length to 128(equal to 1024 bytes). But because the valid port can not be high in all time, so I will lost part of ADC data. How can I get entire ADC data from 10Gbe? Has anyone done some kind of a "similar model" which i could study or give some suggestion? Attachment is the model file. Thanks! >-------- ZHANG Laiyu Phone(China) 010-88233078 Cellphone(China) 13681385567 E-mail: zhan...@ihep.ac.cn Address: 19B Yuquan Road,Shijingshan District,Beijing,China Department:Center for Particle Astrophysics Office:Astrophysics Building 205 Institute of High Energy Physics, CAS web: http://www.ihep.cas.cn > -- 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 view this discussion on the web visit https://groups.google.com/a/lists.berkeley.edu/d/msgid/casper/1edfd2fe.60d79.173760b523c.Coremail.zhangly%40ihep.ac.cn. -- 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 view this discussion on the web visit https://groups.google.com/a/lists.berkeley.edu/d/msgid/casper/CAGHS_vFBu25J2Zwa5%3D853QXg%2BDQGU39CXuREzm6cJTnc8Efe8Q%40mail.gmail.com. -- 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 view this discussion on the web visit https://groups.google.com/a/lists.berkeley.edu/d/msgid/casper/8817363.62250.1737f575be8.Coremail.zhangly%40ihep.ac.cn.
[casper] How to upload and run two .bof files in ROACH2
Hi,Jack I want to upload and run two .bof files in ROACH2 at the same time. If is possible,how to to do it ? Thank you. Cheers! >---- ZHANG Laiyu Phone(China) 010-88236415 Cellphone(China) 13681385567 E-mail:zhan...@ihep.ac.cn Address: 19B Yuquan Road,Shijingshan District,Beijing,China Department:Center for Particle Astrophysics Office:Astrophysics Building 205 Institute of High Energy Physics, CAS web: http://www.ihep.cas.cn > -- 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 view this discussion on the web visit https://groups.google.com/a/lists.berkeley.edu/d/msgid/casper/80d7084.6dbe.16be08b38d3.Coremail.zhangly%40ihep.ac.cn.
[casper] Re: Re: How to add g++ complier on ROACH2 ?
Thank you Jack! > -原始邮件- > 发件人: "Jack Hickish" > 发送时间: 2019-06-25 02:20:23 (星期二) > 收件人: "zhang laiyu" > 抄送: casper > 主题: Re: How to add g++ complier on ROACH2 ? > > Hi Zhang, > > If you can get your ROACH2 on the internet, you'll be able to install > g++ (or any other packages) via normal linux routes. (I think your > roach2 probably supports "apt-get install build-essential"?) > > You could also cross-compile your program for the PowerPC architecture > on any old x86 box -- see, for example, > https://stackoverflow.com/questions/32104775/how-to-compile-hello-world-program-for-powerpc > > Cheers > Jack > > On Sun, 23 Jun 2019 at 23:01, zhang laiyu wrote: > > > > Hi,Jack > > > > I encounted a problem on compliing C++ code in RAOCH2. > > > >The C++ files can be 'make' in ROACH1 by g++ complier.When I moved > > these C++ files to RAOCH2,and want to make those C++ files and encounter a > > error. It indicated that there is no g++ command on ROACH2. The gcc > > version of ROACH2 is 4.4.5 (Debian 4.4.5-8) and no g++ complier in ROACH2. > > > > The PowerPC of ROACH2 is little endian. From internet,I can not find > > suitable g++ version for ROACH2. So how to install g++ on RAOCH2? Is there > > any other path to solved it? Thank you! > > > >Attachment is the C++ files and Makefile (From MUSIC poject) > > > > > > > > > > > > > > > > Cheers! > > > > > > > ZHANG Laiyu > > Phone(China) 010-88236415 > > Cellphone(China) 13681385567 > > E-mail:zhan...@ihep.ac.cn > > Address: 19B Yuquan Road,Shijingshan District,Beijing,China > > Department:Center for Particle Astrophysics > > Office:Astrophysics Building 205 > > > > Institute of High Energy Physics, CAS > > web: http://www.ihep.cas.cn > > > > >-------- > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > -- Cheers! > ZHANG Laiyu Phone(China) 010-88236415 Cellphone(China) 13681385567 E-mail:zhan...@ihep.ac.cn Address: 19B Yuquan Road,Shijingshan District,Beijing,China Department:Center for Particle Astrophysics Office:Astrophysics Building 205Institute of High Energy Physics, CAS web: http://www.ihep.cas.cn> -- 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 view this discussion on the web visit https://groups.google.com/a/lists.berkeley.edu/d/msgid/casper/3b283f12.71b1.16b9273001f.Coremail.zhangly%40ihep.ac.cn.
[casper] How to add g++ complier on ROACH2 ?
Hi,Jack I encounted a problem on compliing C++ code in RAOCH2. The C++ files can be 'make' in ROACH1 by g++ complier.When I moved these C++ files to RAOCH2,and want to make those C++ files and encounter a error. It indicated that there is no g++ command on ROACH2. The gcc version of ROACH2 is 4.4.5 (Debian 4.4.5-8) and no g++ complier in ROACH2. The PowerPC of ROACH2 is little endian. From internet,I can not find suitable g++ version for ROACH2. So how to install g++ on RAOCH2? Is there any other path to solved it? Thank you! Attachment is the C++ files and Makefile (From MUSIC poject) Cheers! >---- ZHANG Laiyu Phone(China) 010-88236415 Cellphone(China) 13681385567 E-mail:zhan...@ihep.ac.cn Address: 19B Yuquan Road,Shijingshan District,Beijing,China Department:Center for Particle Astrophysics Office:Astrophysics Building 205 Institute of High Energy Physics, CAS web: http://www.ihep.cas.cn > -- 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 view this discussion on the web visit https://groups.google.com/a/lists.berkeley.edu/d/msgid/casper/eb004c8.51a7.16b8812f5c9.Coremail.zhangly%40ihep.ac.cn. tcp-server.tar.gz Description: application/gzip
Re: Re: [casper] ROACH Network is unreachable
Thank you! I can not download Linux image file from CASPER web(The requested URL /svn/trunk/roach/sw/binaries/linux/uImage-20110812-mmcomitfix was not found on this server..) So,where can I download Linux image file for ROACH1? (Several casper links were not found) -Original Messages- From:"Indrajit Barve" Sent Time:2019-06-21 16:27:32 (Friday) To: "casper@lists.berkeley.edu" Cc: "casper@lists.berkeley.edu" , "jackhick...@gmail.com" Subject: Re: [casper] ROACH Network is unreachable Hello All, >From my experience with the similar situation format the SD card and load the >Linux image newly and set it for acquisition. | | Indrajit Barve indra...@iiap.res.in 080-22541492 | On Jun 21 2019, at 10:43 am, David MacMahon wrote: Assuming you want to use DHCP, what happens if you comment out (or remove) the “iface eth0 inet static” line (and the “address” and “netmask” lines)? On Jun 20, 2019, at 18:17, zhang laiyu wrote: Thanks you. the contents of /etc/network/interfaces: auto eth0 iface eth0 inet dhcp iface eth0 inet static address 10.0.0.21 netmask 255.255.255.0 when I want to start the network, I got some warning: roach:~# /etc/init.d/networking restart Reconfiguring network interfaces...ifdown: failed to open statefile /etc/ne ifup: failed to open statefile /etc/network/run/ifstate: Stale NFS file hae failed. I aslo use this: auto eth0 #iface eth0 inet dhcp iface eth0 inet static address 10.0.0.21 netmask 255.255.255.0 But can not start the network. if I run dhclient and can get IP address. -Original Messages- From: "David MacMahon" Sent Time: 2019-06-20 22:26:41 (Thursday) To: casper@lists.berkeley.edu Cc: "zhang laiyu" , jackhick...@gmail.com Subject: Re: [casper] ROACH Network is unreachable To further Marc’s query: when you mmcboot into the broken system, what are the contents of /etc/network/interfaces? Dave On Jun 20, 2019, at 04:06, Marc wrote: On 6/20/19, zhang laiyu wrote: Hi,Marc, Jack I make some progress but it was not solved. I boot the ROACH by 'run mmcboot' and did not got an IP address. And then log in RAOCH as root and try issuing the commands: dhclient -r dhclient ifconfig Then ROACH was assigned an ip address. And can use telnet to login ROACH. But when I reboot the ROACH, ROACH Network is still unreachable.I have to issuing the commands:dhclient again. I also open two ports ( tcp port 53 and udp port 67) in the server.But it still does not work. I think that the DHCP connection doesn't work during boot.But I do not the reason. So if you boot into the broken system and connect via serial cable what does the output of /sbin/ifconfig eth0 say ? Is there no IP address configured, or is it set to the wrong one ? If it is set incorrectly there may be some startup script which has some old/stale values set. You could try to add a set -x to some of the startup scripts, so that they echo the commands they execute regards marc -- 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 view this discussion on the web visit https://groups.google.com/a/lists.berkeley.edu/d/msgid/casper/CAGrhWaQPV8NBHcrvV8rQaUGdyQZJTFcW5aG1Vyujrn0HcBr7xg%40mail.gmail.com. -- 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 view this discussion on the web visit https://groups.google.com/a/lists.berkeley.edu/d/msgid/casper/F2389975-B9E7-4BA6-B797-9D2421624736%40berkeley.edu. -- Cheers! ZHANG Laiyu Phone(China) 010-88236415 Cellphone(China) 13681385567 E-mail: zhan...@ihep.ac.cn Address: 19B Yuquan Road,Shijingshan District,Beijing,China Department: Center for Particle Astrophysics Office: Astrophysics Building 205Institute of High Energy Physics, CAS web: http://www.ihep.cas.cn> -- 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 view this discussion on the web visit https://groups.google.com/a/lists.berkeley.edu/d/msgid/casper/308856dd.3900.16b779c8676.Coremail.zhangly%40ihep.ac.cn. -- 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 view
Re: Re: [casper] ROACH Network is unreachable
Thanks for your reply. I had comment out iface eth0 inet static” line (and the “address” and “netmask” lines) . And I reboot the ROACH the result is same:"SIOCADDRT: Network is unreachable ". > -Original Messages- > From: "David MacMahon" > Sent Time: 2019-06-21 13:13:53 (Friday) > To: casper@lists.berkeley.edu > Cc: jackhick...@gmail.com > Subject: Re: [casper] ROACH Network is unreachable > > Assuming you want to use DHCP, what happens if you comment out (or remove) > the “iface eth0 inet static” line (and the “address” and “netmask” lines)? > > > On Jun 20, 2019, at 18:17, zhang laiyu wrote: > > > > Thanks you. > > the contents of /etc/network/interfaces: > > > > auto eth0 > > iface eth0 inet dhcp > > iface eth0 inet static > > address 10.0.0.21 > > netmask 255.255.255.0 > > > > when I want to start the network, I got some warning: > > > > roach:~# /etc/init.d/networking restart > > Reconfiguring network interfaces...ifdown: failed to open statefile /etc/ne > > ifup: failed to open statefile /etc/network/run/ifstate: Stale NFS file hae > > failed. > > > > I aslo use this: > >auto eth0 > > #iface eth0 inet dhcp > > iface eth0 inet static > > address 10.0.0.21 > > netmask 255.255.255.0 > > > > But can not start the network. > > if I run dhclient and can get IP address. > > > > > >> -Original Messages- > >> From: "David MacMahon" > >> Sent Time: 2019-06-20 22:26:41 (Thursday) > >> To: casper@lists.berkeley.edu > >> Cc: "zhang laiyu" , jackhick...@gmail.com > >> Subject: Re: [casper] ROACH Network is unreachable > >> > >> To further Marc’s query: when you mmcboot into the broken system, what are > >> the contents of /etc/network/interfaces? > >> > >> Dave > >> > >>>> On Jun 20, 2019, at 04:06, Marc wrote: > >>>> > >>>> On 6/20/19, zhang laiyu wrote: > >>>> Hi,Marc, Jack > >>>> I make some progress but it was not solved. > >>>> I boot the ROACH by 'run mmcboot' and did not got an IP address. And > >>>> then log in RAOCH as root and try issuing the commands: > >>>> dhclient -r > >>>> dhclient > >>>> ifconfig > >>>> Then ROACH was assigned an ip address. And can use telnet to login > >>>> ROACH. > >>>> But when I reboot the ROACH, ROACH Network is still unreachable.I have > >>>> to issuing the commands:dhclient again. > >>>> I also open two ports ( tcp port 53 and udp port 67) in the server.But > >>>> it still does not work. > >>>> I think that the DHCP connection doesn't work during boot.But I do not > >>>> the reason. > >>> > >>> So if you boot into the broken system and connect via serial cable > >>> what does the output of > >>> > >>> /sbin/ifconfig eth0 > >>> > >>> say ? Is there no IP address configured, or is it set to the wrong one > >>> ? If it is set incorrectly there may be some startup script which has > >>> some old/stale values set. > >>> You could try to add a > >>> > >>> set -x > >>> > >>> to some of the startup scripts, so that they echo the commands they > >>> execute > >>> > >>> regards > >>> > >>> marc > >>> > >>> -- > >>> 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 view this discussion on the web visit > >>> https://groups.google.com/a/lists.berkeley.edu/d/msgid/casper/CAGrhWaQPV8NBHcrvV8rQaUGdyQZJTFcW5aG1Vyujrn0HcBr7xg%40mail.gmail.com. > >> > >> -- > >> 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 view this discussion on the web visit > >> https://groups.google.com/a/lists.berkeley.edu/d/msg
Re: Re: [casper] ROACH Network is unreachable
Thanks you. the contents of /etc/network/interfaces: auto eth0 iface eth0 inet dhcp iface eth0 inet static address 10.0.0.21 netmask 255.255.255.0 when I want to start the network, I got some warning: roach:~# /etc/init.d/networking restart Reconfiguring network interfaces...ifdown: failed to open statefile /etc/ne ifup: failed to open statefile /etc/network/run/ifstate: Stale NFS file hae failed. I aslo use this: auto eth0 #iface eth0 inet dhcp iface eth0 inet static address 10.0.0.21 netmask 255.255.255.0 But can not start the network. if I run dhclient and can get IP address. > -Original Messages- > From: "David MacMahon" > Sent Time: 2019-06-20 22:26:41 (Thursday) > To: casper@lists.berkeley.edu > Cc: "zhang laiyu" , jackhick...@gmail.com > Subject: Re: [casper] ROACH Network is unreachable > > To further Marc’s query: when you mmcboot into the broken system, what are > the contents of /etc/network/interfaces? > > Dave > > > On Jun 20, 2019, at 04:06, Marc wrote: > > > >> On 6/20/19, zhang laiyu wrote: > >> Hi,Marc, Jack > >>I make some progress but it was not solved. > >>I boot the ROACH by 'run mmcboot' and did not got an IP address. And > >> then log in RAOCH as root and try issuing the commands: > >>dhclient -r > >>dhclient > >>ifconfig > >>Then ROACH was assigned an ip address. And can use telnet to login > >> ROACH. > >>But when I reboot the ROACH, ROACH Network is still unreachable.I have > >> to issuing the commands:dhclient again. > >>I also open two ports ( tcp port 53 and udp port 67) in the server.But > >> it still does not work. > >>I think that the DHCP connection doesn't work during boot.But I do not > >> the reason. > > > > So if you boot into the broken system and connect via serial cable > > what does the output of > > > > /sbin/ifconfig eth0 > > > > say ? Is there no IP address configured, or is it set to the wrong one > > ? If it is set incorrectly there may be some startup script which has > > some old/stale values set. > > You could try to add a > > > > set -x > > > > to some of the startup scripts, so that they echo the commands they execute > > > > regards > > > > marc > > > > -- > > 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 view this discussion on the web visit > > https://groups.google.com/a/lists.berkeley.edu/d/msgid/casper/CAGrhWaQPV8NBHcrvV8rQaUGdyQZJTFcW5aG1Vyujrn0HcBr7xg%40mail.gmail.com. > > -- > 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 view this discussion on the web visit > https://groups.google.com/a/lists.berkeley.edu/d/msgid/casper/F2389975-B9E7-4BA6-B797-9D2421624736%40berkeley.edu. -- Cheers! > ZHANG Laiyu Phone(China) 010-88236415 Cellphone(China) 13681385567 E-mail:zhan...@ihep.ac.cn Address: 19B Yuquan Road,Shijingshan District,Beijing,China Department:Center for Particle Astrophysics Office:Astrophysics Building 205Institute of High Energy Physics, CAS web: http://www.ihep.cas.cn> -- 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 view this discussion on the web visit https://groups.google.com/a/lists.berkeley.edu/d/msgid/casper/308856dd.3900.16b779c8676.Coremail.zhangly%40ihep.ac.cn.
Re: Re: Re: [casper] ROACH Network is unreachable
Hi,Marc, Jack I make some progress but it was not solved. I boot the ROACH by 'run mmcboot' and did not got an IP address. And then log in RAOCH as root and try issuing the commands: dhclient -r dhclient ifconfig Then ROACH was assigned an ip address. And can use telnet to login ROACH. But when I reboot the ROACH, ROACH Network is still unreachable.I have to issuing the commands:dhclient again. I also open two ports ( tcp port 53 and udp port 67) in the server.But it still does not work. I think that the DHCP connection doesn't work during boot.But I do not the reason. Could you give me some help? > -Original Messages- > From: "zhang laiyu" > Sent Time: 2019-06-19 18:28:07 (Wednesday) > To: m...@ska.ac.za, jackhick...@gmail.com > Cc: casper@lists.berkeley.edu > Subject: Re: Re: [casper] ROACH Network is unreachable > >Thanks Mars. > I had checked the file: /etc/network/interfaces. It is the same > configuration as what I set before and operated very well several days before. > I found some warning information such as: find: ./sshd.pid: Stale NFS > file handle > I had resort to internet but not solved it. > > JACK: can you give me some suggestion? > > > -Original Messages- > > From: Marc > > Sent Time: 2019-06-19 16:03:51 (Wednesday) > > To: casper@lists.berkeley.edu > > Cc: jackhick...@gmail.com > > Subject: Re: [casper] ROACH Network is unreachable > > > > On 6/18/19, zhang laiyu wrote: > > ... > > > Starting NTP server: ntpdstart-stop-daemon: open pidfile > > > /var/run/ntpd.pid: > > > Stale NFS file handle (Stale) > > > failed! > > > > > > tcpborphserver: starting > > > > > > SIOCADDRT: Network is unreachable > > > > > > > Could it be that something in /etc/network/interfaces isn't > > configured, or that a route is being initialised that doesn't make > > sense on the current network ? > > > > regards > > > > marc > > > > -- > > 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 view this discussion on the web visit > > https://groups.google.com/a/lists.berkeley.edu/d/msgid/casper/CAGrhWaQ%3DF_%3DEzUSK8Ru%3Dfm%2Bx9PmV68wbQS0yyvjjK-K-v31WYA%40mail.gmail.com. > > > -- > Cheers! > > > ZHANG Laiyu > Phone(China) 010-88236415 > Cellphone(China) 13681385567 > E-mail:zhan...@ihep.ac.cn > Address: 19B Yuquan Road,Shijingshan District,Beijing,China > Department: Center for Particle Astrophysics > Office:Astrophysics Building 205Institute of High Energy Physics, > CAS > web: > http://www.ihep.cas.cn> > -- Cheers! > ZHANG Laiyu Phone(China) 010-88236415 Cellphone(China) 13681385567 E-mail:zhan...@ihep.ac.cn Address: 19B Yuquan Road,Shijingshan District,Beijing,China Department:Center for Particle Astrophysics Office:Astrophysics Building 205Institute of High Energy Physics, CAS web: http://www.ihep.cas.cn> -- 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 view this discussion on the web visit https://groups.google.com/a/lists.berkeley.edu/d/msgid/casper/5a9fcade.2b1e.16b72910100.Coremail.zhangly%40ihep.ac.cn.
Re: Re: [casper] ROACH Network is unreachable
Thanks Mars. I had checked the file: /etc/network/interfaces. It is the same configuration as what I set before and operated very well several days before. I found some warning information such as: find: ./sshd.pid: Stale NFS file handle I had resort to internet but not solved it. JACK: can you give me some suggestion? > -Original Messages- > From: Marc > Sent Time: 2019-06-19 16:03:51 (Wednesday) > To: casper@lists.berkeley.edu > Cc: jackhick...@gmail.com > Subject: Re: [casper] ROACH Network is unreachable > > On 6/18/19, zhang laiyu wrote: > ... > > Starting NTP server: ntpdstart-stop-daemon: open pidfile /var/run/ntpd.pid: > > Stale NFS file handle (Stale) > > failed! > > > > tcpborphserver: starting > > > > SIOCADDRT: Network is unreachable > > > > Could it be that something in /etc/network/interfaces isn't > configured, or that a route is being initialised that doesn't make > sense on the current network ? > > regards > > marc > > -- > 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 view this discussion on the web visit > https://groups.google.com/a/lists.berkeley.edu/d/msgid/casper/CAGrhWaQ%3DF_%3DEzUSK8Ru%3Dfm%2Bx9PmV68wbQS0yyvjjK-K-v31WYA%40mail.gmail.com. -- Cheers! > ZHANG Laiyu Phone(China) 010-88236415 Cellphone(China) 13681385567 E-mail:zhan...@ihep.ac.cn Address: 19B Yuquan Road,Shijingshan District,Beijing,China Department:Center for Particle Astrophysics Office:Astrophysics Building 205Institute of High Energy Physics, CAS web: http://www.ihep.cas.cn> -- 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 view this discussion on the web visit https://groups.google.com/a/lists.berkeley.edu/d/msgid/casper/38288890.260b.16b6f4786ea.Coremail.zhangly%40ihep.ac.cn.
[casper] ROACH Network is unreachable
Setting kernel variables...done. Mounting local filesystems...done. Activating swapfile swap...done. find: ./sshd.pid: Stale NFS file handle find: ./motd: Stale NFS file handle find: ./ntpd.pid: Stale NFS file handle rm: cannot remove `./sshd.pid': Stale NFS file handle rm: cannot remove `./motd': Stale NFS file handle rm: cannot remove `./ntpd.pid': Stale NFS file handle * bootclean: Failure cleaning /var/run. Setting up networking.../etc/rcS.d/S39ifupdown: line 85: /etc/network/run/ifstate: Stale NFS file handle * Failure initializing /etc/network/run/ifstate failed! Configuring network interfaces...ifup: failed to open statefile /etc/network/run/ifstate: Stale NFS filee failed. find: ./sshd.pid: Stale NFS file handle find: ./motd: Stale NFS file handle find: ./ntpd.pid: Stale NFS file handle rm: cannot remove `./sshd.pid': Stale NFS file handle rm: cannot remove `./motd': Stale NFS file handle rm: cannot remove `./ntpd.pid': 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 mv: accessing `/var/log//dmesg.1.gz': 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 /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 1 Jan 02:08:13 ntpdate[477]: no servers can be used, exiting Starting OpenBSD Secure Shell server: sshdstart-stop-daemon: open pidfile /var/run/sshd.pid: Stale NFS f) Starting NTP server: ntpdstart-stop-daemon: open pidfile /var/run/ntpd.pid: Stale NFS file handle (Stale) failed! tcpborphserver: starting SIOCADDRT: Network is unreachable Debian GNU/Linux 4.0 roach ttyS0 roach login: Cheers! > ZHANG Laiyu Phone(China) 010-88236415 Cellphone(China) 13681385567 E-mail:zhan...@ihep.ac.cn Address: 19B Yuquan Road,Shijingshan District,Beijing,China Department:Center for Particle Astrophysics Office:Astrophysics Building 205 Institute of High Energy Physics, CAS web: http://www.ihep.cas.cn > -- 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 em
[casper] need a ROACH1 board
Hi I need a ROACH-1 board to do some tests.Do anyone has idle one can sell it to me? Thank you. Cheers! >---- ZHANG Laiyu Phone(China) 010-88236415 Cellphone(China) 13681385567 E-mail:zhan...@ihep.ac.cn Address: 19B Yuquan Road,Shijingshan District,Beijing,China Department:Center for Particle Astrophysics Office:Astrophysics Building 205 Institute of High Energy Physics, CAS web: http://www.ihep.cas.cn > -- 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] problem can not uploading .pfg file to ROACH2
Dear CASPER colleagues,I can uploading .bof file by telnet.but can not upload .pfg file to ROACH2 . I had checked the maillists and found someone meet the same problem like me before.He solved it by update file system and kernel. I download romfs and kernel from https://github.com/ska-sa/roach2_nfs_uboot . And undate romfs and kernel as the mail guide ,but not solve it. The server can connected with ROACH2, and when do fpga.upload_to_ram_and_program(xxx.fpg) return a RuntimeError: 192.168.40.77: no programming informs yet. Odd? This was test using soloboot: >>> import casperfpga >>> fpga = casperfpga.CasperFpga('192.168.40.77') >>> fpga.is_connected() True >>> fpga.upload_to_ram_and_program('/home/zly/Documents/tut2/roach2_tut_tge.fpg') ERROR:casperfpga.transport_katcp:192.168.40.77: no programming informs yet. Odd? Traceback (most recent call last): File "", line 1, in File "casperfpga/casperfpga.py", line 202, in upload_to_ram_and_program filename, port, timeout, wait_complete) File "casperfpga/transport_katcp.py", line 489, in upload_to_ram_and_program 'Odd?' % self.host) RuntimeError: 192.168.40.77: no programming informs yet. Odd? >>> and when I do the test using netboot.The server can not connected the ROACH2. List: >>> import casperfpga >>> fpga = casperfpga.CasperFpga('192.168.40.77') ERROR:casperfpga.transport_katcp:Protocol Version Error: Inform received from server indicating a katcp protocol revision inconsistent with the previously detected version. Disconnecting in disgust. Previous version: '4.0'. Inform received: '#version-connect katcp-protocol 4.9-M' Traceback (most recent call last): File "", line 1, in File "casperfpga/casperfpga.py", line 132, in __init__ self.transport = transport_class(**kwargs) File "casperfpga/transport_katcp.py", line 95, in __init__ self.connect() File "casperfpga/transport_katcp.py", line 129, in connect if self.ping(): File "casperfpga/transport_katcp.py", line 234, in ping request_timeout=self._timeout) File "casperfpga/transport_katcp.py", line 177, in katcprequest (request.name, self.host, request, reply)) casperfpga.transport_katcp.KatcpRequestFail: Request watchdog on host 192.168.40.77 failed. Request: ?watchdog Reply: !watchdog fail Connection\_closed\_before\_reply\_was\_received I download the casperfpga library from https://github.com/casper-astro/casperfpga.git. katcp version is 0.6.2 , what's wrong with my computer or ROACH2 board? how to solved it ? Thanks! Cheers! > ZHANG Laiyu Phone(China) 010-88236415 Cellphone(China) 13681385567 E-mail:zhan...@ihep.ac.cn Address: 19B Yuquan Road,Shijingshan District,Beijing,China Department:Center for Particle Astrophysics Office:Astrophysics Building 205 Institute of High Energy Physics, CAS web: http://www.ihep.cas.cn > -- 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] can not download .fpg file to ROACH2 by python
Hi My computer can download .fpg file to ROACH2 using casperfpga by python before. When I want to import corr module to python,I meet some problems,so I updated some library also including katcp.When I finally can import corr to python,I found that I can not download .fpg file to ROACH2. I uninstalled the katcp and try to recover to the previous env.But it didn't work. Soloboot and netboot are OK,and can download .bof files to ROACH by ?progdev .bof. This is what I test and the reply: ./roach2_tut_tge.py 192.168.40.77 192.168.40.77 WARNING:casperfpga.transport_katcp:192.168.40.77: no ._stream instance found. Connecting to server 192.168.40.77... ok Programming FPGA... ('progremote request(Request to client 192.168.40.77 failed.) on host 192.168.40.77 failed',) progremote request(Request to client 192.168.40.77 failed.) on host 192.168.40.77 failed I used python2.7.12,katcp0.2.7 and casperfpga3.2(https://github.com/ska-sa/casperfpga.git) I had tried to install casperfpga several times with different versions but it still did not work. What katcp version and casperfpga version should I install? -- 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] Argonne-developed firmware Seek for pyPipeServer.py file
Hi I am using ROACH2 to develop a data acquisition system for reading microwave multiplexed Transition Edge Sensors (TES).I found that one team in Argonne had done the project several years ago and the sourece was opened.I download fireware and software from https://github.com/argonnexraydetector/RoachFirmPy.I want to reuse their fireware and software. But I meet a problem in the first step that I can't find the file of pyPipeServer.py from the fold of pyfile. I didn't have the email of that team members.If anyone has please tell me.One paper of about the project is : Development of ROACH Firmware for Microwave Multiplexed X-Ray TES Microcalorimeters Authors: Timothy J. Madden, Member, IEEE, Thomas W. Cecil, Lisa M. Gades, Orlando Quaranta, Daikang Yan, Antonino Miceli, Dan T. Becker, Doug A. Bennett, James P. Hays-Wehle, Gene C. Hilton, Johnathon D. Gard, John A. B. Mates, Carl D. Reintsema, Dan R. Schmidt, Daniel S. Swetz, Leila R. Vale, and Joel N. Ullom If anyone has this file please send me.Thank you! Cheers! >---- ZHANG Laiyu Phone(China) 010-88236415 Cellphone(China) 13681385567 E-mail:zhan...@ihep.ac.cn Address: 19B Yuquan Road,Shijingshan District,Beijing,China Department:Center for Particle Astrophysics Office:Astrophysics Building 205 Institute of High Energy Physics, CAS web: http://www.ihep.cas.cn > -- 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] CASPER ./startsg running was failed and can not trig MATLAB
Hi,there I encount a problem in installing and running CASPER software. My computer is DELL Optiplex 990 (inter i5 cpu,1TB hard disk,10GB ROM) I had installed dual system in my computer(Windows 7 professional SP1, Ubuntu12.04 64 bit).Two system can work well. I installed the CASPER software according to the CASPER web guide and the document in wiki. 1. Install ubuntu12.04 2. Install MATLAB R2012b This was installed successfully,and MATLAB can be run. 3 Install ISE14.7 (System Edition) It was seemed to be also successfully and also ISE can also be run. 4 Clone the mlib_devel repository . This was operated normally 5 Create a startsg.local file specify my Xilinx and Matlab install path export MATLAB_PATH=/home/MATLAB/R2012b export XILINX_PATH=/home/Xilinx/14.7/ISE_DS export XILINX_PLATFORM=lin64 6. Last I start running startsg "./startsg" It display a error message: There is no directory :sysgen/bin. MATLAB was not started. 7. And I checked the directory ../Xilinx/14.7/ISE_DS/SysGen/,I found it was empty. So I guess that the start scipt can not find commands to start MATLAB. 8. when I sourced /ISE_DS/setting64.sh,and runing sysgen ,It pop-up error message,and sysgen can not be started.I guess that ISE14.7 System Generetor was not installed normally.I reinstalled Ubuntu12.04,Matlab R2012b and ISE14.7 again,but the problem still exist and pop up same warning message when I run startsg. Do any people meet this problem before? and how to solve it? Please help me,thank you. Cheers! ZHANG Laiyu Center for Particle Astrophysics Institute of High Energy Physics, Chinese Academy of Sciences 19B Yuquan Road,Shijingshan,District,Beijing,China TEL: +86 010 88236415 +86 13681385567 E-mail: zhan...@ihep.ac.cn www: http://www.ihep.ac.cn -- 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.