This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
en:users:drivers:ath10k:backports [2015/01/26 09:49] 127.0.0.1 external edit |
en:users:drivers:ath10k:backports [2017/04/03 06:28] (current) Janusz Dziedzic [Compiling custom ath10k backports] |
||
---|---|---|---|
Line 11: | Line 11: | ||
Here are simple instructions how to install ath10k from a backports release: | Here are simple instructions how to install ath10k from a backports release: | ||
- Download [[http://drvbp1.linux-foundation.org/~mcgrof/rel-html/backports/|latest backports release]] and unpack it. | - Download [[http://drvbp1.linux-foundation.org/~mcgrof/rel-html/backports/|latest backports release]] and unpack it. | ||
- | - Run defconfig for ath10k: | + | - Run defconfig for ath10k: <code>make defconfig-ath10k</code> |
- | - * <code>make defconfig-ath10k</code> | + | - Compile backports: <code>make</code> |
- | - Compile backports: | + | - Install backports: <code>sudo make install</code> |
- | - * <code>make</code> | + | - Reboot system and ath10k should load automatically. |
- | - Install backports: | + | - To check that you are really using ath10k from backports make sure that compat module is loaded and ath10k_pci module uses it: <code>$ lsmod | grep compat |
- | - * <code>sudo make install</code> | + | |
- | - Reboot system and ath10k should load automatically. | + | |
- | - To check that you are really using ath10k from backports make sure that compat module is loaded and ath10k_pci module uses it: | + | |
- | - * <code>$ lsmod | grep compat | + | |
compat 36104 6 iwldvm,iwlwifi,ath10k_pci,ath10k_core,mac80211,cfg80211</code> | compat 36104 6 iwldvm,iwlwifi,ath10k_pci,ath10k_core,mac80211,cfg80211</code> | ||
- | - To check version of backports project: | + | - To check version of backports project: <code>$ dmesg | grep backport |
- | - * <code>$ dmesg | grep backport | + | |
[ 23.210662] Loading modules backported from Linux version next-20140221-0-gfaa2e6f | [ 23.210662] Loading modules backported from Linux version next-20140221-0-gfaa2e6f | ||
- | [ 23.210665] Backport generated by backports.git backports-20140221-0-g8e94650</code>See [[https://backports.wiki.kernel.org/index.php/Documentation|backports documentation]] for more info. | + | [ 23.210665] Backport generated by backports.git backports-20140221-0-g8e94650</code> |
+ | |||
+ | See [[https://backports.wiki.kernel.org/index.php/Documentation|backports documentation]] for more info. | ||
Line 41: | Line 38: | ||
For developers wanting to make changes to ath10k it's possible to create backports releases on your own: | For developers wanting to make changes to ath10k it's possible to create backports releases on your own: | ||
- | - - Clone the backports tree: | + | - Clone the backports tree: <code>git clone git://git.kernel.org/pub/scm/linux/kernel/git/backports/backports.git</code> |
- | - - * <code>git clone git://git.kernel.org/pub/scm/linux/kernel/git/backports/backports.git</code> | + | - Clone the ath.git containing latest ath10k: <code>git clone git://git.kernel.org/pub/scm/linux/kernel/git/kvalo/ath.git |
- | - - Clone the ath.git containing latest ath10k: | + | </code> |
- | - - * <code>git clone https://github.com/kvalo/ath.git</code> | + | - Go to the backports tree: <code>cd backports</code> |
- | - - Go to the backports tree: | + | - create file copy-list.ath with this content: <code>COPYING |
- | - - * <code>cd backports</code> | + | |
- | - - create file copy-list.ath with this content: | + | |
- | - - * <code>COPYING | + | |
MAINTAINERS | MAINTAINERS | ||
+ | |||
+ | # This just defines some macros, simply take it | ||
+ | include/linux/bitfield.h | ||
+ | include/linux/average.h | ||
drivers/net/wireless/Kconfig | drivers/net/wireless/Kconfig | ||
Line 65: | Line 63: | ||
include/net/mac80211.h | include/net/mac80211.h | ||
include/net/regulatory.h | include/net/regulatory.h | ||
+ | include/net/codel.h | ||
+ | include/net/codel_impl.h | ||
+ | include/net/codel_qdisc.h | ||
+ | include/net/fq.h | ||
+ | include/net/fq_impl.h | ||
net/Makefile | net/Makefile | ||
Line 74: | Line 77: | ||
drivers/net/wireless/mac80211_hwsim.c | drivers/net/wireless/mac80211_hwsim.c | ||
drivers/net/wireless/mac80211_hwsim.h</code> | drivers/net/wireless/mac80211_hwsim.h</code> | ||
- | - - Create the backports output tree: | + | - Create the backports output tree: <code>./gentree.py --verbose --clean --git-revision master \ |
- | - - * <code>./gentree.py --verbose --clean --git-revision master \ | + | |
--copy-list copy-list.ath ../ath ../backports-output </code> | --copy-list copy-list.ath ../ath ../backports-output </code> | ||
- | - - Go to the backports output tree: | + | - Go to the backports output tree: <code>cd ../backports-output/</code> |
- | - - * <code>cd ../backports-output/</code> | + | - At the time of this writing mac80211 led support failed to compile, disable that: <code>sed -i s/CPTCFG_MAC80211_LEDS=y/CPTCFG_MAC80211_LEDS=n/ defconfigs/ath10k</code> |
- | - - At the time of this writing mac80211 led support failed to compile, disable that: | + | - Create .config: <code>make defconfig-ath10k</code> |
- | - - * <code>sed -i s/CPTCFG_MAC80211_LEDS=y/CPTCFG_MAC80211_LEDS=n/ defconfigs/ath10k</code> | + | - Compile modules: <code>make -j 10</code> |
- | - - Create .config: | + | |
- | - - * <code>make defconfig-ath10k</code> | + | To run ath10k: |
- | - - Compile modules: | + | |
- | - - * <code>make -j 10</code>To run ath10k: | + | - First check if there are drivers using cfg80211 running: <code>lsmod | grep cfg80211</code> |
- | - - - First check if there are drivers using cfg80211 running: | + | - Remove all such drivers, for example: * <code>sudo modprobe -r ath9k</code> |
- | - - - * <code>lsmod | grep cfg80211</code> | + | - unload mac80211 and cfg80211: <code>sudo modprobe -r mac80211 cfg80211</code> |
- | - - - Remove all such drivers, for example: | + | - Make sure that [[en/users/Drivers/ath10k/firmware|ath10k firmware]] is installed. |
- | - - - * <code>sudo modprobe -r ath9k</code> | + | - Now you can load the all backported modules: <code>sudo insmod compat/compat.ko |
- | - - - unload mac80211 and cfg80211: | + | |
- | - - - * <code>sudo modprobe -r mac80211 cfg80211</code> | + | |
- | - - - Make sure that [[en/users/Drivers/ath10k/firmware|ath10k firmware]] is installed. | + | |
- | - - - Now you can load the all backported modules: | + | |
- | - - - * <code>sudo insmod compat/compat.ko | + | |
sudo insmod net/wireless/cfg80211.ko | sudo insmod net/wireless/cfg80211.ko | ||
sudo insmod net/mac80211/mac80211.ko | sudo insmod net/mac80211/mac80211.ko | ||
Line 99: | Line 96: | ||
sudo insmod drivers/net/wireless/ath/ath10k/ath10k_core.ko | sudo insmod drivers/net/wireless/ath/ath10k/ath10k_core.ko | ||
sudo insmod drivers/net/wireless/ath/ath10k/ath10k_pci.ko</code> | sudo insmod drivers/net/wireless/ath/ath10k/ath10k_pci.ko</code> | ||
- | - - - Now ath10k is loaded and can be used normally: | + | - Now ath10k is loaded and can be used normally: <code>[ 2162.207812] ath10k_pci 0000:05:00.0: PCI INT A disabled |
- | - - - * <code>[ 2162.207812] ath10k_pci 0000:05:00.0: PCI INT A disabled | + | |
[ 2165.136293] ath10k_pci 0000:05:00.0: BAR 0: assigned [mem 0xf0000000-0xf01fffff 64bit] | [ 2165.136293] ath10k_pci 0000:05:00.0: BAR 0: assigned [mem 0xf0000000-0xf01fffff 64bit] | ||
[ 2165.136320] ath10k_pci 0000:05:00.0: BAR 0: set to [mem 0xf0000000-0xf01fffff 64bit] (PCI address [0xf0000000-0xf01fffff]) | [ 2165.136320] ath10k_pci 0000:05:00.0: BAR 0: set to [mem 0xf0000000-0xf01fffff 64bit] (PCI address [0xf0000000-0xf01fffff]) | ||
Line 118: | Line 114: | ||
[ 2166.362089] ath: Country alpha2 being used: US | [ 2166.362089] ath: Country alpha2 being used: US | ||
[ 2166.362091] ath: Regpair used: 0x3a | [ 2166.362091] ath: Regpair used: 0x3a | ||
- | [ 2166.364798] cfg80211: Calling CRDA for country: US</code>To unload ath10k and backports: | + | [ 2166.364798] cfg80211: Calling CRDA for country: US</code> |
+ | To unload ath10k and backports: | ||
<code>sudo rmmod drivers/net/wireless/ath/ath10k/ath10k_pci.ko | <code>sudo rmmod drivers/net/wireless/ath/ath10k/ath10k_pci.ko |