diff options
author | Jay <ld.jay@protonmail.com> | 2020-04-24 07:56:39 +0700 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2020-04-24 07:56:39 +0700 |
commit | 8748d2ad3c8243cd992ca11b76c8739eb4907047 (patch) | |
tree | 58fe60dbcdb87bdedacb39aca05f805a1b6577ac /network/RTL8192 | |
parent | 7a4a671f218ce94def955827ea1b7fe6303996f5 (diff) |
network/RTL8192: Added (Realtek RTL8192 chip Driver).
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'network/RTL8192')
-rw-r--r-- | network/RTL8192/README | 25 | ||||
-rw-r--r-- | network/RTL8192/RTL8192.SlackBuild | 101 | ||||
-rw-r--r-- | network/RTL8192/RTL8192.info | 10 | ||||
-rw-r--r-- | network/RTL8192/slack-desc | 19 |
4 files changed, 155 insertions, 0 deletions
diff --git a/network/RTL8192/README b/network/RTL8192/README new file mode 100644 index 000000000000..30717622af7c --- /dev/null +++ b/network/RTL8192/README @@ -0,0 +1,25 @@ +The RTL8192 package includes the kernel module '8192eu', +which contains a TP-Link-provided kernel driver known to +support the Realtek 8192 chipset, and possibly others. + +Slackware kernel-source package needs to be installed for build to work, +and module will need to be re-built after a kernel upgrade. + +To build for a kernel other than the one currently running, +pass KVER variable when invoking SlackBuild script. E.g., + + KVER=4.4.14 ./RTL8192.SlackBuild + +This driver is advertised to work with the following TP-Link USB wifi adapters: +TL-WN821N V6/TL-WN822N V5/TL-WN823N V3. +The driver has also been tested (both i386 & x86_64) to work for the TL-WN823N V2. +Other brands of USB devices utilizing the Realtek 8192 chip may work, as well. + +From the website: + + Published Date: 2018-05-08 + Operating System: Linux (kernel 2.6.24 ~ 4.9.60) + + For TL-WN821N V6/TL-WN822N V5/TL-WN823N V3. + This is a beta version; unknown bugs may still exist. + The formal version is coming soon. diff --git a/network/RTL8192/RTL8192.SlackBuild b/network/RTL8192/RTL8192.SlackBuild new file mode 100644 index 000000000000..f54f57b1c8e6 --- /dev/null +++ b/network/RTL8192/RTL8192.SlackBuild @@ -0,0 +1,101 @@ +#!/bin/sh +# +# Slackware build script for RTL8192 wifi USB driver. +# +# Copyright 2020 by Jay, Seattle, WA. +# All rights reserved. +# +# Redistribution and use of this script, with or without modification, is +# permitted provided that the following conditions are met: +# +# 1. Redistributions of this script must retain the above copyright +# notice, this list of conditions, and the following disclaimer. +# +# THIS SOFTWARE IS PROVIDED BY THE AUTHOR "AS IS" AND ANY EXPRESS OR IMPLIED +# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF +# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO +# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, +# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; +# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, +# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR +# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF +# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +PRGNAM=RTL8192 +VERSION=${VERSION:-5.2.19.1} +BUILD=${BUILD:-25633} +TAG=${TAG:-_SBo} + +if [ -z "$ARCH" ]; then + case "$( uname -m )" in + i?86) ARCH=i386 ;; + arm64*) ARCH=arm64 ;; + arm*) ARCH=arm ;; + *) ARCH=$( uname -m ) ;; + esac +else + # 32-bit PC build fails if ARCH != i386 + case "$ARCH" in + i?86) export ARCH=i386 ;; + esac +fi + +# Caveat emptor +case "$ARCH" in + i386) ;; + x86_64) ;; + *) echo -e "\nBuild for $ARCH is untested!!" + echo -e "Press Ctrl-C within ten seconds to abort," + echo -e "or press ENTER to continue at your own risk.\n" + read -t 10 PLACEHOLDER ;; +esac + +CWD=$(pwd) +TMP=${TMP:-/tmp/SBo} +PKG=$TMP/package-$PRGNAM +OUTPUT=${OUTPUT:-/tmp} +KVER=${KVER:-$( uname -r )} + +set -e + +rm -rf $PKG +rm -rf $TMP/$PRGNAM +mkdir -p $PKG $OUTPUT $TMP/$PRGNAM +# Nested zip files +unzip $CWD/TP-Link_Driver_Linux_series8_beta.zip -d $TMP/$PRGNAM +cd $TMP/$PRGNAM +unzip rtl8192EU_WiFi_linux_v5.2.19.1_25633.20171222_COEX20171113-0047.zip +cd rtl8192EU_WiFi_linux_v5.2.19.1_25633.20171222_COEX20171113-0047 + +chown -R root:root . +find -L . \ + \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \ + -o -perm 511 \) -exec chmod 755 {} \; -o \ + \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ + -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; + +mkdir -p $PKG/lib/modules/$KVER/kernel/drivers/net/wireless/ +sed -i 's/install -p -m 644 $(MODULE_NAME).ko $(MODDESTDIR)/install -p -m 644 $(MODULE_NAME).ko $(DESTDIR)$(MODDESTDIR)/' Makefile +sed -i "s/\/sbin\/depmod -a \${KVER}//" Makefile +sed -i "s/KVER.*:=/KVER ?=/" Makefile + +make +make install DESTDIR=$PKG + +mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION +cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild +cat $TMP/$PRGNAM/readme_beta.txt > $PKG/usr/doc/$PRGNAM-$VERSION/readme_beta.txt +cp $TMP/$PRGNAM/*.pdf $PKG/usr/doc/$PRGNAM-$VERSION/ + +mkdir -p $PKG/install +cat $CWD/slack-desc > $PKG/install/slack-desc +cat << EOF > $PKG/install/doinst.sh +# A good idea whenever kernel modules are added or changed: +if [ -x sbin/depmod ]; then + chroot . /sbin/depmod -a 1> /dev/null 2> /dev/null +fi +EOF + +cd $PKG +/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$KVER-$BUILD$TAG.${PKGTYPE:-tgz} diff --git a/network/RTL8192/RTL8192.info b/network/RTL8192/RTL8192.info new file mode 100644 index 000000000000..ba21525671cf --- /dev/null +++ b/network/RTL8192/RTL8192.info @@ -0,0 +1,10 @@ +PRGNAM="RTL8192" +VERSION="5.2.19.1" +HOMEPAGE="https://www.tp-link.com/ca/support/download/tl-wn823n/" +DOWNLOAD="https://static.tp-link.com/2018/201805/20180514/TP-Link_Driver_Linux_series8_beta.zip" +MD5SUM="e2c4dbb26f2a4d3eaa6f52328b6e6010" +DOWNLOAD_x86_64="" +MD5SUM_x86_64="" +REQUIRES="" +MAINTAINER="Jay" +EMAIL="ld.jay@protonmail.com"
\ No newline at end of file diff --git a/network/RTL8192/slack-desc b/network/RTL8192/slack-desc new file mode 100644 index 000000000000..f38b5d162a01 --- /dev/null +++ b/network/RTL8192/slack-desc @@ -0,0 +1,19 @@ +# HOW TO EDIT THIS FILE: +# The "handy ruler" below makes it easier to edit a package description. +# Line up the first '|' above the ':' following the base package name, and +# the '|' on the right side marks the last column you can put a character in. +# You must make exactly 11 lines for the formatting to be correct. It's also +# customary to leave one space after the ':' except on otherwise blank lines. + + |-----handy-ruler------------------------------------------------------| +RTL8192: RTL8192 (Realtek RTL8192 chip Driver) +RTL8192: +RTL8192: Specifically for TP-Link adapters: +RTL8192: TL-WN821N V6/TL-WN822N V5/TL-WN823N V3. +RTL8192: Also verified working on TL-WN823N V2. +RTL8192: +RTL8192: May also work on other brands using the RTL8192. +RTL8192: +RTL8192: For more information, see: +RTL8192: https://www.tp-link.com/ca/support/download/tl-wn823n/ +RTL8192: |