Ich habe mich mal hingesetzt um unter Linux einen weg zu finden den countrycode im eeprom zu ändern da ich kein Freund von Windows bin.
Da ich als router distri ipfire verwende habe ich es dort schon im Forum gepostet mache es aber hier nochmal publik.
Yeah ich habs geschaft!!!!!
Wichtiger Hinweis: WER IM EEPROM DEN COUNTRYCODE ÄNDERT KANN SEINE WLAN HARDWARE DABEI SCHROTTEN. DESWEITEREN BEWEGT MAN SICH RECHTLICH DABEI AUF DÜNNEN EIS - HANDELN AUF EIGENE GEFAHR!
Nach einer Stunde intensiver Recherche mit Hilfe von google und diversen man pages hab ich es endlich geschaft den regdomain change im eeprom auch unter Linux zu vollziehen (diesmal alles selber "hart" erarbeitet). Jetzt brauch ich kein scheiss rcu.exe für windows mehr.
Also genug herumgepost das Wissen muss unters Volk.
Ich habe erst mit rcu.exe den countrycode geändert (ein zweites mal). Diesmal habe ich einen countrycode gewählt der mir weniger Kanäle zur Verfügung stellt damit man danach besser die Auswirkungen sieht.
hier mal das Ergebnis:
Wie man sieht stehen lediglich 24 Kanäle zur Verfügung - ziemlich mager. Um jetzt den Countrycode zu ändern muss man auf den EEPROM der wlan Hardware zugreifen. Hierzu benötigt man die Speicheradresse.Code:[root@ipfire-linux ~]# iwlist blue0 frequency blue0 24 channels in total; available frequencies : Channel 01 : 2.412 GHz Channel 02 : 2.417 GHz Channel 03 : 2.422 GHz Channel 04 : 2.427 GHz Channel 05 : 2.432 GHz Channel 06 : 2.437 GHz Channel 07 : 2.442 GHz Channel 08 : 2.447 GHz Channel 09 : 2.452 GHz Channel 10 : 2.457 GHz Channel 11 : 2.462 GHz Channel 36 : 5.18 GHz Channel 40 : 5.2 GHz Channel 44 : 5.22 GHz Channel 48 : 5.24 GHz Channel 52 : 5.26 GHz Channel 56 : 5.28 GHz Channel 60 : 5.3 GHz Channel 64 : 5.32 GHz
Mit dem Befehl:
werden sämtliche pci Scnittstellen aufgelistet.Code:root@ipfire-linux ~]# lspci -v
Man bekommt dann eine Ausgabe die z.B. so aussieht:
Wie man sieht wird meine Atheros Karte aufgelistet und man erhält die Speicheradresse: (Memory at e00c0000)Code:[root@ipfire-linux ~]# lspci -v 00:01.0 Host bridge: Advanced Micro Devices [AMD] CS5536 [Geode companion] Host Bridge (re) Subsystem: Advanced Micro Devices [AMD] CS5536 [Geode companion] Host Bridge Flags: bus master, 66MHz, medium devsel, latency 248 I/O ports at ac1c [size=4] 00:01.2 Entertainment encryption device: Advanced Micro Devices [AMD] Geode LX AES Securitk Subsystem: Advanced Micro Devices [AMD] Geode LX AES Security Block Flags: bus master, 66MHz, medium devsel, latency 0, IRQ 9 Memory at efff4000 (32-bit, non-prefetchable) [size=16K] 00:09.0 Ethernet controller: VIA Technologies, Inc. VT6105M [Rhine-III] (rev 96) Subsystem: VIA Technologies, Inc. Unknown device 0106 Flags: bus master, stepping, medium devsel, latency 64, IRQ 10 I/O ports at 1000 [size=256] Memory at e0000000 (32-bit, non-prefetchable) [size=256] Capabilities: [40] Power Management version 2 00:0a.0 Ethernet controller: VIA Technologies, Inc. VT6105M [Rhine-III] (rev 96) Subsystem: VIA Technologies, Inc. Unknown device 0106 Flags: bus master, stepping, medium devsel, latency 64, IRQ 11 I/O ports at 1400 [size=256] Memory at e0040000 (32-bit, non-prefetchable) [size=256] Capabilities: [40] Power Management version 2 00:0b.0 Ethernet controller: VIA Technologies, Inc. VT6105M [Rhine-III] (rev 96) Subsystem: VIA Technologies, Inc. Unknown device 0106 Flags: bus master, stepping, medium devsel, latency 64, IRQ 15 I/O ports at 1800 [size=256] Memory at e0080000 (32-bit, non-prefetchable) [size=256] Capabilities: [40] Power Management version 2 00:0c.0 Ethernet controller: Atheros Communications Inc. AR5413 802.11abg NIC (rev 01) Subsystem: Atheros Communications Inc. EnGenius EMP-8602 (400mw) or Compex WLM54AG) Flags: bus master, medium devsel, latency 168, IRQ 9 Memory at e00c0000 (32-bit, non-prefetchable) [size=64K] Capabilities: [44] Power Management version 2 00:0f.0 ISA bridge: Advanced Micro Devices [AMD] CS5536 [Geode companion] ISA (rev 03) Subsystem: Advanced Micro Devices [AMD] CS5536 [Geode companion] ISA Flags: 66MHz, medium devsel I/O ports at 6000 [size=8] I/O ports at 6100 [size=256] I/O ports at 6200 [size=64] I/O ports at <unassigned> I/O ports at 9d00 [size=128] I/O ports at 9c00 [size=64] 00:0f.2 IDE interface: Advanced Micro Devices [AMD] CS5536 [Geode companion] IDE (rev 01) ) Subsystem: Advanced Micro Devices [AMD] CS5536 [Geode companion] IDE Flags: bus master, 66MHz, medium devsel, latency 248 [virtual] Memory at 000001f0 (32-bit, non-prefetchable) [disabled] [size=8] [virtual] Memory at 000003f0 (type 3, non-prefetchable) [disabled] [size=1] [virtual] Memory at 00000170 (32-bit, non-prefetchable) [disabled] [size=8] [virtual] Memory at 00000370 (type 3, non-prefetchable) [disabled] [size=1] I/O ports at ff00 [size=16] 00:0f.4 USB Controller: Advanced Micro Devices [AMD] CS5536 [Geode companion] OHC (rev 02)) Subsystem: Advanced Micro Devices [AMD] CS5536 [Geode companion] OHC Flags: bus master, 66MHz, medium devsel, latency 0, IRQ 12 Memory at efffe000 (32-bit, non-prefetchable) [size=4K] Capabilities: [40] Power Management version 2 00:0f.5 USB Controller: Advanced Micro Devices [AMD] CS5536 [Geode companion] EHC (rev 02)) Subsystem: Advanced Micro Devices [AMD] CS5536 [Geode companion] EHC Flags: bus master, 66MHz, medium devsel, latency 0, IRQ 12 Memory at efffd000 (32-bit, non-prefetchable) [size=4K] Capabilities: [40] Power Management version 2
Für Atheros Karten gibt es jetzt ein nettes tool namens ath_info. Damit kann man den eeprom auslesen, verändern etc.
Bevor man anfängt im eeprom herumzuschreiben sollte man erst versuchen ihn auszulesen - sollten hier schon Probleme auftreten sollte man es lieber gleich sein lassen.
Das ganze sieht dann so aus. Damit das ganze klappt muss vor die Speicheradresse noch "0x" davorgesetzt werden. Der Befehl sollte dann wichtige eeprom informationen anzeigen (es handelt sich hier nicht um einen kompletten dump) .Code:[root@ipfire-linux ~]# ath_info 0xe00c0000
Bei mir sah das so in etwa aus:
Aufjedenfall ganz interessant wenn man sich das mal so durchliest.Code:[root@ipfire-linux ~]# ath_info 0xe00c0000 sleep_ctl reg 00000000 reset_ctl reg 00000000 -==Device Information==- MAC Revision: 5414 (0xa5) Device type: 3 5GHz PHY Revision: 5413 (0x63) 2GHz PHY Revision: 5413 (0x63) /============== EEPROM Information =============\ | EEPROM Version: 5.3 | EEPROM Size: 16 kbit | | EEMAP: 2 | Reg. Domain: 0x00 | |================= Capabilities ================| | 802.11a Support: yes | Turbo-A disabled: no | | 802.11b Support: yes | Turbo-G disabled: no | | 802.11g Support: yes | 2GHz XR disabled: no | | RFKill Support: no | 5GHz XR disabled: no | | 32kHz Crystal: no | | \===============================================/ /=========================================================\ | Calibration data common for all modes | |=========================================================| | CCK/OFDM gain delta: 1 | | CCK/OFDM power delta: 5 | | Scaled CCK delta: 5 | | 2GHz Antenna gain: 1 | | 5GHz Antenna gain: 4 | | Turbo 2W maximum dBm: 38 | | Target power start: 0x1a5 | | EAR Start: 0x21f | \=========================================================/ /=========================================================\ | Calibration data for 802.11a operation | |=========================================================| | I power: 0x08 | Q power: 0x1f | | Use fixed bias: 0x00 | Max turbo power: 0x26 | | Max XR power: 0x28 | 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: 7 | db 0: 7 | | Octave Band 1: 7 | db 1: 7 | | Octave Band 2: 7 | db 2: 7 | | Octave Band 3: 7 | db 3: 7 | \=========================================================/ /==================== Turbo mode infos ===================\ | Switch Settling time: 0x5a | Tx/Rx margin: 0x0b | | Tx/Rx attenuation: 0x0f | ADC desired size: -32 | | PGA desired size: -80 | | \=========================================================/ /============== Per rate power calibration ===========\ | Freq | 6-24Mbit/s | 36Mbit/s | 48Mbit/s | 54Mbit/s | |======|============|==========|===========|==========| | 4900 | 20.00 | 18.00 | 16.00 | 14.00 | |======|============|==========|===========|==========| | 5825 | 20.00 | 18.00 | 16.00 | 14.00 | \=====================================================/ .........
So will man jetzt die regdomain ändern muss man folgenden Befehl eingeben:
ath_info -w 0xe00c0000 regdomain 0x60
-WICHTIG-
0x60 steht hier für die regdomain World hier ist natürlich die entsprechende regdomain für das Land in dem man sich befindet einzugeben


LinkBack URL
About LinkBacks
Mit Zitat antworten
