Hello out there, I try to build an application to start a simple TCP connection between 2 boads with a QorlQ processor. To achive this I filled the rtems_bsdnet_ifconfig:
struct rtems_bsdnet_ifconfig client_interface = {
"tsec0", /* name of the interface */
tsec_driver_attach_detach, /* driver attach function */
NULL, /* next interface */
"192.168.0.1", /* IP address (or NULL for DHCP) */
"255.255.255.0", /* Netmask */
NULL, /* Hardware address (or NULL) */
0, /* Driver specific field 1 */
};
and with this, I filled the rtems_bsdnet_config:
struct rtems_bsdnet_config rtems_bsdnet_config = {
&client_interface, /* pointer to first interface */
NULL, /* Use BOOTP/DHCP or NULL for static IP */
0, /* Default network task priority */
256 * 1024, /* Default buffer size */
256 * 1024, /* Default mbuf cluster count */
NULL, /* Hostname */
NULL, /* Domain name */
NULL, /* Gateway */
NULL, /* Loghost */
{NULL}, /* Name server(s) */
{NULL}
};
with this I initialized the TCP/IP Stack within the network task:
printf("Initialize libBSD\n");
sc = rtems_bsd_initialize();
if (sc != RTEMS_SUCCESFUL)
printf("libbsd init failed: %s\n", rtems_status_text(sc));
printf("libBSD initialized!\n");
but instead the ethernet driver comes up with a MAC Address, no configuration. But rtems_bsd_initialize() works without complains:
tsec0: mem 0x26000-0x26fff irq 15,16,17 on simplebus0
info: tsec0: Ethernet address: 00:a0:1e:a0:a1:a4
…
libBSD initialized!
what’s my fault?
Thanks in advance
Chris