|
2#
樓主 |
發表於 2007-2-7 17:54:28
|
只看該作者
[Linux] proting SATA using ATA driver
這一段是說明如何用ata driver改成sata, 照道理來講就是改drivers/ide這一段的code就對了.
% P9 \7 j- _ P A, l% V有人能再補充更多的嗎?
- T# E7 G' I' b% z# ?( j% c' s/ P; r4 B* Y4 h8 Y
Driver Overview: Linux kernels have two ATA ("IDE") driver sets:. {4 T( q" G5 T W- p7 k4 m
5 @' |( K% Q+ m% K' F: C"drivers/ide": This is the traditional ATA driver set, maintained by Bartlomiej Zolnierkiewicz (before that, Andre Hedrick). Contrary to popular belief, it includes low-level drivers for many common SATA chipsets.
% u0 a5 g; S V- m5 q7 D) z8 ]1 v6 Q# h M) Q
Optionally, on top of drivers/ide block-device (generic mass storage access) drivers, one can load drivers to provide software-level suport for BIOS services enabling various types of manufacturer-specific software RAID (called "fakeraid", below):4 w+ T( ]2 L( _
% w8 B6 U0 u8 B( F# y$ @# X8 Q
For 2.4 kernels, Linux's software-RAID (fakeraid) driver collection is called "ataraid", which has subdrivers for the various manufacturers' different software RAID schemes. Using ataraid results in your partitions being addressed using a /dev/ataraid/d0p1 (etc.) device-naming convention. Note: Support greatly improved circa-2.4.23.
- }% N8 L* `2 m6 Z1 O1 v$ b
! D0 \. m( K; @5 [2 JFor 2.6 kernels, Linux's software-RAID (fakeraid) driver collection is called "dmraid" (Device Mapper RAID). So far (Sept 2004), Promise Fasttrack, HighPoint 37X, Intel ICH5/6, LSI, and SiI 3112A/Medley are supported: http://tienstra4.flatnet.tudelft.nl/~gerte/gen2dmraid/
" G- V* m2 P+ I$ s9 J6 |. ~
2 A3 q1 g4 ?! W2 b* y6 o3 ?! aI'm pretty sure manufacturers' proprietary drivers, where available, are designed to fit the above framework.
7 @8 P, I S9 S2 x3 E
9 z& N1 }1 u1 M1 s0 Q8 q"libata": This is the newer ATA driver set for selected SATA chipsets only, maintained by Jeff Garzik, leveraging the kernel's well-tested SCSI layer. Garzik developed it in the 2.6 kernel series. 2.4 support was available only with a backported patch until libata's inclusion in 2.4.27 and later.% D7 v+ w* H* `% g' b% y
1 m% a8 _/ B) N) J h) Slibata causes each SATA port appear as a new SCSI bus. There are individual low-level drivers for the individual SATA chipsets, e.g., ahci, ata_adma, ata_piix, sata_nv, sata_promise, sata_sil, sata_sx4, sata_svw, sata_via, sata_vsc. |
|