LINUX.ORG.RU

Как заставить wifi работать в Gentoo?

 


0

1

Всем привет! Ноутбук Lenovo X230, Gentoo+XFCE, вот такая карточка:

03:00.0 Network controller [0280]: Intel Corporation Centrino Wireless-N 2200 [8086:0891] (rev c4)
        Subsystem: Intel Corporation Centrino Wireless-N 2200 BGN [8086:4222]
        Flags: fast devsel, IRQ 17
        Memory at f1c00000 (64-bit, non-prefetchable) [size=8K]
        Capabilities: [c8] Power Management version 3
        Capabilities: [d0] MSI: Enable- Count=1/1 Maskable- 64bit+
        Capabilities: [e0] Express Endpoint, MSI 00
        Capabilities: [100] Advanced Error Reporting
        Capabilities: [140] Device Serial Number 9c-4e-36-ff-ff-ba-4c-e4
        Kernel modules: iwlwifi

Ядро собрано по гайду https://wiki.gentoo.org/wiki/Iwlwifi#Device_driver_iwlwifi, прошивка установлена, значок беспроводных сетей горит на корпусе, но nm-applet почему-то не видит беспроводных сетей. ЧЯДНТ?

Ответ на: комментарий от vvn_black
 nmcli
eth0: connected to Wired connection 1
        "Intel 82579LM Gigabit"
        ethernet (e1000e), 3C:97:0E:9E:1B:3B, hw, mtu 1500
        ip4 default
        inet4 192.168.1.54/24
        inet6 fe80::e253:1b16:7011:d0b4/64
        route6 ff00::/8

sit0: unmanaged
        "sit0"
        iptunnel (sit), sw, mtu 1480

lo: unmanaged
        "lo"
        loopback (unknown), 00:00:00:00:00:00, sw, mtu 65536

DNS configuration:
        servers: 192.168.1.1
        interface: eth0

Use "nmcli device show" to get complete information about known devices and
"nmcli connection show" to get an overview on active connection profiles.

Consult nmcli(1) and nmcli-examples(5) manual pages for complete usage details.

В логах нашёл

Dec 29 12:27:56 x230 kernel: [    0.548687] Copyright(c) 2003- 2015 Intel Corporation
Dec 29 12:27:56 x230 kernel: [    0.548817] iwlwifi 0000:03:00.0: can't disable ASPM; OS doesn't have ASPM control
Dec 29 12:27:56 x230 kernel: [    0.549126] iwlwifi 0000:03:00.0: Direct firmware load for iwlwifi-2000-6.ucode failed with error -2
Dec 29 12:27:56 x230 kernel: [    0.549136] iwlwifi 0000:03:00.0: Direct firmware load for iwlwifi-2000-5.ucode failed with error -2
Dec 29 12:27:56 x230 kernel: [    0.549139] iwlwifi 0000:03:00.0: no suitable firmware found!
Dec 29 12:27:56 x230 kernel: [    0.549142] iwlwifi 0000:03:00.0: minimum version required: iwlwifi-2000-5
Dec 29 12:27:56 x230 kernel: [    0.549144] iwlwifi 0000:03:00.0: maximum version supported: iwlwifi-2000-6
Dec 29 12:27:56 x230 kernel: [    0.549146] iwlwifi 0000:03:00.0: check git://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git

Хотя ебилд с прошивкой установлен. Нашёл файлы прошивки отдельно - куда их положить?

dpronyaev ()
Ответ на: комментарий от vvn_black

Первый установлен (файл iwlwifi-2000-6.ucode как раз из него)

При попытке установить второй:

emerge: there are no ebuilds to satisfy "sys-firmware/iwl2000-ucode".

emerge: searching for similar names...
emerge: Maybe you meant any of these: sys-firmware/iwl8000-ucode, sys-firmware/iwl1000-ucode, sys-firmware/iwl7260-ucode?

dpronyaev ()
Ответ на: комментарий от dpronyaev

По идее можно обойтись и без sys-firmware/iwl2000-ucode.

