[<<][ecos][>>][..]
Mon Feb 21 10:01:59 EST 2011

Adding hardware packages.

After adding a new driver package to ecos.db and trying to add it to
my .ecc. the error message in configtool is: 

    Add and remove hardware packages by selecting a new hardware template.

From [1]:

    You are not allowed to add hardware packages to a target. The AT91
    eth driver would not work with the PID, since it is for the on
    chip ethernet you find in the AT91SAM7 devices. This is one reason
    adding hardware packages are not allowed!

It seems that one needs to explicitly create a new hardware template.
Let's have a look at the AT91SAM7S-EK BSP.

The following is the haredware package and probably not the template.

tom@zoo:/opt/xc/ecos/ecos-cvs/packages$ find -name '*at91sam7sek*'
./hal/arm/at91/at91sam7sek
./hal/arm/at91/at91sam7sek/current/cdl/hal_arm_at91sam7sek.cdl
./hal/arm/at91/at91sam7sek/current/src/at91sam7sek_misc.c


So, when you do "ecosconfig new <target>", what is the <target>
parameter?

  Q: Where are hardware templates stored?

From here[2] it seems to be in the ecos.db file.  In ecos-cvs this is:

target at91sam7sek {
	alias { "Atmel AT91SAM7SEK evaluation board" at91_at91sam7sek }
	packages { CYGPKG_HAL_ARM
                   CYGPKG_HAL_ARM_AT91
                   CYGPKG_HAL_ARM_AT91SAM7
                   CYGPKG_HAL_ARM_AT91SAM7SEK
                   CYGPKG_IO_SERIAL_ARM_AT91
                   CYGPKG_DEVS_FLASH_AT91
                   CYGPKG_IO_SPI
                   CYGPKG_DEVS_SPI_ARM_AT91
                   CYGPKG_DEVICES_WATCHDOG_ARM_AT91WDTC
                   CYGPKG_IO_USB
                   CYGPKG_IO_USB_SLAVE
                   CYGPKG_DEVS_USB_AT91
        }
        description "
        The at91sam7sek target provides the packages needed to run eCos on an 
        Atmel AT91SAM7S-EK evaluation board."
}

So the proper way is then to create a new hardware target.

Note: don't add any comments inside a target definition!  It doesn't
seem to be supported.  Probably the same for the whole ecos.db file.

After adding the new driver it is now present in the ecc, but greyed
out.

  Q: What does it mean when an option is greyed out in configtool?

The problem was an unnecessary "active-if" in the CDL.

[1] http://www.mail-archive.com/ecos-discuss@ecos.sourceware.org/msg06458.html
[2] http://www.alteraforum.com/forum/showthread.php?t=13765



[Reply][About]
[<<][ecos][>>][..]