2007/12/1, Nick Kossifidis <[EMAIL PROTECTED]>:
> 2007/12/1, Nick Kossifidis <[EMAIL PROTECTED]>:
> > 2007/12/1, Nick Kossifidis <[EMAIL PROTECTED]>:
> > > 2007/11/25, Nick Kossifidis <[EMAIL PROTECTED]>:
> > > > I was searching the net on stuff about 23** chips and i found the
> > > > following post...
> > > > http://www.broadbandreports.com/forum/r19399723-Merakiisnt-that-special
> > > >
> > > > That shows a full dump of the information found in eeprom (i guess
> > > > that tool is part of athero's suite, well we can always make ath_info
> > > > do the same ;-) ). After i found this post i tried to find similar
> > > > dumps from other chipsets and i got this one...
> > > >
> > > > http://www.oswave.com/mediawiki/index.php/Eeprom_output
> > > >
> > > > So here's what we got:
> > > >
> > > > a) We need to get per channel calibration and power information from
> > > > eeprom so we can be a step closer on fixing tx power support (at least
> > > > now we know what the values should look like so it won't be that
> > > > difficult, we also have the offsets etc, we just got to fill the
> > > > missing bits in eeprom_init).
> > > >
> > > > b) We need to find out how these values are used (what we know so far
> > > > is that they are used to modify RF Buffer -that's something totally
> > > > obscure for now, we know nothing about rf buffer, what we have is from
> > > > regdumps-). Here are some infos that might help (after searching on
> > > > the net):
> > > >
> > > > XLNA = eXternal Low Noise Amplifier
> > > > XPA = eXternal Pre Amplifier
> > > > OB = Octave Band
> > > > X Gain = Cross Gain (?)
> > > > XPD = Cross Polarization Discrimination
> > > > PGA = Programmable Gain Amplifier
> > > >
> > > > Also i found a nice patent from Atheros about 5111/2111 here ->
> > > > http://www.wipo.int/pctdb/en/wo.jsp?wo=2003092997&IA=WO2003092997&DISPLAY=DESC
> > > >
> > > > I haven't read it all but seems informative ;-)
> > > >
> > > > --
> > > > GPG ID: 0xD21DB2DB
> > > > As you read this post global entropy rises. Have Fun ;-)
> > > > Nick
> > >
> > > I've modified ath_info to dump all eeprom data we currently read with
> > > eeprom_init, i'll commit changes asap on svn
> > > (madwifi/branches/madwifi-trace/tools). I'll continue to work on
> > > ath_info on userspace and when i'm able to read what the above eeprom
> > > dumps show, i'll commit a patch for ath5k.
> > >
> > > Most important: we should then start comparing eeprom dumps with
> > > regdumps, to be more precise we need to see where (position) and how
> > > (shifts etc) these eeprom values (calibration data) are written in rf
> > > buffer before we commit it, during reset (take a look in rfregs
> > > functions inside phy.c to see what i mean). To figure out how these
> > > functions work for different chipsets we need to have both eeprom
> > > infos -input- and regdumps -output- to play with. Right now ath_info
> > > makes a dump of the eeprom but it's not helpfull output right now
> > > (after all we need a working eeprom_init).
> > >
> > > If we figure out how to create a propper rf buffer packet for each PHY
> > > chip we'll be able to support them all ;-)
> > >
> >
> > Just commited it, this contains what we know about eeprom, we need to
> > find more...
> >
>
> I also believe i've found a bug in eeprom_init code for g mode that
> corrupts data, i'll look into it ;-)
>

False alarm, i double checked eeprom_init, i was just printing nonsense :P

Here is some output btw...

a) From my 5413 card...

mathematix tools # ./a.out 0xc2000000
 -==Device Information==-
MAC Version:  2424  (0xa0)
MAC Revision: 5413  (0xa4)
Device type:  3
5Ghz PHY Revision: SChip (0x63)
2Ghz PHY Revision: SChip (0x63)

-============== EEPROM Information =============-
| EEPROM Version:   5.2 | EEPROM Size:      16K |
| EEMAP:              2 | Reg. Domain:     0x00 |
-================= Capabilities ================-
| 802.11a Support:  yes | Turboa disabled:  yes |
| 802.11b Support:  yes | Turbog disabled:  yes |
| 802.11g Support:  yes | 2GHzXR disabled:  no  |
| RFKill  Support:  no  | 5GHzXR disabled:  no  |
| 32KHz   Crystal:  no  |                       |
-===============================================-

/=========================================================\
|          Calibration data common for all modes          |
|=========================================================|
|          CCK/OFDM gain delta:            01             |
|          CCK/OFDM power delta:           05             |
|          Scaled CCK delta:               05             |
|          2Ghz Antenna gain:              01             |
|          5Ghz Antenna gain:              04             |
|          Turbo 2W maximum dbm:           38             |
|          Target power start:             18d            |
|          EAR Start:                      1df            |
\=========================================================/

/=========================================================\
|          Calibration data for 802.11a operation         |
|=========================================================|
| I power:              0x08 | Q power:              0x1f |
| Use fixed bias:       0x00 | Max turbo power:      0x26 |
| Max XR power:         0x1e | Switch Settling Time: 0x2d |
| Tx/Rx attenuation:    0x0f | TX end to XLNA On:    0x02 |
| TX end to XPA Off:    0x00 | TX end to XPA On:     0x0e |
| 62db Threshold:       0x0f | XLNA gain:            0x0d |
| XPD:                  0x01 | XPD gain:             0x0a |
| I gain:               0x00 | Tx/Rx margin:         0x0b |
| False detect backoff: 0x00 | Noise Floor Threshold: -54 |
| ADC desired size:      -32 | PGA desired size:      -80 |
|=========================================================|
| Antenna control   0:  0x00 | Antenna control   1:  0x01 |
| Antenna control   2:  0x26 | Antenna control   3:  0x26 |
| Antenna control   4:  0x06 | Antenna control   5:  0x06 |
| Antenna control   6:  0x02 | Antenna control   7:  0x25 |
| Antenna control   8:  0x25 | Antenna control   9:  0x05 |
| Antenna control  10:  0x05 | Antenna control  11:  0x00 |
|=========================================================|
| Octave Band 0:           5 | db 0:                    5 |
| Octave Band 1:           5 | db 1:                    5 |
| Octave Band 2:           5 | db 2:                    5 |
| Octave Band 3:           5 | db 3:                    5 |
| Octave Band 4:           5 | db 4:                    5 |
\=========================================================/

/=========================================================\
|          Calibration data for 802.11b operation         |
|=========================================================|
| I power:              0x00 | Q power:              0x00 |
| Use fixed bias:       0x00 | Max turbo power:      0x00 |
| Max XR power:         0x00 | Switch Settling Time: 0x28 |
| Tx/Rx attenuation:    0x21 | TX end to XLNA On:    0x02 |
| TX end to XPA Off:    0x00 | TX end to XPA On:     0x07 |
| 62db Threshold:       0x1c | XLNA gain:            0x0d |
| XPD:                  0x01 | XPD gain:             0x0a |
| I gain:               0x00 | Tx/Rx margin:         0x0a |
| False detect backoff: 0x00 | Noise Floor Threshold:  -1 |
| ADC desired size:      -38 | PGA desired size:      -80 |
|=========================================================|
| Antenna control   0:  0x00 | Antenna control   1:  0x01 |
| Antenna control   2:  0x26 | Antenna control   3:  0x26 |
| Antenna control   4:  0x06 | Antenna control   5:  0x06 |
| Antenna control   6:  0x02 | Antenna control   7:  0x25 |
| Antenna control   8:  0x25 | Antenna control   9:  0x05 |
| Antenna control  10:  0x05 | Antenna control  11:  0x00 |
|=========================================================|
| Octave Band 0:           5 | db 0:                    5 |
| Octave Band 1:           5 | db 1:                    5 |
| Octave Band 2:           0 | db 2:                    0 |
| Octave Band 3:           0 | db 3:                    0 |
| Octave Band 4:           5 | db 4:                    5 |
\=========================================================/

/=========================================================\
|          Calibration data for 802.11g operation         |
|=========================================================|
| I power:              0x00 | Q power:              0x10 |
| Use fixed bias:       0x01 | Max turbo power:      0x26 |
| Max XR power:         0x26 | Switch Settling Time: 0x28 |
| Tx/Rx attenuation:    0x21 | TX end to XLNA On:    0x02 |
| TX end to XPA Off:    0x00 | TX end to XPA On:     0x0e |
| 62db Threshold:       0x1c | XLNA gain:            0x0d |
| XPD:                  0x01 | XPD gain:             0x0a |
| I gain:               0x00 | Tx/Rx margin:         0x0a |
| False detect backoff: 0x00 | Noise Floor Threshold:  -1 |
| ADC desired size:      -38 | PGA desired size:      -80 |
|=========================================================|
| Antenna control   0:  0x00 | Antenna control   1:  0x01 |
| Antenna control   2:  0x26 | Antenna control   3:  0x26 |
| Antenna control   4:  0x06 | Antenna control   5:  0x06 |
| Antenna control   6:  0x02 | Antenna control   7:  0x25 |
| Antenna control   8:  0x25 | Antenna control   9:  0x05 |
| Antenna control  10:  0x05 | Antenna control  11:  0x05 |
|=========================================================|
| Octave Band 0:           5 | db 0:                    5 |
| Octave Band 1:           5 | db 1:                    5 |
| Octave Band 2:           0 | db 2:                    0 |
| Octave Band 3:           0 | db 3:                    0 |
| Octave Band 4:           5 | db 4:                    2 |
\=========================================================/

GPIO registers: CR 00000000 DO 00000000 DI 00000012


