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: Still on ethernet configuration


I'm loading it through Redboot and debugging through the serial port
using gdb. But I'm basically debugging through diag_printf messages and not step by step.

Cristiano.

> You were right. That was such a silly mistake. Thanks. But now I have
> another proble (this is endless :( ...). init_net never returns. It
> seems to get stuck at this piece of code:
>
> // Must do this temporarily with default route and netmask so that
> // [sub]netmask can be set.
> strcpy(ifr.ifr_name, intf);
>
> if (ioctl(s, SIOCSIFADDR, &ifr)) {
> perror("SIOCIFADDR");
> return false;
> }
>
> looks like ioctl never returns. Does anybody faced the same problem before?

One question (which I don't recall having been asked): how are
you trying to run/debug this code?

--
------------------------------------------------------------
Gary Thomas |
eCosCentric, Ltd. |
+1 (970) 229-1963 | eCos & RedBoot experts
gthomas@ecoscentric.com |
http://www.ecoscentric.com/ |
------------------------------------------------------------

_________________________________________________________________
Unlimited Internet access -- and 2 months free!  Try MSN. http://resourcecenter.msn.com/access/plans/2monthsfree.asp


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]