This is the mail archive of the ecos-devel@sourceware.org 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: How do I add a serial driver?


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



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