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: CS8900A and EB40A?


Jani Monoses wrote:
To use the cs89000 package look at how the edb7xxx uses it
It includes the devs/eth/cl/cs8900 package
Yep, Shannon's got that, but just to be clear about what I know you meant :-), Shannon needs to write an equivalent of devs/etc/arm/edb7xxx for this cs8900 on the eb40.

look at the .cdl file the .inl files etc...
As for redboot ecosconfig new your_target_name redboot should suffice
no need to add the net package..redboot has its own small tcp/ip stack.
Indeed the existence of the CYGPKG_NET* packages in the config is the source of the problem. Most of the packages at the end from CYGPKG_NET onwards shouldn't be there at all for RedBoot. As Jani says, it would probably best to start over again with ecosconfig new eb40a redboot. Incidentally the more appropriate way to add CYGPKG_DEVS_ETH_CL_CS8900A is by adding it to the eb40a target in ecos.db. Search for eb40a in that file.

But in any case, depending on how easy it is for you to reprogram your board with images, it may be easier to develop your ethernet driver under eCos rather than RedBoot, as that will make it easier to debug.

To do this you wouldn't use the redboot template, and instead would build just a normal eCos application with the networking stack included. Try the new_net template instead. You'll still need to add the hardware drivers into your config of course.

cdl_configuration eCos {
    description "" ;

    # These fields should not be modified.
    hardware    eb40a ;
    template    redboot ;
    package -hardware CYGPKG_HAL_ARM current ;
[snip]
Next question: how do I set the address that the CS8900A will be mapped to?
Along the same lines, how do I set up the interrupt?
That stuff goes in the package analogous to the edb7xxx one.

Jifl
--
eCosCentric       http://www.eCosCentric.com/       <info@eCosCentric.com>
--[ "You can complain because roses have thorns, or you ]--
--[  can rejoice because thorns have roses." -Lincoln   ]-- Opinions==mine


--
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]