LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 04-17-2014, 04:35 AM   #1
Sefid par
Member
 
Registered: Jul 2013
Location: Iran, Shiraz
Distribution: Ubuntu
Posts: 130

Rep: Reputation: 26
Question installing RT3290 wireless driver


My friend's RT3290 wireless does not work. There is no wireless interface in ifconfig.
wireless:
Code:
07:00.0 Network controller: Ralink corp. RT3290 Wireless 802.11n 1T/1R PCIe
How can I install it?
My friend could enable it one time without any installation. But now it does not work again!

I followed the instructions in askubuntu too: http://askubuntu.com/a/253660
And faced some errors. Of course somewhere said that the installation is different in kernel +3.2.

Errors while compilation:
Code:
cc1: some warnings being treated as errors
make[2]: *** [/home/russell/Downloads/DPO_RT3290_LinuxSTA_V2600_20120508/os/linux/../../os/linux/pci_main_dev.o] Error 1
make[1]: *** [_module_/home/russell/Downloads/DPO_RT3290_LinuxSTA_V2600_20120508/os/linux] Error 2
make[1]: Leaving directory `/usr/src/linux-3.10.17'
make: *** [LINUX] Error 2
Edit:

I can see it in iwconfig:
Code:
wlan0     IEEE 802.11bgn  ESSID:off/any  
          Mode:Managed  Access Point: Not-Associated   Tx-Power=off   
          Retry  long limit:7   RTS thr:off   Fragment thr:off
          Encryption key:off
          Power Management:off
I tried installing it via backport 3.10.17-2 by the following commands:
Code:
make defconfig-rtlwifi
make
make install
But it did not enable the wifi.

How can I install it?
Is it possible to install it via compat drivers?

Last edited by Sefid par; 04-17-2014 at 05:58 AM.
 
Old 04-17-2014, 09:10 PM   #2
yooy
Senior Member
 
Registered: Dec 2009
Posts: 1,387

Rep: Reputation: 174Reputation: 174
you can try with usb different flavour of ubuntu like Mint or Pinguy OS that come with some drivers pre-installed.

4 ways to get wifi working on linux
 
1 members found this post helpful.
Old 04-18-2014, 08:05 AM   #3
arsivci0
Member
 
Registered: Nov 2013
Location: Antalya
Distribution: Slackware64 current
Posts: 119

Rep: Reputation: 23
Same Ubuntu thread mentioned kernel had difficulties supporting this card and recommended upgrading kernel to 3.12. I suggest you upgrade your kernel to 3.14.1 (current stable kernel).
 
1 members found this post helpful.
Old 04-18-2014, 10:23 AM   #4
Nille_kungen
Member
 
Registered: Jul 2005
Distribution: Slackware64-current
Posts: 587

Rep: Reputation: 201Reputation: 201Reputation: 201
I got RT3290 and it works with the kernel driver but it lose the connection all the time.
I use the ralink/mediatek driver instead it works alot better.
I made some slackbuilds for it and posted it in a swedish slackware forum.
The wireless driver works ok but the bluetooth only work until i suspend or hibinate bluetooth doesn't work after wake up (i don't know why i still have the bluetooth driver installed since i use bluetooth very seldom), the wifi still works.
The wifi driver does spam my logs some but it works, unless you need to connect to an adhoc device since that doesn't seem to work.
Grab the SlackBuilds from this thread http://forum.slackwarelinux.se/viewtopic.php?f=7&t=3286
http://www.mediatek.com/en/downloads/rt3290-pcie/
I use slackware 14.1 tried kernel 3.10.17, 3.12 and 3.13.5 and on all kernels the in kernel driver (rt2800pci) drops the connection like crazy, so use the ralink driver (rt3290sta) instead.

Last edited by Nille_kungen; 04-18-2014 at 10:40 AM.
 
1 members found this post helpful.
Old 05-09-2014, 09:39 AM   #5
Nille_kungen
Member
 
Registered: Jul 2005
Distribution: Slackware64-current
Posts: 587

Rep: Reputation: 201Reputation: 201Reputation: 201
Upgraded the SlackBuilds to include KVER and patched rtbth for kernel 3.13
WiFi rt3290sta.tar.gz
Bluetooth rtbth.tar.gz

If bluetooth doesn't work after suspend then run.
Code:
rmmod -f rtbth
rm /dev/rtbth
modprobe /dev/rtbth
It brings back bluetooth but some times everything hangs when removing the module and a reboot is needed.
 
1 members found this post helpful.
Old 06-15-2014, 02:19 PM   #6
Sefid par
Member
 
Registered: Jul 2013
Location: Iran, Shiraz
Distribution: Ubuntu
Posts: 130

Original Poster
Rep: Reputation: 26
@Nille_kungen: Good job. That's fantastic. Thank you.
 
Old 07-22-2014, 07:11 PM   #7
Nille_kungen
Member
 
Registered: Jul 2005
Distribution: Slackware64-current
Posts: 587

Rep: Reputation: 201Reputation: 201Reputation: 201
Upgraded rt3290sta to support current (added kernel 3.14 support)
WiFi rt3290sta.tar.gz
Bluetooth rtbth already worked on current so no update needed.

Saw that post 5 had an typo it should be.
If bluetooth doesn't work after suspend then run.
Code:
rmmod -f rtbth
rm /dev/rtbth
modprobe rtbth

Last edited by Nille_kungen; 07-22-2014 at 07:14 PM.
 
Old 08-10-2014, 09:13 AM   #8
s7evin
LQ Newbie
 
Registered: Aug 2014
Posts: 1

Rep: Reputation: Disabled
Hi,
can you describe me the step for installing this driver?

I have slackware 14.1 64bit with the kernel 3.10.17 ,

I created a file in /etc/modprobe.d with line "blacklist rt2800pci blacklist rt2x00pci" and I named it as "driver-wireless.conf".

I come from ubuntu and I used to use the command initramfs -u after a modify in modprobe.d folder. Now, how I do it
How can I install the slack build posted by Nille_kungen ?

Thankyou very much.
 
Old 08-10-2014, 06:16 PM   #9
Nille_kungen
Member
 
Registered: Jul 2005
Distribution: Slackware64-current
Posts: 587

Rep: Reputation: 201Reputation: 201Reputation: 201
Download the SlackBuild and extract it.
Cd into the extracted folder and as root run ./rt3290sta.SlackBuild
Install the package and reboot (reboot isn't needed if you unload the kernel module and modrobe rt3290sta).

Example.
Code:
tar xvf rt3290sta.tar.gz
cd rt3290sta
./rt3290sta.SlackBuild 
upgradepkg --install-new --reinstall /tmp/rt3290sta-2.6.0.0_3.10.17-x86_64-1_Nille.tgz
The package include the needed blacklist so no need to do it manually.
 
1 members found this post helpful.
Old 01-25-2015, 06:59 AM   #10
Nille_kungen
Member
 
Registered: Jul 2005
Distribution: Slackware64-current
Posts: 587

Rep: Reputation: 201Reputation: 201Reputation: 201
I upgraded to kernel 3.18.3 and the in-kernel wifi driver rt2800pci seems to work now, but i still need to test it more to know if it really works.
The rt3290sta still compiles with kernel 3.18 but i haven't used it, but i do still use rtbth with 3.18.3 rt2800pci and and it works as before.
If anyone still need rt3290sta with newer kernels and it doesn't compile then drop a line here and i might look in to it.
 
1 members found this post helpful.
Old 06-18-2017, 04:08 PM   #11
Nille_kungen
Member
 
Registered: Jul 2005
Distribution: Slackware64-current
Posts: 587

Rep: Reputation: 201Reputation: 201Reputation: 201
I made a new rtbth.SlackBuild for bluetooth that works on current and hopefully on 14.2 as well.
I use the same git repo as ubuntu and the updated sources seems to also handle hibernation/suspend as it should.

Code:
#!/bin/sh

# Slackware build script for rtbth

# Copyright 2017 Niklas 'Nille' Åkerström  <nille.kungen [at] gmail.com>
# 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=rtbth
BRANCH=${BRANCH:-3.9.5} 
BUILD=${BUILD:-1}
KERNELVERSION=${KERNELVERSION:-`uname -r`}
TAG=${TAG:-_Nille}
FIRMWARE=${FIRMWARE:-"NEW"} #FIRMWARE=NEW creates a package that use a newer firmware, FIRMWARE=OLD creates a package that use the OLD tested firmware
FIRMWARE=$(echo $FIRMWARE | tr 'a-z' 'A-Z')
KSRC=${KSRC:-/lib/modules/${KERNELVERSION}/build}

# Automatically determine the architecture we're building on:
if [ -z "$ARCH" ]; then
  case "$( uname -m )" in
    i?86) ARCH=i586 ;;
    arm*) ARCH=arm ;;
    # Unless $ARCH is already set, use uname -m for all other archs:
       *) ARCH=$( uname -m ) ;;
  esac
fi

if [ "$ARCH" = "i586" ]; then
  #SLKCFLAGS="-O2 -march=i586 -mtune=i686"
  LIBDIRSUFFIX=""
elif [ "$ARCH" = "i686" ]; then
  #SLKCFLAGS="-O2 -march=i686 -mtune=i686"
  LIBDIRSUFFIX=""
elif [ "$ARCH" = "x86_64" ]; then
  #SLKCFLAGS="-O2 -fPIC"
  LIBDIRSUFFIX="64"
else
  #SLKCFLAGS="-O2"
  LIBDIRSUFFIX=""
fi

CWD=$(pwd)
TMP=${TMP:-/tmp/builds}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}

set -e # Exit on most errors

rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf rtbth-dkms

git clone git://github.com/loimu/rtbth-dkms.git
cd rtbth-dkms
echo "** Available branches **"
echo "master"
cat .git/packed-refs | grep "refs/tags/*" | cut -d" " -f2 | sed "s/refs\/tags\///g"
echo "************************"
git checkout $BRANCH

HEADISAT="$(cat .git/packed-refs | grep "refs/remotes/origin/${BRANCH}$" | cut -b1-7)"
if [ -z "$HEADISAT" ];then 
  HEADISAT=${BRANCH}
fi

chown -R root:root .

if [ "${FIRMWARE}" == "NEW" ]; then
  echo ""
  echo "**"
  echo "** This build will use the newer firmware"
  echo "** The newer firmware is only for the brave to try"
  echo "** Run the command 'FIRMWARE=OLD $0 $*' to use the old firmware."
  echo "**"
  echo ""
  dd if=tools/rt3298_new.bin of=tools/rtbt obs=1 seek=$((0xF4320)) conv=notrunc
fi

make LINUX_SRC=${KSRC}
mkdir -p $PKG/usr/lib${LIBDIRSUFFIX}/pm-utils/sleep.d/ $PKG/usr/bin/ $PKG/etc/modprobe.d/ $PKG/lib/modules/${KERNELVERSION}/drivers/bluetooth/ #$PKG/etc/Wireless/RT3290

install -m 0755 tools/49rtbt $PKG/usr/lib${LIBDIRSUFFIX}/pm-utils/sleep.d/
install -m 0755 tools/rtbt $PKG/usr/bin/
install -m 0644 tools/ralink-bt.conf $PKG/etc/modprobe.d/
install -m 0644 *.ko $PKG/lib/modules/${KERNELVERSION}/drivers/bluetooth/
#####install -m 0755 tools/rtbt $PKG/etc/Wireless/RT3290

# Copy program documentation into the package
mkdir -p $PKG/usr/doc/$PRGNAM-$HEADISAT
cp -a README.md $PKG/usr/doc/$PRGNAM-$HEADISAT

mkdir -p $PKG/install
# Create the slack-desc file
cat << 'EOF' > $PKG/install/slack-desc
# 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 ':'.

     |-----handy-ruler------------------------------------------------------|
rtbth:
rtbth: Ralink/MediaTek bluetooth driver for rt3290
rtbth:
rtbth: Linux device driver for bluetooth on Ralink RT3290 ABGN WLAN Card.
EOF

#create doinst.sh that runs depmod with kernelversion
cat << 'EOF' > $PKG/install/doinst.sh
if [ -x sbin/depmod ]; then
  chroot . /sbin/depmod -ae @KERNEL@ 1> /dev/null 2> /dev/null
fi
EOF

sed -i "s%@KERNEL@%${KERNELVERSION}%" $PKG/install/doinst.sh

cd $PKG
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$HEADISAT\_${KERNELVERSION}-${ARCH}-${BUILD}${TAG}.${PKGTYPE:-tgz}
This was a quickly made SlackBuild but it seems to work as it should.
Do many slackware users use dkms?
If so maybe i could add an dkms switch to build an dkms package.

Last edited by Nille_kungen; 06-18-2017 at 04:16 PM.
 
1 members found this post helpful.
Old 06-19-2017, 12:57 PM   #12
Sefid par
Member
 
Registered: Jul 2013
Location: Iran, Shiraz
Distribution: Ubuntu
Posts: 130

Original Poster
Rep: Reputation: 26
Worded very good. worked for the first time after 8 years :-D
 
Old 06-23-2018, 10:57 AM   #13
edukeralam
LQ Newbie
 
Registered: Jun 2008
Posts: 2

Rep: Reputation: 0
Error in compiling...

In file included from /tmp/build/rt3290sta-2.6.0.0/include/rtmp_os.h:42:0,
from /tmp/build/rt3290sta-2.6.0.0/include/rtmp_comm.h:56,
from /tmp/build/rt3290sta-2.6.0.0/include/rt_config.h:36,
from /tmp/build/rt3290sta-2.6.0.0/os/linux/../../sta/sta_cfg.c:31:
/tmp/build/rt3290sta-2.6.0.0/os/linux/../../sta/sta_cfg.c: In function ‘RTMPQueryInformation’:
/tmp/build/rt3290sta-2.6.0.0/os/linux/../../sta/sta_cfg.c:3956:30: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘long unsigned int’ [-Wformat=]
DBGPRINT(RT_DEBUG_TRACE, ("sizeof UCHAR=%d, channel=%d \n", sizeof(UCHAR), pAd->CommonCfg.Channel));
^
/tmp/build/rt3290sta-2.6.0.0/include/os/rt_linux.h:656:16: note: in definition of macro ‘DBGPRINT_RAW’
printk Fmt; \
^~~
/tmp/build/rt3290sta-2.6.0.0/os/linux/../../sta/sta_cfg.c:3956:4: note: in expansion of macro ‘DBGPRINT’
DBGPRINT(RT_DEBUG_TRACE, ("sizeof UCHAR=%d, channel=%d \n", sizeof(UCHAR), pAd->CommonCfg.Channel));
^~~~~~~~
/tmp/build/rt3290sta-2.6.0.0/os/linux/../../sta/sta_cfg.c: In function ‘RTMPIoctlShow’:
/tmp/build/rt3290sta-2.6.0.0/os/linux/../../sta/sta_cfg.c:4899:85: error: macro "__DATE__" might prevent reproducible builds [-Werror=date-time]
snprintf(extra, size, "Driver version-%s, %s %s\n", STA_DRIVER_VERSION, __DATE__, __TIME__ );
^~~~~~~~
/tmp/build/rt3290sta-2.6.0.0/os/linux/../../sta/sta_cfg.c:4899:95: error: macro "__TIME__" might prevent reproducible builds [-Werror=date-time]
snprintf(extra, size, "Driver version-%s, %s %s\n", STA_DRIVER_VERSION, __DATE__, __TIME__ );
^~~~~~~~
/tmp/build/rt3290sta-2.6.0.0/os/linux/../../sta/sta_cfg.c: In function ‘RtmpIoctl_rt_ioctl_siwfreq’:
/tmp/build/rt3290sta-2.6.0.0/os/linux/../../sta/sta_cfg.c:5132:5: warning: this ‘else’ clause does not guard... [-Wmisleading-indentation]
else
^~~~
/tmp/build/rt3290sta-2.6.0.0/os/linux/../../sta/sta_cfg.c:5135:2: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘else’
return NDIS_STATUS_SUCCESS;
^~~~~~
/tmp/build/rt3290sta-2.6.0.0/os/linux/../../sta/sta_cfg.c: In function ‘RtmpIoctl_rt_ioctl_giwrate’:
/tmp/build/rt3290sta-2.6.0.0/os/linux/../../sta/sta_cfg.c:6960:5: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation]
if (rate_index >= rate_count)
^~
/tmp/build/rt3290sta-2.6.0.0/os/linux/../../sta/sta_cfg.c:6963:2: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’
*(ULONG *)pData = ralinkrate[rate_index] * 500000;
^
/tmp/build/rt3290sta-2.6.0.0/os/linux/../../sta/sta_cfg.c: In function ‘RtmpIoctl_rt_private_get_statistics’:
/tmp/build/rt3290sta-2.6.0.0/os/linux/../../sta/sta_cfg.c:7220:67: warning: format ‘%x’ expects argument of type ‘unsigned int’, but argument 3 has type ‘EEPROM_NIC_CONFIG3_STRUC {aka union _EEPROM_NIC_CINFIG3_STRUC}’ [-Wformat=]
sprintf(extra+strlen(extra), "pAd->NicConfig3.field.CoexAnt == 0x%x\n\n",pAd->NicConfig3);
~^ ~~~~~~~~~~~~~~~
cc1: some warnings being treated as errors
scripts/Makefile.build:332: recipe for target '/tmp/build/rt3290sta-2.6.0.0/os/linux/../../sta/sta_cfg.o' failed
make[2]: *** [/tmp/build/rt3290sta-2.6.0.0/os/linux/../../sta/sta_cfg.o] Error 1
Makefile:1552: recipe for target '_module_/tmp/build/rt3290sta-2.6.0.0/os/linux' failed
make[1]: *** [_module_/tmp/build/rt3290sta-2.6.0.0/os/linux] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-4.15.0-23-generic'
Makefile:380: recipe for target 'LINUX' failed
make: *** [LINUX] Error 2
 
Old 06-24-2018, 04:28 PM   #14
Nille_kungen
Member
 
Registered: Jul 2005
Distribution: Slackware64-current
Posts: 587

Rep: Reputation: 201Reputation: 201Reputation: 201
Do you still need rt3290sta with kernel 4.15?
It should work out of the box with rt2800pci on newer kernels.

Last edited by Nille_kungen; 06-24-2018 at 04:30 PM.
 
  


Reply

Tags
driver, kernel 3.10.7, non-free, wireless


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
I Need Help Installing a Wireless Driver noname2020x Linux - Hardware 2 03-15-2013 06:59 PM
Installing wireless driver, Intel pro/wireless 2100 hohosr Linux - Wireless Networking 1 03-17-2010 02:32 AM
Installing wireless Driver carsey Linux - Wireless Networking 3 05-09-2007 01:08 PM
Help with installing of wireless card driver sammykrupa Linux - Wireless Networking 4 06-16-2005 09:48 PM
please help with installing the hostap-driver-o.1.3 driver for wireless card chrisseattle Linux - Wireless Networking 1 03-26-2004 12:46 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 02:05 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration