Paul J THACKER | 5 Jun 20:58 2008

compilation errors

Hi,

Trying to compile the latest from CVS on Suse 10.1:

In file included from /usr/include/linux/usb.h:4,
                  from 
../../../../../../../packages/io/usb/slave/current/host/usbhost.c:87:
/usr/include/linux/mod_devicetable.h:174: error: expected 
specifier-qualifier-list before ‘__u8’
/usr/include/linux/mod_devicetable.h:204: error: expected 
specifier-qualifier-list before ‘__u16’
/usr/include/linux/mod_devicetable.h:251: error: expected 
specifier-qualifier-list before ‘__u16’
In file included from 
../../../../../../../packages/io/usb/slave/current/host/usbhost.c:88:
/usr/include/linux/usbdevice_fs.h:49: error: expected ‘:’, ‘,’, ‘;’, ‘}’ 
or ‘__attribute__’ before ‘*’ token
/usr/include/linux/usbdevice_fs.h:56: error: expected ‘:’, ‘,’, ‘;’, ‘}’ 
or ‘__attribute__’ before ‘*’ token

etc...

Looks like linux kernel header mismatch, but I'm not sure. Any ideas?

Thanks,
Paul

Andrew Lunn | 6 Jun 09:26 2008
Picon

Re: compilation errors

On Thu, Jun 05, 2008 at 11:58:00AM -0700, Paul J THACKER wrote:
> Hi,
>
> Trying to compile the latest from CVS on Suse 10.1:
>
> In file included from /usr/include/linux/usb.h:4,
>                  from  
> ../../../../../../../packages/io/usb/slave/current/host/usbhost.c:87:
> /usr/include/linux/mod_devicetable.h:174: error: expected  
> specifier-qualifier-list before ?__u8?
> /usr/include/linux/mod_devicetable.h:204: error: expected  
> specifier-qualifier-list before ?__u16?
> /usr/include/linux/mod_devicetable.h:251: error: expected  
> specifier-qualifier-list before ?__u16?
> In file included from  
> ../../../../../../../packages/io/usb/slave/current/host/usbhost.c:88:
> /usr/include/linux/usbdevice_fs.h:49: error: expected ?:?, ?,?, ?;?, ?}?  
> or ?__attribute__? before ?*? token
> /usr/include/linux/usbdevice_fs.h:56: error: expected ?:?, ?,?, ?;?, ?}?  
> or ?__attribute__? before ?*? token
>
> etc...
>
> Looks like linux kernel header mismatch, but I'm not sure. Any ideas?

Do you plan to use USB? If not, ignore it. It should be the last thing
in the host tools that is built, so it should of built all the other
host tools you need for building eCos. So just ignore it. If you do
plan to use USB, let me know which Linux kernel version you have and i
can take a look.
(Continue reading)

Paul J THACKER | 6 Jun 18:24 2008

Re: compilation errors

Andrew Lunn wrote:
> On Thu, Jun 05, 2008 at 11:58:00AM -0700, Paul J THACKER wrote:
>> Hi,
>>
>> Trying to compile the latest from CVS on Suse 10.1:
>>
>> In file included from /usr/include/linux/usb.h:4,
>>                  from  
>> ../../../../../../../packages/io/usb/slave/current/host/usbhost.c:87:
>> /usr/include/linux/mod_devicetable.h:174: error: expected  
>> specifier-qualifier-list before ?__u8?
>> /usr/include/linux/mod_devicetable.h:204: error: expected  
>> specifier-qualifier-list before ?__u16?
>> /usr/include/linux/mod_devicetable.h:251: error: expected  
>> specifier-qualifier-list before ?__u16?
>> In file included from  
>> ../../../../../../../packages/io/usb/slave/current/host/usbhost.c:88:
>> /usr/include/linux/usbdevice_fs.h:49: error: expected ?:?, ?,?, ?;?, ?}?  
>> or ?__attribute__? before ?*? token
>> /usr/include/linux/usbdevice_fs.h:56: error: expected ?:?, ?,?, ?;?, ?}?  
>> or ?__attribute__? before ?*? token
>>
>> etc...
>>
>> Looks like linux kernel header mismatch, but I'm not sure. Any ideas?
> 
> Do you plan to use USB? If not, ignore it. It should be the last thing
> in the host tools that is built, so it should of built all the other
> host tools you need for building eCos. So just ignore it. If you do
> plan to use USB, let me know which Linux kernel version you have and i
(Continue reading)

Paul J THACKER | 10 Jun 22:30 2008

How do I add a serial driver?

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?

Thanks,
Paul

Andrew Lunn | 10 Jun 23:45 2008
Picon

Re: How do I add a serial driver?

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

(Continue reading)

Paul J THACKER | 11 Jun 00:13 2008

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
(Continue reading)

Andrew Lunn | 11 Jun 08:54 2008
Picon

Re: How do I add a serial driver?

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

Take a look at CYGPKG_IO_SERIAL_DEVICES.

     Andrew

Paul J THACKER | 11 Jun 18:29 2008

Re: How do I add a serial driver?

Andrew Lunn wrote:
>> 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.
> 
> Take a look at CYGPKG_IO_SERIAL_DEVICES.
> 
>      Andrew

I enabled Hardware Serial Device Drivers (CYGPKG_IO_SERIAL_DEVICES) in 
configtool - no difference.

Andrew Lunn | 11 Jun 18:48 2008
Picon

Re: How do I add a serial driver?

On Wed, Jun 11, 2008 at 09:29:24AM -0700, Paul J THACKER wrote:
> Andrew Lunn wrote:
>>> 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.
>>
>> Take a look at CYGPKG_IO_SERIAL_DEVICES.
>>
>>      Andrew
>
> I enabled Hardware Serial Device Drivers (CYGPKG_IO_SERIAL_DEVICES) in  
> configtool - no difference.

So you need to look at your configuration and work out why your serial
driver package is not active.

eg the top of the AT91 driver has:

cdl_package CYGPKG_IO_SERIAL_ARM_AT91 {
    display       "Atmel AT91 serial device drivers"

    parent        CYGPKG_IO_SERIAL_DEVICES
    active_if     CYGPKG_IO_SERIAL
    active_if     CYGPKG_HAL_ARM_AT91

We know you have CYGPKG_IO_SERIAL_DEVICES enabled. Does your
configuration have CYGPKG_IO_SERIAL enabled? Does your package still
(Continue reading)

Paul J THACKER | 11 Jun 19:34 2008

Re: How do I add a serial driver?

Andrew Lunn wrote:

> So you need to look at your configuration and work out why your serial
> driver package is not active.
> 
> eg the top of the AT91 driver has:
> 
> cdl_package CYGPKG_IO_SERIAL_ARM_AT91 {
>     display       "Atmel AT91 serial device drivers"
> 
>     parent        CYGPKG_IO_SERIAL_DEVICES
>     active_if     CYGPKG_IO_SERIAL
>     active_if     CYGPKG_HAL_ARM_AT91

cdl_package CYGPKG_IO_SERIAL_ARM_CARTESIO {
     display       "Cartesio serial device drivers"

     parent        CYGPKG_IO_SERIAL_DEVICES
     active_if     CYGPKG_IO_SERIAL
     active_if     CYGPKG_HAL_ARM_CARTESIO

     requires      CYGPKG_ERROR
     include_dir   cyg/io
     include_files ; # none _exported_ whatsoever
     description   "
            This option enables the serial device drivers for the
            Cartesio."

     compile       -library=libextras.a   cartesio_serial.c

(Continue reading)


Gmane