[casper] build error

2009-11-02 Thread John Ford
Hi all.  I'm installing a new incarnation of our build system on a new
machine.  It's 10.1.03.  With a simple roach example, I get the following
error:
...
XSG generation complete.
#
## Copying base system ##
#

## Copying custom IPs ##

##
## Creating Simulink IP ##
##
##
## Creating EDK files   ##
##
#
## Elaborating objects ##
#
##
## Preparing software files ##
##
#
## Running EDK backend ##
#

blah blah blah, it's happily using up my disk... then:


Creating Script File ...

#--#
# Starting program ngdbuild
# ngdbuild -p xc5vsx95tff1136-1 -nt timestamp -uc system.ucf
C:/work/roachtest/XPS_ROACH_base/implementation/system.ngc system.ngd
#--#
Release 10.1.03 - ngdbuild K.39 (nt)
Copyright (c) 1995-2008 Xilinx, Inc.  All rights reserved.

Command Line: ngdbuild -p xc5vsx95tff1136-1 -nt timestamp -uc system.ucf
C:/work/roachtest/XPS_ROACH_base/implementation/system.ngc system.ngd

Reading NGO file C:/work/roachtest/XPS_ROACH_base/implementation/system.ngc
...
ERROR:ConstraintSystem:8 - The file 'system.ucf' could not be opened for
   reading.

Loading design module
C:/work/roachtest/XPS_ROACH_base/implementation/infrastructure_inst_wrapper.ngc
...
Loading design module
C:/work/roachtest/XPS_ROACH_base/implementation/reset_block_inst_wrapper.ngc..
.
Loading design module
C:/work/roachtest/XPS_ROACH_base/implementation/opb0_wrapper.ngc...
Loading design module
C:/work/roachtest/XPS_ROACH_base/implementation/epb_opb_bridge_inst_wrapper.ngc
...
Loading design module
C:/work/roachtest/XPS_ROACH_base/implementation/epb_infrastructure_inst_wrapper
.ngc...
Loading design module
C:/work/roachtest/XPS_ROACH_base/implementation/sys_block_inst_wrapper.ngc...
Loading design module
C:/work/roachtest/XPS_ROACH_base/implementation/roachtest_xsg_core_config_wrapp
er.ngc...
Loading design module
C:/work/roachtest/XPS_ROACH_base/implementation/roachtest_software_register_wra
pper.ngc...
Loading design module
C:/work/roachtest/XPS_ROACH_base/implementation/roachtest_software_register1_wr
apper.ngc...
Gathering constraint information from source properties...
Done.

Applying constraints in system.ucf to the design...
ERROR:ConstraintSystem:8 - The file 'system.ucf' could not be opened for
   reading.

Resolving constraint associations...
Checking Constraint Associations...
Done...
Checking Partitions ...

Checking expanded design ...
WARNING:NgdBuild:443 - SFF primitive
   'roachtest_XSG_core_config/roachtest_XSG_core_config/default_clock_driver/xlc
   lockdriver_1/clr_reg/latency_gt_0.fd_array[1].reg_comp/fd_prim_array[0].bit_i
   s_0.fdre_comp' has unconnected output pin
WARNING:NgdBuild:452 - logical net 'N18' has no driver
WARNING:NgdBuild:452 - logical net 'N19' has no driver
WARNING:NgdBuild:452 - logical net 'N20' has no driver
WARNING:NgdBuild:452 - logical net 'N21' has no driver
WARNING:NgdBuild:452 - logical net 'N22' has no driver
WARNING:NgdBuild:452 - logical net 'N23' has no driver
WARNING:NgdBuild:452 - logical net 'N24' has no driver
WARNING:NgdBuild:452 - logical net 'N25' has no driver
WARNING:NgdBuild:452 - logical net 'N26' has no driver
WARNING:NgdBuild:452 - logical net 'N27' has no driver
WARNING:NgdBuild:452 - logical net 'N28' has no driver
WARNING:NgdBuild:452 - logical net 'N29' has no driver
WARNING:NgdBuild:452 - logical net 'N30' has no driver
WARNING:NgdBuild:452 - logical net 'N31' has no driver
WARNING:NgdBuild:452 - logical net 'N32' has no driver
WARNING:NgdBuild:452 - logical net 'N33' has no driver

Partition Implementation Status
---

  No Partitions were found in this design.

---

NGDBUILD Design Results Summary:
  Number of errors: 2
  Number of warnings:  17


One or more errors were found during NGDBUILD.  No NGD file will be written.

Any ideas?  I'm stumped.

John






Re: [casper] Fwd: Re: SPDO ROACH spectrometer

2009-11-02 Thread Kjetil Wormnes

Hi Jason,

Thank you again for your reply. I can use FTP or even write my own 
little raw socket transfer routine, and it seems to work, I can 
transfer  a few gigabyte-size files.


However, at the end of this, the other problem kicks in; causing a 
system crash. I believe this is a kernel problem, as it exhibits itself 
differently with different kernels I have tried.


