public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
* [ECOS] Problem using SERIAL_GENERIC_16X5X serial driver
@ 2002-07-09  6:35 brenner joel
  2002-07-09  6:41 ` Gary Thomas
  0 siblings, 1 reply; 5+ messages in thread
From: brenner joel @ 2002-07-09  6:35 UTC (permalink / raw)
  To: ecos-discuss

Hi all!

I'm trying to use the SERIAL_GENERIC_16X5X serial driver for my custom 
target. (I've used arm/pid serial driver as example)
When I compile the kernel I've the following error message:

/home/brenner/ecos/packages/devs/serial/generic/16x5x/current/src/ser_16x5x.c
/home/brenner/ecos/packages/devs/serial/generic/16x5x/current/src/ser_16x5x.c:213:44: 
cyg/io/arm_rms_extern_ser.inl: No such file or directory

and this is right because no inline file is placed cyg/io/.
In the cdl file of rm_rms_extern_ser following paths are defined
...
    define_proc {
        puts $::cdl_system_header "/***** serial driver proc output 
start *****/"
        puts $::cdl_system_header "#define 
CYGDAT_IO_SERIAL_GENERIC_16X5X_INL <cyg/io/arm_rms_extern_ser.inl>"
        puts $::cdl_system_header "#define 
CYGDAT_IO_SERIAL_GENERIC_16X5X_CFG <pkgconf/io_extserial_arm_rms.h>"
        puts $::cdl_system_header "/*****  serial driver proc output 
end  *****/"
    }

...
witch are used to configure the SERIAL_GENERIC_16X5X driver


My question is: where I've to define a command witch copies 
devs/serial/arm/rms/current/include/arm_rms_extern_ser.inl to 
<cyg/io/arm_rms_extern_ser.inl> and what is this command?





-- 
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [ECOS] Problem using SERIAL_GENERIC_16X5X serial driver
  2002-07-09  6:35 [ECOS] Problem using SERIAL_GENERIC_16X5X serial driver brenner joel
@ 2002-07-09  6:41 ` Gary Thomas
       [not found]   ` <3D2AEB76.4000203@tchip.com>
  0 siblings, 1 reply; 5+ messages in thread
From: Gary Thomas @ 2002-07-09  6:41 UTC (permalink / raw)
  To: brenner joel; +Cc: eCos Discussion

On Tue, 2002-07-09 at 07:36, brenner joel wrote:
> Hi all!
> 
> I'm trying to use the SERIAL_GENERIC_16X5X serial driver for my custom 
> target. (I've used arm/pid serial driver as example)
> When I compile the kernel I've the following error message:
> 
> /home/brenner/ecos/packages/devs/serial/generic/16x5x/current/src/ser_16x5x.c
> /home/brenner/ecos/packages/devs/serial/generic/16x5x/current/src/ser_16x5x.c:213:44: 
> cyg/io/arm_rms_extern_ser.inl: No such file or directory
> 
> and this is right because no inline file is placed cyg/io/.
> In the cdl file of rm_rms_extern_ser following paths are defined
> ...
>     define_proc {
>         puts $::cdl_system_header "/***** serial driver proc output 
> start *****/"
>         puts $::cdl_system_header "#define 
> CYGDAT_IO_SERIAL_GENERIC_16X5X_INL <cyg/io/arm_rms_extern_ser.inl>"
>         puts $::cdl_system_header "#define 
> CYGDAT_IO_SERIAL_GENERIC_16X5X_CFG <pkgconf/io_extserial_arm_rms.h>"
>         puts $::cdl_system_header "/*****  serial driver proc output 
> end  *****/"
>     }
> 
> ...
> witch are used to configure the SERIAL_GENERIC_16X5X driver
> 
> 
> My question is: where I've to define a command witch copies 
> devs/serial/arm/rms/current/include/arm_rms_extern_ser.inl to 
> <cyg/io/arm_rms_extern_ser.inl> and what is this command?
> 

Just use the "include_dir" CDL command in the same file that has
the "define proc".  e.g.
	include_dir cyg/io
This will cause the include files (from the package .../include
directory) to be placed in the <cyg/io/...> directory.



-- 
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [ECOS] Problem using SERIAL_GENERIC_16X5X serial driver
       [not found]   ` <3D2AEB76.4000203@tchip.com>
