|
2#
樓主 |
發表於 2007-2-7 17:54:28
|
只看該作者
[Linux] proting SATA using ATA driver
這一段是說明如何用ata driver改成sata, 照道理來講就是改drivers/ide這一段的code就對了.
+ l9 X( X+ n5 |- K" P有人能再補充更多的嗎?
; a# a! c" l, ~7 I+ b. i, k6 ]6 M* [3 M& \. Z: O+ Y
Driver Overview: Linux kernels have two ATA ("IDE") driver sets:1 a+ m! K( J6 u
1 ?+ R r/ b4 B; {1 P; v: i0 J"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.# V' D+ X* M$ x7 w' X( g1 L- ]
/ F5 Q: K) y7 fOptionally, 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):
/ F+ F. W+ G7 k0 M# b9 }2 h( Z" M- P1 l& b: }6 ~
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.
, ~' X9 G' z6 b Q! r& w" B1 r
9 Y5 w" E9 L7 n9 C* MFor 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/ 8 l3 j( Z& ?( H' S( G% m* B" s
1 o/ H8 L& F0 Q% f
I'm pretty sure manufacturers' proprietary drivers, where available, are designed to fit the above framework.
! i: m6 v* B" C' q7 B# }* F, |( N. k5 B, l' |" ~1 X a0 F5 K/ E: ]2 b
"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.
2 C, ~7 S/ [5 Z2 r* ^, c' `! X3 o/ U& C( _: D$ O0 Y! A$ u
libata 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. |
|