Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Network Controller Kernel Issue [SOLVED]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
ZappingLinux
Tux's lil' helper
Tux's lil' helper


Joined: 13 Oct 2017
Posts: 117
Location: Delft, Netherlands

PostPosted: Mon Oct 16, 2017 8:46 am    Post subject: Network Controller Kernel Issue [SOLVED] Reply with quote

Update 3:
I have gotten really lost about the entire thing after reading up on it for a day. I would really appreciate it if someone could explain to me clearly how the manual kernel configuration functions because the handbook is too basic and the other subjects expect me to know more than I do at the moment. At the moment I don't really know what to do other than just reinstall the entire system because I think that I made a big mess of my /usr/src/linux folder :(

Hey guys!
I am pretty new to gentoo and I have just managed to install the Gnome Desktop environment without systemd. However, during my install I completely forgot about wifi as I did everything with ethernet. So in short, my wifi is not working and I think I know why.
When I run lspci -k | grep 'Network' i find that my network controller's bus id is 03:00.0. looking there I find the following:
Code:

03:00.0 Network controller: Intel Corporation Centrino Wireless-N 100
   Subsystem: Intel Corporation Centrino Wireless-N 100 BGN
   Kernel modules: iwlwifi


Nothing out of the ordinary I would say except that when I plug in my live CD to see which kernel modules are used for the functioning wifi I find:
Code:

03:00.0 Network controller: Intel Corporation Centrino Wireless-N 100
   Subsystem: Intel Corporation Centrino Wireless-N 100 BGN
   Kernel driver in use: iwlwifi
        Kernel modules: iwlwifi


So obviously my network controller has no driver in use. However, I don't know how to fix that. I used genkernel to compile my kernel and I have not been in touch my my kernel config at all. I know that if I go to /usr/src/linux which is a symlink to linux-4.12.12-gentoo and run make config/menuconfig etc I get a screen that allows me to enable modules. But that makes me think "My module is already in use, it is the driver that is the problem." Anyway, I am kinda stuck and I would like to emerge a browser on the laptop but I really want wifi to work first. Any thoughts? clues?

