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: Re: Re: Re: how to build a driver to a single library


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


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