On 2015-09-02 12:22, Craig Tong wrote:
Hi Aniket.

As James has said, if you have been making various telnet connections to
your Roach2 before running the script it might be worth just rebooting
the board before trying the casperFPGA scripts. The tcpborphserver may
have crashed due to receiving some commands it didn't like.

Kind regards.
Craig

On 2015-09-02 08:18, aniket wrote:
On 2015-09-02 11:28, James Smith wrote:
Hello Aniket,

You seem to have gone about it the right way. That error usually means
that either your ROACH isn't connected or the tcpborphserver running
on the ROACH has crashed. Also, check the spelling of your ROACH's
name.

I myself use ROACH1, not ROACH2 (in fact I had to modify casperfpga
slightly to work with ROACH), so if you don't come right, reply to the
group again (you can just do a "reply-all" to my previous mail), and
some of those more experienced in using ROACH2 may be able to help
you.

Regards,
James

On Wed, Sep 2, 2015 at 7:35 AM, aniket <ani...@gmrt.ncra.tifr.res.in>
wrote:

On 2015-09-01 15:21, James Smith wrote:
Hello Aniket,

casperfpga is the one you want:
https://github.com/ska-sa/casperfpga [1] [2]

It has a few dependencies to build, but it's much nicer than corr.

Regards,
James

On Tue, Sep 1, 2015 at 11:39 AM, aniket
<ani...@gmrt.ncra.tifr.res.in>
wrote:

Dear CASPER colleagues,

Myself Aniket Hendre working as a Project Engineer-C in Giant
Metrewave Radio Telescope (GMRT), India.

I am using ROACH 2 for my experiments. I have executed some modular
design on ROACH 2 successfully.

Now I am facing problem to communicate with ROACH 2 using Python
environment. I have communicated with ROACH 2 successfully using
telnet.

Like for ROACH 1 Corr package any one knows package for ROACH 2 ?

Please guide me regarding the same.

Thanks and Regards,

ANIKET S. HENDRE
Project Engineer -C,
Giant Metrewave Radio Telescope,
The National Centre for Radio Astrophysics,
Khodad, Pune,
Maharashtra 410504.
Tel:- 02132-258365.
Web: www.ncra.tifr.res.in [2] [1]

Links:
------
[1] http://www.ncra.tifr.res.in [2]
[2] https://github.com/ska-sa/casperfpga [1]
 Dear James,

Thanks for the replay. I have clone the casperfpga and installed on my
machine. First I just want check that my ROACH2 has been connected to
my PC. So from the modular script which is there in casperfpga
directory I have extracted a required part. But still I am getting
error. The statement which I am executing in ipython is as follows.

In [8]: #!/usr/bin/env python

In [9]: from casperfpga import katcp_fpga

In [10]: HOSTCLASS = katcp_fpga.KatcpFpga

In [11]: fpga = HOSTCLASS('roach02082A', 7147)
---------------------------------------------------------------------------

KatcpRequestError                         Traceback (most recent call
last)
<ipython-input-11-8f4347d870e7> in <module>()
----> 1 fpga = HOSTCLASS('roach02082A', 7147)

/usr/local/lib/python2.7/dist-packages/casperfpga/katcp_fpga.pyc in
__init__(self, host, port, timeout, connect)
     64         self._timeout = timeout
     65         if connect:
