Problem with ATA driver on pc386
Angelo Fraietta
afraiett at bigpond.net.au
Tue Jan 20 05:04:32 UTC 2004
Did you get this to work. I seem to having trouble getting it to work. I
have tried pre4 with no success on my build. I get
unable to open /rtems/ata.h
error
Eugene Denisov wrote:
>Thank you, I'll try 4.6.0pre4.
>I suspected the problem is in 4.6.0pre5, it seems this release is rather
>raw, at least PCI support in i386 platform is broken and I had to modify
>sources slightly.
>
>----- Original Message -----
>From: "Angelo Fraietta" <afraiett at bigpond.net.au>
>To: "Eugene Denisov" <dea at sendmail.ru>
>Cc: <rtems-users at rtems.com>
>Sent: Friday, December 12, 2003 1:18 AM
>Subject: Re: Problem with ATA driver on pc386
>
>
>
>
>>Yes -- I am using rtems-4.6.0pre4 with pc386dx BSP
>>
>>This my systme header
>>
>>#include <bsp.h> /* for device driver prototypes */
>>#ifdef RTEMS_BSP_HAS_IDE_DRIVER
>>#include <rtems/ata.h> /* for ata driver prototype */
>>#include <libchip/ide_ctrl.h> /* for general ide driver prototype */
>>#endif
>>#include <tty_drv.h>
>>#include <console.h>
>>#include <clockdrv.h>
>>#include <timerdrv.h>
>>
>>#define CONFIGURE_APPLICATION_NEEDS_CONSOLE_DRIVER
>>#define CONFIGURE_APPLICATION_NEEDS_CLOCK_DRIVER
>>#define CONFIGURE_USE_IMFS_AS_BASE_FILESYSTEM
>>#define CONFIGURE_HAS_OWN_DEVICE_DRIVER_TABLE
>>
>>
>>rtems_driver_address_table Device_drivers[] = {
>> CONSOLE_DRIVER_TABLE_ENTRY,
>> TTY1_DRIVER_TABLE_ENTRY,
>> /*TTY2_DRIVER_TABLE_ENTRY,*/
>> MIDIPORT_1_DRIVER_TABLE_ENTRY,
>> CLOCK_DRIVER_TABLE_ENTRY,
>>#ifdef RTEMS_BSP_HAS_IDE_DRIVER
>> IDE_CONTROLLER_DRIVER_TABLE_ENTRY,
>> /* important: ATA driver must be after ide drivers */
>> ATA_DRIVER_TABLE_ENTRY ,
>>#endif
>> {NULL,NULL,NULL,NULL,NULL,NULL},
>>};
>>
>>#include <rtems/bdbuf.h>
>>rtems_bdbuf_config rtems_bdbuf_configuration[] = {
>> {512,128,NULL}
>>};
>>int rtems_bdbuf_configuration_size =( sizeof(rtems_bdbuf_configuration)
>> /sizeof(rtems_bdbuf_configuration[0]));
>>
>>#define CONFIGURE_LIBIO_MAXIMUM_FILE_DESCRIPTORS 50
>>
>>#define CONFIGURE_MICROSECONDS_PER_TICK 1000 /* 1 ms */
>>#define CONFIGURE_MAXIMUM_TASKS 20
>>#define CONFIGURE_MAXIMUM_SEMAPHORES 20
>>#define CONFIGURE_MAXIMUM_MESSAGE_QUEUES 20
>>
>>
>>#define CONFIGURE_RTEMS_INIT_TASKS_TABLE
>>#define CONFIGURE_EXTRA_TASK_STACKS
>>(CONFIGURE_MAXIMUM_TASKS*10*RTEMS_MINIMUM_STACK_SIZE)
>>
>>
>>
>>
>>Eugene Denisov wrote:
>>
>>
>>
>>>Hello all.
>>>
>>>I trying to use ATA driver in RTEMS 4.6.0pre5 on pc386 target, this is
>>>
>>>
>the
>
>
>>>driver table I used to:
>>>
>>>#define CONFIGURE_HAS_OWN_DEVICE_DRIVER_TABLE
>>>
>>>#ifdef CONFIGURE_INIT
>>>rtems_driver_address_table Device_drivers[] =
>>> {
>>> CONSOLE_DRIVER_TABLE_ENTRY
>>> ,CLOCK_DRIVER_TABLE_ENTRY
>>> ,IDE_CONTROLLER_DRIVER_TABLE_ENTRY
>>>#if 1
>>> ,ATA_DRIVER_TABLE_ENTRY
>>>#endif
>>> };
>>>
>>>Unfortunately system hungs up when I enabling ATA driver.
>>>
>>>Does anyone succesfully use ATA driver for this RTEMS build?
>>>
>>>
>>>
>>>
>>>
>>--
>>Angelo Fraietta
>>
>>PO Box 859
>>Hamilton NSW 2303
>>
>>Home Page
>>
>>
>>http://www.users.bigpond.com/angelo_f/
>>
>>There are those who seek knowledge for the sake of knowledge - that is
>>
>>
>CURIOSITY
>
>
>>There are those who seek knowledge to be known by others - that is VANITY
>>There are those who seek knowledge in order to serve - that is LOVE
>> Bernard of Clairvaux (1090 - 1153)
>>
>>
>>
>>
>>
>
>
>
>
--
Angelo Fraietta
PO Box 859
Hamilton NSW 2303
Home Page
http://www.users.bigpond.com/angelo_f/
There are those who seek knowledge for the sake of knowledge - that is CURIOSITY
There are those who seek knowledge to be known by others - that is VANITY
There are those who seek knowledge in order to serve - that is LOVE
Bernard of Clairvaux (1090 - 1153)
More information about the users
mailing list