[ECOS] net init code

Andrew Lunn andrew.lunn@ascom.ch
Wed Dec 4 05:41:00 GMT 2002

On Tue, Dec 03, 2002 at 03:53:55PM -0800, Michael Lodman wrote:
> The following code hangs on some of my boards but not others. Any ideas?
> This is from packages/redboot/current/src/net/net_io.c
> // Initialize all network devices
> for (t = &__NETDEVTAB__[0]; t != &__NETDEVTAB_END__; t++) {
>         if (t->init(t)) {    //THIS IS THE LINE THAT HANGS

This is calling into the init function of your device. Maybe you
devices are failing the self check? Or they don't have a valid MAC
address etc. Debug the init function to find out whats happening.  Or
even check that t->init does actually point to a function and not some
random address.


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