So, putting the ssh problem aside as something that we can work around 
and returning to the other request I made;


I am compiling my own kernel because I seem to need to in order to get 
EHCI and EXT3 to work properly.


However, when I do, EMAC can't autonegotiate a link, and even forcing it 
to something doesn't work. The link comes up, then drops out again... 
repeatedly.


The interesting thing is this problem *does not* occur when I compile my 
kernel using an svn checkout from a couple of months ago. Even with the 
exact same .config file.


At least this is the case as far as I can tell.

Now, in order to be 100% sure that it is in fact a difference in the 
source that is causing this problem, rather than just the .config. I 
would love it if you could send me the .config file used to compile the 
uImage-20091006-mmcfix kernel.


The ethernet interface does appear to be more stable with that kernel, 
but unfortunately I can't use it as it doesn't allow USB 2.0 speeds, so 
if you please, the .config file would be very useful.


Thanks again for all your help


Kjetil


Jason Manley wrote:
There appears to be some issue with ssh on ROACH with large transfers.  
It is definitely not a hardware problem as other network transfers  
work fine. Both Andrew Martens and myself regularly transfer large  
amounts of data (1GB) using KATCP. This ssh bug has become a low  
priority for us as we concentrate on other things. If you do not want  
to try'n debug it yourself, I recommend you try an FTP server.


Kjetil, you are correct; at present, KATCP does not support transfer  
of arbitrary files from filesystem.


Jason

On 02 Nov 2009, at 00:51, Kjetil Wormnes wrote:

  

Hi Jason,

thank you for your reply. The SUN link was very descriptive.

Firstly, it appears the problem is still there with the kernel build  
you suggested/ After a few megabytes, the connection closes telling  
me; Corrupted MAC on input.


But interestingly it seems to have solved another problem that I was  
having with one of our ROACH boards. It would be great if you could  
send me the .config file for that build so I can compare it with  
mine. I have a custom kernel as I like ext3 support and a few other  
bits and pieces, but have been having some issues getting the  
network to establish a stable link.


Now, back to the problem; We have a locally attached harddrive that  
we are writing our data to over USB. Occasionally we want to connect  
and download these. That's why I am using ssh. I can't really use  
KATCP for this, can I?


Thanks again,

Kjetil




Jason Manley wrote:

Um, no, this is probably a different problem. You are getting  
these  errors while using SSH/SCP, right? The hardware problem with  
faulty  PHY manifests as one or more of the PHY LEDs flashing on/ 
off (there  are three red ones next to the PHY chip). If your link  
is stable, then  I believe the hardware is fine.


The MAC problem appears to be software related, and comes and  
goes  depending on the kernel build. It does not refer to the MAC  
address,  but rather ssh's Machine Authentication Code. Check out http://blogs.sun.com/janp/entry/ssh_messages_code_bad_packet 
   for some info.


Dave's made various changes to try'n fix it, and increasing some   
software buffer has solved it for me. I no longer see this  
problem,  but it's probably been masked rather than solved. Also,  
you never see  it using KATCP, which is one more reason to use that  
method for larger  transfers.


WRT large (1GB) transfers, remember that it will take a long time  
to  pull that much data off the FPGA. It does so in pages of  
~4000Bytes at  a time. Also make sure you're using the latest  
kernel. We discovered a  bug in this paging system during the  
workshop. http://casper.berkeley.edu/svn/trunk/roach/sw/binaries/linux/uImage-20091006-mmcfix 
   should be good. I have never tried pulling such volumes over the  
SSH  shell, but it works fine with KATCP.


I will ask him to comment further.

Jason


On 30 Oct 2009, at 01:25, John Ford wrote:


  

casper collaborators,

appended below is further info on roach ethernet problems seen  
at  CSIRO:

any ideas?

  
If I recall correctly, Alan mentioned this problem at the  
workshop,  and
the problem was that some of the PHY chips were faulty at one   
point.  This

may be what's going on.  Hopefully someone knows for sure!

John




thanks,

dan

 Original Message 
Subject: Re: SPDO ROACH spectrometer
Date: Fri, 30 Oct 2009 09:19:01 +1100
From: Kjetil Wormnes kjetil.worm...@csiro.au
To: Dan Werthimer 

Re: [casper] build error

2009-11-02 Thread John Ford
 Hi John,

 I think this is a permissions error.  Did you check out the library or did
 someone else?  The file may have gotten corrupted.  I would just try
 checking out mlib_devel_10_1 from the repository again and see if that
 helps.

I checked it out myself, but i'll try again.

Thanks for the idea.  i'll let you know how it turns out tomorrow!

It seems that our version 11 system is almost ready to go, too.  Just have
to get system generator properly installed.

