This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: Still on ethernet configuration
- From: Andrew Lunn <andrew dot lunn at ascom dot ch>
- To: Cristiano Pereira <ligieri2002 at hotmail dot com>
- Cc: eCos Disuss <ecos-discuss at sources dot redhat dot com>
- Date: Tue, 15 Oct 2002 09:44:32 +0200
- Subject: Re: [ECOS] Still on ethernet configuration
- References: <F656sKBEr8pkpLkTgbL000001b1@hotmail.com>
Please CC to ecos-discuss....
> I realized that not even the cyg_netint thread is being created. I put
> a diag_printf as the first statement of the task and it never gets
> printed. The calls to create and resume it are executed though.
So something is going wrong with scheduling. This reminds me of
something. The scheduler is not started until after cyg_user_start
exits. So the network thread will not start until cyg_user_start
exists. You say that init_net locks, so that seems to imply it needs
the network thread running. Move all you code into the thread. Make
cyg_user_start just start your net_test thread and then exit. This is in fact how all the test/example applications work......
Andrew
> Also I'm using GDB through the serial interface and not the ethernet.
> I took the cyg_net_init() call out and still doesn't work. If I remove
> the init_net call everything works fine but I have no network. In any
> ways the cyg_netint thread does not get created.
>
> Any other suggestions?
--
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss