pl:install_drivers
no way to compare when less than two revisions
Różnice
Różnice między wybraną wersją a wersją aktualną.
— | pl:install_drivers [2009/09/03 13:42] (aktualna) – translated from english, 30% complete xavery | ||
---|---|---|---|
Linia 1: | Linia 1: | ||
+ | ====== Instalacja sterowników ====== | ||
+ | ===== Linux ===== | ||
+ | Na razie, aireplay-ng wspiera packet injection tylko na chipsetach Prism2, PrismGT (FullMAC), Atheros, Broadcom (jeśli używasz sterownika b43), RTL8180, RTL8187, Ralink, ACX1xx oraz ZyDAS. Chipsety **Hermes, Aironet oraz Marvell** nie są wspierane z powodu ograniczeń w firmware bądź samych sterownikach. | ||
+ | \\ | ||
+ | |||
+ | Istnieją dwie " | ||
+ | |||
+ | Prawie wszystkie sterowniki, które nie są oparte na mac80211 wymagają załatania, by mogły obsługiwać packet injection w **trybie monitorowania**. Z drugiej strony, sterowniki oparte na mac80211 potrzebują tylko załatania samego jądra mac80211 w celu obsługi ataku fragmentacji. | ||
+ | |||
+ | Pamiętaj, że nie możesz używać sterowników opartych na ieee80211 i mac80211 jednocześnie. | ||
+ | |||
+ | Miej także na uwadze, że sterowniki napisane pod mac80211 są ciągle stosunkowo niedojrzałe w porównaniu z tymi napisanymi pod ieee80211. | ||
+ | \\ | ||
+ | |||
+ | Do kompilacji sterowników potrzebować będziesz następujących narzędzi : | ||
+ | * Nagłówków dla aktualnie zainstalowanego jądra - na openSUSE, potrzebne jest także posiadanie całego źródła jądra. | ||
+ | * **gcc** w wersji takiej samej, jaka była użyta do kompilacji jądra. Upewnij się chociaż, że pierwsze dwie cyfry w wersji kompilatora są takie same (tj. możesz użyć wersji **3.4**.6 do kompilacji sterowników jeśli jądro zostało skompilowane przez wersję **3.4**.2). Ignorowanie tej zasady doprowadzi do błędów **Invalid module format** podczas ich ładowania. | ||
+ | * Zawsze używaj najnowszych łatek, które możesz znaleźć [[http:// | ||
+ | \\ | ||
+ | Uwaga: jeśli używasz sterowników dostarczonych przez Twoją dystrybucję, | ||
+ | \\ | ||
+ | Ogólne informacje odnośnie łatania jak i propozycje rozwiązywania problemów znajdują się w [[pl: | ||
+ | |||
+ | Poniżej znajdują się szczegółowe informacje na temat konkretnych sterowników opartych na ieee80211 : | ||
+ | |||
+ | * [[pl:acx]] | ||
+ | * [[pl: | ||
+ | * [[pl: | ||
+ | * [[pl: | ||
+ | * [[pl: | ||
+ | * [[pl: | ||
+ | * [[pl: | ||
+ | * [[pl: | ||
+ | * [[pl: | ||
+ | * [[pl: | ||
+ | * [[pl: | ||
+ | * [[pl: | ||
+ | * [[pl: | ||
+ | * [[pl: | ||
+ | * [[pl:rt61]] | ||
+ | * [[pl:rt73]] | ||
+ | * [[pl: | ||
+ | * [[pl: | ||
+ | |||
+ | \\ | ||
+ | Aby móc wspierać atak fragmentacji, | ||
+ | |||
+ | * [[pl: | ||
+ | |||
+ | Powyższy artykuł zawiera też informacje na temat sterowników, | ||
+ | |||
+ | Następujące sterowniki mac80211 wymagają dodatkowych łatek w celu umożliwienia pracy w trybie monitorowania bądź przyspieszenia jego działania. (działanie każdej z łatek wyjaśnione jest w nawiasach) | ||
+ | |||
+ | * [[pl: | ||
+ | * [[pl: | ||
+ | * [[pl: | ||
+ | |||
+ | \\ | ||
+ | **Uwaga** : W przypadku innych sterowników po prostu postępuj zgodnie z zasadami Twojej dystrybucji. | ||
+ | |||
+ | ===== Windows ===== | ||
+ | |||
+ | Na systemach Windows aktualnie wspierane jest tylko monitorowanie. | ||
+ | \\ | ||
+ | Mówiąc krócej, wszystkie karty z chipsetem Atheros powinny być obsługiwane. Urządzenia na USB bądź Centrino na pewno nie są. \\ | ||
+ | Na stronie [[pl: | ||
+ | W wersji 1.0, obsługiwany będzie [[pl: | ||
+ | \\ | ||
+ | \\ | ||
+ | * [[pl: | ||
+ | \\ | ||
+ | |||
+ | |||
+ | ===== Rozwiązywanie problemów ===== | ||
+ | |||
+ | Informacje dotyczące rozwiązywania problemów znajdujące się tutaj dotyczą tylko Linuksa. Bardziej konkretne informacje mogą się znajdować na stronie konkretnych sterowników. | ||
+ | |||
+ | Zanim zabierzesz się za rozwiązywanie problemów, musisz odrobić zadanie domowe. | ||
+ | |||
+ | ==== Weryfikacja sprzętowa ==== | ||
+ | |||
+ | Pierwszym koniecznym krokiem jest określenie, | ||
+ | |||
+ | * komenda " | ||
+ | * jeśli Twoja karta używa magistrali ISA, to z reguły nie będziesz w stanie się niczego dowiedzieć | ||
+ | * jeśli Twoja karta używa magistrali PCI, będziesz musiał użyć komendy "lspci -nn" aby uzyskać ciągi identyfikujące urządzenia. W paru przypadkach, | ||
+ | * jeśli Twoja karta używa interfejsu USB, analogicznym narzędziem do powyższego jest " | ||
+ | * jeśli Twoja karta używa interfejsu Cardbus (32-bitowy PCMCIA), a Ty masz zainstalowany stosunkowo nowy kernel (2.4.X lub nowszy) z obsługą podsystemu PCMCIA, możesz użyć komendy "lspci -nn" w celu wyświetlenia ciągów identyfikujących. Jeśli jednak używasz starszego kernela, musisz użyć komendy " | ||
+ | * jeśli Twoja karta jest prawdziwą 16-bitową PCMCIA, a Ty używasz kernela nowszego niż 2.6.14, w celu wyświetlenia ciągów identyfikujących możesz użyć komendy " | ||
+ | |||
+ | Needless to say, if your wireless device is not detected by your system, you will have to investigate and correct the problem. | ||
+ | |||
+ | ==== Modprobe ==== | ||
+ | |||
+ | Start by running " | ||
+ | |||
+ | |||
+ | |||
+ | |||
+ | ==== View iwconfig output ==== | ||
+ | Run the " | ||
+ | |||
+ | A common problem is that your system has both ieee80211 and mac80211 versions of the drivers. | ||
+ | |||
+ | |||
+ | ==== View dmesg output ==== | ||
+ | |||
+ | Run the " | ||
+ | |||
+ | See the next entry of a problem commonly seen: " | ||
+ | |||
+ | ==== " | ||
+ | |||
+ | When loading the driver kernel module you get a " | ||
+ | |||
+ | First, determine which kernel you are running with "uname -r" | ||
+ | |||
+ | If you use the RPM package manager then "rpm -qa | grep kernel" | ||
+ | |||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | |||
+ | In the example above, there are kernel headers and a kernel development package that match the kernel we are running. | ||
+ | |||
+ | yum -y install kernel-headers | ||
+ | yum -y install kernel-devel | ||
+ | |||
+ | Lets assume that "uname -r" returned " | ||
+ | |||
+ | rpm -e 2.6.24.4-64.fc8 | ||
+ | rpm -e kernel-2.6.24.1-15.fc8 | ||
+ | rpm -e kernel-devel-2.6.24.1-15.fc8 | ||
+ | |||
+ | Also change to "/ | ||
+ | |||
+ | Once you are finished, you can do "" | ||
+ | |||
+ | |||
+ | ==== View lsmod output ==== | ||
+ | |||
+ | Run the " | ||
+ | |||
+ | Sometimes other modules conflict with the one you are trying to run. See blacklisting below. | ||
+ | |||
+ | |||
+ | ==== View modinfo output ==== | ||
+ | |||
+ | Run " | ||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | ==== Blacklisting ==== | ||
+ | |||
+ | A common problem on newer kernels is that the new mac80211 version of the driver gets loaded instead of the older legacy driver, or vice versa. | ||
+ | |||
+ | Specifically for madwifi-ng, do a locate or find for ath5k.ko. | ||
+ | Same for the other way around: if you want to load ath5k, but madwifi-ng gets loaded instead, add " | ||
+ | |||
+ | |||
+ | |||
+ | ==== Reload Driver ==== | ||
+ | Although it is not very " | ||
+ | |||
+ | For b43 and b43legacy, it might also be necessary to reload the underlying SSB module. Similarly, rt2x00 and p54 might need reloading of the common modules (p54common, rt2x00lib, rt2x00usb, rt2x00pci). Sometimes (especially with mac80211 drivers), reloading the stack (for example, modules " | ||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | ==== mac80211 versus ieee80211 stacks ==== | ||
+ | There is a new wireless stack starting in the mainline kernel since 2.6.22 called mac80211. | ||
+ | |||
+ | The legacy drivers use the ieee80211 or net80211 stacks. | ||
+ | |||
+ | So with this as background, here is troubleshooting information for problems that arise when both stacks are installed on a system. | ||
+ | |||
+ | * The mac80211 driver for your wireless device is not stable or the monitor mode / injection functionality is not working well. | ||
+ | * You are using a mac80211 driver, but your aircrack-ng version is too old to support Radiotap. | ||
+ | * You are using the legacy driver for your device and want to switch to the mac80211 driver. | ||
+ | * The old and new modules conflict. | ||
+ | |||
+ | You can tell if you are running the new mac80211 stack based on the kernel version or you likely get an error message similar to: | ||
+ | |||
+ | | ||
+ | |||
+ | | ||
+ | |||
+ | | ||
+ | mon0: unknown interface: No matching device found | ||
+ | | ||
+ | |||
+ | or in aircrack-ng v1.0-rc1 and newer: | ||
+ | |||
+ | | ||
+ | |||
+ | | ||
+ | |||
+ | | ||
+ | |||
+ | | ||
+ | | ||
+ | |||
+ | Notice the reference to " | ||
+ | |||
+ | | ||
+ | |||
+ | | ||
+ | |||
+ | | ||
+ | | ||
+ | |||
+ | Another indicator of the mac80211 driver being loaded is if the output from iwconfig includes: | ||
+ | |||
+ | | ||
+ | |||
+ | Notice the reference to " | ||
+ | |||
+ | Perhaps the most consistent way of determining the stack type of your drivers is running the command "lsmod | grep mac80211." | ||
+ | |||
+ | | ||
+ | |||
+ | then the modules at the end of the line are mac80211 drivers. | ||
+ | |||
+ | If the new mac80211 driver is not working to your satisfaction then you will have to blacklist it and then use the ieee80211 legacy version. | ||
+ | |||
+ | It is also possible that the new driver is not working because your version of aircrack-ng is too old. Updating to at least 1.0-rc1 often fixes such problems. | ||
+ | |||
+ | If you are using a legacy driver, and want to switch to the mac80211 driver, then you need to blacklist the old driver, and enable the new one. If the names of the old and new in-kernel drivers match (for example, with zd1211rw, which is softmac in 2.6.24 and before, but mac80211 in 2.6.25), then you need to upgrade your wireless subsystem (either by updating the kernel or using compat-wireless-2.6). | ||
+ | |||
+ | If you have conflicts due to running both drivers, then decide which one you want and blacklist the other one. | ||
+ | |||
+ | |||
+ | ==== dmesg error " | ||
+ | |||
+ | When using an USB device and you get a message similar to this from dmesg: | ||
+ | |||
+ | rt73: Firmware loading error | ||
+ | rt73: Failed to load Firmware. | ||
+ | rt73: probe of 1-7:1.0 failed with error -71 | ||
+ | |||
+ | Note: Although the example shows RT73, this applies to any USB driver. | ||
+ | |||
+ | Here are a few things to check: | ||
+ | |||
+ | * Ensure you have the firmware installed on your system and in the correct location. | ||
+ | * You can try downloading a fresh copy of the driver and installing it again. | ||
+ | * Try connecting your USB device directly to your computer without a cable. | ||
+ | * If you have multiple USB devices connected to your computer then remove them all except the wireless device and retry. | ||
+ | |||
+ | |||
+ | ==== Laptop Specific ==== | ||
+ | |||
+ | Some laptops have a bios setting and/or a physical switch to enable/ | ||
+ | |||
pl/install_drivers.txt · ostatnio zmienione: 2009/09/03 13:42 przez xavery