1 |
Hi, |
2 |
|
3 |
I'm using hdparm on Gentoo/PPC. |
4 |
I think that hdparm operation are not endian safe because operations like "-I" |
5 |
can't understand big-endian data. |
6 |
Look at the "Model" output for "-i" (via kernel info) and for "-I" (directly |
7 |
from HD): The chars are swapped!!! |
8 |
|
9 |
This is the output of "hdparm -i" |
10 |
|
11 |
bash-2.05a# hdparm -i /dev/hda |
12 |
|
13 |
/dev/hda: |
14 |
|
15 |
Model=IBM-IC25N020ATCS04-0, FwRev=CA2AA71A, SerialNo=CSL207D9HNBTXA |
16 |
Config={ HardSect NotMFM HdSw>15uSec Fixed DTR>10Mbs } |
17 |
RawCHS=16383/16/63, TrkSize=0, SectSize=0, ECCbytes=4 |
18 |
BuffType=DualPortCache, BuffSize=1768kB, MaxMultSect=16, MultSect=off |
19 |
CurCHS=16383/16/63, CurSects=4228907259, LBA=yes, LBAsects=39070080 |
20 |
IORDY=on/off, tPIO={min:240,w/IORDY:120}, tDMA={min:120,rec:120} |
21 |
PIO modes: pio0 pio1 pio2 pio3 pio4 |
22 |
DMA modes: mdma0 mdma1 mdma2 |
23 |
UDMA modes: udma0 udma1 *udma2 |
24 |
AdvancedPM=yes: mode=0x80 (128) WriteCache=enabled |
25 |
Drive conforms to: ATA/ATAPI-5 T13 1321D revision 3: 2 3 4 5 |
26 |
|
27 |
and this is the one from "hdparm -I" |
28 |
bash-2.05a# hdparm -I /dev/hda |
29 |
|
30 |
/dev/hda: |
31 |
|
32 |
ATA device, with non-removable media |
33 |
powers-up in standby; SET FEATURES subcmd spins-up. |
34 |
|
35 |
WARNING: ID response incomplete. |
36 |
WARNING: Following data may be incorrect. |
37 |
|
38 |
Model Number: BI-MCI520N02TASC400- |
39 |
Serial Number: SC2L709DNHTBAX |
40 |
Firmware Revision: ACA27AA1 |
41 |
Standards: |
42 |
Supported: 13 12 11 10 |
43 |
Likely used: 13 |
44 |
Configuration: |
45 |
Logical max current |
46 |
cylinders 65343 0 |
47 |
heads 4096 0 |
48 |
sectors/track 16128 0 |
49 |
-- |
50 |
LBA user addressable sectors: 1409450025 |
51 |
device size with M = 1024*1024: 688208 MBytes |
52 |
device size with M = 1000*1000: 721638 MBytes (721 GB) |
53 |
Capabilities: |
54 |
IORDY(may be)(cannot be disabled) |
55 |
Queue depth: 1 |
56 |
Standby timer values: spec'd by Vendor |
57 |
R/W multiple sector transfer: Max = 128 Current = ? |
58 |
Advanced power management level: unknown setting (0x8040) |
59 |
DMA: not supported |
60 |
PIO: unknown |
61 |
Security: |
62 |
Master password revision code = 65279 |
63 |
not supported |
64 |
not enabled |
65 |
not locked |
66 |
not frozen |
67 |
not expired: security count |
68 |
not supported: enhanced erase |
69 |
|
70 |
|
71 |
|
72 |
-- |
73 |
gentoo-ppc-dev@g.o mailing list |