John


 Mark

 On Mon, Nov 2, 2009 at 4:18 PM, John Ford jf...@nrao.edu wrote:

 Hi all.  I'm installing a new incarnation of our build system on a new
 machine.  It's 10.1.03.  With a simple roach example, I get the
 following
 error:
 ...
 XSG generation complete.
 #
 ## Copying base system ##
 #
 
 ## Copying custom IPs ##
 
 ##
 ## Creating Simulink IP ##
 ##
 ##
 ## Creating EDK files   ##
 ##
 #
 ## Elaborating objects ##
 #
 ##
 ## Preparing software files ##
 ##
 #
 ## Running EDK backend ##
 #

 blah blah blah, it's happily using up my disk... then:


 Creating Script File ...

 #--#
 # Starting program ngdbuild
 # ngdbuild -p xc5vsx95tff1136-1 -nt timestamp -uc system.ucf
 C:/work/roachtest/XPS_ROACH_base/implementation/system.ngc system.ngd
 #--#
 Release 10.1.03 - ngdbuild K.39 (nt)
 Copyright (c) 1995-2008 Xilinx, Inc.  All rights reserved.

 Command Line: ngdbuild -p xc5vsx95tff1136-1 -nt timestamp -uc system.ucf
 C:/work/roachtest/XPS_ROACH_base/implementation/system.ngc system.ngd

 Reading NGO file
 C:/work/roachtest/XPS_ROACH_base/implementation/system.ngc
 ...
 ERROR:ConstraintSystem:8 - The file 'system.ucf' could not be opened for
   reading.

 Loading design module

 C:/work/roachtest/XPS_ROACH_base/implementation/infrastructure_inst_wrapper.ngc
 ...
 Loading design module

 C:/work/roachtest/XPS_ROACH_base/implementation/reset_block_inst_wrapper.ngc..
 .
 Loading design module
 C:/work/roachtest/XPS_ROACH_base/implementation/opb0_wrapper.ngc...
 Loading design module

 C:/work/roachtest/XPS_ROACH_base/implementation/epb_opb_bridge_inst_wrapper.ngc
 ...
 Loading design module

 C:/work/roachtest/XPS_ROACH_base/implementation/epb_infrastructure_inst_wrapper
 .ngc...
 Loading design module

 C:/work/roachtest/XPS_ROACH_base/implementation/sys_block_inst_wrapper.ngc...
 Loading design module

 C:/work/roachtest/XPS_ROACH_base/implementation/roachtest_xsg_core_config_wrapp
 er.ngc...
 Loading design module

 C:/work/roachtest/XPS_ROACH_base/implementation/roachtest_software_register_wra
 pper.ngc...
 Loading design module

 C:/work/roachtest/XPS_ROACH_base/implementation/roachtest_software_register1_wr
 apper.ngc...
 Gathering constraint information from source properties...
 Done.

 Applying constraints in system.ucf to the design...
 ERROR:ConstraintSystem:8 - The file 'system.ucf' could not be opened for
   reading.

 Resolving constraint associations...
 Checking Constraint Associations...
 Done...
 Checking Partitions ...

 Checking expanded design ...
 WARNING:NgdBuild:443 - SFF primitive

 'roachtest_XSG_core_config/roachtest_XSG_core_config/default_clock_driver/xlc

 lockdriver_1/clr_reg/latency_gt_0.fd_array[1].reg_comp/fd_prim_array[0].bit_i
   s_0.fdre_comp' has unconnected output pin
 WARNING:NgdBuild:452 - logical net 'N18' has no driver
 WARNING:NgdBuild:452 - logical net 'N19' has no driver
 WARNING:NgdBuild:452 - logical net 'N20' has no driver
 WARNING:NgdBuild:452 - logical net 'N21' has no driver
 WARNING:NgdBuild:452 - logical net 'N22' has no driver
 WARNING:NgdBuild:452 - logical net 'N23' has no driver
 WARNING:NgdBuild:452 - logical net 'N24' has no driver
 WARNING:NgdBuild:452 - logical net 'N25' has no driver
 WARNING:NgdBuild:452 - logical net 'N26' has no driver
 WARNING:NgdBuild:452 - logical net 'N27' has no driver
 WARNING:NgdBuild:452 - logical net 'N28' has no driver
 WARNING:NgdBuild:452 - logical net 'N29' has no driver
 WARNING:NgdBuild:452 - logical net 'N30' has no driver
 WARNING:NgdBuild:452 - logical net 'N31' has no driver
 WARNING:NgdBuild:452 - logical net 'N32' has no driver
 WARNING:NgdBuild:452 - logical net 'N33' has no driver

 Partition Implementation Status
 ---

  No Partitions were found in this design.

 ---

 NGDBUILD Design Results Summary:
  Number of errors: 2
  Number of warnings:  17


 One or more errors were found during NGDBUILD.  No NGD file will be
 written.

 Any ideas?  I'm stumped.

 John











Re: [casper] Setting up ROACH NFS filesystem and server

2009-11-02 Thread Danny Price

Hi All - have just made an NFS boot guide page on the wiki:

http://casper.berkeley.du/wiki/ROACH_NFS_guide

Please edit/amend at your leisure!

Cheers
Dan