Gentoo linux on toshiba sattelite laptop wlan how to?[solved]

roodap

Distinguished
Jan 29, 2012
27
0
18,530
i run gentoo linux updated everyday.
my current kernel 3.8.10 with toshiba support module.
my laptop does not find wlan from my new router-modem.
earlier i did not have a wlan modem.
now in the process of installing necessary packages.
i have realtek modules and intel wreless modules in the kernel
what else i need to install
to get wlan conneced?
 


Please post output of "sudo lspci" or "sudo lsusb" depending on if PCI wlan or USB wlan.
Also post output of "sudo ip link show" to see if the interface has been created.

You may just need to download/install the correct firmware for your wlan.
 

roodap

Distinguished
Jan 29, 2012
27
0
18,530
dhcppc0 ramaswamy # lspci
00:00.0 Host bridge: Advanced Micro Devices [AMD] Family 14h Processor Root Complex
00:01.0 VGA compatible controller: Advanced Micro Devices [AMD] nee ATI Device 9809
00:11.0 SATA controller: Advanced Micro Devices [AMD] FCH SATA Controller [AHCI mode]
00:12.0 USB controller: Advanced Micro Devices [AMD] FCH USB OHCI Controller (rev 11)
00:12.2 USB controller: Advanced Micro Devices [AMD] FCH USB EHCI Controller (rev 11)
00:13.0 USB controller: Advanced Micro Devices [AMD] FCH USB OHCI Controller (rev 11)
00:13.2 USB controller: Advanced Micro Devices [AMD] FCH USB EHCI Controller (rev 11)
00:14.0 SMBus: Advanced Micro Devices [AMD] FCH SMBus Controller (rev 14)
00:14.2 Audio device: Advanced Micro Devices [AMD] FCH Azalia Controller (rev 01)
00:14.3 ISA bridge: Advanced Micro Devices [AMD] FCH LPC Bridge (rev 11)
00:14.4 PCI bridge: Advanced Micro Devices [AMD] FCH PCI Bridge (rev 40)
00:14.7 SD Host controller: Advanced Micro Devices [AMD] FCH SD Flash Controller
00:15.0 PCI bridge: Advanced Micro Devices [AMD] Hudson PCI to PCI bridge (PCIE port 0)
00:15.1 PCI bridge: Advanced Micro Devices [AMD] Hudson PCI to PCI bridge (PCIE port 1)
00:16.0 USB controller: Advanced Micro Devices [AMD] FCH USB OHCI Controller (rev 11)
00:16.2 USB controller: Advanced Micro Devices [AMD] FCH USB EHCI Controller (rev 11)
00:18.0 Host bridge: Advanced Micro Devices [AMD] Family 12h/14h Processor Function 0 (rev 43)
00:18.1 Host bridge: Advanced Micro Devices [AMD] Family 12h/14h Processor Function 1
00:18.2 Host bridge: Advanced Micro Devices [AMD] Family 12h/14h Processor Function 2
00:18.3 Host bridge: Advanced Micro Devices [AMD] Family 12h/14h Processor Function 3
00:18.4 Host bridge: Advanced Micro Devices [AMD] Family 12h/14h Processor Function 4
00:18.5 Host bridge: Advanced Micro Devices [AMD] Family 12h/14h Processor Function 6
00:18.6 Host bridge: Advanced Micro Devices [AMD] Family 12h/14h Processor Function 5
00:18.7 Host bridge: Advanced Micro Devices [AMD] Family 12h/14h Processor Function 7
02:00.0 Network controller: Realtek Semiconductor Co., Ltd. Device 8723
06:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8101E/RTL8102E PCI Express Fast Ethernet controller (rev 05)
dhcppc0 ramaswamy #
dhcppc0 ramaswamy # ip link show
bash: ip: command not found
dhcppc0 ramaswamy #
 
Ok, this is your wireless chipset:
Code:
02:00.0 Network controller: Realtek Semiconductor Co., Ltd. Device 8723

Firmware for your device is found here:
http://git.kernel.org/cgit/linux/kernel/git/firmware/linux-firmware.git/tree/rtlwifi

Run these commands in gentoo to install the firmware (connect to internet with ethernet)
Code:
git clone git://git.kernel.org/pub/scm/linux/kernel/git/dwmw2/linux-firmware.git
sudo cp -v linux-firmware/rtlwifi/rtl8723* /lib/firmware/rtlwifi/.

Then reboot or load the driver with
Code:
modprobe rtl8723ae

Check if wireless interface is loaded with
Code:
sudo ifconfig
 

roodap