---> 66             self.connect()
     67         LOGGER.info('%s: port(%s) created%s.' % (self.host,
port,
     68                                                  ' &
connected' if connect else ''))

/usr/local/lib/python2.7/dist-packages/casperfpga/katcp_fpga.pyc in
connect(self, timeout)
     89         _stime = time.time()
     90         while time.time() < _stime + timeout:
---> 91             if self.ping():
     92                 got_ping = True
     93                 break

/usr/local/lib/python2.7/dist-packages/casperfpga/katcp_fpga.pyc in
ping(self)
    163         :return: True or False
    164         """
--> 165         reply, _ = self.katcprequest(name='watchdog',
request_timeout=self._timeout)
    166         if reply.arguments[0] == 'ok':
    167             LOGGER.info('%s: katcp ping okay' % self.host)

/usr/local/lib/python2.7/dist-packages/casperfpga/katcp_fpga.pyc in
katcprequest(self, name, request_timeout, require_ok, request_args)
    123             raise KatcpRequestError(
    124                 'Request %s on host %s failed.\n\tRequest:
%s\n\tReply: %s' %
--> 125 (request.name [3], self.host, request, reply))
    126         return reply, informs
    127

KatcpRequestError: Request watchdog on host roach02082A failed.
        Request: ?watchdog
        Reply: !watchdog fail Timed\_out\_after\_5.000000\_seconds

Can you please send a simple script just to check the connection with
ROACH2.

Thanks and Regards,
Aniket.



Links:
------
[1] https://github.com/ska-sa/casperfpga
[2] http://www.ncra.tifr.res.in
[3] http://request.name


Dear James I have checked once again. The roach2 name from /etc/hosts.
The name is correct. I can ping the ROACH2 by using the same name.
Even I had tried by using my ROACH 2 ip address instead of roach2
name. But it is giving same results.

Thanks and Regards,
Aniket

Dear Colleagues

Thanks for your replay.
I already tested using telnet and it is working fine. I can program the roach2 through telnet port 7147.

Here I am attaching the whole screen shot of booting procedure for reference.

Cannot access the Hardware Clock via any known method.
Use the --debug option to see the details of our search for an access method. not deconfiguring network interfaces: network file systems still mounted. ... (warning).
Deactivating swap...done.
Will now restart.
[   38.639896] reboot: Restarting system


U-Boot 2011.06-rc2-00000-g2694c9d-dirty (Dec 04 2013 - 20:58:06)

CPU:   AMCC PowerPC 440EPx Rev. A at 533.333 MHz (PLB=133 OPB=66 EBC=66)
       No Security/Kasumi support
       Bootstrap Option C - Boot ROM Location EBC (16 bits)
       32 kB I-Cache 32 kB D-Cache
Board: ROACH2
I2C:   ready
DRAM:  512 MiB
Flash: 128 MiB
In:    serial
Out:   serial
Err:   serial
CPLD:  2.1
USB:   Host(int phy)
SN:    ROACH2.2 batch=D#8#42 software fixups match
MAC:   02:44:01:02:08:2a
DTT:   1 is 26 C
DTT:   2 is 26 C
Net:   ppc_4xx_eth0
Sensors Config
type run netboot to boot via dhcp+tftp+nfs
type run soloboot to run from flash independent of network

Hit any key to stop autoboot:  0
Waiting for PHY auto negotiation to complete... done
ENET Speed is 1000 Mbps - FULL duplex connection (EMAC0)
BOOTP broadcast 1
*** Unhandled DHCP Option in OFFER/ACK: 28
*** Unhandled DHCP Option in OFFER/ACK: 28
DHCP client bound to address 192.168.40.210
Using ppc_4xx_eth0 device
TFTP from server 192.168.40.1; our IP address is 192.168.40.210
Filename 'uImage'.
Load address: 0x4000000
Loading: ################################################################# ################################################################# #################################################################
         ############
done
Bytes transferred = 3034268 (2e4c9c hex)
## Booting kernel from Legacy Image at 04000000 ...
   Image Name:   Linux-3.16.0-saska-03675-g1c70ff
   Image Type:   PowerPC Linux Kernel Image (gzip compressed)
   Data Size:    3034204 Bytes = 2.9 MiB
   Load Address: 00700000
   Entry Point:  007010c4
   Verifying Checksum ... OK
   Uncompressing Kernel Image ... OK
CPU clock-frequency <- 0x1fca0550 (533MHz)
CPU timebase-frequency <- 0x1fca0550 (533MHz)
/plb: clock-frequency <- 7f28154 (133MHz)
/plb/opb: clock-frequency <- 3f940aa (67MHz)
/plb/opb/ebc: clock-frequency <- 3f940aa (67MHz)
/plb/opb/serial@ef600300: clock-frequency <- 54c563 (6MHz)
/plb/opb/serial@ef600400: clock-frequency <- 54c563 (6MHz)
/plb/opb/serial@ef600500: clock-frequency <- 54c563 (6MHz)
/plb/opb/serial@ef600600: clock-frequency <- 54c563 (6MHz)
Memory <- <0x0 0x0 0x3ffff000> (1023MB)
ethernet0: local-mac-address <- 02:44:01:02:08:2a

zImage starting: loaded at 0x00700000 (sp: 0x1fe22b38)
Allocating 0x6db8a8 bytes for kernel ...
gunzipping (0x00000000 <- 0x0070f000:0x00d5f1c8)...done 0x63fa80 bytes

Linux/PowerPC load: console=ttyS0,115200 root=/dev/nfs rootpath=192.168.40.1:/home/nfs/roach2/current,nolock ip=dhcp
Finalizing device tree... flat tree at 0xd6c160
[    0.000000] roach2: claiming matching platform
[    0.000000] Using PowerPC 44x Platform machine description
[ 0.000000] Linux version 3.16.0-saska-03675-g1c70ffc (rijandn@r2d2) (gcc version 4.6.1 20110627 (prerelease) (GCC) ) #3 Tue Aug 264
[    0.000000] bootconsole [udbg0] enabled
setup_arch: bootmem
arch: exit
[    0.000000] Zone ranges:
[    0.000000]   DMA      [mem 0x00000000-0x3fffefff]
[    0.000000]   Normal   empty
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x00000000-0x3fffefff]
[ 0.000000] MMU: Allocated 1088 bytes of context maps for 255 contexts [ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 260095 [ 0.000000] Kernel command line: console=ttyS0,115200 root=/dev/nfs rootpath=192.168.40.1:/home/nfs/roach2/current,nolock ip=dhcp
[    0.000000] PID hash table entries: 4096 (order: 2, 16384 bytes)
[ 0.000000] Dentry cache hash table entries: 131072 (order: 7, 524288 bytes) [ 0.000000] Inode-cache hash table entries: 65536 (order: 6, 262144 bytes)
[    0.000000] Sorting __ex_table...
[ 0.000000] Memory: 1032440K/1048572K available (4180K kernel code, 308K rwdata, 1600K rodata, 300K init, 622K bss, 16132K reserved)
[    0.000000] Kernel virtual memory layout:
[    0.000000]   * 0xfffdf000..0xfffff000  : fixmap
[    0.000000]   * 0xfde00000..0xfe000000  : consistent mem
[    0.000000]   * 0xfddfe000..0xfde00000  : early ioremap
[    0.000000]   * 0xc1000000..0xfddfe000  : vmalloc & ioremap
[ 0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    0.000000] NR_IRQS:512 nr_irqs:512 16
[    0.000000] UIC0 (32 IRQ sources) at DCR 0xc0
[    0.000000] UIC1 (32 IRQ sources) at DCR 0xd0
[    0.000000] UIC2 (32 IRQ sources) at DCR 0xe0
[    0.000024] clocksource: timebase mult[1e00000] shift[24] registered
[    0.006383] pid_max: default: 32768 minimum: 301
[ 0.011307] Mount-cache hash table entries: 2048 (order: 1, 8192 bytes) [ 0.017899] Mountpoint-cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.025747] ftrace: allocating 14770 entries in 44 pages
[    0.072794] regulator-dummy: no parameters
[    0.079748] NET: Registered protocol family 16
[    0.084794] cpuidle: using governor ladder
[    0.088902] cpuidle: using governor menu

[    0.103059] SCSI subsystem initialized
[    0.108171] Switched to clocksource timebase
[    0.128548] NET: Registered protocol family 2
[ 0.134276] TCP established hash table entries: 8192 (order: 3, 32768 bytes)
[    0.141481] TCP bind hash table entries: 8192 (order: 3, 32768 bytes)
[    0.147964] TCP: Hash tables configured (established 8192 bind 8192)
[    0.154475] TCP: reno registered
[    0.157742] UDP hash table entries: 512 (order: 1, 8192 bytes)
[    0.163517] UDP-Lite hash table entries: 512 (order: 1, 8192 bytes)
[    0.170075] NET: Registered protocol family 1
[    0.175150] RPC: Registered named UNIX socket transport module.
[    0.181076] RPC: Registered udp transport module.
[    0.185683] RPC: Registered tcp transport module.
[    0.190347] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.203263] futex hash table entries: 256 (order: -1, 3072 bytes)
[    0.209458] audit: initializing netlink subsys (disabled)
[    0.214897] audit: type=2000 audit(0.179:1): initialized
[    0.234887] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.242176] NFS: Registering the id_resolver key type
[    0.247356] Key type id_resolver registered
[    0.251543] Key type id_legacy registered
[    0.255572] jffs2: version 2.2. (NAND) �© 2001-2006 Red Hat, Inc.
[    0.262625] ROMFS MTD (C) 2007 Red Hat, Inc.
[    0.267246] msgmni has been set to 2016
[ 0.274936] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 253)
[    0.282528] io scheduler noop registered
[    0.286473] io scheduler deadline registered (default)
[    0.292069] io scheduler cfq registered
[    0.296344] Serial: 8250/16550 driver, 32 ports, IRQ sharing enabled
[    0.307731] console [ttyS0] disabled
[ 0.331551] serial8250.0: ttyS0 at MMIO 0x1ef600300 (irq = 16, base_baud = 347222) is a 16550A
[    0.340268] console [ttyS0] enabled
[    0.340268] console [ttyS0] enabled
[    0.347213] bootconsole [udbg0] disabled
[    0.347213] bootconsole [udbg0] disabled
[ 0.375581] serial8250.0: ttyS1 at MMIO 0x1ef600400 (irq = 17, base_baud = 347222) is a 16550A [ 0.404765] serial8250.0: ttyS2 at MMIO 0x1ef600500 (irq = 18, base_baud = 347222) is a 16550A [ 0.433896] serial8250.0: ttyS3 at MMIO 0x1ef600600 (irq = 19, base_baud = 347222) is a 16550A
[    0.443017] roach2_fpga: ROACH2 FPGA Access driver
[    0.447908] roach2:  major 252
[    0.451119] Virtex 5 family
[    0.454029] roach2_fpga 1d0000000.fpga: ROACH2 FPGA driver
[ 0.459519] roach2_fpga 1d0000000.fpga: check parameters,addr:0x1d0000000,size:0x8000000 [ 0.472970] roach2_fpga 1d0000000.fpga: ioremap 1d0000000 to c1080000 with size 8000000 [ 0.481194] roach2_fpga 1d0000000.fpga: ioremap 1c0100000 to c9100000 with size 200000 [ 0.489198] roach2_fpga 1d0000000.fpga: char devices successfully registered
[    0.504062] brd: module loaded
[    0.511795] loop: module loaded
[ 0.521946] 1f8000000.nor_flash: Found 1 x16 devices at 0x0 in 16-bit bank. Manufacturer ID 0x000001 Chip ID 0x002801
[    0.532620] Amd/Fujitsu Extended Query Table at 0x0040
[    0.537784]   Amd/Fujitsu Extended Query version 1.3.
[    0.542851] number of CFI chips: 1
[ 0.547069] 6 ofpart partitions found on MTD device 1f8000000.nor_flash
[    0.553774] Creating 6 MTD partitions on "1f8000000.nor_flash":
[    0.559701] 0x000000000000-0x000000400000 : "kernel"
[    0.565764] 0x000000400000-0x000004400000 : "rootfs"
[    0.571886] 0x000004400000-0x000007400000 : "userfs"
[    0.578038] 0x000007400000-0x000007f00000 : "v6bitstream"
[    0.584753] 0x000007f40000-0x000007f80000 : "ubootenv"
[    0.591041] 0x000007f80000-0x000008000000 : "uboot"
[    0.597343] tun: Universal TUN/TAP device driver, 1.6
[    0.602482] tun: (C) 1999-2004 Max Krasnyansky <m...@qualcomm.com>
[    0.608824] PPC 4xx OCP EMAC driver, version 3.54
[    0.614213] MAL v2 /plb/mcmal, 2 TX channels, 2 RX channels
[    0.620345] ZMII /plb/opb/emac-zmii@ef600d00 initialized
[ 0.625973] RGMII /plb/opb/emac-rgmii@ef601000 initialized with MDIO support
[    0.633613] /plb/opb/emac-rgmii@ef601000: input 0 in RGMII mode
[ 0.641373] eth0: EMAC-0 /plb/opb/ethernet@ef600e00, MAC 02:44:01:02:08:2a
[    0.648329] eth0: found Marvell 88E1111 Ethernet PHY (0x01)
[    0.654026] PPP generic driver version 2.4.2
[    0.659063] mousedev: PS/2 mouse device common for all mice
[    0.665451] input: roach2chassis as /devices/virtual/input/input0
[    0.672544] i2c /dev entries driver
[    0.685191] ibm-iic 1ef600700.i2c: using standard (100 kHz) mode
[    0.691780] ibm-iic 1ef600800.i2c: using standard (100 kHz) mode
[    0.698111] ad7414 0-004c: chip found
[    0.702985] ad7414 0-004e: chip found
[    1.524942] max6650 0-0048: Fan voltage is set to 12V.
[    1.530153] max6650 0-0048: Prescaler is set to 4.
[    1.541514] max6650 0-004b: Fan voltage is set to 12V.
[    1.546725] max6650 0-004b: Prescaler is set to 4.
[    1.558048] max6650 0-001b: Fan voltage is set to 12V.
[    1.563264] max6650 0-001b: Prescaler is set to 4.
[    1.574576] max6650 0-001f: Fan voltage is set to 12V.
[    1.579790] max6650 0-001f: Prescaler is set to 4.
[    1.590945] ipip: IPv4 over IPv4 tunneling driver
[    1.596713] TCP: cubic registered
[    1.600054] Initializing XFRM netlink socket
[    1.604475] NET: Registered protocol family 17
[    1.609210] Key type dns_resolver registered
[    1.614229] registered taskstats version 1
[    1.619071] drivers/rtc/hctosys.c: unable to open rtc device (rtc0)
[    1.626904] eth0: link is down
[    3.624452] eth0: link is up, 1000 FDX, pause enabled
[    3.644273] Sending DHCP requests ., OK
[ 3.684719] IP-Config: Got DHCP answer from 192.168.40.1, my address is 192.168.40.210
[    3.692948] IP-Config: Complete:
[ 3.696292] device=eth0, hwaddr=02:44:01:02:08:2a, ipaddr=192.168.40.210, mask=255.255.255.0, gw=255.255.255.255 [ 3.706869] host=roach02082A, domain=roaches.gmrt.ncra.tifr.res.in, nis-domain=(none) [ 3.715109] bootserver=192.168.40.1, rootserver=192.168.40.1, rootpath=/home/nfs/roach2/current,nolock
[    3.724651]      nameserver0=192.168.40.1
[ 3.735574] VFS: Mounted root (nfs filesystem) readonly on device 0:11.
[    3.743219] Freeing unused kernel memory: 300K (805a8000 - 805f3000)
modprobe: FATAL: Could not load /lib/modules/3.16.0-saska-03675-g1c70ffc/modules.dep: No such file or directory

modprobe: FATAL: Could not load /lib/modules/3.16.0-saska-03675-g1c70ffc/modules.dep: No such file or directory

modprobe: FATAL: Could not load /lib/modules/3.16.0-saska-03675-g1c70ffc/modules.dep: No such file or directory

INIT: version 2.88 booting
about to run simple init script
warning: can't open /etc/mtab: No such file or directory
mount: mount point /proc/bus/usb does not exist
INIT: Entering runlevel: 2
modprobe: FATAL: Could not load /lib/modules/3.16.0-saska-03675-g1c70ffc/modules.dep: No such file or directory

2 Sep 07:25:46 ntpdate[74]: step time server 192.168.40.1 offset 1441178733.125943 sec Starting OpenBSD Secure Shell server: sshd[ 13.441763] random: sshd urandom read with 69 bits of entropy available modprobe: FATAL: Could not load /lib/modules/3.16.0-saska-03675-g1c70ffc/modules.dep: No such file or directory

[ 13.591090] sshd (86): /proc/86/oom_adj is deprecated, please use /proc/86/oom_score_adj instead. modprobe: FATAL: Could not load /lib/modules/3.16.0-saska-03675-g1c70ffc/modules.dep: No such file or directory

.
Starting NFS common utilities: statd failed!
Starting NTP server: ntpdmodprobe: FATAL: Could not load /lib/modules/3.16.0-saska-03675-g1c70ffc/modules.dep: No such file or directoy

.
tcpborphserver: ... loading roach mmap driver ...
insmod: can't read '/lib/modules/roach_mmap.ko': No such file or directory
version *3* using mmap
tcpborphserver3: about to go into background

Debian GNU/Linux 6.0 roach02082A ttyS0

roach02082A login:

I will try for other options. If you find any clue through booting procedure then please let me know...

Thanks and regards.
Aniket Hendre









Reply via email to