Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] Can't make my Intel wireless adapter work
View unanswered posts
View posts from last 24 hours

Goto page 1, 2  Next  
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
mvlabat
Tux's lil' helper
Tux's lil' helper


Joined: 19 Jan 2014
Posts: 82

PostPosted: Sun Jan 19, 2014 11:39 am    Post subject: [SOLVED] Can't make my Intel wireless adapter work Reply with quote

Hello. I'm new to Linux. I'm trying to install Gentoo right know. And I'm having problems with my wifi adapter. I have Intel(R) Wireless-N 7260 on my notebook. After putting this:
Code:
modprobe iwlwifi
dmesg grep | iwlwifi

I get this kind of error:
Code:
failed to load module iwlmvm (error 256), is dynamic loading enabled?


Could you help me to solve this problem? I very want to begin my Linux studying from Gentoo ) Thank you.


Last edited by mvlabat on Thu Mar 06, 2014 8:29 am; edited 1 time in total
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 43383
Location: 56N 3W

PostPosted: Sun Jan 19, 2014 1:17 pm    Post subject: Reply with quote

mvlabat,

Welcome to Gentoo.

The message suggests that your kernel is missing module loading support.
If you intended this, its not an error but then you cannot use modprobe.
Check that you have the menu item
Code:
[*] Enable loadable module support  --->
set in your kernel
and
Code:
[*]   Module unloading
[*]   Module versioning support
in the menu.

If you are not yet running your own kernel, how did you boot your system?
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
mrbassie
Guru
Guru


Joined: 31 May 2013
Posts: 547

PostPosted: Sun Jan 19, 2014 1:38 pm    Post subject: Reply with quote

Welcome aboard.

Could you let us know what medium you are using for the install?
Back to top
View user's profile Send private message
mvlabat
Tux's lil' helper
Tux's lil' helper


Joined: 19 Jan 2014
Posts: 82

PostPosted: Sun Jan 19, 2014 2:51 pm    Post subject: Reply with quote

Thank you for your quick answers.
NeddySeagoon, do I have to proceed these steps if I use the standart gentoo kernel?
I boot my system with LiveCD installed on my USB Flash Drive. I use AMD64 medium, because I have Intel Core i7 processor. Did I choose it rightly?
And I also want to note that when I print "modprobe 8139too" no bad debug message are appeared.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 43383
Location: 56N 3W

PostPosted: Sun Jan 19, 2014 5:33 pm    Post subject: Reply with quote

mvlabat,

That modprobe 8139too works, shows that module loading support in the kernel is present.
It looks like the error message is misleading.

If you are still installing Gentoo - and are not yet at the point where you reboot into your own kernel, please use System Rescue CD as your boot media. It has much better support for WiFi than the Gentoo minimal CD.

There is no such thing as a standard Gentoo kernel. The problem is that various kernel elements conflict with one another, so you need to make a kernel that suits your hardware.
The kernel on the CD, provided by
Code:
genkernel all
is only a starting point. It does not include much wifi support.

AMD64 is correct for a Intel Core i7 processor.

Its still not clear which stage you are at. Have you rebooted and can connect to the internet with your wired interface or do you need wifi to be able to install Gentoo ?
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
mrbassie
Guru
Guru


Joined: 31 May 2013
Posts: 547

PostPosted: Sun Jan 19, 2014 5:42 pm    Post subject: Reply with quote

The reason I asked about your install medium is that if you look here: http://wireless.kernel.org/en/users/Drivers/iwlwifi your wifi adaptor has only been supported since kernel version 3.10.
So what I'm thinking is your livecd is running an older kernel.
If you're only able to connect using wifi and ethernet isn't an option, I think the simplest thing to do (if possible), would be to get a livecd of Fedora 17 or later and continue your installation with that. You can install Gentoo with any linux varient.
Back to top
View user's profile Send private message
mvlabat
Tux's lil' helper
Tux's lil' helper


Joined: 19 Jan 2014
Posts: 82

PostPosted: Sun Jan 19, 2014 7:10 pm    Post subject: Reply with quote

This is a name of the file I downloaded: "install-amd64-minimal-20140116.iso"
Due to the date it's rather new.
Don't know, just wondering... Does it realy run an older version of kernel?
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 43383
Location: 56N 3W

PostPosted: Sun Jan 19, 2014 9:55 pm    Post subject: Reply with quote

mvlabat,