@ 2002-07-09  7:00     ` Gary Thomas
  2002-07-09  7:17       ` brenner joel
  0 siblings, 1 reply; 5+ messages in thread
From: Gary Thomas @ 2002-07-09  7:00 UTC (permalink / raw)
  To: brenner joel; +Cc: eCos Discussion

Please copy your email to the discussion list.  That way, everyone
gets the benefit and the answers are logged as well.  Private email
can and will be ignored (unless you have a support contract)

On Tue, 2002-07-09 at 07:56, brenner joel wrote:
> Gary Thomas wrote:
> 
> >On Tue, 2002-07-09 at 07:36, brenner joel wrote:
> >
> >>Hi all!
> >>
> >>I'm trying to use the SERIAL_GENERIC_16X5X serial driver for my custom 
> >>target. (I've used arm/pid serial driver as example)
> >>When I compile the kernel I've the following error message:
> >>
> >>/home/brenner/ecos/packages/devs/serial/generic/16x5x/current/src/ser_16x5x.c
> >>/home/brenner/ecos/packages/devs/serial/generic/16x5x/current/src/ser_16x5x.c:213:44: 
> >>cyg/io/arm_rms_extern_ser.inl: No such file or directory
> >>
> >>and this is right because no inline file is placed cyg/io/.
> >>In the cdl file of rm_rms_extern_ser following paths are defined
> >>...
> >>    define_proc {
> >>        puts $::cdl_system_header "/***** serial driver proc output 
> >>start *****/"
> >>        puts $::cdl_system_header "#define 
> >>CYGDAT_IO_SERIAL_GENERIC_16X5X_INL <cyg/io/arm_rms_extern_ser.inl>"
> >>        puts $::cdl_system_header "#define 
> >>CYGDAT_IO_SERIAL_GENERIC_16X5X_CFG <pkgconf/io_extserial_arm_rms.h>"
> >>        puts $::cdl_system_header "/*****  serial driver proc output 
> >>end  *****/"
> >>    }
> >>
> >>...
> >>witch are used to configure the SERIAL_GENERIC_16X5X driver
> >>
> >>
> >>My question is: where I've to define a command witch copies 
> >>devs/serial/arm/rms/current/include/arm_rms_extern_ser.inl to 
> >><cyg/io/arm_rms_extern_ser.inl> and what is this command?
> >>
> >
> >Just use the "include_dir" CDL command in the same file that has
> >the "define proc".  e.g.
> >	include_dir cyg/io
> >This will cause the include files (from the package .../include
> >directory) to be placed in the <cyg/io/...> directory.
> >
> >
> >
> >
> "include_dir" CDL command is already there :
> 
> ......
> .....
> .....
> cdl_package CYGPKG_IO_EXT_SERIAL_ARM_RMS {
>     display        "RMS extern serial device drivers"
> 
>     parent        CYGPKG_IO_SERIAL_DEVICES
>     active_if    CYGPKG_IO_SERIAL
>     active_if    CYGPKG_HAL_ARM_RMS
> 
>     requires    CYGPKG_ERROR
>     include_dir    cyg/io
>    
>         description   "
>         This option enables the extern serial device drivers for the
>         RMS ."
>     doc    redirect/ecos-device-drivers.html
> 
>     cdl_interface     CYGINT_IO_SERIAL_GENERIC_16X5X_REQUIRED {
>         display   "Generic 16x5x serial driver required"
>         }
>     define_proc {
>             puts $::cdl_header "#define 
> CYGPRI_IO_SERIAL_GENERIC_16X5X_STEP 4"
>     }
> 
>     define_proc {
>         puts $::cdl_system_header "/***** serial driver proc output 
> start *****/"
>         puts $::cdl_system_header "#define 
> CYGDAT_IO_SERIAL_GENERIC_16X5X_INL <cyg/io/arm_rms_extern_ser.inl>"
>         puts $::cdl_system_header "#define 
> CYGDAT_IO_SERIAL_GENERIC_16X5X_CFG <pkgconf/io_extserial_arm_rms.h>"
>         puts $::cdl_system_header "/*****  serial driver proc output 
> end  *****/"
>     }
> 
>     cdl_component CYGPKG_IO_SERIAL_ARM_RMS_SERIAL2 {
> ......
> .....
> .....
> 
> 
> 
> but nothing is copied

So, a few questions:
  * Do you have a file "arm_rms_extern_ser.inl"?
  * Where is it in your source tree?
  * Where does it end up in the install/build tree?




-- 
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [ECOS] Problem using SERIAL_GENERIC_16X5X serial driver
  2002-07-09  7:00     ` Gary Thomas
@ 2002-07-09  7:17       ` brenner joel
  2002-07-09  8:16         ` brenner joel
  0 siblings, 1 reply; 5+ messages in thread
From: brenner joel @ 2002-07-09  7:17 UTC (permalink / raw)
  To: Gary Thomas; +Cc: eCos Discussion

Gary Thomas wrote:

>Please copy your email to the discussion list.  That way, everyone
>gets the benefit and the answers are logged as well.  Private email
>can and will be ignored (unless you have a support contract)
>
>On Tue, 2002-07-09 at 07:56, brenner joel wrote:
>
>>Gary Thomas wrote:
>>
>>>On Tue, 2002-07-09 at 07:36, brenner joel wrote:
>>>
>>>>Hi all!
>>>>
>>>>I'm trying to use the SERIAL_GENERIC_16X5X serial driver for my custom 
>>>>target. (I've used arm/pid serial driver as example)
>>>>When I compile the kernel I've the following error message:
>>>>
>>>>/home/brenner/ecos/packages/devs/serial/generic/16x5x/current/src/ser_16x5x.c
>>>>/home/brenner/ecos/packages/devs/serial/generic/16x5x/current/src/ser_16x5x.c:213:44: 
>>>>cyg/io/arm_rms_extern_ser.inl: No such file or directory
>>>>
>>>>and this is right because no inline file is placed cyg/io/.
>>>>In the cdl file of rm_rms_extern_ser following paths are defined
>>>>...
>>>>   define_proc {
>>>>       puts $::cdl_system_header "/***** serial driver proc output 
>>>>start *****/"
>>>>       puts $::cdl_system_header "#define 
>>>>CYGDAT_IO_SERIAL_GENERIC_16X5X_INL <cyg/io/arm_rms_extern_ser.inl>"
>>>>       puts $::cdl_system_header "#define 
>>>>CYGDAT_IO_SERIAL_GENERIC_16X5X_CFG <pkgconf/io_extserial_arm_rms.h>"
>>>>       puts $::cdl_system_header "/*****  serial driver proc output 
>>>>end  *****/"
>>>>   }
>>>>
>>>>...
>>>>witch are used to configure the SERIAL_GENERIC_16X5X driver
>>>>
>>>>
>>>>My question is: where I've to define a command witch copies 
>>>>devs/serial/arm/rms/current/include/arm_rms_extern_ser.inl to 
>>>><cyg/io/arm_rms_extern_ser.inl> and what is this command?
>>>>
>>>Just use the "include_dir" CDL command in the same file that has
>>>the "define proc".  e.g.
>>>	include_dir cyg/io
>>>This will cause the include files (from the package .../include
>>>directory) to be placed in the <cyg/io/...> directory.
>>>
>>>
>>>
>>>
>>"include_dir" CDL command is already there :
>>
>>......
>>.....
>>.....
>>cdl_package CYGPKG_IO_EXT_SERIAL_ARM_RMS {
>>    display        "RMS extern serial device drivers"
>>
>>    parent        CYGPKG_IO_SERIAL_DEVICES
>>    active_if    CYGPKG_IO_SERIAL
>>    active_if    CYGPKG_HAL_ARM_RMS
>>
>>    requires    CYGPKG_ERROR
>>    include_dir    cyg/io
>>   
>>        description   "
>>        This option enables the extern serial device drivers for the
>>        RMS ."
>>    doc    redirect/ecos-device-drivers.html
>>
>>    cdl_interface     CYGINT_IO_SERIAL_GENERIC_16X5X_REQUIRED {
>>        display   "Generic 16x5x serial driver required"
>>        }
>>    define_proc {
>>            puts $::cdl_header "#define 
>>CYGPRI_IO_SERIAL_GENERIC_16X5X_STEP 4"
>>    }
>>
>>    define_proc {
>>        puts $::cdl_system_header "/***** serial driver proc output 
>>start *****/"
>>        puts $::cdl_system_header "#define 
>>CYGDAT_IO_SERIAL_GENERIC_16X5X_INL <cyg/io/arm_rms_extern_ser.inl>"
>>        puts $::cdl_system_header "#define 
>>CYGDAT_IO_SERIAL_GENERIC_16X5X_CFG <pkgconf/io_extserial_arm_rms.h>"
>>        puts $::cdl_system_header "/*****  serial driver proc output 
>>end  *****/"
>>    }
>>
>>    cdl_component CYGPKG_IO_SERIAL_ARM_RMS_SERIAL2 {
>>......
>>.....
>>.....
>>
>>
>>
>>but nothing is copied
>>
>
>So, a few questions:
>  * Do you have a file "arm_rms_extern_ser.inl"?
>  * Where is it in your source tree?
>  * Where does it end up in the install/build tree?
>
>
>
>
Sorry I've selected the wrong reply option!!

 1) yes the file exists and it's in ecos/packages/devs/serial/arm/rms_16x/current/include
3) arm_rms_extern_ser.inl isn't copyed in the build/install tree but the package is visible in the config tool




-- 
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [ECOS] Problem using SERIAL_GENERIC_16X5X serial driver
  2002-07-09  7:17       ` brenner joel
@ 2002-07-09  8:16         ` brenner joel
  0 siblings, 0 replies; 5+ messages in thread
From: brenner joel @ 2002-07-09  8:16 UTC (permalink / raw)
  To: brenner joel; +Cc: Gary Thomas, eCos Discussion

brenner joel wrote:

> Gary Thomas wrote:
>
>> Please copy your email to the discussion list.  That way, everyone
>> gets the benefit and the answers are logged as well.  Private email
>> can and will be ignored (unless you have a support contract)
>>
>> On Tue, 2002-07-09 at 07:56, brenner joel wrote:
>>
>>> Gary Thomas wrote:
>>>
>>>> On Tue, 2002-07-09 at 07:36, brenner joel wrote:
>>>>
>>>>> Hi all!
>>>>>
>>>>> I'm trying to use the SERIAL_GENERIC_16X5X serial driver for my 
>>>>> custom target. (I've used arm/pid serial driver as example)
>>>>> When I compile the kernel I've the following error message:
>>>>>
>>>>> /home/brenner/ecos/packages/devs/serial/generic/16x5x/current/src/ser_16x5x.c 
>>>>>
>>>>> /home/brenner/ecos/packages/devs/serial/generic/16x5x/current/src/ser_16x5x.c:213:44: 
>>>>> cyg/io/arm_rms_extern_ser.inl: No such file or directory
>>>>>
>>>>> and this is right because no inline file is placed cyg/io/.
>>>>> In the cdl file of rm_rms_extern_ser following paths are defined
>>>>> ...
>>>>>   define_proc {
>>>>>       puts $::cdl_system_header "/***** serial driver proc output 
>>>>> start *****/"
>>>>>       puts $::cdl_system_header "#define 
>>>>> CYGDAT_IO_SERIAL_GENERIC_16X5X_INL <cyg/io/arm_rms_extern_ser.inl>"
>>>>>       puts $::cdl_system_header "#define 
>>>>> CYGDAT_IO_SERIAL_GENERIC_16X5X_CFG <pkgconf/io_extserial_arm_rms.h>"
>>>>>       puts $::cdl_system_header "/*****  serial driver proc output 
>>>>> end  *****/"
>>>>>   }
>>>>>
>>>>> ...
>>>>> witch are used to configure the SERIAL_GENERIC_16X5X driver
>>>>>
>>>>>
>>>>> My question is: where I've to define a command witch copies 
>>>>> devs/serial/arm/rms/current/include/arm_rms_extern_ser.inl to 
>>>>> <cyg/io/arm_rms_extern_ser.inl> and what is this command?
>>>>>
>>>> Just use the "include_dir" CDL command in the same file that has
>>>> the "define proc".  e.g.
>>>>     include_dir cyg/io
>>>> This will cause the include files (from the package .../include
>>>> directory) to be placed in the <cyg/io/...> directory.
>>>>
>>>>
>>>>
>>>>
>>> "include_dir" CDL command is already there :
>>>
>>> ......
>>> .....
>>> .....
>>> cdl_package CYGPKG_IO_EXT_SERIAL_ARM_RMS {
>>>    display        "RMS extern serial device drivers"
>>>
>>>    parent        CYGPKG_IO_SERIAL_DEVICES
>>>    active_if    CYGPKG_IO_SERIAL
>>>    active_if    CYGPKG_HAL_ARM_RMS
>>>
>>>    requires    CYGPKG_ERROR
>>>    include_dir    cyg/io
>>>          description   "
>>>        This option enables the extern serial device drivers for the
>>>        RMS ."
>>>    doc    redirect/ecos-device-drivers.html
>>>
>>>    cdl_interface     CYGINT_IO_SERIAL_GENERIC_16X5X_REQUIRED {
>>>        display   "Generic 16x5x serial driver required"
>>>        }
>>>    define_proc {
>>>            puts $::cdl_header "#define 
>>> CYGPRI_IO_SERIAL_GENERIC_16X5X_STEP 4"
>>>    }
>>>
>>>    define_proc {
>>>        puts $::cdl_system_header "/***** serial driver proc output 
>>> start *****/"
>>>        puts $::cdl_system_header "#define 
>>> CYGDAT_IO_SERIAL_GENERIC_16X5X_INL <cyg/io/arm_rms_extern_ser.inl>"
>>>        puts $::cdl_system_header "#define 
>>> CYGDAT_IO_SERIAL_GENERIC_16X5X_CFG <pkgconf/io_extserial_arm_rms.h>"
>>>        puts $::cdl_system_header "/*****  serial driver proc output 
>>> end  *****/"
>>>    }
>>>
>>>    cdl_component CYGPKG_IO_SERIAL_ARM_RMS_SERIAL2 {
>>> ......
>>> .....
>>> .....
>>>
>>>
>>>
>>> but nothing is copied
>>>
>>
>> So, a few questions:
>>  * Do you have a file "arm_rms_extern_ser.inl"?
>>  * Where is it in your source tree?
>>  * Where does it end up in the install/build tree?
>>
>>
>>
>>
> Sorry I've selected the wrong reply option!!
>
> 1) yes the file exists and it's in 
> ecos/packages/devs/serial/arm/rms_16x/current/include
> 3) arm_rms_extern_ser.inl isn't copyed in the build/install tree but 
> the package is visible in the config tool
>
>
>
>
Sorry !!!! there was a wrong  include_file command.

The compilation prcess works fine now, but I'v some more problems:
    - if I scan the devtab "/dev/ser2" and "/dev/ser3", witch are 
implemented with the 16x serial driver, they aren't reported.
...
...
  for (t = &__DEVTAB__[0]; t != &__DEVTAB_END__; t++)
    {
      printf("<INFO>: %s\n",t->dep_name);
    }
...
...

Why  ser2 and ser3 aren't present in  __DEVTAB__[]?
In the  rm_rms_extern_ser.inl file there is :

...
DEVTAB_ENTRY(rms_serial_io2,
             CYGDAT_IO_SERIAL_ARM_RMS_SERIAL2_NAME,
             0,                     // Does not depend on a lower level 
interface
             &cyg_io_serial_devio,
             pc_serial_init,
             pc_serial_lookup,     // Serial driver may need initializing
             &rms_serial_channel2
    );
DEVTAB_ENTRY(rms_serial_io3,
             CYGDAT_IO_SERIAL_ARM_RMS_SERIAL3_NAME,
             0,                     // Does not depend on a lower level 
interface
             &cyg_io_serial_devio,
             pc_serial_init,
             pc_serial_lookup,     // Serial driver may need initializing
             &rms_serial_channel3
    );
....
and the driver is enabled by configtool.

regards jobre.



-- 
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2002-07-09 15:16 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-07-09  6:35 [ECOS] Problem using SERIAL_GENERIC_16X5X serial driver brenner joel
2002-07-09  6:41 ` Gary Thomas
     [not found]   ` <3D2AEB76.4000203@tchip.com>
2002-07-09  7:00     ` Gary Thomas
2002-07-09  7:17       ` brenner joel
2002-07-09  8:16         ` brenner joel

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