<html>
<head>
</head>
<body>
Do you have a small demo app that mounts an IDE drive and maybe reads from
a file? I can make the changes to run on the pc386 from there.<br>
<br>
Thomas Doerfler wrote:<br>
<blockquote type="cite" cite="mid:3D58BBC9.2458.B494D45@localhost">
  <pre wrap="">Hello Angelo,<br><br></pre>
  <blockquote type="cite">
    <pre wrap="">I am unable to make this build. I have two errors occurring that I <br>cannot get around.<br><br>I will explain what I am trying to do first. I am trying to build a <br>small app that uses the four files that are in <br>rtems-ss-20020807\cpukit\libblock and seeing if it will run on my <br>pc386dx build<br></pre>
    </blockquote>
    <pre wrap=""><!----><br>I did not work yet with that snapshot, so my answers will not <br>be quite precise in some parts...<br></pre>
    <blockquote type="cite">
      <pre wrap="">The first problem I am getting is I get an error that reference 2 of <br>function _CORE_mutex_Initialize is incompatible in the following <br>function (I can't see why though) in module bdbuf.c<br></pre>
      </blockquote>
      <pre wrap=""><!----><br>I have no idea, whta is wrong there, sorry...<br></pre>
      <blockquote type="cite">
        <pre wrap="">If I comment the function out (i.e. _CORE_mutex_Initialize), I get two <br>unresolved externals:<br>rtems_ramdisk_configuration_size and rtems_ramdisk_config <br>rtems_ramdisk_configuration<br></pre>
        </blockquote>
        <pre wrap=""><!----><br>You must create these two variables in your "init" module to <br>specify the number of ramdisks to be created and the <br>size/characteristics of these disks. The declaration for the <br>structure of "rtems_ramdisk_configuration" is in "ramdisk.h". <br><br>You should only need these variables when you actually use <br>ramdisks, so I guess you call some kind of initialization <br>function or a RAMDISK entry in your device driver table.<br><br>I hope this helps...<br><br>Thomas.<br><br></pre>
        <blockquote type="cite">
          <pre wrap="">I have done a grep through the entire snapshot and cannot find where <br>these two variables are defined.<br>Eugeny S. Mints wrote:<br><br></pre>
          <blockquote type="cite">
            <blockquote type="cite">
              <pre wrap="">Does the IDE driver work for the pc386 derivatives in the current snapshot?<br><br></pre>
              </blockquote>
              <pre wrap="">It doesn't - the implementation is hardcoded for powerpc. But you can<br>port it to pc386 with minimum changes, I think. But unfortunately current<br>IDE driver implementation have architecture which is hard to extend.<br>We propose the following architecture:<br><br>generic ATA driver (chip and CPU independant; only implementation of ATA<br>standart) locates in c/src/exec/libblock (although I'm not absolute sure<br>about this - may be another directory may be more appropriate)<br><br>generic IDE controllers driver and particular drivers for standart ide<br>controller chips  locate in c/src/libchip/ide<br><br>if ide capacity is integrated into CPU then drivers for such ide locate in <br>c/src/lib/libcpu/myCPU<br><br>and if ide controller is somthing custom (for example on FPGA) then<br>driver for it goes to c/src/lib/libbsp/myBSP<br><br>Such architecture allows, for example, simply start IDE for any target<br>board - just implement particular on-bo
