public inbox for ecos-devel@sourceware.org
 help / color / mirror / Atom feed
From: Paul J THACKER <paul.thacker@st.com>
To: Andrew Lunn <andrew@lunn.ch>
Cc: ecos-devel@ecos.sourceware.org
Subject: Re: How do I add a serial driver?
Date: Tue, 10 Jun 2008 22:11:00 -0000	[thread overview]
Message-ID: <484EFC97.1050207@st.com> (raw)
In-Reply-To: <20080610214551.GJ8456@lunn.ch>

Andrew Lunn wrote:
> On Tue, Jun 10, 2008 at 01:30:21PM -0700, Paul J THACKER wrote:
>> I'm porting ECOS to a new platform, based on the ARM926. I cloned an  
>> existing platform and got everything to compile, but I can't figure out  
>> how to add the serial driver.
>>
>> I cloned an existing driver and added it to my cdl files. It shows up in  
>>  Build->Packages, but when I try to add it, I get a message that says  
>> "Add and remove hardware packages by selecting a new hardware template".
>>
>> I tried a couple of other platforms with the same result. I'm clearly  
>> not understanding this process. Can anybody help?
> 
> Hardware packages should be part of the basic target template:
> 
> target h8max {
>         alias           { "H8MAX" }
>         packages        { CYGPKG_HAL_H8300
>                           CYGPKG_HAL_H8300_H8300H
>                           CYGPKG_HAL_H8300_H8300H_H8MAX
>                           CYGPKG_IO_SERIAL_H8300_SCI
>                           CYGPKG_DEVS_ETH_H8300_H8MAX
>                           CYGPKG_DEVICES_WATCHDOG_H8300_H8300H
>         }
>         description "
>            The h8max target provides the packages need to run
>            eCos in the strawberry-linux.com H8MAX board."
> }
> 
>         Andrew

Hi Andrew,

Thanks for responding. I added it to my template:

target cartesio {
         alias { "Cartesio (ARM) board" cartesio }
         packages { CYGPKG_HAL_ARM
                    CYGPKG_HAL_ARM_ARM9
                    CYGPKG_HAL_ARM_ARM9_CARTESIO
                    CYGPKG_IO_SERIAL_ARM_CARTESIO
         }
         description "
         The Cartesio HAL package provides the support needed to run
         RedBoot on the ARM processor of the Cartesio.

}

package CYGPKG_IO_SERIAL_ARM_CARTESIO {
     alias             { "Cartesio evaluation board"
                         devs_serial_arm_cartesio cartesio_serial_driver }
     hardware
     directory         devs/serial/arm/cartesio
     script            ser_arm_cartesio.cdl
     description       "Cartesio evaluation board serial drivers."
}

I added the code to packages/devs/serial/arm/cartesio/ - basically 
copied the AT91 code and modified it for my board.

When I rebuild, the serial driver doesn't get compiled. The 
build/io/serial/ does get compiled. I'm sure I'm missing something 
basic, but I can't figure out what it is.

Thanks,
Paul


  reply	other threads:[~2008-06-10 22:11 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-06-10 20:28 Paul J THACKER
2008-06-10 21:46 ` Andrew Lunn
2008-06-10 22:11   ` Paul J THACKER [this message]
2008-06-11  6:55     ` Andrew Lunn
2008-06-11 16:26       ` Paul J THACKER
2008-06-11 16:48         ` Andrew Lunn
2008-06-11 17:32           ` Paul J THACKER
2008-06-11 19:23             ` Andrew Lunn
2008-06-11 21:21               ` Paul J THACKER
2008-06-11 21:25                 ` Andrew Lunn
2008-06-11 21:29                   ` Paul J THACKER
2008-06-11 23:14                     ` Gary Thomas
     [not found]                       ` <48506034.30601@st.com>
2008-06-11 23:34                         ` Gary Thomas
2008-06-11 23:45                           ` Paul J THACKER
2008-06-12 11:11                             ` Gary Thomas
2008-06-12 16:35                               ` Paul J THACKER

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=484EFC97.1050207@st.com \
    --to=paul.thacker@st.com \
    --cc=andrew@lunn.ch \
    --cc=ecos-devel@ecos.sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).