public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
* Re: Re: Re: Re: [ECOS] how to build a driver to a single library
@ 2005-07-19 10:09 Tianjun-zdk
  2005-07-19 11:24 ` Andrew Lunn
  0 siblings, 1 reply; 2+ messages in thread
From: Tianjun-zdk @ 2005-07-19 10:09 UTC (permalink / raw)
  To: Andrew Lunn; +Cc: ecos-discuss

Hi, Andrew Lunn

>> Hi, Andrew Lunn
>> 
>> I have do that following your advice.
>> but it seems the driver is nerver be loaded to run.
>> 
>> i do these in my ethernet driver:
>> 
>> 	NETDEVTAB_ENTRY (if_dtest_netdev,
>> 		 "if_dtest",
>>  		if_dtest_init,
>>  		&if_dtest_sc);
>> 
>> 	extern cyg_netdevtab_entry_t *if_dtest_netdev_ex = &if_dtest_netdev;
>
>No, that it not what i said. If you don't use if_dtest_netdev_ex in
>your program the linker will throw it away. If it throws it away it
>will also throw away if_dtest_netdev.
>
>Try
>
>extern cyg_netdevtab_entry_t if_dtest_netdev;
>
>if_dtest_netdev = if_dtest_netdev;
but i cannot understand this line, where can i put it ? 
in the driver ? or any functions ?
there is a error when i make it

>
>        Andrew


  

Sincerely yours,
Tian-Jun

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


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

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Re: Re: Re: [ECOS] how to build a driver to a single library
  2005-07-19 10:09 Re: Re: Re: [ECOS] how to build a driver to a single library Tianjun-zdk
@ 2005-07-19 11:24 ` Andrew Lunn
  0 siblings, 0 replies; 2+ messages in thread
From: Andrew Lunn @ 2005-07-19 11:24 UTC (permalink / raw)
  To: Tianjun-zdk; +Cc: Andrew Lunn, ecos-discuss

On Tue, Jul 19, 2005 at 06:08:52PM +0800, Tianjun-zdk wrote:
> Hi, Andrew Lunn
> 
> >> Hi, Andrew Lunn
> >> 
> >> I have do that following your advice.
> >> but it seems the driver is nerver be loaded to run.
> >> 
> >> i do these in my ethernet driver:
> >> 
> >> 	NETDEVTAB_ENTRY (if_dtest_netdev,
> >> 		 "if_dtest",
> >>  		if_dtest_init,
> >>  		&if_dtest_sc);
> >> 
> >> 	extern cyg_netdevtab_entry_t *if_dtest_netdev_ex = &if_dtest_netdev;
> >
> >No, that it not what i said. If you don't use if_dtest_netdev_ex in
> >your program the linker will throw it away. If it throws it away it
> >will also throw away if_dtest_netdev.
> >
> >Try
> >
> >extern cyg_netdevtab_entry_t if_dtest_netdev;
> >
> >if_dtest_netdev = if_dtest_netdev;
> but i cannot understand this line, where can i put it ? 
> in the driver ? or any functions ?
> there is a error when i make it

No, it has to be in your application. The application is the only
thing you have control of that you can guarantee will be in the final
image.

        Andrew

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2005-07-19 11:24 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-07-19 10:09 Re: Re: Re: [ECOS] how to build a driver to a single library Tianjun-zdk
2005-07-19 11:24 ` Andrew Lunn

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).