netdemo and cs8900a problems
Denny.Bai
baishaolin at gmail.com
Fri May 26 12:01:47 UTC 2006
Hello, everyone!
i have a problem about netdemo .
now , my board is smdk2410 made by samsung.
the board owns s3c2410 cpu and cs8900 network chip.
now, when i test netdemo, i encounter the curious problems.
when netdemo starts, the cs8900a will send a arp packet , of which the souce
ip and the destination are the same. since then cs8900a will never
receive or send a packet.
and i telnet to the board but without any response.
i set the the board ip to "192.168.1.2" and pc ip to "192.168.1.130"
is there anyone who can tell me why.
i appreciate your help in advance.
the content of arp is
================================================================================
Ethernet II, Src: 00:80:7f:22:61:77, Dst: ff:ff:ff:ff:ff:ff
Destination: ff:ff:ff:ff:ff:ff (Broadcast)
Source: 00:80:7f:22:61:77 (Dy-4_22:61:77)
Type: ARP (0x0806)
Trailer: 02020202020202020202020202020202...
Address Resolution Protocol (request)
Hardware type: Ethernet (0x0001)
Protocol type: IP (0x0800)
Hardware size: 6
Protocol size: 4
Opcode: request (0x0001)
Sender MAC address: 00:80:7f:22:61:77 (Dy-4_22:61:77)
Sender IP address: 192.168.1.2 (192.168.1.2)
Target MAC address: 00:00:00:00:00:00 (00:00:00_00:00:00)
Target IP address: 192.168.1.2 (192.168.1.2)
0000 ff ff ff ff ff ff 00 80 7f 22 61 77 08 06 00 01 ........."aw....
0010 08 00 06 04 00 01 00 80 7f 22 61 77 c0 a8 01 02 ........."aw....
0020 00 00 00 00 00 00 c0 a8 01 02 02 02 02 02 02 02 ................
0030 02 02 02 02 02 02 02 02 02 02 02 02 ............
================================================================================
part of my networkconfig.h is
================================================================================
* Default network interface
*/
static struct rtems_bsdnet_ifconfig netdriver_config = {
RTEMS_BSP_NETWORK_DRIVER_NAME, /* name */
RTEMS_BSP_NETWORK_DRIVER_ATTACH, /* attach function */
#ifdef RTEMS_USE_LOOPBACK
&loopback_config, /* link to next interface */
#else
NULL, /* No more interfaces */
#endif
#if (defined (RTEMS_USE_BOOTP))
NULL, /* BOOTP supplies IP address */
NULL, /* BOOTP supplies IP net mask */
#else
"192.168.1.2", /* IP address */
"255.255.255.0", /* IP net mask */
#endif /* !RTEMS_USE_BOOTP */
#if (defined (RTEMS_SET_ETHERNET_ADDRESS))
ethernet_address, /* Ethernet hardware address */
#else
NULL, /* Driver supplies hardware address */
#endif
0, /* Use default driver parameters */
0,
0,
0,
0x300,
0,
0
};
/*
* Network configuration
*/
struct rtems_bsdnet_config rtems_bsdnet_config = {
&netdriver_config,
#if (defined (RTEMS_USE_BOOTP))
rtems_bsdnet_do_bootp,
#else
NULL,
#endif
0, /* Default network task priority */
0, /* Default mbuf capacity */
0, /* Default mbuf cluster capacity */
#if 1
"bsl", /* Host name */
"NOT_oarcorp.com", /* Domain name */
"192.168.1.130", /* Gateway */
"192.168.1.130", /* Log host */
{"192.168.1.130","192.168.1.200" }, /* Name server(s) */
{"192.168.1.130","192.168.1.200" }, /* NTP server(s) */
#endif /* !RTEMS_USE_BOOTP */
};
================================================================================
if i type "t", terminios echoes
================================================================================
Create socket.
Bind socket.
Connect socket.
Can't connect socket: Connection timed out
================================================================================
if i type "u", terminos echoes
================================================================================
Create socket.
Opt:0 Optlen:4
Opt:32 Optlen:4
================================================================================
if i type "s", termios echoes
================================================================================
Destination Gateway/Mask/Hw Flags Refs Use Expire Interface
default 192.168.1.130 UGS 0 0 0 eth0
192.168.1.0 255.255.255.0 U 0 0 2 eth0
192.168.1.130 UHL 1 1004 15 eth0
192.168.1.255 FF:FF:FF:FF:FF:FF UHL 0 6 0 eth0
************ MBUF STATISTICS ************
mbufs: 512 clusters: 64 free: 48
drops: 0 waits: 0 drains: 0
free:488 data:23 header:1 socket:0
pcb:0 rtable:0 htable:0 atable:0
soname:0 soopts:0 ftable:0 rights:0
ifaddr:0 control:0 oobdata:0
************ INTERFACE STATISTICS ************
***** eth0 *****
Ethernet Address: 00:80:7F:22:61:77
Address:192.168.1.2 Broadcast Address:192.168.1.255 Net mask:255.255.255.
Flags: Up Broadcast Running Active Simplex
Send queue limit:50 length:6 Dropped:0
cs8900_ioctl
show stats
cs8900_stats
Network Driver Stats for CS8900 :
rx ready len - 10 rx loaded len - 0
rx packets - 0 tx packets - 1
rx bytes - 0 tx bytes - 42
rx interrupts - 0 tx interrupts - 0
rx dropped - 0 rx no mbuf - 0
rx no custers - 0 rx oversize errors - 0
rx crc errors - 0 rx runt errors - 0
rx missed errors - 4 tx ok - 0
tx collisions - 0 tx bid errors - 0
tx wait for rdy4tx - 0 tx rdy4tx - 0
tx underrun errors - 0 tx dropped - 0
tx resends - 0 int swint req - 1
int swint res - 0 int lockup - 166
interrupts - 0
0.001 rx begin : 0x00000000
0.001 rx end : 0x00000000
0.001 rx begin : 0x00000000
0.001 rx end : 0x00000000
0.001 rx begin : 0x00000000
0.001 rx end : 0x00000000
0.001 rx begin : 0x00000000
0.001 rx end : 0x00000000
.........................................................
0.001 rx end : 0x00000000
0.001 rx begin : 0x00000000
0.001 rx end : 0x00000000
0.001 rx begin : 0x00000000
0.001 rx end : 0x00000000
0.001 rx begin : 0x00000000
************ IP Statistics ************
total packets received 5
datagrams delivered to upper level 5
total ip packets generated here 1015
datagrams successfully fragmented 4
output fragments created 24
************ ICMP Statistics ************
************ UDP Statistics ************
total input packets 5
of above, arrived as broadcast 5
total output packets 1010
************ TCP Statistics ************
connections initiated 1
embryonic connections dropped 1
conn. closed (includes drops) 1
segs where we tried to get rtt 1
retransmit timeouts 4
keepalive timeouts 1
connections dropped in keepalive 1
total packets sent 5
ack-only packets sent 4
control (SYN|FIN|RST) packets sent 1
================================================================================
--
Bai.Shaolin
Northeastern University,LiaoNing,China
More information about the users
mailing list