Problem with rtems-ttcp example

Joel Sherrill joel.sherrill at OARcorp.com
Thu Feb 18 20:14:15 UTC 2010


See the README for the ttcp.  You have to enter
the command line arguments on the console
of the RTEMS side.  But I don't see it giving
a prompr.

It should end at a prompt on the console asking
for arguments.

--joel





On 02/18/2010 01:48 PM, Luis Mollinedo Herrera wrote:
> Hello,
>
> I'm trying to get to work the "rtems-ttcp" example with a GR-PCI-XC2V (LEON3) board with no success. This is the networkconfig.h file:
>
> -----------------------------------------------------------------------------------------------------------------
>   /*
>   * Network configuration
>   *
>   ************************************************************
>   * EDIT THIS FILE TO REFLECT YOUR NETWORK CONFIGURATION     *
>   * BEFORE RUNNING ANY RTEMS PROGRAMS WHICH USE THE NETWORK! *
>   ************************************************************
>   *
>   *  networkconfig.h,v 1.8 2001/08/31 18:11:43 joel Exp
>   */
>
> #ifndef _RTEMS_NETWORKCONFIG_H_
> #define _RTEMS_NETWORKCONFIG_H_
>
> #include<network_interface_add.h>
>
> /* #define RTEMS_USE_BOOTP */
>
> /* #include<bsp.h>  */
>
>
> #ifdef RTEMS_USE_LOOPBACK
> /*
>   * Loopback interface
>   */
> extern void rtems_bsdnet_loopattach();
> static struct rtems_bsdnet_ifconfig loopback_config = {
> 	"lo0",				/* name */
> 	rtems_bsdnet_loopattach,	/* attach function */
>
> 	NULL,				/* link to next interface */
>
> 	"127.0.0.1",			/* IP address */
> 	"255.0.0.0",			/* IP net mask */
> };
> #endif
>
>
> /*
>   * Network configuration
>   */
> struct rtems_bsdnet_config rtems_bsdnet_config = {
> #ifdef RTEMS_USE_LOOPBACK
> 	&loopback_config,		/* link to next interface */
> #else
> 	NULL,				/* No more interfaces */
> #endif
>
> #if (defined (RTEMS_USE_BOOTP))
> 	rtems_bsdnet_do_bootp,
> #else
> 	NULL,
> #endif
>
> 	100,			/* Default network task priority */
> 	128*1024,		/* Default mbuf capacity */
> 	256*1024,		/* Default mbuf cluster capacity */
>
> #if (!defined (RTEMS_USE_BOOTP))
> 	"rtems_host",		/* Host name */
> 	"localnet",		/* Domain name */
> 	"192.168.0.1",		/* Gateway */
> 	"192.168.0.1",		/* Log host */
> 	{"192.168.0.1" },	/* Name server(s) */
> 	{"192.168.0.1" },	/* NTP server(s) */
>
> #endif /* !RTEMS_USE_BOOTP */
>
> };
>
> /* Table used by network interfaces that register themselves using the
>   * network_interface_add routine. From this table the IP address, netmask
>   * and Ethernet MAC address of an interface is taken.
>   *
>   * The network_interface_add routine puts the interface into the
>   * rtems_bsnet_config.ifconfig list.
>   *
>   * Set IP Address and Netmask to NULL to select BOOTP.
>   */
> struct ethernet_config interface_configs[] =
> {
>          { "192.168.0.66", "255.255.255.0", {0x00, 0x80, 0x7F, 0x22, 0x61, 0x79}},
>          { "192.168.1.66", "255.255.255.0", {0x00, 0x80, 0x7F, 0x22, 0x61, 0x7A}},
>          { "192.168.2.66", "255.255.255.0", {0x00, 0x80, 0x7F, 0x22, 0x61, 0x7B}},
>          { "192.168.3.66", "255.255.255.0", {0x00, 0x80, 0x7F, 0x22, 0x61, 0x7C}},
>          { "192.168.4.66", "255.255.255.0", {0x00, 0x80, 0x7F, 0x22, 0x61, 0x7D}},
>          { "192.168.5.66", "255.255.255.0", {0x00, 0x80, 0x7F, 0x22, 0x61, 0x7E}},
>          { "192.168.6.66", "255.255.255.0", {0x00, 0x80, 0x7F, 0x22, 0x61, 0x7F}},
> 	{NULL, NULL, {0,0,0,0,0,0}}
> };
> #define INTERFACE_CONFIG_CNT (sizeof(interface_configs)/sizeof(struct ethernet_config) - 1)
>
> /*
>   * For TFTP test application
>   */
> #if (defined (RTEMS_USE_BOOTP))
> #define RTEMS_TFTP_TEST_HOST_NAME "BOOTP_HOST"
> #define RTEMS_TFTP_TEST_FILE_NAME "BOOTP_FILE"
> #else
> #define RTEMS_TFTP_TEST_HOST_NAME "XXX.YYY.ZZZ.XYZ"
> #define RTEMS_TFTP_TEST_FILE_NAME "tftptest"
> #endif
>
> #endif /* _RTEMS_NETWORKCONFIG_H_ */
> -----------------------------------------------------------------------------------------------------------------
>
> This is the grmon output:
>
> -----------------------------------------------------------------------------------------------------------------
> C:\opt\rtems-4.10-mingw\src\samples>grmon-eval -nosram -u
>
> GRMON LEON debug monitor v1.1.38 evaluation version
>
> Copyright (C) 2004-2008 Aeroflex Gaisler - all rights reserved.
> For latest updates, go to http://www.gaisler.com/
> Comments or bug-reports to support at ...
>
> This evaluation version will expire on 21/9/2010
> try open device //./com1
> ###opened device //./com1
>
> initialising .............
> detected frequency: 40 MHz
>
> Component Vendor
> LEON3 SPARC V8 Processor Gaisler Research
> AHB Debug UART Gaisler Research
> AHB Debug JTAG TAP Gaisler Research
> Simple 32-bit PCI Target Gaisler Research
> GR Ethernet MAC Gaisler Research
> LEON2 Memory Controller European Space Agency
> AHB/APB Bridge Gaisler Research
> LEON3 Debug Support Unit Gaisler Research
> Generic APB UART Gaisler Research
> Multi-processor Interrupt Ctrl Gaisler Research
> Modular Timer Unit Gaisler Research
> Generic APB UART Gaisler Research
> General purpose I/O port Gaisler Research
>
> Use command 'info sys' to print a detailed report of attached cores
>
> grlib>  load rtems-ttcp
> section: .text at 0x40000000, size 390128 bytes
> section: .data at 0x4005f3f0, size 10208 bytes
> section: .jcr at 0x40061bd0, size 4 bytes
> total size: 400340 bytes (88.3 kbit/s)
> read 1657 symbols
> entry point: 0x40000000
> grlib>  verify rtems-ttcp
> section: .text at 0x40000000, size 390128 bytes
> section: .data at 0x4005f3f0, size 10208 bytes
> section: .jcr at 0x40061bd0, size 4 bytes
> total size: 400340 bytes (79.8 kbit/s)
> entry point: 0x40000000
> grlib>  run
> Initializing manager
> Initializing network
> greth: driver attached
> **** PHY ****
> Vendor: 4de Device: e Revision: 2
> Current Operating Mode: 100 Mbit Half Duplex
> Autonegotiation Time: 1796ms
> Initializing network DONE
>
> Destination Gateway/Mask/Hw Flags Refs Use Expire Interface
> default 192.168.0.1 UGS 0 0 0 gr_eth1
> 192.168.0.0 255.255.255.0 U 0 0 3 gr_eth1
> 192.168.0.1 UHL 1 0 3 gr_eth1
>
> ************ INTERFACE STATISTICS ************
> ***** gr_eth1 *****
> Ethernet Address: 00:80:7F:22:61:79
> Address:192.168.0.66 Broadcast Address:192.168.0.255 Net mask:255.255.255.0
>
> Flags: Up Broadcast Running Simplex
> Send queue limit:50 length:0 Dropped:0
> Rx Interrupts:1 Rx Packets:0 Length:0
> Non-octet:0
> Bad CRC:0 Overrun:0 Tx Interrupts:0
> Maximal Frags:1 GBIT MAC:0
>
>
>    
>>>> ctpt t t
>>>>          
> -----------------------------------------------------------------------------------------------------------------
>
> And this is the output from the computer with ttcp program installed:
>
> -----------------------------------------------------------------------------------------------------------------
> [root at localhost rtems123]# ping 192.168.0.66
> PING 192.168.0.66 (192.168.0.66) 56(84) bytes of data.
> 64 bytes from 192.168.0.66: icmp_seq=1 ttl=255 time=0.426 ms
> 64 bytes from 192.168.0.66: icmp_seq=2 ttl=255 time=0.523 ms
> ^C
> --- 192.168.0.66 ping statistics ---
> 2 packets transmitted, 2 received, 0% packet loss, time 1444ms
> [root at localhost rtems123]# ttcp 192.168.0.66 -s -t bigfile
> ttcp-t: buflen=8192, nbuf=2048, align=16384/0, port=5001 tcp ->  192.168.0.66
> ttcp-t: socket
> ttcp-t: connect: Connection refused
> errno=111
> [root at localhost rtems123]#
> -----------------------------------------------------------------------------------------------------------------
>
> I hope someone could help me with this problem.
>
> Thanks in advance and sorry for the inconveniences.
>
> Best regards,
> Luis Mollinedo
>
> ______________________
> This message including any attachments may contain confidential
> information, according to our Information Security Management System,
>   and intended solely for a specific individual to whom they are addressed.
>   Any unauthorised copy, disclosure or distribution of this message
>   is strictly forbidden. If you have received this transmission in error,
>   please notify the sender immediately and delete it.
>
> ______________________
> Este mensaje, y en su caso, cualquier fichero anexo al mismo,
>   puede contener informacion clasificada por su emisor como confidencial
>   en el marco de su Sistema de Gestion de Seguridad de la
> Informacion siendo para uso exclusivo del destinatario, quedando
> prohibida su divulgacion copia o distribucion a terceros sin la
> autorizacion expresa del remitente. Si Vd. ha recibido este mensaje
>   erroneamente, se ruega lo notifique al remitente y proceda a su borrado.
> Gracias por su colaboracion.
>
> ______________________
>
> _______________________________________________
> rtems-users mailing list
> rtems-users at rtems.org
> http://www.rtems.org/mailman/listinfo/rtems-users
>    


-- 
Joel Sherrill, Ph.D.             Director of Research&  Development
joel.sherrill at OARcorp.com        On-Line Applications Research
Ask me about RTEMS: a free RTOS  Huntsville AL 35805
    Support Available             (256) 722-9985





More information about the users mailing list