ard IDE controller driver and go<br>on.<br><br>Currently I've done most part of the work. Because of this I don't think<br>that port of Linux driver is necessary now (but of course, than more<br>activities then better :)). Also license difference also need attention.<br><br><br>Regards,<br>                       Eugeny<br><br></pre>
              <blockquote type="cite">
                <pre wrap="">Joel Sherrill wrote:<br><br></pre>
                <blockquote type="cite">
                  <pre wrap="">"Eugeny S. Mints" wrote:<br><br></pre>
                  <blockquote type="cite">
                    <pre wrap="">Angelo,<br><br>On Fri, 19 Jul 2002, Angelo Fraietta wrote:<br><br></pre>
                    <blockquote type="cite">
                      <pre wrap="">Is this ready yet?<br><br></pre>
                      </blockquote>
                      <pre wrap="">Currently I'm working on the another implementation of ATA<br>driver which is a bit more chip(I mean IDE<br>controllers)/CPU independant than thye implementation<br>provided<br>by Thomas Doerfler. Currently it will be PIO mode<br>implementation but both poll and interrupt driven. Also<br>architecture of the driver will allow easy extention for<br>any IDE controller and for DMA mode. I've already have successful mount of<br>msdos partition on real IDE hard disk and successful read of a file.<br>I hope I will able to provide something stable (more or<br>less) by the end of the next week.<br><br></pre>
                      </blockquote>
                      <pre wrap="">At least the last (broken) snapshot had Thomas' driver in it.<br><br>I think the source for everything libblock, libfs, and IDE driver<br>was up to date in there minus unsubmitted code like Eugeny is<br>mentioning.<br><br></pre>
                      <blockquote type="cite">
                        <pre wrap="">Regards,<br>                      Eugeny<br><br></pre>
                        <blockquote type="cite">
                          <pre wrap="">root wrote:<br><br></pre>
                          <blockquote type="cite">
                            <pre wrap="">Thomas Doerfler wrote:<br><br></pre>
                            <blockquote type="cite">
                              <pre wrap="">Hi to all,<br><br>a collegue of me has coded a ATA/IDE driver, we<br>are currently busy testing it. We found some<br>problems in the libblock/libdosfs, but the code<br>is getting better every day :-)<br><br>So I guess in one or two weeks we have a code<br>ready to be published.<br><br></pre>
                              </blockquote>
                              <pre wrap="">Need I say more than YEAH!!!  Thomas did you look<br>at the DOS FS test that is in GNATS for inclusion<br>in the test suites?<br><br>FYI I have been out of town for 4 days and the modem<br>would not connect.  I have 1200 messages in my inbox and<br>am just now wading through them.  Forgive me if I miss<br>something. :(<br><br>--joel<br><br></pre>
                              <blockquote type="cite">
                                <pre wrap="">Bye,<br>     Thomas.<br><br></pre>
                                <blockquote type="cite">
                                  <pre wrap="">So it still needs to have an ATAPI driver written for it?<br><br>Eugeny S. Mints wrote:<br><br></pre>
                                  <blockquote type="cite">
                                    <pre wrap="">Angelo,<br><br>This is our test suit in attachment.<br>But please take into account that currently there is no any<br>IDE driver in RTEMS for any BSP. We use gdb simulator and<br>RAM disk driver which we've developed (it locates in<br>libblock also) for test purposes.<br>But it seems somebody called Camilo Alejandro Arboleda as a<br>person who is working on floppy driver.<br><br>Please, feel free ask any question you have,<br>Regards,<br>         Eugeny<br><br><br></pre>
                                    </blockquote>
                                    <pre wrap="">--<br>Angelo Fraietta<br><br>PO Box 859<br>Hamilton NSW 2303<br><br>Home Page<br><br><br><a class="moz-txt-link-freetext" href="http://www.users.bigpond.com/angelo_f/">http://www.users.bigpond.com/angelo_f/</a><br><br>There are those who seek knowledge for the sake of knowledge - that is CURIOSITY<br>There are those who seek knowledge to be known by others - that is VANITY<br>There are those who seek knowledge in order to serve - that is LOVE<br> Bernard of Clairvaux (1090 - 1153)<br><br><br><br></pre>
                                    </blockquote>
                                    <pre wrap="">--------------------------------------------<br>IMD Ingenieurbuero fuer Microcomputertechnik<br>Thomas Doerfler           Herbststrasse 8<br>D-82178 Puchheim          Germany<br>email:    <a class="moz-txt-link-abbreviated" href="mailto:Thomas.Doerfler@imd-systems.de">Thomas.Doerfler@imd-systems.de</a><br>PGP public key available at: <a class="moz-txt-link-freetext" href="http://www.imd">http://www.imd</a>-<br>systems.de/pgp_key.htm<br><br></pre>
                                    </blockquote>
                                    </blockquote>
                                    </blockquote>
                                    <pre wrap="">--<br>Eugeny S. Mints<br>OKTET Ltd.<br>1 Ulianovskaya st., Petergof, St.Petersburg, 198904 Russia<br>Phone: +7(812)428-4384 Fax: +7(812)327-2246<br><a class="moz-txt-link-freetext" href="mailto:Eugeny.Mints@oktet.ru">mailto:Eugeny.Mints@oktet.ru</a><br><br></pre>
                                    </blockquote>
                                    </blockquote>
                                    <pre wrap="">-- <br>Angelo Fraietta<br><br>PO Box 859<br>Hamilton NSW 2303<br><br>Home Page<br><br><br><a class="moz-txt-link-freetext" href="http://www.users.bigpond.com/angelo_f/">http://www.users.bigpond.com/angelo_f/</a><br><br>There are those who seek knowledge for the sake of knowledge - that is CURIOSITY<br>There are those who seek knowledge to be known by others - that is VANITY<br>There are those who seek knowledge in order to serve - that is LOVE<br>   Bernard of Clairvaux (1090 - 1153)<br><br><br><br></pre>
                                    </blockquote>
                                    <pre wrap="">--<br>Eugeny S. Mints<br>OKTET Ltd.<br>1 Ulianovskaya st., Petergof, St.Petersburg, 198904 Russia<br>Phone: +7(812)428-4384 Fax: +7(812)327-2246<br><a class="moz-txt-link-freetext" href="mailto:Eugeny.Mints@oktet.ru">mailto:Eugeny.Mints@oktet.ru</a><br><br><br><br><br><br><br><br><br></pre>
                                    </blockquote>
                                    <pre wrap="">-- <br>Angelo Fraietta<br><br>PO Box 859<br>Hamilton NSW 2303<br><br>Home Page<br><br><br><a class="moz-txt-link-freetext" href="http://www.users.bigpond.com/angelo_f/">http://www.users.bigpond.com/angelo_f/</a><br><br>There are those who seek knowledge for the sake of knowledge - that is CURIOSITY<br>There are those who seek knowledge to be known by others - that is VANITY<br>There are those who seek knowledge in order to serve - that is LOVE<br>    Bernard of Clairvaux (1090 - 1153)<br><br><br><br></pre>
                                    </blockquote>
                                    <pre wrap=""><!----><br>--------------------------------------------<br>IMD Ingenieurbuero fuer Microcomputertechnik<br>Thomas Doerfler           Herbststrasse 8<br>D-82178 Puchheim          Germany<br>email:    <a class="moz-txt-link-abbreviated" href="mailto:Thomas.Doerfler@imd-systems.de">Thomas.Doerfler@imd-systems.de</a><br>PGP public key available at: <a class="moz-txt-link-freetext" href="http://www.imd">http://www.imd</a>-<br>systems.de/pgp_key.htm<br><br><br></pre>
                                    </blockquote>
                                    <br>
                                    <pre class="moz-signature" cols="$mailwrapcol">-- 
Angelo Fraietta

PO Box 859
Hamilton NSW 2303

Home Page


<a class="moz-txt-link-freetext" href="http://www.users.bigpond.com/angelo_f/">http://www.users.bigpond.com/angelo_f/</a>

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)</pre>
                                    <br>
                                    </body>
                                    </html>