Hi All,
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.
on uClinux:
# mkdir /var/tmp/hardware
# mount -t nfs 192.168.1.10:/home/rystrom/petalinux/hardware /var/tmp/hardware
portmap: server localhost not responding, timed out
portmap: server localhost not responding, timed out
lockd_up: makesock failed, error=-5
portmap: server localhost not responding, timed out
#
My /etc/exports file:
/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)
I was able to perform an nfs mount from a mac on our network which makes me think nfs is basically working correctly.
Does anyone have any suggestions for me?
Regards,
Larry
P.S My two terminal sessions are below
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
kermit terminal 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: 3141632 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 )) #6 Wed Mar 28 12:03:27 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),11M(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: 29168KB available (1127K code, 2112K 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=0x1cc000
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 (185 bytes)
Setting hostname:
Setting up interface lo:
Setting up interface eth0:
Starting thttpd:
uclinux login: root
Password:
# mkdir /var/tmp/hardware
# mount -t nfs 192.168.1.10:/home/rystrom/petalinux/hardware /var/tmp/hardware
portmap: server localhost not responding, timed out
portmap: server localhost not responding, timed out
lockd_up: makesock failed, error=-5
portmap: server localhost not responding, timed out
# ping 192.168.1.10
PING 192.168.1.10 (192.168.1.10): 56 data bytes
64 bytes from 192.168.1.10: icmp_seq=0 ttl=64 time=2.4 ms
64 bytes from 192.168.1.10: icmp_seq=1 ttl=64 time=10.1 ms
64 bytes from 192.168.1.10: icmp_seq=2 ttl=64 time=10.1 ms
--- 192.168.1.10 ping statistics ---
3 packets transmitted, 3 packets received, 0% packet loss
round-trip min/avg/max = 2.4/7.5/10.1 ms
#
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; download terminal session:
PetaLinux environment set to '/home/rystrom/petalinux'
[rystrom@localhost ~]$ cd petalinux
[rystrom@localhost petalinux]$ cd hardware
[rystrom@localhost hardware]$ ls
edk_user_repository fs-boot reference-designs user-platforms
[rystrom@localhost hardware]$ cd ref*
[rystrom@localhost reference-designs]$ ls
pre-built Xilinx-ML403-uclinux-ref-edk71
Xilinx-ML401-uclinux-ref-edk71 Xilinx-ML403-uclinux-ref-edk81
Xilinx-ML401-uclinux-ref-edk81 Xilinx-ML403-uclinux-temac-edk81
Xilinx-ML401-uclinux-ref-edk82 Xilinx-Spartan3E500-RevC-edk81
Xilinx-ML403-ppc-linux-ref-edk71 Xilinx-Spartan3E500-RevC-edk82
Xilinx-ML403-ppc-linux-ref-edk81
[rystrom@localhost reference-designs]$ cd *RevC-edk82
[rystrom@localhost Xilinx-Spartan3E500-RevC-edk82]$ make -f system.make 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.
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.
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.
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.
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.
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 0x82eb308
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 Xilinx-Spartan3E500-RevC-edk82]$ cat /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)
[rystrom@localhost Xilinx-Spartan3E500-RevC-edk82]$ ping 192.168.1.11
PING 192.168.1.11 (192.168.1.11) 56(84) bytes of data.
64 bytes from 192.168.1.11: icmp_seq=0 ttl=64 time=0.859 ms
64 bytes from 192.168.1.11: icmp_seq=1 ttl=64 time=0.785 ms
64 bytes from 192.168.1.11: icmp_seq=2 ttl=64 time=0.781 ms
--- 192.168.1.11 ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2000ms
rtt min/avg/max/mdev = 0.781/0.808/0.859/0.042 ms, pipe 2
[rystrom@localhost Xilinx-Spartan3E500-RevC-edk82]$ cat /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)
[rystrom@localhost Xilinx-Spartan3E500-RevC-edk82]$
<<winmail.dat>>