b) From a b/g only card John gave me:

mathematix tools # ./a.out 0x38000000
 -==Device Information==-
MAC Version:  5212  (0x50)
MAC Revision: 5213A (0x59)
Device type:  1

-============== EEPROM Information =============-
| EEPROM Version:   4.6 | EEPROM Size:      16K |
| EEMAP:              1 | Reg. Domain:     0x00 |
-================= Capabilities ================-
| 802.11a Support:  no  | Turboa disabled:  no  |
| 802.11b Support:  yes | Turbog disabled:  no  |
| 802.11g Support:  yes | 2GHzXR disabled:  no  |
| RFKill  Support:  no  | 5GHzXR disabled:  no  |
| 32KHz   Crystal:  no  |                       |
-===============================================-

/=========================================================\
|          Calibration data common for all modes          |
|=========================================================|
|          CCK/OFDM gain delta:            03             |
|          CCK/OFDM power delta:           10             |
|          Scaled CCK delta:               15             |
|          2Ghz Antenna gain:              00             |
|          5Ghz Antenna gain:              00             |
|          Turbo 2W maximum dbm:           32             |
|          Target power start:             16e            |
|          EAR Start:                      1b8            |
\=========================================================/

/=========================================================\
|          Calibration data for 802.11b operation         |
|=========================================================|
| I power:              0x00 | Q power:              0x00 |
| Use fixed bias:       0x00 | Max turbo power:      0x00 |
| Max XR power:         0x00 | Switch Settling Time: 0x23 |
| Tx/Rx attenuation:    0x0c | TX end to XLNA On:    0x02 |
| TX end to XPA Off:    0x00 | TX end to XPA On:     0x07 |
| 62db Threshold:       0x1c | XLNA gain:            0x0d |
| XPD:                  0x01 | XPD gain:             0x01 |
| I gain:               0x0a | Tx/Rx margin:         0x17 |
| False detect backoff: 0x00 | Noise Floor Threshold:  -1 |
| ADC desired size:      -38 | PGA desired size:      -80 |
|=========================================================|
| Antenna control   0:  0x00 | Antenna control   1:  0x02 |
| Antenna control   2:  0x11 | Antenna control   3:  0x00 |
| Antenna control   4:  0x00 | Antenna control   5:  0x00 |
| Antenna control   6:  0x01 | Antenna control   7:  0x12 |
| Antenna control   8:  0x00 | Antenna control   9:  0x00 |
| Antenna control  10:  0x00 | Antenna control  11:  0x00 |
|=========================================================|
| Octave Band 0:           2 | db 0:                    2 |
| Octave Band 1:           2 | db 1:                    2 |
| Octave Band 2:           0 | db 2:                    0 |
| Octave Band 3:           0 | db 3:                    0 |
| Octave Band 4:           2 | db 4:                    2 |
\=========================================================/

/=========================================================\
|          Calibration data for 802.11g operation         |
|=========================================================|
| I power:              0x00 | Q power:              0x10 |
| Use fixed bias:       0x01 | Max turbo power:      0x20 |
| Max XR power:         0x26 | Switch Settling Time: 0x31 |
| Tx/Rx attenuation:    0x0c | TX end to XLNA On:    0x02 |
| TX end to XPA Off:    0x00 | TX end to XPA On:     0x0e |
| 62db Threshold:       0x1c | XLNA gain:            0x0d |
| XPD:                  0x01 | XPD gain:             0x01 |
| I gain:               0x0a | Tx/Rx margin:         0x17 |
| False detect backoff: 0x00 | Noise Floor Threshold:  -1 |
| ADC desired size:      -32 | PGA desired size:      -80 |
|=========================================================|
| Antenna control   0:  0x00 | Antenna control   1:  0x02 |
| Antenna control   2:  0x11 | Antenna control   3:  0x00 |
| Antenna control   4:  0x00 | Antenna control   5:  0x00 |
| Antenna control   6:  0x01 | Antenna control   7:  0x12 |
| Antenna control   8:  0x00 | Antenna control   9:  0x00 |
| Antenna control  10:  0x00 | Antenna control  11:  0x02 |
|=========================================================|
| Octave Band 0:           2 | db 0:                    2 |
| Octave Band 1:           2 | db 1:                    2 |
| Octave Band 2:           0 | db 2:                    0 |
| Octave Band 3:           0 | db 3:                    0 |
| Octave Band 4:           2 | db 4:                   28 |
\=========================================================/

GPIO registers: CR 00000000 DO 00000000 DI 00000000

Seems that Device type is something like this:

1 - cardbus
2 - ??
3 - mini-pci
4 - wmac (see links on previous mail)

-- 
GPG ID: 0xD21DB2DB
As you read this post global entropy rises. Have Fun ;-)
Nick
_______________________________________________
ath5k-devel mailing list
ath5k-devel@lists.ath5k.org
https://lists.ath5k.org/mailman/listinfo/ath5k-devel

Reply via email to