Undefined reference to rtems_bsdnet_config

Eric Norum eric.norum at usask.ca
Thu Oct 31 18:24:01 UTC 2002


On Friday, November 1, 2002, at 01:41  AM, Sudheesh J wrote:

> Hi,
>         Sorry for bugging you again. While trying to build a simple 
> networking app, an undefined reference to rtems_bsdnet_config was 
> produced.
> I'm using m68k bsk efi332.
> thank you for any help.
>

This structure contains the network configuration information.  You 
need to provide this as part of your application.  Here's a simple 
example.  A more thorough example can be found in the network demo 
programs.

BTW -- What network interface are you using?



This is from init.c:
.
.
.
.
/*
  * Network configuration
  */
#define NETWORK_TASK_PRIORITY	50
static struct rtems_bsdnet_ifconfig netdriver_config = {
	  RTEMS_BSP_NETWORK_DRIVER_NAME,
	  RTEMS_BSP_NETWORK_DRIVER_ATTACH
};
struct rtems_bsdnet_config rtems_bsdnet_config = {
	&netdriver_config,	/* Network interface */
	rtems_bsdnet_do_bootp,  /* Use BOOTP to get network configuration */
	NETWORK_TASK_PRIORITY,  /* Network task priority */
	256*1024,		/* MBUF space */
	512*1024,		/* MBUF cluster space */

};

/*
  * RTEMS Startup Task
  */
rtems_task
Init (rtems_task_argument ignored)
{
	/*
	 * Start network
	 */
	rtems_bsdnet_initialize_network ();
.
.
.

-- 
Eric Norum <eric.norum at usask.ca>
Department of Electrical Engineering
University of Saskatchewan
Saskatoon, Canada.
Phone: (306) 966-5394   FAX:   (306) 966-5407




More information about the users mailing list