[ECOS] Redboot Ethernet Driver Functions

Erik Reikes ereikes@hotmail.com
Wed Mar 6 13:59:00 GMT 2002

I have a desire to send and recive simple UDP packets over a port in ecos.  
Instead of bringing in the entire TCP/IP implementation does anyone know if 
its possible to make calls to the redboot implementation of the TCP 
functions?  Specifically the functions in packages/redboot/current/src/udp.c 
  __udp_install_listener(...) and __udp_send(...)

I have allready successfully ping'd using the Redboot ethernet interface, 
and I figure that since ICMP is allready working in this driver its not too 
far of a stretch to use the UDP function calls.

On a side not my compile of ecos with the FEC ethernet driver and common 
ethernet support fails thusly :

In function `fec_eth_init':
warning: asm operand 0 probably doesn't match constraints
invalid lvalue in assignment
warning: `proc_rev' might be used uninitialized in this function
inconsistent operand constraints in an `asm'
make[1]: *** [src/if_fec.o.d] Error 1

line 260 of if_fec.c looks like :

and CYGARC_MFSPR from ppc_regs.h looks like :
#define CYGARC_MFSPR(_spr_, _v_) \
    asm volatile ("mfspr %0, %1;" : "=r" (_v_) : "I" (_spr_));

I guess its that =r that's fouling things.


-Erik Reikes

Join the worldÂ’s largest e-mail service with MSN Hotmail. 

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

More information about the Ecos-discuss mailing list