This is the mail archive of the ecos-discuss@sourceware.org mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

freebsd and eth_drv panic


Hi,

I'm writing a driver for the Altera's triple-speed ethernet Mega
Function. I'm trying to stress test the simple attempt that I have so
far.
My test is, simultaneously:
* ping -s 4000 192.168.1.2
* ping -f -s 4000 192.168.1.2

A positive test would be to drop some frames, lose some ping packets,
but the board should be up after I stop the flooding.

The error message that I get is:
PANIC: eth_drv_send: no header mbuf

The stack trace is:

#0  cyg_test_exit () at
/home/edgar/workspace/eidel/ecos/ecos/packages/infra/current/src/tcdiag.cxx:272
#1  0x1c009ac8 in cyg_panic (msg=0x1c05e730 "eth_drv_send: no header
mbuf") at /home/edgar/workspace/eidel/ecos/ecos-opt/net/net/bsd_tcpip/current/src/ecos/support.c:109
#2  0x1c0465bc in eth_drv_send (ifp=0x1c060868) at
/home/edgar/workspace/eidel/ecos/ecos/packages/io/eth/current/src/net/eth_drv.c:677
#3  0x1c048f3c in cyg_ether_output_frame (ifp=0x1c060868,
m=0x1c0a4f80) at
/home/edgar/workspace/eidel/ecos/ecos-opt/net/net/bsd_tcpip/current/src/sys/net/if_ethersubr.c:424
#4  0x1c048d9c in cyg_ether_output (ifp=0x1c060868, m=0x1c0a4f80,
dst=0x1c0656d8, rt0=0x1c09c7f0) at
/home/edgar/workspace/eidel/ecos/ecos-opt/net/net/bsd_tcpip/current/src/sys/net/if_ethersubr.c:366
#5  0x1c021448 in cyg_ip_output (m0=0x0, opt=0x0, ro=0x1c0656d4,
flags=0, imo=0x0) at
/home/edgar/workspace/eidel/ecos/ecos-opt/net/net/bsd_tcpip/current/src/sys/netinet/ip_output.c:955
#6  0x1c01bd98 in icmp_send (m=0x1c0a5200, opts=0x0) at
/home/edgar/workspace/eidel/ecos/ecos-opt/net/net/bsd_tcpip/current/src/sys/netinet/ip_icmp.c:769
#7  0x1c01bc64 in icmp_reflect (m=0x1c0a5200) at
/home/edgar/workspace/eidel/ecos/ecos-opt/net/net/bsd_tcpip/current/src/sys/netinet/ip_icmp.c:731
#8  0x1c01b1b8 in cyg_icmp_input (m=0x1c0a5200, off=20) at
/home/edgar/workspace/eidel/ecos/ecos-opt/net/net/bsd_tcpip/current/src/sys/netinet/ip_icmp.c:531
#9  0x1c01d31c in cyg_ip_input (m=0x1c0a5200) at
/home/edgar/workspace/eidel/ecos/ecos-opt/net/net/bsd_tcpip/current/src/sys/netinet/ip_input.c:887
#10 0x1c01d3d8 in ipintr () at
/home/edgar/workspace/eidel/ecos/ecos-opt/net/net/bsd_tcpip/current/src/sys/netinet/ip_input.c:915
#11 0x1c00a924 in cyg_netint (param=0) at
/home/edgar/workspace/eidel/ecos/ecos-opt/net/net/bsd_tcpip/current/src/ecos/support.c:715
#12 0x1c03dce0 in Cyg_HardwareThread::thread_entry (thread=0x1c0658e4)
at /home/edgar/workspace/eidel/ecos/ecos/packages/kernel/current/src/common/thread.cxx:94
#13 0x00000000 in ?? ()
Current language:  auto; currently c++

My questions are:
* Is the test relevant?
* Can the panic message be related to faults in my driver? Any hints?

Regards,
Edgar

-- 
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]