Можно поделать modprobe iwlwifi и посмотреть, что там в dmesg.

vvn_black ★★★★★ ()
Ответ на: комментарий от dpronyaev

dmesg посмотри, там обычно пишется что грузится, что хочет загрузиться, что не нашлось и что не так загрузилось

imul ★★★★★ ()
Ответ на: комментарий от dpronyaev

Как собран драйвер модулем или монолитно в ядре?

Если собран монолитно в ядре, то нужно включаить firmware в ядро, если используется initramfs, то можно попробовать положить нужные файлы прошивок в /lib/firmware в initramfs в соответствующие поддиректории.

Но лучше, либо включить прошивки в само ядро, если драйвер собран монолитно, либо собирать драйвер модулем, что бы он грузился уже после монтирования корневой файловой системы.

kostik87 ★★★★★ ()

Узбагойся!

Зойчем ты приволок эту штукенцию nm-applet в студию?
Ты видел, девушек которые интересутся этой прогой?

blitz ()
Ответ на: комментарий от kostik87

Собрал модулем, теперь интерфейс виден (wlp3s0):

enp0s25: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 192.168.1.54  netmask 255.255.255.0  broadcast 192.168.1.255
        ether 3c:97:0e:9e:1b:3b  txqueuelen 1000  (Ethernet)
        RX packets 79  bytes 10594 (10.3 KiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 50  bytes 9711 (9.4 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
        device interrupt 20  memory 0xf2500000-f2520000

lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
        inet 127.0.0.1  netmask 255.0.0.0
        loop  txqueuelen 1  (Local Loopback)
        RX packets 2  bytes 100 (100.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 2  bytes 100 (100.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

wlp3s0: flags=4099<UP,BROADCAST,MULTICAST>  mtu 1500
        ether be:c6:60:b4:5a:72  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

Но в nm-applet видится только Wired Connection 1, сети вифи не видны

dpronyaev ()
Ответ на: комментарий от vvn_black

Вот что происходит после загрузки системы. Дрова вифи успешно инициализируются, network manager почему-то видит только проводное соединение.

Jan  1 12:46:30 x230 kernel: [    4.114415] Intel(R) Wireless WiFi driver for Linux
Jan  1 12:46:30 x230 kernel: [    4.114417] Copyright(c) 2003- 2015 Intel Corporation
Jan  1 12:46:30 x230 kernel: [    4.114680] iwlwifi 0000:03:00.0: can't disable ASPM; OS doesn't have ASPM control
Jan  1 12:46:30 x230 kernel: [    4.123940] iwlwifi 0000:03:00.0: loaded firmware version 18.168.6.1 op_mode iwldvm
Jan  1 12:46:30 x230 kernel: [    4.140554] iwlwifi 0000:03:00.0: CONFIG_IWLWIFI_DEBUG disabled
Jan  1 12:46:30 x230 kernel: [    4.140559] iwlwifi 0000:03:00.0: CONFIG_IWLWIFI_DEBUGFS disabled
Jan  1 12:46:30 x230 kernel: [    4.140562] iwlwifi 0000:03:00.0: CONFIG_IWLWIFI_DEVICE_TRACING enabled
Jan  1 12:46:30 x230 kernel: [    4.140566] iwlwifi 0000:03:00.0: Detected Intel(R) Centrino(R) Wireless-N 2200 BGN, REV=0x104
Jan  1 12:46:30 x230 kernel: [    4.142247] iwlwifi 0000:03:00.0: L1 Enabled - LTR Disabled
Jan  1 12:46:30 x230 kernel: [    4.172551] ieee80211 phy0: Selected rate control algorithm 'iwl-agn-rs'
Jan  1 12:46:30 x230 kernel: [    4.175564] iwlwifi 0000:03:00.0 wlp3s0: renamed from wlan0
Jan  1 12:46:30 x230 kernel: [    4.996998] EXT4-fs (sda4): re-mounted. Opts: data=ordered
Jan  1 12:46:30 x230 kernel: [    5.863946] ip (2362) used greatest stack depth: 12984 bytes left
Jan  1 12:46:30 x230 kernel: [    6.523438] iwlwifi 0000:03:00.0: L1 Enabled - LTR Disabled
Jan  1 12:46:30 x230 kernel: [    6.530913] iwlwifi 0000:03:00.0: L1 Enabled - LTR Disabled
Jan  1 12:46:30 x230 kernel: [    6.531014] iwlwifi 0000:03:00.0: Radio type=0x2-0x0-0x0
Jan  1 12:46:30 x230 kernel: [    6.779529] iwlwifi 0000:03:00.0: L1 Enabled - LTR Disabled
Jan  1 12:46:30 x230 kernel: [    6.787007] iwlwifi 0000:03:00.0: L1 Enabled - LTR Disabled
Jan  1 12:46:30 x230 kernel: [    6.787107] iwlwifi 0000:03:00.0: Radio type=0x2-0x0-0x0
Jan  1 12:46:30 x230 kernel: [    6.848460] iwlwifi 0000:03:00.0: L1 Enabled - LTR Disabled
Jan  1 12:46:30 x230 kernel: [    6.855945] iwlwifi 0000:03:00.0: L1 Enabled - LTR Disabled
Jan  1 12:46:31 x230 ModemManager[2498]: <info>  Couldn't check support for device at '/sys/devices/pci0000:00/0000:00:19.0': not supported by any plugin
Jan  1 12:46:31 x230 ModemManager[2498]: <info>  Couldn't check support for device at '/sys/devices/pci0000:00/0000:00:1c.1/0000:03:00.0': not supported by any plugin
Jan  1 12:46:33 x230 kernel: [   11.756571] e1000e: enp0s25 NIC Link is Up 1000 Mbps Full Duplex, Flow Control: Rx/Tx
Jan  1 12:46:33 x230 NetworkManager[2475]: <info>  [1514799993.8936] device (enp0s25): link connected
Jan  1 12:46:33 x230 NetworkManager[2475]: <info>  [1514799993.8943] device (enp0s25): state change: unavailable -> disconnected (reason 'carrier-changed', internal state 'managed')
Jan  1 12:46:33 x230 NetworkManager[2475]: <info>  [1514799993.8949] policy: auto-activating connection 'Wired connection 1'
Jan  1 12:46:33 x230 NetworkManager[2475]: <info>  [1514799993.8969] device (enp0s25): Activation: starting connection 'Wired connection 1' (e7ea1f1d-d158-3c5e-8eed-dd885bae6a8a)
Jan  1 12:46:33 x230 NetworkManager[2475]: <info>  [1514799993.8972] device (enp0s25): state change: disconnected -> prepare (reason 'none', internal state 'managed')
Jan  1 12:46:33 x230 NetworkManager[2475]: <info>  [1514799993.8976] manager: NetworkManager state is now CONNECTING
Jan  1 12:46:33 x230 NetworkManager[2475]: <info>  [1514799993.8983] device (enp0s25): state change: prepare -> config (reason 'none', internal state 'managed')
Jan  1 12:46:33 x230 NetworkManager[2475]: <info>  [1514799993.8990] device (enp0s25): state change: config -> ip-config (reason 'none', internal state 'managed')
Jan  1 12:46:33 x230 NetworkManager[2475]: <info>  [1514799993.8997] dhcp-init: Using DHCP client 'dhclient'
Jan  1 12:46:33 x230 NetworkManager[2475]: <info>  [1514799993.9006] dhcp4 (enp0s25): activation: beginning transaction (timeout in 45 seconds)
Jan  1 12:46:33 x230 NetworkManager[2475]: <info>  [1514799993.9077] dhcp4 (enp0s25): dhclient started with pid 2734
Jan  1 12:46:33 x230 NetworkManager[2475]: <error> [1514799993.9094] device (enp0s25): addrconf6: failed to start neighbor discovery: failure creating libndp socket: Address family not supp$
Jan  1 12:46:33 x230 dhclient: DHCPREQUEST on enp0s25 to 255.255.255.255 port 67
Jan  1 12:46:33 x230 dhclient: DHCPACK from 192.168.1.1
Jan  1 12:46:33 x230 NetworkManager[2475]: <info>  [1514799993.9493] dhcp4 (enp0s25):   address 192.168.1.54
Jan  1 12:46:33 x230 NetworkManager[2475]: <info>  [1514799993.9494] dhcp4 (enp0s25):   plen 24 (255.255.255.0)
Jan  1 12:46:33 x230 NetworkManager[2475]: <info>  [1514799993.9494] dhcp4 (enp0s25):   gateway 192.168.1.1
Jan  1 12:46:33 x230 NetworkManager[2475]: <info>  [1514799993.9495] dhcp4 (enp0s25):   lease time 25200
Jan  1 12:46:33 x230 NetworkManager[2475]: <info>  [1514799993.9495] dhcp4 (enp0s25):   nameserver '192.168.1.1'

Jan  1 12:46:33 x230 NetworkManager[2475]: <info>  [1514799993.9495] dhcp4 (enp0s25): state changed unknown -> bound
Jan  1 12:46:33 x230 NetworkManager[2475]: <info>  [1514799993.9515] device (enp0s25): state change: ip-config -> ip-check (reason 'none', internal state 'managed')
Jan  1 12:46:33 x230 NetworkManager[2475]: <info>  [1514799993.9529] device (enp0s25): state change: ip-check -> secondaries (reason 'none', internal state 'managed')
Jan  1 12:46:33 x230 NetworkManager[2475]: <info>  [1514799993.9536] device (enp0s25): state change: secondaries -> activated (reason 'none', internal state 'managed')
Jan  1 12:46:33 x230 dhclient: bound to 192.168.1.54 -- renewal in 10148 seconds.
Jan  1 12:46:33 x230 NetworkManager[2475]: <info>  [1514799993.9540] manager: NetworkManager state is now CONNECTED_LOCAL
Jan  1 12:46:33 x230 NetworkManager[2475]: <info>  [1514799993.9577] manager: NetworkManager state is now CONNECTED_SITE
Jan  1 12:46:33 x230 NetworkManager[2475]: <info>  [1514799993.9579] policy: set 'Wired connection 1' (enp0s25) as default for IPv4 routing and DNS
Jan  1 12:46:33 x230 NetworkManager[2475]: <info>  [1514799993.9611] device (enp0s25): Activation: successful, device activated.
Jan  1 12:46:33 x230 NetworkManager[2475]: <info>  [1514799993.9622] manager: startup complete
Jan  1 12:46:33 x230 NetworkManager[2475]: <info>  [1514799993.9631] manager: NetworkManager state is now CONNECTED_GLOBAL
Jan  1 12:46:33 x230 nm-dispatcher: req:1 'up' [enp0s25]: new request (1 scripts)
Jan  1 12:46:33 x230 nm-dispatcher: req:1 'up' [enp0s25]: start running ordered scripts...
Jan  1 12:46:33 x230 nm-dispatcher: req:2 'connectivity-change': new request (1 scripts)
Jan  1 12:46:34 x230 /etc/init.d/NetworkManager[2760]: status: inactive
Jan  1 12:46:34 x230 /etc/init.d/NetworkManager[2778]: status: inactive
Jan  1 12:46:34 x230 nm-dispatcher: req:2 'connectivity-change': start running ordered scripts...
Jan  1 12:46:49 x230 dbus[2442]: [system] Activating service name='org.freedesktop.ConsoleKit' (using servicehelper)
Jan  1 12:46:49 x230 dbus[2442]: [system] Successfully activated service 'org.freedesktop.ConsoleKit'

dpronyaev ()
Ответ на: комментарий от dpronyaev
rfkill list all

Что показывает?

С какими флагами собран networkmanager?

kostik87 ★★★★★ ()
Последнее исправление: kostik87 (всего исправлений: 1)
Вы не можете добавлять комментарии в эту тему. Тема перемещена в архив.