Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
wlp2s0 interface doesn't work
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo on AMD64
View previous topic :: View next topic  
Author Message
inmaks
n00b
n00b


Joined: 18 Nov 2020
Posts: 6

PostPosted: Wed Nov 18, 2020 12:35 am    Post subject: wlp2s0 interface doesn't work Reply with quote

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
View user's profile Send private message
mike155
Advocate
Advocate


Joined: 17 Sep 2010
Posts: 4438
Location: Frankfurt, Germany

PostPosted: Wed Nov 18, 2020 12:54 am    Post subject: Reply with quote

  1. First of all: please run
    Code:
    uname -a

    and check the version number and the compile time. Is the kernel running you just compiled and installed? Or is a different kernel running?

  2. Please post the output of
    Code:
    ifconfig -a

Back to top
View user's profile Send private message
inmaks
n00b
n00b


Joined: 18 Nov 2020
Posts: 6

PostPosted: Wed Nov 18, 2020 1:01 am    Post subject: Reply with quote

mike155 wrote:
  1. First of all: please run
    Code:
    uname -a

    and check the version number and the compile time. Is the kernel running you just compiled and installed? Or is a different kernel running?

  2. Please post the output of
    Code:
    ifconfig -a


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
View user's profile Send private message
Hu
Administrator
Administrator


Joined: 06 Mar 2007
Posts: 22686

PostPosted: Wed Nov 18, 2020 2:44 am    Post subject: Reply with quote

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
View user's profile Send private message
pietinger
Moderator
Moderator


Joined: 17 Oct 2006
Posts: 5118
Location: Bavaria

PostPosted: Wed Nov 18, 2020 3:05 am    Post subject: Re: wlp2s0 interface doesn't work Reply with quote

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
View user's profile Send private message
inmaks
n00b
n00b


Joined: 18 Nov 2020
Posts: 6

PostPosted: Wed Nov 18, 2020 8:12 am    Post subject: Reply with quote

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
Code:
Modify: 23:55:02
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
View user's profile Send private message
charles17
Advocate
Advocate


Joined: 02 Mar 2008
Posts: 3684

PostPosted: Wed Nov 18, 2020 9:25 am    Post subject: Reply with quote

inmaks,

Gentoo has some more wiki articles which might be helpful for your problem
Back to top
View user's profile Send private message
inmaks
n00b
n00b


Joined: 18 Nov 2020
Posts: 6

PostPosted: Wed Nov 18, 2020 9:30 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on AMD64 All times are GMT
Page 1 of 1

 
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