Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
lspci displays my wifi card, but ifconfig does not
View unanswered posts
View posts from last 24 hours

Goto page Previous  1, 2  
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
m_p_w
n00b
n00b


Joined: 12 Sep 2016
Posts: 31

PostPosted: Sun Aug 19, 2018 6:42 pm    Post subject: Reply with quote

Do you mean initrd in /usr/share/man/man4/ ?

Additionally, do you rewrite grub.cfg with the command update-grub?
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


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

PostPosted: Sun Aug 19, 2018 8:16 pm    Post subject: Reply with quote

m_p_w,

The terms initrd and initramfs are used interchangeably. They both serve the same function but have different internal structures.
Genkernel will have made you a new initramfs file and put it into /boot beside the kernel.
Its kernel specific because it contains kernel modules. You must use the initramfs that matches your kernel.

Looking at your previous /boot
Code:
-rw-r--r-- 1 root root  116232 Aug 15 17:21 config-4.14.61-gentoo
drwxr-xr-x 6 root root    4096 Aug 15 21:15 grub
-rw-r--r-- 1 root root 1562260 Aug 15 18:04 initramfs-genkernel-x86_64-4.14.61-gentoo
-rw-r--r-- 1 root root 4293886 Aug 15 17:21 System.map-4.14.61-gentoo
-rw-r--r-- 1 root root 9404688 Aug 15 17:21 vmlinuz-4.14.61-gentoo


config-4.14.61-gentoo is the .config the kernel was built with.
grub is the directory where grub lives.
initramfs-genkernel-x86_64-4.14.61-gentoo is the file I have been calling the initrd.
Notice its slightly newer than the kernel. Thats because the kernel has to be made first, so the modules can be included here.
System.map-4.14.61-gentoo is a list of kernel symbols and addresses. Its used for debugging.
vmlinuz-4.14.61-gentoo is the kernel itself.

Your times and dates on those files will have changed if all is well.

To rewrite grub.cfg, you use the command
Code:
grub-mkconfig -o /boot/grub/grub.cfg

_________________
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
m_p_w
n00b
n00b


Joined: 12 Sep 2016
Posts: 31

PostPosted: Mon Aug 20, 2018 12:47 am    Post subject: Reply with quote

Ok everything works now. Thank you very much.
I will just write the steps which I took, so it would be easier for someone with similar problem to follow.


Specifications of my system

-Fresh Install
-wifi driver which works 10/10 out of the box on debian (in my case:- Qualcomm Atheros QCA9565 / AR9565)

step 1)
check if this is the case for you too

Code:
lspci

Displays your wifi card

Code:
ifconfig -a

Does not display you wifi card

Code:
dmesg

Displays bunch of errors such as
https://pastebin.com/GM6yVW2U

Code:
[    5.887155] crc_itu_t: version magic '4.14.61-gentoo SMP mod_unload modversions ' should be '4.14.61-gentoo SMP mod_unload '
[    5.910228] dax: version magic '4.14.61-gentoo SMP mod_unload modversions ' should be '4.14.61-gentoo SMP mod_unload '
[    5.910305] dax: version magic '4.14.61-gentoo SMP mod_unload modversions ' should be '4.14.61-gentoo SMP mod_unload '
[    5.914183] dm_bio_prison: version magic '4.14.61-gentoo SMP mod_unload modversions ' should be '4.14.61-gentoo SMP mod_unload '

The pastebin will be gone soon. Included a smal sample from it above. -- NeddySeagoon

Optional:- no bzImage in /usr/src/linux/arch/x86/boot/


step 2)
Code:
cd /usr/src/linux/

Code:
make mrproper


step 3)
Code:
genkernel --menuconfig all


step 4)
configure kernel to make wifi work
https://wiki.gentoo.org/wiki/Wifi

step 5)
when building kernel is done
Code:
grub-mkconfig -o /boot/grub/grub.cfg
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Goto page Previous  1, 2
Page 2 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