Thanks Johann and Leonid, The "-o tcp" option made it work ok for me. Its still a little slow at ten seconds to do an ls on 125 files but I consider this acceptable. I did try the other options you suggested ( -o tcp,rsize=4096,wsize=4096,hard,nolock ) but the time remained about the same. Regards, Larry -----Original Message----- From: owner-microblaze-uclinux@xxxxxxxxxxxxxx on behalf of Leonid Sent: Tue 4/10/2007 1:56 PM To: microblaze-uclinux@xxxxxxxxxxxxxx Subject: RE: [microblaze-uclinux]nfs problems First, it works with emaclite much worse (slower) it was with real EMAC. Takes time even to establish connection. Second, the only combination it worked for me is: # mount /dev/root on / type nfs (rw,v2,rsize=4096,wsize=4096,hard,tcp,nolock,addr=192.168.0.141) I specified explicitly only tcp, all other parameters it negotiated by itself. TCP is vital however. Leonid. -----Original Message----- From: owner-microblaze-uclinux@xxxxxxxxxxxxxx [mailto:owner-microblaze-uclinux@xxxxxxxxxxxxxx] On Behalf Of Dr. Johann Pfefferl Sent: Tuesday, April 10, 2007 2:20 AM To: microblaze-uclinux@xxxxxxxxxxxxxx Subject: Re: [microblaze-uclinux]nfs problems Hello, you better use tcp instead of udp by applying the option mount -o tcp I always prefer this method because it works much better if the target CPU is a magnitude slower than the server CPU. Larry Rystrom <Rystrom@xxxxxxxxxxxxxxxxxxxxxx> wrote: > Hi John and everybody, > > The nfs mount now seems to work but there is still some kind of timeout problem. I get the following when doing an ls on my project directory (which has about 125 files in it): > > uclinux login: root > Password: > # mkdir /var/tmp/FPGA > # mount -t nfs 192.168.1.10:/home/rystrom/FPGA /var/tmp/FPGA > # cd /var/tmp/FPGA > # ls > HDCheckerMB > # cd HDCheckerMB > # ls > HDChecker expat hello zlib > # cd HDChecker > # ls > nfs: server 192.168.1.10 not responding, still trying > > > At this point it never comes back. I also tried both "-o nolock" and "-o rsize=2048,wsize=2048" options but got the same timeout problem. > > Thanks for your continued help. > > Larry > > ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; > uClinux session: > > PetaLinux environment set to '/home/rystrom/petalinux' > [rystrom@localhost ~]$ kermit -c > Connecting to /dev/ttyS0, speed 115200 > Escape character: Ctrl-\ (ASCII 28, FS): enabled > Type the escape character followed by C to get back, > or followed by ? to see other options. > ---------------------------------------------------- > > ================================================= > FS-BOOT First Stage Bootloader (c) 2006 PetaLogix > ================================================= > FS-BOOT: System initialisation completed. > FS-BOOT: Booting from FLASH. Press 's' for image download. > FS-BOOT: Booting image... > SDRAM : > Enabling caches...Icache:OK...Dcache:OK > U-Boot Start:0x23fc0000 > Malloc Start:0x23f60000 > Board Info Start:0x23f5ffd0 > Boot Parameters Start:0x23f4ffd0 > FLASH: 16 MB > ETHERNET: MAC:00:0a:35:00:22:01 > > Hit any key to stop autoboot: 0 > ## Booting image at 210c0000 ... > Image Name: PetaLinux Kernel 2.4 > Image Type: Microblaze Linux Kernel Image (uncompressed) > Data Size: 3186688 Bytes = 3 MB > Load Address: 22000000 > Entry Point: 22000000 > Verifying Checksum ... OK > OK > Linux version 2.4.32-uc0 (rystrom@localhost) (gcc version 3.4.1 ( Xilinx EDK 8.1.01 Build EDK_I.19.4 080506 )) #8 Fri Apr 6 13:25:22 PDT 2007 > On node 0 totalpages: 8192 > zone(0): 8192 pages. > zone(1): 0 pages. > zone(2): 0 pages. > CPU: MICROBLAZE > Kernel command line: mtdparts=physmap_auto:256K(boot),256K(bootenv),256K(config),4M(image),11 M(spare),0K(part6) macaddr=00:0a:35:00:22:01 > Console: xmbserial on UARTLite > Calibrating delay loop... 24.83 BogoMIPS > Memory: 32MB = 32MB total > Memory: 29124KB available (1127K code, 2156K data, 48K init) > Dentry cache hash table entries: 4096 (order: 3, 32768 bytes) > Inode cache hash table entries: 2048 (order: 2, 16384 bytes) > Mount cache hash table entries: 512 (order: 0, 4096 bytes) > Buffer cache hash table entries: 1024 (order: 0, 4096 bytes) > Page-cache hash table entries: 8192 (order: 3, 32768 bytes) > POSIX conformance testing by UNIFIX > Linux NET4.0 for Linux 2.4 > Based upon Swansea University Computer Society NET3.039 > Initializing RT netlink socket > Microblaze UARTlite serial driver version 1.00 > ttyS0 at 0x40600000 (irq = 2) is a Microblaze UARTlite > ttyS1 at 0x41400000 (irq = 4) is a Microblaze UARTlite > Starting kswapd > RAMDISK driver initialized: 16 RAM disks of 4096K size 1024 blocksize > eth0: using fifo mode. > eth0: No PHY detected. Assuming a PHY at address 0. > eth0: Xilinx EMACLite #0 at 0x40E00000 mapped to 0x40E00000, irq=1 > physmap_auto flash device: 1000000 at 21000000 > physmap_auto probing buswidth 1 > cfi_cmdset_0001: Erase suspend on write enabled > 0: offset=0x0,size=0x20000,blocks=128 > Using buffer write method > mtd: partition size too small (0) > physmap_auto: no partition info available, registering whole flash at once > uclinux[mtd]: RAM probe address=0x2215ddd0 size=0x1d7000 > uclinux[mtd]: root filesystem index=2 > Directional Button & Rotary Encoder Driver > (c) 2006 PetaLogix > NET4: Linux TCP/IP 1.0 for NET4.0 > IP Protocols: ICMP, UDP, TCP > IP: routing cache hash table of 512 buckets, 4Kbytes > TCP: Hash tables configured (established 2048 bind 4096) > NET4: Unix domain sockets 1.0/SMP for Linux NET4.0. > VFS: Mounted root (cramfs filesystem) readonly. > Freeing init memory: 48K > Mounting proc: > Mounting var: > Populating /var: > Running local start scripts. > Mounting /etc/config: > Populating /etc/config: > flatfsd: Nonexistent or bad flatfs (-48), creating new one... > flatfsd: Failed to write flatfs (-48): No such device > flatfsd: Created 5 configuration files (219 bytes) > Setting hostname: > Setting up interface lo: > Setting up interface eth0: > Starting portmap: > Starting thttpd: > > uclinux login: root > Password: > # mkdir /var/tmp/FPGA > # mount -t nfs 192.168.1.10:/home/rystrom/FPGA /var/tmp/FPGA > # cd /var/tmp/FPGA > # ls > HDCheckerMB > # cd HDCheckerMB > # ls > HDChecker expat hello zlib > # cd HDChecker > # ls > nfs: server 192.168.1.10 not responding, still trying > > ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; > Centos session > > PetaLinux environment set to '/home/rystrom/petalinux' > [rystrom@localhost ~]$ alias download > alias download='MyCwd=`pwd`; cd /home/rystrom/petalinux/hardware/reference-designs/Xilinx-Spartan3E500-R evC-edk82; make -f system.make download; cd $MyCwd; MyCwd=' > [rystrom@localhost ~]$ download > > ********************************************* > Downloading Bitstream onto the target board > ********************************************* > impact -batch etc/download.cmd > Release 8.2.03i - iMPACT I.34 > Copyright (c) 1995-2006 Xilinx, Inc. All rights reserved. > // *** BATCH CMD : setMode -bs > // *** BATCH CMD : setCable -port auto > AutoDetecting cable. Please wait. > Reusing 78008001 key. > Reusing FC008001 key. > Connecting to cable (Parallel Port - parport0). > WinDriver v8.02 Jungo (c) 1997 - 2006 Build Date: Jun 6 2006 X86 32bit > 16:11:59. > parport0: baseAddress=0x378, ecpAddress=0x778 > LPT base address = 0378h. > ECP base address = 0778h. > Cable connection failed. > Reusing 79008001 key. > Reusing FD008001 key. > Connecting to cable (Parallel Port - parport1). > WinDriver v8.02 Jungo (c) 1997 - 2006 Build Date: Jun 6 2006 X86 32bit > 16:11:59. > Cable connection failed. > Reusing 7A008001 key. > Reusing FE008001 key. > Connecting to cable (Parallel Port - parport2). > WinDriver v8.02 Jungo (c) 1997 - 2006 Build Date: Jun 6 2006 X86 32bit > 16:11:59. > Cable connection failed. > Reusing 7B008001 key. > Reusing FF008001 key. > Connecting to cable (Parallel Port - parport3). > WinDriver v8.02 Jungo (c) 1997 - 2006 Build Date: Jun 6 2006 X86 32bit > 16:11:59. > Cable connection failed. > Reusing A0008001 key. > Reusing 24008001 key. > Connecting to cable (Usb Port - USB21). > Checking cable driver. > File version of /opt/pkg/xilinx/ise8.2/bin/lin/xusbdfwu.hex = 1021(dec), 03FD. > File version of /etc/hotplug/usb/xusbdfwu.fw/xusbdfwu.hex = 1025(dec), 0401. > Calling setinterface num=0, alternate=0. > DeviceAttach: received and accepted attach for: > vendor id 0x3fd, product id 0x8, device handle 0x99254e8 > Cable PID = 0008. > Max current requested during enumeration is 280 mA. > Cable Type = 3, Revision = 0. > Setting cable speed to 6 MHz. > Cable connection established. > Firmware version = 1025. > CPLD file version = 0012h. > CPLD version = 0012h. > // *** BATCH CMD : identify > Identifying chain contents ....Version is 0000 > '1': : Manufacturer's ID =Xilinx xc2c64a, Version : 0 > PMSPEC -- Overriding Xilinx file </opt/pkg/xilinx/ise8.2/xbr/data/xbr.acd> with > local file </opt/pkg/xilinx/ise8.2/xbr/data/xbr.acd> > INFO:iMPACT:1777 - > Reading /opt/pkg/xilinx/ise8.2/xbr/data/xc2c64a.bsd... > INFO:iMPACT:501 - '1': Added Device xc2c64a successfully. > ---------------------------------------------------------------------- > ---------------------------------------------------------------------- > Version is 1111 > '2': : Manufacturer's ID =Xilinx xcf04s, Version : 15 > INFO:iMPACT:1777 - > Reading /opt/pkg/xilinx/ise8.2/xcf/data/xcf04s.bsd... > INFO:iMPACT:501 - '1': Added Device xcf04s successfully. > ---------------------------------------------------------------------- > ---------------------------------------------------------------------- > Version is 0000 > '3': : Manufacturer's ID =Xilinx xc3s500e, Version : 0 > INFO:iMPACT:1777 - > Reading /opt/pkg/xilinx/ise8.2/spartan3e/data/xc3s500e.bsd... > INFO:iMPACT:501 - '1': Added Device xc3s500e successfully. > ---------------------------------------------------------------------- > ---------------------------------------------------------------------- > done. > Chain TCK freq = 10000000. > Chain TCK freq = 10000000. > Validating chain... > Boundary-scan chain validated successfully. > Elapsed time = 1 sec. > // *** BATCH CMD : identifyMPM > Elapsed time = 0 sec. > // *** BATCH CMD : assignFile -p 1 -file "implementation/download.bit" > '1': Loading file 'implementation/download.bit' ... > done. > INFO:iMPACT:501 - '1': Added Device xc3s500e successfully. > ---------------------------------------------------------------------- > ---------------------------------------------------------------------- > ---------------------------------------------------------------------- > ---------------------------------------------------------------------- > // *** BATCH CMD : program -p 1 > Chain TCK freq = 10000000. > Chain TCK freq = 10000000. > Validating chain... > Boundary-scan chain validated successfully. > '1':Programming device... > done. > '1': Reading status register contents... > CRC error : 0 > Decryptor security set : 0 > DCM locked : 1 > DCI matched : 1 > legacy input error : 0 > status of GTS_CFG_B : 1 > status of GWE : 1 > status of GHIGH : 1 > value of MODE pin M0 : 1 > value of MODE pin M1 : 0 > value of MODE pin M2 : 1 > value of CFG_RDY (INIT_B) : 1 > DONEIN input from DONE pin : 1 > IDCODE not validated while trying to write FDRI : 0 > write FDRI issued before or after decrypt operation: 0 > Decryptor keys not used in proper sequence : 0 > INFO:iMPACT:2219 - Status register values: > INFO:iMPACT - 0011 0111 1011 1000 0000 0000 0000 0000 > INFO:iMPACT:579 - '1': Completed downloading bit file to device. > INFO:iMPACT:580 - '1':Checking done pin ....done. > '1': Programmed successfully. > Elapsed time = 1 sec. > // *** BATCH CMD : quit > ---------------------------------------------------------------------- > ---------------------------------------------------------------------- > ---------------------------------------------------------------------- > ---------------------------------------------------------------------- > [rystrom@localhost ~]$ ls > add_ibuf.txt edk_user_repository Lab1 old.kermrc~ test > Desktop foo.txt Lab2 pcores workspace > Desktop1 FPGA microblaze-auto petalinux > [rystrom@localhost ~]$ cd FPGA > [rystrom@localhost FPGA]$ ls > HDCheckerMB > [rystrom@localhost FPGA]$ cd HDCheckerMB > [rystrom@localhost HDCheckerMB]$ ls > expat HDChecker hello zlib > [rystrom@localhost HDCheckerMB]$ cd HDChecker > [rystrom@localhost HDChecker]$ ls > AverageToEightBit.cpp LineGraphicOverlay.h > AverageToEightBit.h Main.cpp > Bin.cpp MakeClutterMask.cpp > Bin.h MakeClutterMask.h > Bitmap.cpp MakeMasks.cpp > Bitmap.h MakeMasks.h > Bstr.cpp Matrix.cpp > Bstr.h Matrix.h > CircleGraphicOverlay.cpp Measure.cpp > CircleGraphicOverlay.h Measure.h > CombineParticles.cpp MemoryStream.h > CombineParticles.h Misc.cpp > ComObject.cpp Misc.h > ComObject.h Morph.cpp > ComTearOffObjectEx.h Morph.h > crc_table.h MyAssert.h > CString.cpp PackageParticles.cpp > CString.h PackageParticles.h > Debug PackageScratches.cpp > DetailedInspectionResult.cpp PackageScratches.h > DetailedInspectionResult.h ParseSensitivity.cpp > Display.h ParseSensitivity.h > Equivalence.h Particle.cpp > Erf.h Particle.h > ExpatImplEx.h Persist.h > ExpatImpl.h PersistStreamInit.h > FiberFocusQuality.cpp Png.cpp > FiberFocusQuality.h Png.h > Fiber.h Polygon.cpp > FiberKind.h Polygon.h > FileStream.h Profile.h > FindFile.h PropertyBag.h > FindGlass.cpp PropertyBagVB.h > FindGlass.h Random.cpp > FindHole.cpp Random.h > FindHole.h Resource.h > FindParticles.cpp Run.h > FindParticles.h Scratch.cpp > FindScratches.cpp ScratchGraphicOverlay.cpp > FindScratches.h ScratchGraphicOverlay.h > getexename.c Scratch.h > Histogram.cpp Sensitivity.xml > Histogram.h ShapeRegionOfInterest.cpp > ImageBase.cpp ShapeRegionOfInterest.h > ImageBase.h SharedPtr.h > Image.cpp SplineImage.cpp > Image.h SplineImage.h > ImageVPA.h SplitPath.h > ImportFiber.h StdAfx.cpp > InspectFiber2.cpp StdAfx.h > InspectFiber2.h StructuringElement.cpp > InspectionCriteria.cpp StructuringElement.h > InspectionCriteria.h TextGraphicOverlay.cpp > InspectionProfile.cpp TextGraphicOverlay.h > InspectionProfile.h Timer.h > InspectionResult.cpp TraverseImage.h > InspectionResult.h Variant.cpp > InspectionZone.cpp Variant.h > InspectionZone.h Vector.h > InspectionZoneResult.cpp VPATypes.h > InspectionZoneResult.h WSIFiber2.h > InterfacePtr.h WSIFiber.h > LineGraphicOverlay.cpp > [rystrom@localhost HDChecker]$ ls | wc > 125 125 1845 > [rystrom@localhost HDChecker]$ more /etc/exports > /home/rystrom/petalinux/hardware 192.168.1.11(rw,sync,all_squash,anonuid=500,anongid=500) > /home/rystrom/petalinux/hardware 192.168.1.0/255.255.255.0(rw,sync,all_squash,anonuid=500,anongid=500) > /home/rystrom/FPGA 192.168.1.11(rw,sync,all_squash,anonuid=500,anongid=500) > /home/rystrom/FPGA 192.168.1.0/255.255.255.0(rw,sync,all_squash,anonuid=500,anongid=500) > [rystrom@localhost HDChecker]$ > > > > -----Original Message----- > From: owner-microblaze-uclinux@xxxxxxxxxxxxxx on behalf of John Williams > Sent: Fri 3/30/2007 5:58 PM > To: microblaze-uclinux@xxxxxxxxxxxxxx > Subject: Re: [microblaze-uclinux]nfs problems > > Hi LArry, > > Larry Rystrom wrote: > > > Thank you for your continued patience. I have been making very good progress including burning uClinux into flash memory and booting from it. The next step seems to be mounting a directory via nfs to allow file sharing. When I try a mount in uClinux I get a long delay (about 5 minutes) before getting time out error messages. > > Glad to hear you are making progress. > > The NFS one should be simple - you need to build and run the "portmap" > application. > > You can select it from menu config -> user/vendor settings -> network > applications. > > Selecting it will also cause it to be automatically run on startup, if > you are using default PetaLinux vendor settings. > > Rebuild (no clean necessary, just a "make user_only romfs image") and > you'll be good to go. > > Regards, > > John > > ___________________________ > microblaze-uclinux mailing list > microblaze-uclinux@xxxxxxxxxxxxxx > Project Home Page : http://www.itee.uq.edu.au/~jwilliams/mblaze-uclinux > Mailing List Archive : http://www.itee.uq.edu.au/~listarch/microblaze-uclinux/ > > -- Dr. Johann Pfefferl ------------ mailto j.pfefferl at eubus dot net Eubus GmbH http://www.eubus.net +++++ http://www.hydraxc.com Phone: +49 (0)89 45 22 578-67 Fax: +49 (0)89 45 22 578-55 == -o) A computer program does what you tell it to do, /\\ not what you want it to do. _\_v- ___________________________ microblaze-uclinux mailing list microblaze-uclinux@xxxxxxxxxxxxxx Project Home Page : http://www.itee.uq.edu.au/~jwilliams/mblaze-uclinux Mailing List Archive : http://www.itee.uq.edu.au/~listarch/microblaze-uclinux/ ___________________________ microblaze-uclinux mailing list microblaze-uclinux@xxxxxxxxxxxxxx Project Home Page : http://www.itee.uq.edu.au/~jwilliams/mblaze-uclinux Mailing List Archive : http://www.itee.uq.edu.au/~listarch/microblaze-uclinux/ ?
<<winmail.dat>>