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: more than one serial drivers


[ Please keep mail on the discussion list for the benefit of others. Personal support is something eCosCentric charge for ]

Thomas Eschenbacher wrote:
Jonathan Larmour wrote:

[...]
Yes you can have both multiple instances of the same driver (for different ports with the same chip) and multiple different drivers. You can't just pull packages in to your configuration though... it's up to the board specific serial driver package to do that as it contains the details on hardware layout etc.


As far as I understand from your answers, I can only have one serial
driver package at all. And extending one serial driver package to more
"channels" is easy, that far you are right.

You can have more than one serial driver package. But since one of them will be board-specific there seems little point in having multiple board specific ones. Up to you though.


But I do not know how I could combine two very different packages like
mine: one is like the AT91 builtin, the other is based on the
16550/generic package.

Include them both in your target's configuration in ecos.db, along with a board specific driver for the generic 16550. Then just make sure they have different names (i.e. the CDL in the board specific driver (that uses the 16550) defaults to /dev/ser2 upwards).


I would like to understand what goes wrong in my case, where do those
two packages collide? I expected that the build system detects a
conflict and aborts with an error, but it just builds "something" and
only the second driver survives. So what is so different about _serial_
drivers, all other drivers can co-exist without any problem?

If it builds okay, then it's probably the names.


Jifl
--
eCosCentric    http://www.eCosCentric.com/    The eCos and RedBoot experts
--[ "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]