This is the mail archive of the ecos-discuss@sources.redhat.com 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]

Re: lwip eth doubt........



the code is as........ ************************* static void init_hw_drivers(void) {

cyg_netdevtab_entry_t *t;

  for (t = &__NETDEVTAB__[0]; t != &__NETDEVTAB_END__; t++) {
        diag_printf("H/W device name:%s\n",t->name);
  if (t->init(t)) {
      t->status = CYG_NETDEVTAB_STATUS_AVAIL;
    } else {
      // What to do if device init fails?
      t->status = 0;            // Device not [currently] available
    }
  }


Do you have two NETDEVTAB_ENTRY-s in you platforms devs/eth sources?
Another point is that lwip has IP_ADDRs configurable in the CDL but it assumes there's one interface only
You'll have to modify the lwip_set_addr() function to cope with multiple interfaces.
When it works send a patch :)


There no documentation other than the code, but make sure you read io/eth/current/src/lwip as well to understand how initialization takes place

Jani


-- 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]