install-amd64-minimal-20140116.iso is new as you say, but it does not have iwlwifi support.
Try
Code:
zgrep IWLWIFI /proc/config.gz


What stage have you reached in the Handbook ?
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
mvlabat
Tux's lil' helper
Tux's lil' helper


Joined: 19 Jan 2014
Posts: 82

PostPosted: Mon Jan 20, 2014 9:11 am    Post subject: Reply with quote

Code:

CONFIG_IWLWIFI=m
CONFIG_IWLWIFI_OPMODE_MODULAR=y
# CONFIG_IWLWIFI_DEBUG is not set
# CONFIG_IWLWIFI_P2P is not set

I reached the stage of configuring my network. So I'm struggling with my wifi connection. Unfortunately I'm able to use only it, because I have my wire connected to the router, which is used by other computers.
Back to top
View user's profile Send private message
Gusar
Advocate
Advocate


Joined: 09 Apr 2005
Posts: 2664
Location: Slovenia

PostPosted: Mon Jan 20, 2014 9:39 am    Post subject: Reply with quote

You need *at least* kernel 3.12 and the iwlmvm driver (it's a suboption of iwlwifi in the kernel config). And preferably firmware directly from upstream, because the version shipped by gentoo is possibly the old buggy one: https://git.kernel.org/cgit/linux/kernel/git/firmware/linux-firmware.git/tree/ <- get both iwlwifi-7260-7.ucode and iwlwifi-7260-8.ucode I'm not sure which kernels require which.
Back to top
View user's profile Send private message
mvlabat
Tux's lil' helper
Tux's lil' helper


Joined: 19 Jan 2014
Posts: 82

PostPosted: Mon Jan 20, 2014 11:24 am    Post subject: Reply with quote

Ok, thank you for the information. So.. what is the way to merge this kernel, drivers and gentoo installation?
It seems to me that it has to be a new iso image, which I have to build by myself. If yes, how can I do this from Windows - my only OS installed?
Back to top
View user's profile Send private message
mrbassie
Guru
Guru


Joined: 31 May 2013
Posts: 547

PostPosted: Mon Jan 20, 2014 11:53 am    Post subject: Reply with quote

Gusar wrote:
You need *at least* kernel 3.12 and the iwlmvm driver (it's a suboption of iwlwifi in the kernel config). And preferably firmware directly from upstream, because the version shipped by gentoo is possibly the old buggy one: https://git.kernel.org/cgit/linux/kernel/git/firmware/linux-firmware.git/tree/ <- get both iwlwifi-7260-7.ucode and iwlwifi-7260-8.ucode I'm not sure which kernels require which.


Acoording to the page I linked earlier it's 3.10+ and 3.13 respectively. There's also download links toward the bottom of the page.
Back to top
View user's profile Send private message
Gusar
Advocate
Advocate


Joined: 09 Apr 2005
Posts: 2664
Location: Slovenia

PostPosted: Mon Jan 20, 2014 4:02 pm    Post subject: Reply with quote

Oops, I was a bit wrong on the required kernel, 3.11 is new enough. While the driver is already in 3.10, it's not complete and will not work.

Anyway, I'd advise you to use SystemRescueCD 4.0.0, and make sure to boot it with the alternate kernel.
Back to top
View user's profile Send private message
mvlabat
Tux's lil' helper
Tux's lil' helper


Joined: 19 Jan 2014
Posts: 82

PostPosted: Wed Jan 22, 2014 8:40 pm    Post subject: Reply with quote

How to boot SystemRescueCD 4.0.0 with alternate kernel? And how to make sure that it has iwlwifi support? With default boot options it doesn't recognize my wifi adapter anyway.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 43383
Location: 56N 3W

PostPosted: Wed Jan 22, 2014 8:49 pm    Post subject: Reply with quote

mvlabat,

Read the list of options on the screen when System Rescue CD starts.
Choose the 64 bit alternate kernel by using the up and down arrows. When its selected, press Enter.

The default kernel is an older 32 bit kernel. Yon need the newer 64 bit alternate kernel.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
mvlabat
Tux's lil' helper
Tux's lil' helper


Joined: 19 Jan 2014
Posts: 82

PostPosted: Wed Jan 22, 2014 9:56 pm    Post subject: Reply with quote

I've loaded 3.12.7-alt400-amd64 kernel. But my wifi still doesn't work. In "wizard" gui it says "wireless is disabled". When I print "rfkill list" I get these lines:

Code:
0: hci0: Bluetooth
Soft blocked: yes
Hard blocked: no
1: ideapad_wlan: Wireless LAN
Soft blocked: yes
Hard blocked: no
2: ideapad_bluetooth: Bluetooth
Soft blocked: yes
Hard blocked: no
3: phy0: Wireless LAN
Soft blocked: yes
Hard blocked: no


What does it mean that it is Soft blocked? How to solve it?
Back to top
View user's profile Send private message
DONAHUE
Watchman
Watchman


Joined: 09 Dec 2006
Posts: 7553
Location: Goose Creek SC

PostPosted: Thu Jan 23, 2014 1:04 am    Post subject: Reply with quote

check in bios that the wireless is enabled
if on sysresccd and booted to the xfce GUI, look in the lower right hand corner for the network manager icon -- start it and connect
check the manual for your laptop for key(s) that control the radio for your laptop and for led status lights -- turn on (if off)
Code:
rfkill unblock all
-- specific to correct reported state
Code:
ifconfig -a
does the kernel see the nic and attach the driver?
Code:
ifconfig
is the nic up?
Code:
iwconfig
up? got wireless extensions? connected?
_________________
Defund the FCC.
Back to top
View user's profile Send private message
gienah
Developer
Developer


Joined: 24 Nov 2010
Posts: 211
Location: AU

PostPosted: Thu Jan 23, 2014 8:53 am    Post subject: Reply with quote

I just added sys-firmware/iwl7260-ucode to the tree (thanks Thomas Kear):

https://bugs.gentoo.org/show_bug.cgi?id=489714

If the firmware is not loaded then

Code:
ifconfig -a


will be missing the wirless inteface, and:

Code:
modinfo iwlwifi | grep firmware


will be missing the iwlwifi-7260-X.ucode, where X is some number.

I added a note to the wiki:

https://wiki.gentoo.org/wiki/Wifi#Firmware

that it requires the kernel parameter Device-Drivers->Network device support->Wireless LAN->Intel Wireless WiFi MVM Firmware support
Back to top
View user's profile Send private message
mvlabat
Tux's lil' helper
Tux's lil' helper


Joined: 19 Jan 2014
Posts: 82

PostPosted: Wed Feb 05, 2014 1:27 pm    Post subject: Reply with quote

I've installed Gentoo using 3.13.0 vanilla kernel. I've chosen options for my 7260 support, recompiled the kernel (for being absolutely sure these options are applied) but my system doesn't want too see the adapter anyway. It doesn't even appears in ifconfig -a. So now I'm confused what to do. Maybe I should load the firmware driver separately..?

P.S. I've installed the driver as a built-in component, not a module.
Back to top
View user's profile Send private message
DONAHUE
Watchman
Watchman


Joined: 09 Dec 2006
Posts: 7553
Location: Goose Creek SC

PostPosted: Wed Feb 05, 2014 11:48 pm    Post subject: Reply with quote

download http://wireless.kernel.org/en/users/Drivers/iwlwifi?action=AttachFile&do=get&target=iwlwifi-7260-ucode-22.15.8.0.tgz extract iwlwifi-7260-8.ucode and LICENSE.iwlwifi-7260-ucode and place them in /lib/firmware. whoever does linux-firmware is slacking; latest version is last summer.

check that your menuconfig has:
Quote:
-*- Networking support --->
--- Networking support
Networking options --->
[ ] Amateur Radio support ----
< > CAN bus subsystem support ----
< > IrDA (infrared) subsystem support ----
< > Bluetooth subsystem support ----
< > RxRPC session sockets
-*- Wireless --->
--- Wireless
<M> cfg80211 - wireless configuration API
[*] nl80211 testmode command
[ ] enable developer warnings
[ ] cfg80211 regulatory debugging
[ ] enable powersave by default
[ ] cfg80211 DebugFS entries
[*] cfg80211 wireless extensions compatibility
<M> Generic IEEE 802.11 Networking Stack (mac80211)
Default rate control algorithm (Minstrel) --->
[ ] Enable mac80211 mesh networking (pre-802.11s) support
[ ] Export mac80211 internals in DebugFS
[ ] Trace all mac80211 debug messages
[ ] Select mac80211 debugging features ----
< > WiMAX Wireless Broadband support ----
<M> RF switch subsystem support ----
< > Plan 9 Resource Sharing Support (9P2000) ----
< > CAIF support ----
< > Ceph core library
< > NFC subsystem support ----

Device Drivers --->
[*] Network device support --->
[*] Wireless LAN --->
<M> Intel Wireless WiFi Next Gen AGN - Wireless-N/Advanced-N/Ultimate-N
< > Intel Wireless WiFi DVM Firmware support (NEW)
<M> Intel Wireless WiFi MVM Firmware support (NEW)
recompile kernel if changes are needed

Code:
emerge rfkill
so that tool will be available
_________________
Defund the FCC.
Back to top
View user's profile Send private message
albright
Advocate
Advocate


Joined: 16 Nov 2003
Posts: 2541
Location: Near Toronto

PostPosted: Thu Feb 06, 2014 12:36 am    Post subject: Reply with quote

Quote:
whoever does linux-firmware is slacking; latest version is last summer.


latest **stable** version :)
_________________
.... there is nothing - absolutely nothing - half so much worth
doing as simply messing about with Linux ...
(apologies to Kenneth Graeme)
Back to top
View user's profile Send private message
mvlabat
Tux's lil' helper
Tux's lil' helper


Joined: 19 Jan 2014
Posts: 82

PostPosted: Thu Feb 06, 2014 2:07 pm    Post subject: Reply with quote

Ok, I copied these two files in /usr/src/linux-3.13.0/firmware (and placed them in the root, not creating an additional folder). I couldn't find anything with exact "lib/firmware" path..
After this I began configuring kernel.

I had DMV and MVM both checked. Now I changed the config to only MVM checked and made this component modular.. By the way: what would be the difference in that case if it was built-in (according to my previous kernel config)?

After configurating I recompiled my kernel again with this list of commands:

Code:

make clean
make && make modules
make modules_install
cp /usr/src/linux-3.13.0/arch/x86_64/boot/bzImage /boot/vmlinuz-3.13.0


Did I do it rightly?

... So I rebooted and got no wifi adapter in the list again. If I print "rfkill list" it doesn't return anything at all.
Back to top
View user's profile Send private message
mvlabat
Tux's lil' helper
Tux's lil' helper


Joined: 19 Jan 2014
Posts: 82

PostPosted: Thu Feb 06, 2014 3:02 pm    Post subject: Reply with quote

EDIT.

Code:
/boot/vmlinuz-3.13.0


is actually

Code:
/mnt/a/vmlinuz-3.13.0


for me. This is where I mounted my linux boot partition. (For not misunderstanding that I copied bzImage to the root /boot folder.)
Back to top
View user's profile Send private message
DONAHUE
Watchman
Watchman


Joined: 09 Dec 2006
Posts: 7553
Location: Goose Creek SC

PostPosted: Thu Feb 06, 2014 7:02 pm    Post subject: Reply with quote

Quote:
Ok, I copied these two files in /usr/src/linux-3.13.0/firmware (and placed them in the root, not creating an additional folder). I couldn't find anything with exact "lib/firmware" path..
This is trouble. /lib/firmware is the standard location for firmware files and licenses. From the chroot run
Code:
ls -al /lib/firmware/iwlwifi-7260*
which should return something resembling
Quote:
-rw-r--r-- 1 root root 683236 Feb 5 18:55 /lib/firmware/iwlwifi-7260-7.ucode
-rw-r--r-- 1 root root 674628 Dec 29 04:41 /lib/firmware/iwlwifi-7260-8.ucode
(The -7 version supports kernel versions 3.10, 3.11, 3.12; the -8 version supports kernel version 3.13.)Then run
Code:
ls -al /lib/firmware/LICENSE.iwlwifi-7260*
which should return something like
Quote:
-rw-r--r-- 1 root root 2041 Dec 29 04:37 /lib/firmware/LICENSE.iwlwifi-7260-ucode
To load the proper firmware the proper firmware and license must be in the proper place.
_________________
Defund the FCC.
Back to top
View user's profile Send private message
DONAHUE
Watchman
Watchman


Joined: 09 Dec 2006
Posts: 7553
Location: Goose Creek SC

PostPosted: Thu Feb 06, 2014 8:04 pm    Post subject: Reply with quote

Quote:
/mnt/a/ {sic} is where I mounted my linux boot partition.
What is the purpose of not having the /boot directory as the mountpoint for the boot partition?
_________________
Defund the FCC.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Goto page 1, 2  Next
Page 1 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum