* [gentoo-user] No wifi @ 2020-07-14 1:53 Walter Dnes 2020-07-14 2:12 ` Ashley Dixon 0 siblings, 1 reply; 13+ messages in thread From: Walter Dnes @ 2020-07-14 1:53 UTC (permalink / raw To: Gentoo Users List The last part of getting my Lenovo T400 fully functional is the wifi. "lspci" shows "03:00.0 Network controller: Intel Corporation PRO/Wireless 5100 AGN [Shiloh] Network Connection". I tried to follow instructions but am getting no sign of wifi at all. Both "ifconfig" and "ip" only show eth0 and lo. In "make menuconfig" I have Networking support > Wireless --- Wireless <*> cfg80211 - wireless configuration API [ ] nl80211 testmode command [ ] enable developer warnings [*] enable powersave by default [ ] cfg80211 DebugFS entries [ ] cfg80211 wireless extensions compatibility <*> Generic IEEE 802.11 Networking Stack (mac80211) Default rate control algorithm (Minstrel) ---> [ ] Enable mac80211 mesh networking support -*- Enable LED triggers [ ] Export mac80211 internals in DebugFS [ ] Trace all mac80211 debug messages [ ] Select mac80211 debugging features ---- Device Drivers > Network device support > Wireless LAN --- Wireless LAN [ ] ADMtek devices [ ] Atheros/Qualcomm devices [ ] Atmel devices [ ] Broadcom devices [ ] Cisco devices [*] Intel devices < > Intel PRO/Wireless 2100 Network Connection < > Intel PRO/Wireless 2200BG and 2915ABG Network Connection < > Intel Wireless WiFi 4965AGN (iwl4965) < > Intel PRO/Wireless 3945ABG/BG Network Connection (iwl3945) <*> Intel Wireless WiFi Next Gen AGN - Wireless-N/Advanced-N/Ultimate-N (iwlwifi) <*> Intel Wireless WiFi DVM Firmware support < > Intel Wireless WiFi MVM Firmware support Debugging Options --- The <Help> for "Intel Wireless WiFi Next Gen AGN... etc" points to https://wireless.wiki.kernel.org/en/users/drivers/iwlwifi#firmware which points to iwlwifi-5000-ucode-5.4.A.11.tar.gz that supports iwldvm on the 5100AGN Device Drivers > Generic Driver Options > Firmware loader -*- Firmware loading facility (iwlwifi-5000-ucode-5.4.A.11/iwlwifi-5000-1.ucode) Build named firmware blobs into the kernel binary (/lib/firmware) Firmware blobs root directory [ ] Enable the firmware sysfs fallback mechanism [ ] Enable compressed firmware support The kernel build goes smoothly. What am I missing? -- Walter Dnes <waltdnes@waltdnes.org> I don't run "desktop environments"; I run useful applications ^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [gentoo-user] No wifi 2020-07-14 1:53 [gentoo-user] No wifi Walter Dnes @ 2020-07-14 2:12 ` Ashley Dixon 2020-07-14 4:19 ` Walter Dnes 0 siblings, 1 reply; 13+ messages in thread From: Ashley Dixon @ 2020-07-14 2:12 UTC (permalink / raw To: gentoo-user [-- Attachment #1: Type: text/plain, Size: 759 bytes --] On Mon, Jul 13, 2020 at 09:53:36PM -0400, Walter Dnes wrote: > The last part of getting my Lenovo T400 fully functional is the wifi. > "lspci" shows "03:00.0 Network controller: Intel Corporation PRO/Wireless > 5100 AGN [Shiloh] Network Connection". I tried to follow instructions > but am getting no sign of wifi at all. Both "ifconfig" and "ip" only > show eth0 and lo. Can you confirm that the correct firmware package is being loaded ? `lspci -k | grep -i -B 1 5100` Did you install the iwlwifi microcode from sys-kernel/linux-firmware (linux-firmware.git), or directly from kernel.org ? Which kernel version are you running ? `uname -r` -- Ashley Dixon suugaku.co.uk 2A9A 4117 DA96 D18A 8A7B B0D2 A30E BF25 F290 A8AA [-- Attachment #2: signature.asc --] [-- Type: application/pgp-signature, Size: 833 bytes --] ^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [gentoo-user] No wifi 2020-07-14 2:12 ` Ashley Dixon @ 2020-07-14 4:19 ` Walter Dnes 2020-07-14 4:59 ` Ashley Dixon 0 siblings, 1 reply; 13+ messages in thread From: Walter Dnes @ 2020-07-14 4:19 UTC (permalink / raw To: gentoo-user On Tue, Jul 14, 2020 at 03:12:29AM +0100, Ashley Dixon wrote > Can you confirm that the correct firmware package is being loaded ? > `lspci -k | grep -i -B 1 5100` [thimk][root][~] lspci -k | grep -i -B 1 5100 Kernel driver in use: i801_smbus 03:00.0 Network controller: Intel Corporation PRO/Wireless 5100 AGN [Shiloh] Network Connection Subsystem: Intel Corporation WiFi Link 5100 AGN Note that that it's not being "loaded" as a module. I'm building into the kernel itself. Here's a snippet from .config # # Firmware loader # CONFIG_FW_LOADER=y CONFIG_EXTRA_FIRMWARE="iwlwifi-5000-ucode-5.4.A.11/iwlwifi-5000-1.ucode" CONFIG_EXTRA_FIRMWARE_DIR="/lib/firmware" > Did you install the iwlwifi microcode from sys-kernel/linux-firmware > (linux-firmware.git), or directly from kernel.org ? Directly from kernel.org itself. As I mentioned, the <Help> feature in "make menuconfig" pointed there. I basically ran... wget https://wireless.wiki.kernel.org/_media/en/users/drivers/iwlwifi-5000-ucode-5.4.a.11.tar.gz > Which kernel version are you running ? `uname -r` 5.4.48-gentoo This a brand new install. -- Walter Dnes <waltdnes@waltdnes.org> I don't run "desktop environments"; I run useful applications ^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [gentoo-user] No wifi 2020-07-14 4:19 ` Walter Dnes @ 2020-07-14 4:59 ` Ashley Dixon 2020-07-14 9:05 ` Michael 2020-07-14 14:31 ` [gentoo-user] " Walter Dnes 0 siblings, 2 replies; 13+ messages in thread From: Ashley Dixon @ 2020-07-14 4:59 UTC (permalink / raw To: gentoo-user [-- Attachment #1: Type: text/plain, Size: 1772 bytes --] On Tue, Jul 14, 2020 at 12:19:51AM -0400, Walter Dnes wrote: > [thimk][root][~] lspci -k | grep -i -B 1 5100 > Kernel driver in use: i801_smbus > 03:00.0 Network controller: Intel Corporation PRO/Wireless 5100 AGN [Shiloh] Network Connection > Subsystem: Intel Corporation WiFi Link 5100 AGN > > Note that that it's not being "loaded" as a module. I'm building into > the kernel itself. Here's a snippet from .config It doesn't look like it's loading the firmware. Are there any obvious firmware- loading errors in dmesg ? If not, it might be worth installing `sys-apps/lshw` and running `lshw -C network` to see kernel resource information regarding the device. > # > # Firmware loader > # > CONFIG_FW_LOADER=y > CONFIG_EXTRA_FIRMWARE="iwlwifi-5000-ucode-5.4.A.11/iwlwifi-5000-1.ucode" > CONFIG_EXTRA_FIRMWARE_DIR="/lib/firmware" That looks fine, although why are you using such an outdated version of the microcode ? For kernels 2.6.38+, you can use 8.83.5.1-1. > > Did you install the iwlwifi microcode from sys-kernel/linux-firmware > > (linux-firmware.git), or directly from kernel.org ? > > Directly from kernel.org itself. As I mentioned, the <Help> feature in > "make menuconfig" pointed there. I basically ran... > > wget [link clipped] Perhaps it would be better to install it from the Gentoo-provided firmware package ? Amend /etc/portage/savedconfig/sys-kernel/linux-firmware to include the appropriate entries (listing at [1]), and emerge `linux-firmware` with the `savedconfig` USE-flag. [1] https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git/tree/ -- Ashley Dixon suugaku.co.uk 2A9A 4117 DA96 D18A 8A7B B0D2 A30E BF25 F290 A8AA [-- Attachment #2: signature.asc --] [-- Type: application/pgp-signature, Size: 833 bytes --] ^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [gentoo-user] No wifi 2020-07-14 4:59 ` Ashley Dixon @ 2020-07-14 9:05 ` Michael 2020-07-14 16:23 ` Walter Dnes 2020-07-14 17:20 ` Walter Dnes 2020-07-14 14:31 ` [gentoo-user] " Walter Dnes 1 sibling, 2 replies; 13+ messages in thread From: Michael @ 2020-07-14 9:05 UTC (permalink / raw To: gentoo-user [-- Attachment #1: Type: text/plain, Size: 1845 bytes --] On Tuesday, 14 July 2020 05:59:37 BST Ashley Dixon wrote: > On Tue, Jul 14, 2020 at 12:19:51AM -0400, Walter Dnes wrote: > > [thimk][root][~] lspci -k | grep -i -B 1 5100 > > > > Kernel driver in use: i801_smbus > > > > 03:00.0 Network controller: Intel Corporation PRO/Wireless 5100 AGN > > [Shiloh] Network Connection> > > Subsystem: Intel Corporation WiFi Link 5100 AGN > > > > Note that that it's not being "loaded" as a module. I'm building into > > > > the kernel itself. Here's a snippet from .config > > It doesn't look like it's loading the firmware. Are there any obvious > firmware- loading errors in dmesg ? If not, it might be worth installing > `sys-apps/lshw` and running `lshw -C network` to see kernel resource > information regarding the device. > > > # > > # Firmware loader > > # > > CONFIG_FW_LOADER=y > > CONFIG_EXTRA_FIRMWARE="iwlwifi-5000-ucode-5.4.A.11/iwlwifi-5000-1.ucode" > > CONFIG_EXTRA_FIRMWARE_DIR="/lib/firmware" > > That looks fine, although why are you using such an outdated version of the > microcode ? For kernels 2.6.38+, you can use 8.83.5.1-1. Is there a subdirectory 'iwlwifi-5000-ucode-5.4.A.11' in /lib/firmware/ ? I'm asking because the vanilla sys-kernel/linux-firmware does not create such a subdirectory. This is what is listed here: $ ls -la /lib/firmware/iwlwifi-5000* -rw-r--r-- 1 root root 345008 Jun 27 08:58 /lib/firmware/iwlwifi-5000-1.ucode -rw-r--r-- 1 root root 353240 Jun 27 08:58 /lib/firmware/iwlwifi-5000-2.ucode -rw-r--r-- 1 root root 340696 Jun 27 08:58 /lib/firmware/iwlwifi-5000-5.ucode Does dmesg reveal anything untoward in the kernel failing to find or load this firmware? Also, make sure the wireless NIC is enabled in the BIOS and powered up by toggling the appropriate Fn key combo, e.g. Fn+F5 or whatever it is on your laptop. [-- Attachment #2: This is a digitally signed message part. --] [-- Type: application/pgp-signature, Size: 833 bytes --] ^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [gentoo-user] No wifi 2020-07-14 9:05 ` Michael @ 2020-07-14 16:23 ` Walter Dnes 2020-07-14 17:17 ` Jack 2020-07-14 17:20 ` Walter Dnes 1 sibling, 1 reply; 13+ messages in thread From: Walter Dnes @ 2020-07-14 16:23 UTC (permalink / raw To: gentoo-user On Tue, Jul 14, 2020 at 10:05:52AM +0100, Michael wrote > > Is there a subdirectory 'iwlwifi-5000-ucode-5.4.A.11' in /lib/firmware/ ? Yes. It was created when I untarred the tarball from kernel.org [thimk][root][~] ll /lib/firmware/iwlwifi-5000-ucode-5.4.A.11 total 364 drwxr-sr-x 2 root root 4096 Jun 4 2008 . drwxr-xr-x 4 root root 4096 Jul 15 09:45 .. -rw-r--r-- 1 root root 2114 Jun 4 2008 LICENSE.iwlwifi-5000-ucode -rw-r--r-- 1 root root 5099 Jun 4 2008 README.iwlwifi-5000-ucode -rw-r--r-- 1 root root 345008 Jun 2 2008 iwlwifi-5000-1.ucode > Does dmesg reveal anything untoward in the kernel failing to find > or load this firmware? See my message to Ashley for error listing. > Also, make sure the wireless NIC is enabled in the BIOS and powered > up by toggling the appropriate Fn key combo, e.g. Fn+F5 or whatever > it is on your laptop. I should have mentioned that wlan0 shows up fine booting from the minimal install usb stick. -- Walter Dnes <waltdnes@waltdnes.org> I don't run "desktop environments"; I run useful applications ^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [gentoo-user] No wifi 2020-07-14 16:23 ` Walter Dnes @ 2020-07-14 17:17 ` Jack 0 siblings, 0 replies; 13+ messages in thread From: Jack @ 2020-07-14 17:17 UTC (permalink / raw To: gentoo-user On 2020.07.14 12:23, Walter Dnes wrote: > On Tue, Jul 14, 2020 at 10:05:52AM +0100, Michael wrote > > > > Is there a subdirectory 'iwlwifi-5000-ucode-5.4.A.11' in > /lib/firmware/ ? > > Yes. It was created when I untarred the tarball from kernel.org > > [thimk][root][~] ll /lib/firmware/iwlwifi-5000-ucode-5.4.A.11 > total 364 > drwxr-sr-x 2 root root 4096 Jun 4 2008 . > drwxr-xr-x 4 root root 4096 Jul 15 09:45 .. > -rw-r--r-- 1 root root 2114 Jun 4 2008 LICENSE.iwlwifi-5000-ucode > -rw-r--r-- 1 root root 5099 Jun 4 2008 README.iwlwifi-5000-ucode > -rw-r--r-- 1 root root 345008 Jun 2 2008 iwlwifi-5000-1.ucode > > > Does dmesg reveal anything untoward in the kernel failing to find > > or load this firmware? > > See my message to Ashley for error listing. > > > Also, make sure the wireless NIC is enabled in the BIOS and powered > > up by toggling the appropriate Fn key combo, e.g. Fn+F5 or whatever > > it is on your laptop. > > I should have mentioned that wlan0 shows up fine booting from the > minimal install usb stick. What does dmesg say about loaded firmware in that case? ^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [gentoo-user] No wifi 2020-07-14 9:05 ` Michael 2020-07-14 16:23 ` Walter Dnes @ 2020-07-14 17:20 ` Walter Dnes 2020-07-14 17:30 ` Ashley Dixon ` (2 more replies) 1 sibling, 3 replies; 13+ messages in thread From: Walter Dnes @ 2020-07-14 17:20 UTC (permalink / raw To: gentoo-user On Tue, Jul 14, 2020 at 10:05:52AM +0100, Michael wrote > Is there a subdirectory 'iwlwifi-5000-ucode-5.4.A.11' in /lib/firmware/ ? > > I'm asking because the vanilla sys-kernel/linux-firmware does not create such > a subdirectory. This is what is listed here: > > $ ls -la /lib/firmware/iwlwifi-5000* > -rw-r--r-- 1 root root 345008 Jun 27 08:58 /lib/firmware/iwlwifi-5000-1.ucode > -rw-r--r-- 1 root root 353240 Jun 27 08:58 /lib/firmware/iwlwifi-5000-2.ucode > -rw-r--r-- 1 root root 340696 Jun 27 08:58 /lib/firmware/iwlwifi-5000-5.ucode > > Does dmesg reveal anything untoward in the kernel failing to find > or load this firmware? Still no wireless, but one bit of progress. It seems that the kernel does *NOT* like using subdirectories below /lib/firmware. I copied the ucode file to /lib/firmware and changed the path appropriately before building the kernel. Now dmesg at bootup shows... [ 0.757370] Intel(R) Wireless WiFi driver for Linux [ 0.757372] Copyright(c) 2003- 2015 Intel Corporation [ 0.757478] iwlwifi 0000:03:00.0: can't disable ASPM; OS doesn't have ASPM control [ 0.757877] iwlwifi 0000:03:00.0: loaded firmware version 8.83.5.1 build 33692 op_mode iwldvm [ 0.757963] iwlwifi 0000:03:00.0: CONFIG_IWLWIFI_DEBUG disabled [ 0.757967] iwlwifi 0000:03:00.0: CONFIG_IWLWIFI_DEBUGFS disabled [ 0.757970] iwlwifi 0000:03:00.0: CONFIG_IWLWIFI_DEVICE_TRACING disabled [ 0.757973] iwlwifi 0000:03:00.0: Detected Intel(R) WiFi Link 5100 AGN, REV=0x54 [ 0.761128] [drm] HPD interrupt storm detected on connector DP-3: switching from hotplug detection to polling [ 0.762028] fbcon: i915drmfb (fb0) is primary device [ 0.795312] ieee80211 phy0: Selected rate control algorithm 'iwl-agn-rs' > Also, make sure the wireless NIC is enabled in the BIOS and powered > up by toggling the appropriate Fn key combo, e.g. Fn+F5 or whatever > it is on your laptop. It's enabled in BIOS and the Gentoo minimal install usb stick brings up wlan0 just fine. In my first post, I listed what kernel settings I had set. Is there anything else required that I'm missing? After all these years of hard-wired, I'm still a newbie at wireless, so I could be missing something glaringly obvious. -- Walter Dnes <waltdnes@waltdnes.org> I don't run "desktop environments"; I run useful applications ^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [gentoo-user] No wifi 2020-07-14 17:20 ` Walter Dnes @ 2020-07-14 17:30 ` Ashley Dixon 2020-07-14 18:13 ` Michael 2020-07-14 20:02 ` [gentoo-user] [SOLVED] " Walter Dnes 2 siblings, 0 replies; 13+ messages in thread From: Ashley Dixon @ 2020-07-14 17:30 UTC (permalink / raw To: gentoo-user [-- Attachment #1: Type: text/plain, Size: 2725 bytes --] On Tue, Jul 14, 2020 at 01:20:39PM -0400, Walter Dnes wrote: > Still no wireless, but one bit of progress. It seems that the kernel > does *NOT* like using subdirectories below /lib/firmware. I copied the > ucode file to /lib/firmware and changed the path appropriately before > building the kernel. I can't imagine why that would be the case. My /lib/firmware structure looks a bit like this, for my video card: /lib/firmware/ ├── amdgpu │ ├── polaris10_ce_2.bin │ ├── polaris10_ce.bin │ ├── polaris10_k2_smc.bin │ ├── polaris10_k_mc.bin │ ├── polaris10_k_smc.bin │ ├── polaris10_mc.bin │ ├── polaris10_me_2.bin │ ├── polaris10_me.bin │ ├── polaris10_mec2_2.bin │ ├── polaris10_mec_2.bin │ ├── polaris10_mec2.bin │ ├── polaris10_mec.bin │ ├── polaris10_pfp_2.bin │ ├── polaris10_pfp.bin │ ├── polaris10_rlc.bin │ ├── polaris10_sdma1.bin │ ├── polaris10_sdma.bin │ ├── polaris10_smc.bin │ ├── polaris10_smc_sk.bin │ ├── polaris10_uvd.bin │ ├── polaris10_vce.bin │ ├── TAHITI_uvd.bin │ └── TAHITI_vce.bin ├── regulatory.db └── regulatory.db.p7s 1 directory, 25 files ... And the kernel .config: CONFIG_EXTRA_FIRMWARE_DIR="/lib/firmware/" CONFIG_EXTRA_FIRMWARE="amdgpu/polaris10_ce.bin amdgpu/polaris10_ce_2.bin amdgpu/polaris10_k_smc.bin amdgpu/polaris10_k2_smc.bin amdgpu/polaris10_k_mc.bin amdgpu/polaris10_mc.bin amdgpu/polaris10_me.bin amdgpu/polaris10_me_2.bin amdgpu/polaris10_mec2.bin amdgpu/polaris10_mec2_2.bin amdgpu/polaris10_mec.bin amdgpu/polaris10_mec_2.bin amdgpu/polaris10_pfp.bin amdgpu/polaris10_pfp_2.bin amdgpu/polaris10_rlc.bin amdgpu/polaris10_sdma1.bin amdgpu/polaris10_sdma.bin amdgpu/polaris10_smc.bin amdgpu/polaris10_smc_sk.bin amdgpu/polaris10_uvd.bin amdgpu/polaris10_vce.bin" It's tedious, but there's no reason that the kernel shouldn't find firmware in subdirectories. Perhaps you needed to add a trailing oblique ('/') to your CONFIG_EXTRA_FIRMWARE_DIR, such that the concatenated path is correct ? -- Ashley Dixon suugaku.co.uk 2A9A 4117 DA96 D18A 8A7B B0D2 A30E BF25 F290 A8AA [-- Attachment #2: signature.asc --] [-- Type: application/pgp-signature, Size: 833 bytes --] ^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [gentoo-user] No wifi 2020-07-14 17:20 ` Walter Dnes 2020-07-14 17:30 ` Ashley Dixon @ 2020-07-14 18:13 ` Michael 2020-07-14 20:02 ` [gentoo-user] [SOLVED] " Walter Dnes 2 siblings, 0 replies; 13+ messages in thread From: Michael @ 2020-07-14 18:13 UTC (permalink / raw To: gentoo-user [-- Attachment #1: Type: text/plain, Size: 3263 bytes --] On Tuesday, 14 July 2020 18:20:39 BST Walter Dnes wrote: > On Tue, Jul 14, 2020 at 10:05:52AM +0100, Michael wrote > > Does dmesg reveal anything untoward in the kernel failing to find > > or load this firmware? > > Still no wireless, but one bit of progress. It seems that the kernel > does *NOT* like using subdirectories below /lib/firmware. I copied the > ucode file to /lib/firmware and changed the path appropriately before > building the kernel. Now dmesg at bootup shows... That's OK, up to a point ... > [ 0.757370] Intel(R) Wireless WiFi driver for Linux > [ 0.757372] Copyright(c) 2003- 2015 Intel Corporation > [ 0.757478] iwlwifi 0000:03:00.0: can't disable ASPM; OS doesn't have > ASPM control [ 0.757877] iwlwifi 0000:03:00.0: loaded firmware version > 8.83.5.1 build 33692 op_mode iwldvm [ 0.757963] iwlwifi 0000:03:00.0: > CONFIG_IWLWIFI_DEBUG disabled [ 0.757967] iwlwifi 0000:03:00.0: > CONFIG_IWLWIFI_DEBUGFS disabled [ 0.757970] iwlwifi 0000:03:00.0: > CONFIG_IWLWIFI_DEVICE_TRACING disabled [ 0.757973] iwlwifi 0000:03:00.0: > Detected Intel(R) WiFi Link 5100 AGN, REV=0x54 [ 0.761128] [drm] HPD > interrupt storm detected on connector DP-3: switching from hotplug > detection to polling [ 0.762028] fbcon: i915drmfb (fb0) is primary > device > [ 0.795312] ieee80211 phy0: Selected rate control algorithm 'iwl-agn-rs' Normally you should see something like this following the above entries: [ 16.017699] iwlwifi 0000:04:00.0 wlp4s0: renamed from wlan0 [ 16.167105] EXT4-fs (sda4): mounted filesystem with ordered data mode. Opts: (null) [ 18.384509] iwlwifi 0000:04:00.0: Radio type=0x1-0x2-0x0 [ 18.500644] iwlwifi 0000:04:00.0: Radio type=0x1-0x2-0x0 > > Also, make sure the wireless NIC is enabled in the BIOS and powered > > up by toggling the appropriate Fn key combo, e.g. Fn+F5 or whatever > > it is on your laptop. > > It's enabled in BIOS and the Gentoo minimal install usb stick brings > up wlan0 just fine. In my first post, I listed what kernel settings I > had set. Is there anything else required that I'm missing? After all > these years of hard-wired, I'm still a newbie at wireless, so I could be > missing something glaringly obvious. In addition to your kernel selections I also have: CONFIG_RFKILL=y CONFIG_RFKILL_LEDS=y CONFIG_RFKILL_INPUT=y CONFIG_RFKILL_GPIO=y ... CONFIG_WLAN=y # CONFIG_WLAN_VENDOR_ADMTEK is not set # CONFIG_WLAN_VENDOR_ATH is not set # CONFIG_WLAN_VENDOR_ATMEL is not set # CONFIG_WLAN_VENDOR_BROADCOM is not set # CONFIG_WLAN_VENDOR_CISCO is not set CONFIG_WLAN_VENDOR_INTEL=y # CONFIG_IPW2100 is not set # CONFIG_IPW2200 is not set # CONFIG_IWL4965 is not set # CONFIG_IWL3945 is not set CONFIG_IWLWIFI=m CONFIG_IWLWIFI_LEDS=y CONFIG_IWLDVM=m # CONFIG_IWLMVM is not set CONFIG_IWLWIFI_OPMODE_MODULAR=y As you can see I'm using modules and the kernel loads the firmware without me including it in the kernel config. Not sure if there is a difference between built-in and module configuration for the Wireless devices, but you could try it. If you have not built RFKILL in your kernel I suggest you do so and reboot. Finally, may be worth checking the troubleshooting section here: https://wiki.gentoo.org/wiki/Iwlwifi HTH. [-- Attachment #2: This is a digitally signed message part. --] [-- Type: application/pgp-signature, Size: 833 bytes --] ^ permalink raw reply [flat|nested] 13+ messages in thread
* [gentoo-user] [SOLVED] No wifi 2020-07-14 17:20 ` Walter Dnes 2020-07-14 17:30 ` Ashley Dixon 2020-07-14 18:13 ` Michael @ 2020-07-14 20:02 ` Walter Dnes 2 siblings, 0 replies; 13+ messages in thread From: Walter Dnes @ 2020-07-14 20:02 UTC (permalink / raw To: gentoo-user On Tue, Jul 14, 2020 at 01:20:39PM -0400, Walter Dnes wrote > > Still no wireless, but one bit of progress. It seems that the kernel > does *NOT* like using subdirectories below /lib/firmware. I copied the > ucode file to /lib/firmware and changed the path appropriately before > building the kernel. Now dmesg at bootup shows... > > [ 0.757370] Intel(R) Wireless WiFi driver for Linux > [ 0.757372] Copyright(c) 2003- 2015 Intel Corporation > [ 0.757478] iwlwifi 0000:03:00.0: can't disable ASPM; OS doesn't have ASPM control > [ 0.757877] iwlwifi 0000:03:00.0: loaded firmware version 8.83.5.1 build 33692 op_mode iwldvm > [ 0.757963] iwlwifi 0000:03:00.0: CONFIG_IWLWIFI_DEBUG disabled > [ 0.757967] iwlwifi 0000:03:00.0: CONFIG_IWLWIFI_DEBUGFS disabled > [ 0.757970] iwlwifi 0000:03:00.0: CONFIG_IWLWIFI_DEVICE_TRACING disabled > [ 0.757973] iwlwifi 0000:03:00.0: Detected Intel(R) WiFi Link 5100 AGN, REV=0x54 > [ 0.761128] [drm] HPD interrupt storm detected on connector DP-3: switching from hotplug detection to polling > [ 0.762028] fbcon: i915drmfb (fb0) is primary device > [ 0.795312] ieee80211 phy0: Selected rate control algorithm 'iwl-agn-rs' Guess what I was missing... "ifconfig" versus "ifconfig -a". One is not like the other. I feel stupid. I may be back with more questions. https://wiki.gentoo.org/wiki/Handbook:X86/Networking/Wireless looks rather intimidating, but wpa_supplicant seems to be the only choice. [thimk][root][~] 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 ether 00:27:13:64:6a:0d txqueuelen 1000 (Ethernet) RX packets 51929 bytes 3348657 (3.1 MiB) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 426 bytes 79801 (77.9 KiB) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0 device interrupt 20 memory 0xfc000000-fc020000 lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536 inet 127.0.0.1 netmask 255.0.0.0 loop txqueuelen 1000 (Local Loopback) RX packets 0 bytes 0 (0.0 B) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 0 bytes 0 (0.0 B) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0 [thimk][root][~] ifconfig -a eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500 inet 192.168.1.2 netmask 255.255.255.0 broadcast 192.168.1.255 ether 00:27:13:64:6a:0d txqueuelen 1000 (Ethernet) RX packets 52008 bytes 3354071 (3.1 MiB) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 436 bytes 81829 (79.9 KiB) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0 device interrupt 20 memory 0xfc000000-fc020000 lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536 inet 127.0.0.1 netmask 255.0.0.0 loop txqueuelen 1000 (Local Loopback) RX packets 0 bytes 0 (0.0 B) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 0 bytes 0 (0.0 B) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0 wlan0: flags=4098<BROADCAST,MULTICAST> mtu 1500 ether 00:26:c6:4a:b4:92 txqueuelen 1000 (Ethernet) RX packets 0 bytes 0 (0.0 B) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 0 bytes 0 (0.0 B) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0 -- Walter Dnes <waltdnes@waltdnes.org> I don't run "desktop environments"; I run useful applications ^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [gentoo-user] No wifi 2020-07-14 4:59 ` Ashley Dixon 2020-07-14 9:05 ` Michael @ 2020-07-14 14:31 ` Walter Dnes 2020-07-14 14:45 ` Ashley Dixon 1 sibling, 1 reply; 13+ messages in thread From: Walter Dnes @ 2020-07-14 14:31 UTC (permalink / raw To: gentoo-user [-- Attachment #1: Type: text/plain, Size: 2396 bytes --] One thing I should've mentioned in the first post is that booting from the minimal install USB, wlan0 does show up, so the hardware works. On Tue, Jul 14, 2020 at 05:59:37AM +0100, Ashley Dixon wrote > > It doesn't look like it's loading the firmware. Are there any obvious > firmware-loading errors in dmesg ? What is ASPM and what is error -2? BTW, on my first attempt, when I accidentally tried a non-existant firmware path, the kernel compile died early on. Here is what I get in dmesg with ucode 8.83.5.1-1 [ 0.728996] Intel(R) Wireless WiFi driver for Linux [ 0.728998] Copyright(c) 2003- 2015 Intel Corporation [ 0.729099] iwlwifi 0000:03:00.0: can't disable ASPM; OS doesn't have ASPM control [ 0.729298] iwlwifi 0000:03:00.0: Direct firmware load for iwlwifi-5000-5.ucode failed with error -2 [ 0.729311] iwlwifi 0000:03:00.0: Direct firmware load for iwlwifi-5000-4.ucode failed with error -2 [ 0.729322] iwlwifi 0000:03:00.0: Direct firmware load for iwlwifi-5000-3.ucode failed with error -2 [ 0.729334] iwlwifi 0000:03:00.0: Direct firmware load for iwlwifi-5000-2.ucode failed with error -2 [ 0.729346] iwlwifi 0000:03:00.0: Direct firmware load for iwlwifi-5000-1.ucode failed with error -2 [ 0.729351] iwlwifi 0000:03:00.0: no suitable firmware found! [ 0.729354] iwlwifi 0000:03:00.0: minimum version required: iwlwifi-5000-1 [ 0.729359] iwlwifi 0000:03:00.0: maximum version supported: iwlwifi-5000-5 [ 0.729362] iwlwifi 0000:03:00.0: check git://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git > That looks fine, although why are you using such an outdated version > of the microcode ? For kernels 2.6.38+, you can use 8.83.5.1-1. The way the items lined up on the webpage, I mis-interpreted it to mean one driver for 5100AGN, one for 5300AGN, and one for 5350AGN. See attachment. > Perhaps it would be better to install it from > the Gentoo-provided firmware package ? Amend > /etc/portage/savedconfig/sys-kernel/linux-firmware to include the > appropriate entries (listing at [1]), and emerge `linux-firmware` > with the `savedconfig` USE-flag. > > [1] https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git/tree/ I'll do that next if there's nothing obvious here. -- Walter Dnes <waltdnes@waltdnes.org> I don't run "desktop environments"; I run useful applications [-- Attachment #2: screen.jpg --] [-- Type: image/jpeg, Size: 24821 bytes --] ^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [gentoo-user] No wifi 2020-07-14 14:31 ` [gentoo-user] " Walter Dnes @ 2020-07-14 14:45 ` Ashley Dixon 0 siblings, 0 replies; 13+ messages in thread From: Ashley Dixon @ 2020-07-14 14:45 UTC (permalink / raw To: gentoo-user [-- Attachment #1: Type: text/plain, Size: 2597 bytes --] On Tue, Jul 14, 2020 at 10:31:21AM -0400, Walter Dnes wrote: > One thing I should've mentioned in the first post is that booting from > the minimal install USB, wlan0 does show up, so the hardware works. That's because the "minimal" install disk actually has quite a lot of stuff installed/enabled, to support all (or, as much as possible) common hardware in a live environment, as this generally runs before the point at which the user can configure their own kernel. > On Tue, Jul 14, 2020 at 05:59:37AM +0100, Ashley Dixon wrote > > It doesn't look like it's loading the firmware. Are there any obvious > > firmware-loading errors in dmesg ? > > What is ASPM and what is error -2? BTW, on my first attempt, when I > accidentally tried a non-existant firmware path, the kernel compile died > early on. Here is what I get in dmesg with ucode 8.83.5.1-1 Error -2 means that it can't find the file: "ENOENT 2 No such file or directory". You should install the firmware through `sys-kernel/linux-firmware`, and then edit your .config accordingly (as Michael mentioned, no subdirectories are added by the Gentoo package): CONFIG_EXTRA_FIRMWARE_DIR="/lib/firmware/" CONFIG_EXTRA_FIRMWARE="iwlwifi-5000-1.ucode iwlwifi-5000-2.ucode iwlwifi-5000-5.ucode" > > That looks fine, although why are you using such an outdated version > > of the microcode ? For kernels 2.6.38+, you can use 8.83.5.1-1. > > The way the items lined up on the webpage, I mis-interpreted it to > mean one driver for 5100AGN, one for 5300AGN, and one for 5350AGN. See > attachment. The table is slightly misleading, but I think that any of the listed firmware packages can work for any of the listed devices, and the only distinction between the files is the supported kernel versions. Thus, you should be able to safely use the latest version. > > Perhaps it would be better to install it from > > the Gentoo-provided firmware package ? Amend > > /etc/portage/savedconfig/sys-kernel/linux-firmware to include the > > appropriate entries (listing at [1]), and emerge `linux-firmware` > > with the `savedconfig` USE-flag. > > I'll do that next if there's nothing obvious here. Yes, that is your next step. Append the appropriate entries to your savedconfig file and emerge `linux-firmware` with `savedconfig`: iwlwifi-5000-1.ucode iwlwifi-5000-2.ucode iwlwifi-5000-5.ucode -- Ashley Dixon suugaku.co.uk 2A9A 4117 DA96 D18A 8A7B B0D2 A30E BF25 F290 A8AA [-- Attachment #2: signature.asc --] [-- Type: application/pgp-signature, Size: 833 bytes --] ^ permalink raw reply [flat|nested] 13+ messages in thread
end of thread, other threads:[~2020-07-14 20:02 UTC | newest] Thread overview: 13+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2020-07-14 1:53 [gentoo-user] No wifi Walter Dnes 2020-07-14 2:12 ` Ashley Dixon 2020-07-14 4:19 ` Walter Dnes 2020-07-14 4:59 ` Ashley Dixon 2020-07-14 9:05 ` Michael 2020-07-14 16:23 ` Walter Dnes 2020-07-14 17:17 ` Jack 2020-07-14 17:20 ` Walter Dnes 2020-07-14 17:30 ` Ashley Dixon 2020-07-14 18:13 ` Michael 2020-07-14 20:02 ` [gentoo-user] [SOLVED] " Walter Dnes 2020-07-14 14:31 ` [gentoo-user] " Walter Dnes 2020-07-14 14:45 ` Ashley Dixon
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox