hmac patch

This commit is contained in:
Sven Zehl 2016-09-26 15:34:32 +02:00
parent d5bb70ca65
commit 946c48f761
3 changed files with 1083 additions and 2 deletions

View File

@ -1,2 +1,30 @@
# ath9k-hmac
ATH9K HMAC
# ATH9K HTDMA Hybrid TDMA/CSMA MAC #
## HOW TO INSTALL ATH9K HTDMA ##
### Download the appropriate backports version for your kernel ###
```
uname -r
```
Go to https://www.kernel.org/pub/linux/kernel/projects/backports/stable
and look for the backports version that fits for your kernel, download and unpack it.
```
e.g.
cd /tmp/
mkdir backports
cd backports
wget https://www.kernel.org/pub/linux/kernel/projects/backports/stable/v3.12.8/backports-3.12.8-1.tar.gz
tar -xzf backports-3.12.8-1.tar.gz
```
Download ATH9k-HMAC Patch for your kernel (hopefully we have the correct one for you, otherwise you have to adjust the patch on your own or switch to another kernel), apply patch to your backports source.
```
cd /tmp/
git clone XXXXX
cd backports/backports-3.12.8-1/
patch -t -p3 < ../../XXXXX/patch-hmac.patch
```
Build and install the ATH9k-HMAC driver.
```
cd /tmp/backports/backports-3.12.8-1/
make defconfig-ath9k
make -j4
```

52
install_3.12_kernel.sh Executable file
View File

@ -0,0 +1,52 @@
echo " " &&
echo "This script will attempt to install Linux Kernel 3.12 on this machine." &&
echo "Typically, your current version will be kept, and you will be able to ustilise it again later if Kernel 3.12 does not work." &&
echo " " &&
read -p "Press Enter to continue, or abort by pressing CTRL+C" nothing &&
echo " " &&
echo "Downloading Kernel 3.12 Packages" &&
echo "3 Files, 56 MB to Download" &&
echo " " &&
echo "Creating Kernel Directory in Home folder" &&
echo " " &&
mkdir -p $HOME/howtoubuntu-kernel-3-12 &&
cd $HOME/howtoubuntu-kernel-3-12 &&
echo " " &&
echo "Downloading File 1 of 3, 12 MB" &&
echo " " &&
wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v3.12.8-trusty/linux-headers-3.12.8-031208_3.12.8-031208.201401151952_all.deb
echo " " &&
if [ $(getconf LONG_BIT) = "64" ]
then
echo "64bit Detected" &&
echo " " &&
echo "Downloading File 2 of 3, 1 MB" &&
echo " " &&
wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v3.12.8-trusty/linux-headers-3.12.8-031208-generic_3.12.8-031208.201401151952_amd64.deb
echo " " &&
echo "Downloading File 3 of 3, 46 MB" &&
wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v3.12.8-trusty/linux-image-3.12.8-031208-generic_3.12.8-031208.201401151952_amd64.deb
else
echo "32bit Detected" &&
echo " " &&
echo "Downloading File 2 of 3, 1 MB" &&
echo " " &&
wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v3.12.8-trusty/linux-headers-3.12.8-031208-generic_3.12.8-031208.201401151952_i386.deb
echo " " &&
echo "Downloading File 3 of 3, 45 MB" &&
echo " " &&
http://kernel.ubuntu.com/~kernel-ppa/mainline/v3.12.8-trusty/linux-image-3.12.8-031208-generic_3.12.8-031208.201401151952_i386.deb
fi &&
echo " " &&
echo "Installing Kernel" &&
echo "This step will require you password." &&
echo "This is the last step you can safely cancel at." &&
echo "Use Ctrl+C to cancel." &&
echo " " &&
sudo dpkg -i *.deb &&
echo " " &&
echo "Installation Complete" &&
echo " " &&
read -p "Press Enter to Delete the Downloads, or CTRL+C to keep them." nothing &&
echo " " &&
sudo rm -rf $HOME/howtoubuntu-kernel-3-12

File diff suppressed because it is too large Load Diff