What I thought might be usefull is:
Code:
GentooBox /usr/src # ifconfig
enp5s0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 192.168.5.146  netmask 255.255.255.0  broadcast 192.168.5.255
        inet6 fe80::81dd:60fd:4589:b79c  prefixlen 64  scopeid 0x20<link>
        ether 14:da:e9:19:e4:c6  txqueuelen 1000  (Ethernet)
        RX packets 1325  bytes 113406 (110.7 KiB)
        RX errors 0  dropped 1  overruns 0  frame 0
        TX packets 190  bytes 29630 (28.9 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
        inet 127.0.0.1  netmask 255.0.0.0
        inet6 ::1  prefixlen 128  scopeid 0x10<host>
        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

Code:
GentooBox /usr/src # iwconfig
enp5s0    no wireless extensions.

lo        no wireless extensions.

GentooBox /usr/src #


Update:
Okay so i found out that I have dont have:
Code:

        < >     Intel PRO/Wireless 2200BG and 2915ABG Network Connection 

Enabled on the system while it is enabled in the livecd which makes me think the fault is here. Can anybody tell me how to update the current kernel I am running? Do I overwrite my current kernel if i run make menuconfig and then check this module or do I have to check the rest of the modules/drivers as well? Can I just check this module and will my system still work?

update2:
Alright so after some thorough reading I found out that my current kernel config (because I used genkernel) was stored in /proc/config.gz so i ran:
zcat /proc/config.gz > /usr/src/linux/.config
Now correct me if I am wrong but I believe if I do make menuconfig and then load the .config my current configuration can be adjusted right?
Code:
GentooBox /home/poro # lsmod
Module                  Size  Used by
nouveau              1646592  2
snd_hda_codec_hdmi     49152  1
i915                 1265664  6
snd_hda_codec_realtek    90112  1
snd_hda_codec_generic    69632  1 snd_hda_codec_realtek
x86_pkg_temp_thermal    16384  0
snd_hda_intel          40960  6
ttm                    94208  1 nouveau
iosf_mbi               16384  1 i915
coretemp               16384  0
drm_kms_helper        151552  2 nouveau,i915
kvm_intel             200704  0
drm                   348160  11 nouveau,i915,ttm,drm_kms_helper
snd_hda_codec         122880  4 snd_hda_intel,snd_hda_codec_hdmi,snd_hda_codec_generic,snd_hda_codec_realtek
uvcvideo               90112  0
videobuf2_vmalloc      16384  1 uvcvideo
videobuf2_memops       16384  1 videobuf2_vmalloc
iwlwifi               159744  0
kvm                   569344  1 kvm_intel
videobuf2_v4l2         24576  1 uvcvideo
videobuf2_core         36864  2 uvcvideo,videobuf2_v4l2
snd_hda_core           77824  5 snd_hda_intel,snd_hda_codec,snd_hda_codec_hdmi,snd_hda_codec_generic,snd_hda_codec_realtek
snd_hwdep              16384  1 snd_hda_codec
syscopyarea            16384  1 drm_kms_helper
irqbypass              16384  1 kvm
cfg80211              589824  1 iwlwifi
iTCO_wdt               16384  0
videodev              167936  3 uvcvideo,videobuf2_core,videobuf2_v4l2
crc32c_intel           24576  0
snd_pcm                98304  4 snd_hda_intel,snd_hda_codec,snd_hda_core,snd_hda_codec_hdmi
nvidiafb               49152  0
iTCO_vendor_support    16384  1 iTCO_wdt
mxm_wmi                16384  1 nouveau
ghash_clmulni_intel    16384  0
sysfillrect            16384  1 drm_kms_helper
fb_ddc                 16384  1 nvidiafb
vgastate               20480  1 nvidiafb
sysimgblt              16384  1 drm_kms_helper
pcspkr                 16384  0
snd_timer              32768  1 snd_pcm
cryptd                 24576  1 ghash_clmulni_intel
fb_sys_fops            16384  1 drm_kms_helper
serio_raw              16384  0
video                  40960  2 nouveau,i915
rfkill                 24576  2 cfg80211
snd                    77824  20 snd_hda_intel,snd_hwdep,snd_hda_codec,snd_timer,snd_hda_codec_hdmi,snd_hda_codec_generic,snd_hda_codec_realtek,snd_pcm
i2c_i801               24576  0
lpc_ich                24576  0
mfd_core               16384  1 lpc_ich
wmi                    16384  2 mxm_wmi,nouveau
soundcore              16384  1 snd
xts                    16384  0
cbc                    16384  0
sha256_generic         24576  0
iscsi_tcp              20480  0
libiscsi_tcp           20480  1 iscsi_tcp
libiscsi               53248  2 libiscsi_tcp,iscsi_tcp
scsi_transport_iscsi    94208  2 libiscsi,iscsi_tcp
vmxnet3                57344  0
virtio_net             40960  0
virtio_ring            24576  1 virtio_net
virtio                 16384  1 virtio_net
tg3                   159744  0
sky2                   61440  0
r8169                  81920  0
pcnet32                45056  0
mii                    16384  2 r8169,pcnet32
igb                   208896  0
ptp                    20480  2 tg3,igb
pps_core               20480  1 ptp
dca                    16384  1 igb
i2c_algo_bit           16384  4 nvidiafb,igb,nouveau,i915
i2c_core               65536  10 fb_ddc,nvidiafb,i2c_algo_bit,igb,videodev,i2c_i801,nouveau,i915,drm_kms_helper,drm
e1000                 139264  0
bnx2                   81920  0
atl1c                  49152  0
fuse                   94208  1
xfs                  1146880  0
nfs                   221184  0
lockd                  73728  1 nfs
grace                  16384  1 lockd
sunrpc                286720  2 lockd,nfs
fscache                61440  1 nfs
jfs                   176128  0
reiserfs              237568  0
btrfs                1056768  0
ext4                  577536  1
jbd2                   98304  1 ext4
ext2                   73728  1
mbcache                16384  2 ext4,ext2
linear                 16384  0
raid10                 49152  0
raid1                  40960  0
raid0                  20480  0
dm_raid                40960  0
raid456               143360  1 dm_raid
async_raid6_recov      16384  1 raid456
async_memcpy           16384  2 raid456,async_raid6_recov
async_pq               16384  2 raid456,async_raid6_recov
async_xor              16384  3 async_pq,raid456,async_raid6_recov
async_tx               16384  5 async_xor,async_pq,raid456,async_memcpy,async_raid6_recov
xor                    24576  2 async_xor,btrfs
raid6_pq              114688  4 async_pq,btrfs,raid456,async_raid6_recov
libcrc32c              16384  2 xfs,raid456
dm_snapshot            40960  0
dm_bufio               28672  1 dm_snapshot
dm_crypt               32768  0
dm_mirror              24576  0
dm_region_hash         20480  1 dm_mirror
dm_log                 20480  2 dm_mirror,dm_region_hash
dm_mod                110592  6 dm_raid,dm_mirror,dm_log,dm_bufio,dm_crypt,dm_snapshot
dax                    69632  1 dm_mod
firewire_core          65536  0
crc_itu_t              16384  1 firewire_core
sl811_hcd              24576  0
xhci_pci               16384  0
xhci_hcd              208896  1 xhci_pci
usb_storage            61440  0
aic94xx                81920  0
libsas                 69632  1 aic94xx
lpfc                  720896  0
qla2xxx               675840  0
megaraid_sas          139264  0
megaraid_mbox          40960  0
megaraid_mm            20480  1 megaraid_mbox
aacraid               110592  0
sx8                    24576  0
hpsa                  102400  0
cciss                 114688  0
3w_9xxx                45056  0
3w_xxxx                36864  0
3w_sas                 28672  0
mptsas                 61440  0
scsi_transport_sas     40960  4 libsas,hpsa,mptsas,aic94xx
mptfc                  24576  0
scsi_transport_fc      57344  3 lpfc,qla2xxx,mptfc
mptspi                 24576  0
mptscsih               40960  3 mptfc,mptsas,mptspi
mptbase               102400  4 mptscsih,mptfc,mptsas,mptspi
imm                    20480  0
parport                49152  1 imm
sym53c8xx              81920  0
initio                 28672  0
arcmsr                 45056  0
aic7xxx               122880  0
aic79xx               135168  0
scsi_transport_spi     32768  4 aic79xx,aic7xxx,sym53c8xx,mptspi
sr_mod                 24576  0
cdrom                  61440  1 sr_mod
sg                     36864  0
sd_mod                 49152  4
pdc_adma               16384  0
sata_inic162x          20480  0
sata_mv                32768  0
ata_piix               36864  0
ahci                   36864  3
libahci                32768  1 ahci
sata_qstor             16384  0
sata_vsc               16384  0
sata_uli               16384  0
sata_sis               16384  0
sata_sx4               20480  0
sata_nv                28672  0
sata_via               20480  0
sata_svw               16384  0
sata_sil24             20480  0
sata_sil               16384  0
sata_promise           20480  0
pata_via               16384  0
pata_jmicron           16384  0
pata_marvell           16384  0
pata_sis               20480  1 sata_sis
pata_netcell           16384  0
pata_pdc202xx_old      16384  0
pata_atiixp            16384  0
pata_amd               20480  0
pata_ali               16384  0
pata_it8213            16384  0
pata_pcmcia            20480  0
pata_serverworks       16384  0
pata_oldpiix           16384  0
pata_artop             16384  0
pata_it821x            16384  0
pata_hpt3x2n           16384  0
pata_hpt3x3            16384  0
pata_hpt37x            20480  0
pata_hpt366            16384  0
pata_cmd64x            16384  0
pata_sil680            16384  0
pata_pdc2027x          16384  0

I suppose I can remove everything with a 0 from my config right?


Last edited by ZappingLinux on Mon Oct 16, 2017 5:46 pm; edited 1 time in total
Back to top
View user's profile Send private message
ct85711
Veteran
Veteran


Joined: 27 Sep 2005
Posts: 1707

PostPosted: Mon Oct 16, 2017 4:33 pm    Post subject: Reply with quote

Quote:
update2:
Alright so after some thorough reading I found out that my current kernel config (because I used genkernel) was stored in /proc/config.gz so i ran:
zcat /proc/config.gz > /usr/src/linux/.config
Now correct me if I am wrong but I believe if I do make menuconfig and then load the .config my current configuration can be adjusted right?

OK, this is the correct step. What you did was make sure you copied your running knerel's config over so you can use it as a starting point. While if you are going to updated the kernel that you already compiled, this isn't necessarily needed, as the config should already be present. This part is also often used in conjunction with makeoldconfig when updateing to a new kernel version.

Quote:
Update 3:
I have gotten really lost about the entire thing after reading up on it for a day. I would really appreciate it if someone could explain to me clearly how the manual kernel configuration functions because the handbook is too basic and the other subjects expect me to know more than I do at the moment. At the moment I don't really know what to do other than just reinstall the entire system because I think that I made a big mess of my /usr/src/linux folder

In short, the kernel configuration has 3 modes for most configuration options. Stuff can either be compiled in (has a * infront), as a module to load (has a M infront), or unselected, which won't be compiled.

Quote:
I suppose I can remove everything with a 0 from my config right?

This is a advanced topic in that you may not want to do. In short, if the kernel loaded something, it felt something is using that module. So generally you do NOT want to remove anything that the kernel loaded. When you start trying to trim the kernel down, I recommend you do a little at a time, and test afterwards to make sure everything is working. So I wouldn't turn anything off, until you know your system is the way you want it.
Back to top
View user's profile Send private message
ZappingLinux
Tux's lil' helper
Tux's lil' helper


Joined: 13 Oct 2017
Posts: 117
Location: Delft, Netherlands

PostPosted: Mon Oct 16, 2017 4:42 pm    Post subject: Reply with quote

Quote:

OK, this is the correct step. What you did was make sure you copied your running knerel's config over so you can use it as a starting point. While if you are going to updated the kernel that you already compiled, this isn't necessarily needed, as the config should already be present. This part is also often used in conjunction with makeoldconfig when updateing to a new kernel version.


Hey there! thank you for answering! Yeah I figured as much. So what I did next was i ran cd /usr/src/linux and then make menuconfig and then <load> .config. However, going back to my original problem is that lspci -k says that there is no iwlwifi driver in use for my network controller while the iwlwifi module is indeed loaded. yet ifconfig and iwconfig neither give me a wireless option. So have I just mixed things up completely? Because it sounds to me like there is a config file somewhere in my system where I need to make sure that the iwlwifi driver is enabled which is NOT in make menuconfig with the .config loaded in.
Back to top
View user's profile Send private message
Jaglover
Watchman
Watchman


Joined: 29 May 2005
Posts: 7261
Location: Saint Amant, Acadiana

PostPosted: Mon Oct 16, 2017 5:33 pm    Post subject: Reply with quote

Probably missing firmware, check your dmesg, error -2 means "not found".
_________________
Please learn how to denote units correctly!
Back to top
View user's profile Send private message
ZappingLinux
Tux's lil' helper
Tux's lil' helper


Joined: 13 Oct 2017
Posts: 117
Location: Delft, Netherlands

PostPosted: Mon Oct 16, 2017 5:45 pm    Post subject: Reply with quote

Jaglover wrote:
Probably missing firmware, check your dmesg, error -2 means "not found".


Yup.... I am a total idiot. I didn't append which firmware it should use in the kernel. it works now. Sorry for my idiocy.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware 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