Distinguished
Jan 29, 2012
27
0
18,530
the proceedure you suggested put only rtl8723.bin files. while we need .ko files.
anyways i recompiled my keernel with rtl8723 module
module loads correctly.
still i do not find any wireless access.
i have tried most of the things mentioned in the guides and tutorials
to no avail
 
You need to be much more specific than just "I have tried most of the things mentioned in the guides and tutorials to no avail". What specifically have you tried, and what specifically was the result? The links I gave, if followed, absolutely will get wireless working in Gentoo.
 
So modprobe didn't pick it up. That means that the driver wasn't properly installed.

I would first try emerge linux-firmware. I'm guessing you should've already tried it but I didn't read the wiki of all the things you could've, would've, should've did.

Seems like Realtek has not posted an official release for the Linux driver, but they provided a Dropbox link to a tarball file: click here. Download it, then `tar -zxf <file>' and cd into it. Then make && make install (as root). Then as root, modprobe rtl8723e. Can you confirm if modprobe picked it up? And `dmesg | grep --ignore-case firmware'

Edit: do you have your kernel source files installed?
 

roodap

Distinguished
Jan 29, 2012
27
0
18,530
modprobe finds and loads rtl8723ae

dhcppc0 ramaswamy # lsmod
Module Size Used by
fuse 52431 2
snd_hda_codec_realtek 48189 1
rtl8723ae 116535 0
rtlwifi 78178 1 rtl8723ae
snd_hda_intel 27435 0
snd_hda_codec 84023 2 snd_hda_codec_realtek,snd_hda_intel
snd_hwdep 4257 1 snd_hda_codec
snd_pcm 58111 2 snd_hda_codec,snd_hda_intel
snd_page_alloc 6004 2 snd_pcm,snd_hda_intel
snd_timer 13904 1 snd_pcm
k10temp 2422 0
radeon 704653 2
ttm 44288 1 radeon
battery 5987 0
i2c_piix4 7174 0
ac 1981 0
usb_storage 33234 1
thermal 7332 0
fan 2042 0
dhcppc0 ramaswamy #

dhcppc0 ramaswamy # ifconfig
eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.1.2 netmask 255.255.255.0 broadcast 192.168.1.255
inet6 fe80::226:6cff:fe24:ff2d prefixlen 64 scopeid 0x20<link>
ether 00:26:6c:24:ff:2d txqueuelen 1000 (Ethernet)
RX packets 7631 bytes 9616408 (9.1 MiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 4888 bytes 692166 (675.9 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
inet 127.0.0.1 netmask 255.0.0.0
inet6 ::1 prefixlen 128 scopeid 0x10<host>
loop txqueuelen 0 (Local Loopback)
RX packets 56 bytes 3360 (3.2 KiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 56 bytes 3360 (3.2 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

dhcppc0 ramaswamy #
dhcppc0 ramaswamy # iwconfig
sit0 no wireless extensions.

lo no wireless extensions.

eth0 no wireless extensions.

dhcppc0 ramaswamy #
i made a new kernel 3.8.3-gentoo
madwifi-ng does not merge,
yes kernel source is in /usr/src/linux-3.8.3-gentoo
i have compiled the kernel with all wireless adapters kernel has.
my laptop wireless card it cannot recognize.


 

roodap

Distinguished
Jan 29, 2012
27
0
18,530
dhcppc0 ramaswamy # modinfo rtl8723ae
filename: /lib/modules/3.8.3-gentoo/kernel/drivers/net/wireless/rtlwifi/rtl8723ae/rtl8723ae.ko
firmware: rtlwifi/rtl8723aefw_B.bin
firmware: rtlwifi/rtl8723aefw.bin
description: Realtek 8723E 802.11n PCI wireless
license: GPL
author: Larry Finger <Larry.Finger@lwfinger.net>
author: Realtek WlanFAE <wlanfae@realtek.com>
author: lizhaoming <chaoming_li@realsil.com.cn>
alias: pci:v000010ECd00008723sv*sd*bc*sc*i*
depends: rtlwifi
intree: Y
vermagic: 3.8.3-gentoo SMP mod_unload K8
parm: swenc:Set to 1 for software crypto (default 0)
(bool)
parm: ips:Set to 0 to not use link power save (default 1)
(bool)
parm: swlps:Set to 1 to use SW control power save (default 0)
(bool)
parm: fwlps:Set to 1 to use FW control power save (default 1)
(bool)
parm: debug:Set debug level (0-5) (default 0) (int)
dhcppc0 ramaswamy #
it seems it is default not on
how or where i configure this driver ?
 
OK something is wrong. Check your dmesg output for useful information!

You might want to file a bug report with gentoo.
As far as i know, you have compiled the correct kernel module with kernel 3.8.x and have the correct firmware installed. No good reason wlan0 would not be created

You could try using the rtl8723e driver instead, like in this and other various threads on google:
https://bbs.archlinux.org/viewtopic.php?id=152307
 

roodap

Distinguished
Jan 29, 2012
27
0
18,530
i downloaded the driver rtl_92ce_92se_92de_8723ae_linux_mac80211_0006.0514.2012.tar.gz
but emerge refuses to merge saying no ebuild found
i have not installed packages outside portage before
how can get the driver module rtl8723e from the above package?
 

roodap

Distinguished
Jan 29, 2012
27
0
18,530
rtl_92ce_92se_92de_8723ae_linux_mac80211_0006.0514.2012\rtl_92ce_92se_92de_8723ae_linux_mac80211_0006.0514.2012

17-05-2013 21:56 <DIR> .
17-05-2013 21:56 <DIR> ..
14-05-2012 08:33 51,553 base.c
14-05-2012 08:33 5,987 base.h
14-05-2012 08:33 10,170 cam.c
14-05-2012 08:33 2,093 cam.h
17-05-2013 21:50 <DIR> compat
14-05-2012 08:33 4,156,161 compat-wireless-3.0-2-mesh.tar.bz2
14-05-2012 08:33 4,238,914 compat-wireless-3.0-2.tar.bz2
14-05-2012 08:33 2,642 compat.h
14-05-2012 08:33 38,056 core.c
14-05-2012 08:33 1,468 core.h
14-05-2012 08:33 23,538 debug.c
14-05-2012 08:33 6,493 debug.h
14-05-2012 08:33 33,420 efuse.c
14-05-2012 08:33 3,461 efuse.h
17-05-2013 21:50 <DIR> firmware
14-05-2012 08:33 386 Kconfig
14-05-2012 08:33 2,406 Makefile
14-05-2012 08:33 58,673 pci.c
14-05-2012 08:33 7,991 pci.h
14-05-2012 08:33 18,935 ps.c
14-05-2012 08:33 2,006 ps.h
14-05-2012 08:33 8,146 rc.c
14-05-2012 08:33 1,518 rc.h
14-05-2012 08:33 9,229 readme
14-05-2012 08:33 12,336 regd.c
14-05-2012 08:33 1,963 regd.h
14-05-2012 08:33 2,949 release_note
17-05-2013 21:50 <DIR> rtl8192ce
17-05-2013 21:50 <DIR> rtl8192de
17-05-2013 21:50 <DIR> rtl8192se
17-05-2013 21:50 <DIR> rtl8723e
14-05-2012 08:33 8,399 stats.c
14-05-2012 08:33 1,658 stats.h
17-05-2013 21:56 0 test.txt
14-05-2012 08:33 49,317 wifi.h
29 File(s) 8,759,868 bytes
8 Dir(s) 33,772,736,512 bytes free

i have posted this from windows 7
it says compatible to 3.0.2 kernel
there s no .ko files in the rtl8723 e drivers.
there is a makefile which does not run in ech of the driver folders.
unless i can find a ebuild i cannot merge t to kernel.
there is no 3.0.2 kernel sources in te current portage
the latest kernel 3.9.0 also makes rtl8723ae but does not make wlan0 device.
 

roodap

Distinguished
Jan 29, 2012
27
0
18,530
dhcppc0 ramaswamy # ifconfig wlan0 up
dhcppc0 ramaswamy # iwconfig
wlan0 IEEE 802.11bgn ESSID:eek:ff/any
Mode:Managed Access Point: Not-Associated Tx-Power=20 dBm
Retry long limit:7 RTS thr=2347 B Fragment thr:eek:ff
Encryption key:eek:ff
Power Management:eek:ff

sit0 no wireless extensions.

lo no wireless extensions.

eth0 no wireless extensions.

dhcppc0 ramaswamy #

made some progress by copying linx-firmware rtlwifi folder to /lib/linux-firmware/rtlwifi

but still i cannot see any wlan0 working.
what further it needs?
 

roodap

Distinguished
Jan 29, 2012
27
0
18,530
yes i have wpa_supplicant installed. but it does not pick up or i cannot add wireless network with it.
fails to add the ssid and psk

but to my surprise
iwlist scan gives me a lot of nieghbours' wifi modem address including mine.
where ESSID is specified wpa_supplicant looks for SSID
is it normal
somehow i cannot conect to the wifi