View previous topic :: View next topic |
Author |
Message |
inmaks n00b
Joined: 18 Nov 2020 Posts: 6
|
Posted: Wed Nov 18, 2020 12:35 am Post subject: wlp2s0 interface doesn't work |
|
|
Hello everyone, I installed Gentoo for the first time and encountered such a problem, I can not connect to the Internet, wpa_supplicant does not start, ifconfig wlp2s0 writes "Device not found", I looked for the problem, I did not include the "ath10k_pci" driver during the kernel installation (because it was not shown to me in the search), I found a link showing which drivers to install, it has same network adapter https://wiki.gentoo.org/wiki/Lenovo_ThinkPad_E485, To activate all needed drivers I wrote:
Code: | cd /usr/src/linux
make menuconfig
|
Then to install new drivers I wrote:
Code: | make && make modules_install install |
Then to update the boot loader i wrote:
Code: | cd /boot/efi/boot
rm bootx64.efi
cd /boot
cp /boot/vmlinuz-* /boot/efi/boot/bootx64.efi
efibootmgr -b 0001 -B
efibootmgr --create --disk /dev/sda --part 2 --label "Gentoo" --loader "\efi\boot\bootx64.efi" |
rebooted and nothing changed
Question is, where is my mistake and how can I solve this problem? |
|
Back to top |
|
|
mike155 Advocate
Joined: 17 Sep 2010 Posts: 4438 Location: Frankfurt, Germany
|
Posted: Wed Nov 18, 2020 12:54 am Post subject: |
|
|
- First of all: please run
and check the version number and the compile time. Is the kernel running you just compiled and installed? Or is a different kernel running?
Please post the output of
|
|
Back to top |
|
|
inmaks n00b
Joined: 18 Nov 2020 Posts: 6
|
Posted: Wed Nov 18, 2020 1:01 am Post subject: |
|
|
mike155 wrote: | - First of all: please run
and check the version number and the compile time. Is the kernel running you just compiled and installed? Or is a different kernel running?
- Please post the output of
|
from uname -a output i can say that this is a different kernel running because the compile time isn't the time when i activated new drivers
ifconfig -a output is
Code: | lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
sit0: flags=128<NOARP> mtu 1480 |
|
|
Back to top |
|
|
Hu Administrator
Joined: 06 Mar 2007 Posts: 22686
|
Posted: Wed Nov 18, 2020 2:44 am Post subject: |
|
|
If uname -a does not match the kernel you expect, then you are running a kernel other than the one you intended. The kernel you intended to run may already be configured correctly, and just waiting for you to use it instead of your current one. What output did you get when you ran efibootmgr? Are you sure you had your EFI System Partition mounted correctly when you attempted the install? Personally, I would not remove bootx64.efi outright, but instead use some other name for the Linux stub kernel. |
|
Back to top |
|
|
pietinger Moderator
Joined: 17 Oct 2006 Posts: 5118 Location: Bavaria
|
Posted: Wed Nov 18, 2020 3:05 am Post subject: Re: wlp2s0 interface doesn't work |
|
|
Let me add something:
1. Dont copy this way:
Code: | cp /boot/vmlinuz-* /boot/efi/boot/bootx64.efi |
This is wrong. Do this instead:
Code: | cp /usr/src/linux/arch/x86/boot/bzImage /boot/efi/boot/bootx64.efi |
2. You have to set your Gentoo Kernel only ONCE to UEFI. Dont do it all the time. So, if you have done this once, dont do it anymore:
Code: | efibootmgr -b 0001 -B
efibootmgr --create --disk /dev/sda --part 2 --label "Gentoo" --loader "\efi\boot\bootx64.efi" |
|
|
Back to top |
|
|
inmaks n00b
Joined: 18 Nov 2020 Posts: 6
|
Posted: Wed Nov 18, 2020 8:12 am Post subject: |
|
|
Hu wrote: | If uname -a does not match the kernel you expect, then you are running a kernel other than the one you intended. The kernel you intended to run may already be configured correctly, and just waiting for you to use it instead of your current one. What output did you get when you ran efibootmgr? Are you sure you had your EFI System Partition mounted correctly when you attempted the install? Personally, I would not remove bootx64.efi outright, but instead use some other name for the Linux stub kernel. |
i checked this file "vmlinuz-5.9.8-gentoo" with Code: | stat vmlinuz-5.9.8-gentoo | and ouput is but i activated new drivers after that time and it didn't change so how can i rebuild the kernel correctly then?
efibootmgr output is
Code: | BootCurrent:0001
Timeout: 0 seconds
BootOrder: 0001,0000,0002,2001
Boot0000* Linpus Lite
Boot0001* Gentoo
|
|
|
Back to top |
|
|
charles17 Advocate
Joined: 02 Mar 2008 Posts: 3684
|
Posted: Wed Nov 18, 2020 9:25 am Post subject: |
|
|
inmaks,
Gentoo has some more wiki articles which might be helpful for your problem |
|
Back to top |
|
|
inmaks n00b
Joined: 18 Nov 2020 Posts: 6
|
Posted: Wed Nov 18, 2020 9:30 am Post subject: |
|
|
charles17 wrote: | inmaks,
Gentoo has some more wiki articles which might be helpful for your problem |
thank You all for the replies, i solved this problem, I booted from livecd emeged gentoo-sources again, did Code: | make -j2 && make modules_install install |
changed kernel in efibootmgr again and saw the wpa_supplicant error message at boot up, that /etc/wpa_supplicant/wpa_supplicant.conf doesnt exist, made it, it doesnt work, but system now see the interface, after boot up, i write Code: | killall wpa_supplicant | and then run wpa_supplicant manually, and now i have the access to the internet.
Thank You all for the help! |
|
Back to top |
|
|
|