UDMA/100 kai PROMISE ATA 100 controller

Pavlos Parissis p_pavlos at otenet.gr
Thu Jan 4 22:37:01 EET 2001


Hello all,
Epeidh katafera me ligo kopw na valw linux se ena ATA 100 hd alla kai na
epofelithw ligo apo afto eipa na steilw
ena mail sthn lista me to ti ekana se periptwsh pou fanei xrhsimw se
kapoion allon.

Exoume kai leme, to systhma einai
ASUS A7V me Promise ATA 100 controller
28 GB IBM RPM 7200
RedHat 6.2

Kata to install tou RedHat 6.2 sinantisa provlima me ton controller, den
ton anagnwrize ara install ston hd den ginotan.
Meta apo arketw search se diafora shmeia tou internet vrika kapoies
plhrofories pou fanikan xrhsimes.
Vrika malista kai ena kati san mini-howto to opoio opws exei 2 xaza
lathoi, estila 3 mails sto sintakti alla akoma
perimenw reply. Estila kai mail sthn PROMISE alla akoma perimenw.
Ti kanoume loipwn twra.

Mia lisi einai na sindesoume ton ATA 100 hd se ena ATA 66 connector kai
na kanoume install kai tis diadikasies
pou tha perigrapsw parakatw gia na exoume apo ton kernel support tou
promise controller kai meta na valoume pali ton hd ston ATA 100
connector.
Den to efarmosa afto dioti den mou fanike kai poli soi kai ekana to
allo.
To allo einai:
Ksekiname to install tou linux kai anoigoume mia console otan erthoume
sthn prwth screen
kai dinoume cat /proc/pci kai anamesa sta alla pernoume :

 Bus  0, device  17, function  0:
    Unknown mass storage controller: Promise Technology Unknown device
(rev 2).
      Vendor id=105a. Device id=d30.
      Medium devsel.  IRQ 10.  Master Capable.  Latency=32.
A>>>  I/O at 0x9800 [0x9801].
B>>>  I/O at 0x9400 [0x9401].
C>>>  I/O at 0x9000 [0x9001].
D>>>  I/O at 0x8800 [0x8801].
      I/O at 0x8400 [0x8401].
      Non-prefetchable 32 bit memory at 0xdf800000 [0xdf800000].

(TA A,B,C,D ta evala egw giati tha mas xreiastoun)
grafoume  se ena xarti mono tis times pou deixnoun ta A,B,C,D tous
arithmous sta [] tous agnooume
alla stis times B kai D prostetoume ena 2 ara B=9402 D=8802
kanoume reset kai pali install alla sto prompt tou install pou mas rwtai
ean theloume GUI install 'h text install (se alla Distribution ipothetw
pws tha iparxei kati  paromoio se afto to shmeio) dinoume

linux x86_serial_nr=1 ide2=0x9800,0x9402 ide3=9000,0x8802

to x86_serial_nr=1 to dinw gia na anagnwrisi o kernel ton DURON mou,
einai asxeto me to thema mas.

Proxwrame to install kai sto shmeio pou mas rwtai ena theloume na
dinoume parameters mesw tou lilo ston kernel grafoume  to parapanw wste
meta to reset na mporoume na bootaroume pali to systima.
Ean se alla Distributions den iparxei tetoio vhma molis teleiwsei to
install grafoume sto lilo.conf

 append="x86_serial_nr=1 ide2=0x9800,0x9402 ide3=9000,0x8802"

Teleiwnoume to install kanoume kai reset kai olla mia xara.

Me ta parapanw to mono pou kataferame einai na kanw ton kernel na "dei"
ton Promise controller kai oxi na
ipostiriksi to chip gia ATA 100.
Kata to search sto internet eida pws h SUSE kai Mandrake exoun merimnisi
gia to thema kai exoume images tou kernel pou me aftous kaneis boot kai
o controller anaganwrizete, etsi lene toulaxiston den to vokmasa, h
dikia mou dianomh pera vrexi.

Meta apo 1 mhna xrhshs eida  pws o hd einai sxetika argos kai
sigkekrimena otan ekana copy >100MB apo ena meros sto allo kai akouga
mp3 eixa liga kospimata sthn mousikh kai to asmon(wm dock app gia cpu
monitor) mou edeixne thn CPU na trelenete.  Ta idia pathena otan ekana
compile ton kernel 'h compile se kati allo vari.
Episeis deite ti mou elege to hdparm

[root /home/paul]# /sbin/hdparm -t /dev/hde

/dev/hde:
 Timing buffered disk reads:  64 MB in  8.68 seconds =  7.37 MB/sec

exwntas dwsei prohgoumenos

[root /home/paul]# /sbin/hdparm -c 1 -d 1 -K 1 /dev/hde

/dev/hde:
 setting 32-bit I/O support flag to 1
 setting using_dma to 1 (on)
 HDIO_SET_DMA failed: Operation not permitted
 setting drive keep features to 1 (on)
 I/O support  =  1 (32-bit)
 using_dma    =  0 (off)

Anepitrepta pragmata.

Psaxnw na vrw ena ipostirizete to chip afto kai vriskw pws stous 2.4.x
iparxei mesa kai stous 2.2.x (x>=16) iparxei mono san patch. Exw tha sas
pws ti ginete me tous 2.2.x kernel, alla mallon kai stous 2.4.x ta idia
tha einai.
Katevazoume ton 2.2.18 kernel kai to ide.2.2.18.1221.patch apo ton
ftp.linux-ide.org kai dinoume
cd /usr/src
patch -p0 < ide.2.2.18.1221.patch
kanoume build ton kernel me :

Generic PCI bus-master DMA support (CONFIG_BLK_DEV_IDEDMA) = y
Use DMA by default when available (CONFIG_IDEDMA_AUTO) = y
PROMISE PDC20246/PDC20262 support (CONFIG_BLK_DEV_PDC202XX) = y

To redhat mou eixe ton 2.2.14 kai sthn arxh  katevasa ton 2.2.17 alla
kata to patch -p0 eperna errors. Ekana download to patch-2.2.18 kai
ide.2.2.18.1221.patch kai build kai doulepse:) Gia afto sas lew na
katevasete ton 2.2.18 'h ta patches mexri ekei.

Sinexizw twra, molis teleiosoume me ta
make mrproper;make xconfig;make dep;make clean;make bzImage;make
modules; make modules_install
pame sto lilo kai VGAZOUME ta

ide2=0x9800,0x9402 ide3=9000,0x8802

den xreiazontai pleon, o kernel anagnwrizei to chip kai pernei apo monos
tou tis plhrofories aftes.
Meta enhmeronoume kai to lilo kai kanoume  reset kai olla mia xara:)
Kata to boot prepei na paroume ta parakatw :

 Uniform Multi-Platform E-IDE driver Revision: 6.30
 ide: Assuming 33MHz system bus speed for PIO modes; override with
idebus=xx
 VP_IDE: IDE controller on PCI bus 00 dev 21
 VP_IDE: chipset revision 16
 VP_IDE: not 100% native mode: will probe irqs later
 ide0: BM-DMA at 0xd800-0xd807, BIOS settings: hda:DMA, hdb:DMA
 ide1: BM-DMA at 0xd808-0xd80f, BIOS settings: hdc:pio, hdd:pio
 PDC20265: IDE controller on PCI bus 00 dev 88
 PDC20265: chipset revision 2
 PDC20265: not 100% native mode: will probe irqs later
 PDC20265: (U)DMA Burst Bit ENABLED Primary PCI Mode Secondary PCI Mode.

 ide2: BM-DMA at 0x8400-0x8407, BIOS settings: hde:pio, hdf:pio
 ide3: BM-DMA at 0x8408-0x840f, BIOS settings: hdg:pio, hdh:pio
 hda: YAMAHA CRW8824E, ATAPI CDROM drive
 hdb: CREATIVE CD5233E, ATAPI CDROM drive
 hde: IBM-DTLA-307030, ATA DISK drive
 ide0 at 0x1f0-0x1f7,0x3f6 on irq 14
 ide2 at 0x9800-0x9807,0x9402 on irq 10
 hde: IBM-DTLA-307030, 29314MB w/1916kB Cache, CHS=59560/16/63,
UDMA(100)

Twra pernw apo to hdparm

root /home/paul]# /sbin/hdparm -t /dev/hde

/dev/hde:
 Timing buffered disk reads:  64 MB in  1.80 seconds = 35.56 MB/sec
[root /home/paul]#

kai me dma on kai 32 i/o on exw

root /home/paul]# /sbin/hdparm -t /dev/hde

/dev/hde:
 Timing buffered disk reads:  64 MB in  1.80 seconds = 35.56 MB/sec
[root /home/paul]#

diafora den iparxei alla mallon gia afto prepei na ftai to hdparm.
Exw vrei patch gia to hdparm tha to dokimasw shmera kai tha sa pw avrio
ean iparxei diafora.
Ephshs sto lilo edwsa kai "linux idebus=66" alla kai pali diafora den
eida sto hdparm.
Tha kitaksw ti ginete wste na anevasw kai allo thn apodosh, ean ginete
fisika:)

Ekana merikes dokimes, opws copy dir anw twn 100 MB kai den exw pleon
kopsimata stin mousiki kai epipleon
h CPU den trelenete alla malista eisa pou doulevei!

Elpizw me ta parapanw na voithisa kapion.

Pavlos



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
I love having the feeling of being in control
while i have the sensation of speed

The surfer of life
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~






More information about the Linux-greek-users mailing list