You are not logged in.

#1 2018-09-18 10:13:06

ertosns
Member
Registered: 2018-09-18
Posts: 11

installing network module for 4.18.6-arch1-1-ARCH

trying to install drive for network module realtek rtl8723de, i did build, and added the module to the kernel using dkms, and it's available in /usr/lib/modules/$(uname -r)/kernel/drivers/net/wireless/rtl8723de.ko, but to insert the drive, for the network module to delegate requests to the kernel, it needs to be registered  into the kernel, and mounted under /sys/class/net, using insmod, doing so, i get error 'invalid module format', and using  modprobe i get error that module 'not found in directory /lib/modules/$(uname -r)' although a copy exists there.

building the module was done under linux-headers 4.18.7-arch1-1-ARCH (note! not my uname -r), because if i pacman -Sy 'linux-headers=4.18.6', i get error 'target not found'.

what is missing, and how to solve this problem?

excuse me if not using the right terminology.
regards

Last edited by ertosns (2018-09-18 10:18:03)

Offline

#2 2018-09-18 11:26:18

loqs
Member
Registered: 2014-03-06
Posts: 17,328

Re: installing network module for 4.18.6-arch1-1-ARCH

Welcome to the arch linux forums ertosns.  What is the output of the following?

uname -a
pacman -Q linux

Offline

#3 2018-09-18 11:27:51

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 21,676

Re: installing network module for 4.18.6-arch1-1-ARCH

Reboot, your loaded kernel and the version the module was built against must match.

Offline

#4 2018-09-18 12:15:14

ertosns
Member
Registered: 2018-09-18
Posts: 11

Re: installing network module for 4.18.6-arch1-1-ARCH

uname -a: Linux archlinux 4.18.6-arch1-1-ARCH #1 SMP PREEMPT wed sep 5 11:54:09 UTC 2018 x86_64 GNU/Linux
pacman -Q linux: 4.18.8-arch1-1-ARCH

Offline

#5 2018-09-18 12:19:26

ertosns
Member
Registered: 2018-09-18
Posts: 11

Re: installing network module for 4.18.6-arch1-1-ARCH

V1del wrote:

Reboot, your loaded kernel and the version the module was built against must match.

sure, but i have uname -a: Linux archlinux 4.18.6-arch1-1-ARCH #1 SMP PREEMPT wed sep 5 11:54:09 UTC 2018 x86_64 GNU/Linux, pacman -Q linux: 4.18.8-arch1-1-ARCH, which headers should i build against 4.18.6, or 4.18.8, i'm confused can you help?

Offline

#6 2018-09-18 12:28:51

ertosns
Member
Registered: 2018-09-18
Posts: 11

Re: installing network module for 4.18.6-arch1-1-ARCH

ertosns wrote:
V1del wrote:

Reboot, your loaded kernel and the version the module was built against must match.

sure, but i have uname -a: Linux archlinux 4.18.6-arch1-1-ARCH #1 SMP PREEMPT wed sep 5 11:54:09 UTC 2018 x86_64 GNU/Linux, pacman -Q linux: 4.18.8-arch1-1-ARCH, which headers should i build against 4.18.6, or 4.18.8, i'm confused can you help?

with kernel version being 4.18.8 as referred to by synced pacman -Q linux, the module was build against the new headers of the same version, but i have the same error i can't ismod the build, and installed module, i get invalid module format for insmod /path/rtl8732de.ko

using modprobe it insists that the kernel is still 4.18.6, and error is /path/rtl8723de.ko not found in directory /lib/modules/4.18.6-arch1-1-ARCH, so i get modprobe uses uname -r, or the same mechanism, why that ambivalence, and inconsistency in arch linux, and how can i solve this problem?

Last edited by ertosns (2018-09-18 12:37:10)

Offline

#7 2018-09-18 12:43:04

seth
Member
Registered: 2012-09-03
Posts: 51,067

Re: installing network module for 4.18.6-arch1-1-ARCH

You first and foremost should boot the installed kernel and then build against that.
What likely happened is that you forgot to mount the /boot partition when updating.
Ensure to mount /boot and re-install the linux package.

Edit: and then of course reboot…

Last edited by seth (2018-09-18 12:43:24)

Offline

#8 2018-09-18 12:49:56

ertosns
Member
Registered: 2018-09-18
Posts: 11

Re: installing network module for 4.18.6-arch1-1-ARCH

it resolved, i check dmesg, and found disagrees in module layout, robooted, and issue resolved, i did tried to reboot before, but the problem wasn't resolved,    that happend before upgrading kernel to 4.18.8, which have it's own headers available, thanks, but why 4.18.6 headers isn't available ?

Offline

#9 2018-09-18 12:56:40

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 21,676

Re: installing network module for 4.18.6-arch1-1-ARCH

All your the kernel and your header files are always replaced with the latest versions on update.

Offline

#10 2018-09-18 12:57:36

WorMzy
Forum Moderator
From: Scotland
Registered: 2010-06-16
Posts: 11,847
Website

Re: installing network module for 4.18.6-arch1-1-ARCH

why 4.18.6 headers isn't available ?

Because there is no 4.18.6 kernel in the repos. Arch doesn't keep old versions of packages in the repos* -- the new version supplants the old version.

* They are kept in the Arch Linux Archive though.


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

#11 2018-09-18 18:12:13

ertosns
Member
Registered: 2018-09-18
Posts: 11

Re: installing network module for 4.18.6-arch1-1-ARCH

for wireless rtl8723de module i installed https://github.com/lwfinger/rtlwifi_new, and module is mounted  under /sys/class/net, and listed under ip link, but it doesn't get rendered up, there are more details here https://unix.stackexchange.com/question … endered-up

i can't think of the cause, and have to go through ip link, and module source code to figure out, can you help?
is it arch specific? that is my worry, because the module is installed by many, and seems to work!

Offline

#12 2018-09-18 19:05:02

seth
Member
Registered: 2012-09-03
Posts: 51,067

Re: installing network module for 4.18.6-arch1-1-ARCH

"modinfo rtl8723de" should list the parameters and you're likely able to raise the debug level for more information in dmesg when trying to up the interface.

Offline

#13 2018-09-18 19:37:42

loqs
Member
Registered: 2014-03-06
Posts: 17,328

Re: installing network module for 4.18.6-arch1-1-ARCH

Also the output of rfkill and dmesg please.

Offline

#14 2018-09-18 20:12:05

ertosns
Member
Registered: 2018-09-18
Posts: 11

Re: installing network module for 4.18.6-arch1-1-ARCH

loqs wrote:

Also the output of rfkill and dmesg please.

rfkill is unblocked for wlan software, and hardware

Offline

#15 2018-09-19 05:33:03

ertosns
Member
Registered: 2018-09-18
Posts: 11

Re: installing network module for 4.18.6-arch1-1-ARCH

seth wrote:

"modinfo rtl8723de" should list the parameters and you're likely able to raise the debug level for more information in dmesg when trying to up the interface.

dmesg with debug_level set to 0 https://pastebin.com/yZcDmJXw

Offline

#16 2018-09-19 12:55:29

seth
Member
Registered: 2012-09-03
Posts: 51,067

Re: installing network module for 4.18.6-arch1-1-ARCH

I don't like all the "rtl8723de 0000:03:00.0 wlo1: renamed from wlan0" lines - what's the context? Some PCI hiccups?

Offline

#17 2018-09-20 08:09:19

ertosns
Member
Registered: 2018-09-18
Posts: 11

Re: installing network module for 4.18.6-arch1-1-ARCH

seth wrote:

I don't like all the "rtl8723de 0000:03:00.0 wlo1: renamed from wlan0" lines - what's the context? Some PCI hiccups?

besides the hiccup do you suggest any solution?, the problem seems to to with regulation database setup in arch, follow discussion here https://unix.stackexchange.com/question … endered-up

Offline

#18 2018-09-20 12:38:58

seth
Member
Registered: 2012-09-03
Posts: 51,067

Re: installing network module for 4.18.6-arch1-1-ARCH

The regdb "errors" are unspecific, loading the database is only relevant if you intend to manipulate it.
What I meant is some context - something must cause the constant appearance of wlan0 devices (which are then renamed) and that probably relates to the problem.
Could be some wonky pci communication, rfkill, device resets or whatnot, thus we need to see journal and dmesg beyond the immediate device entries.

Offline

#19 2018-09-20 14:25:41

ertosns
Member
Registered: 2018-09-18
Posts: 11

Re: installing network module for 4.18.6-arch1-1-ARCH

unwrapped dmesg https://pastebin.com/Q5WEwV57, rfkill is unblocked

Offline

#20 2018-09-20 15:01:45

seth
Member
Registered: 2012-09-03
Posts: 51,067

Re: installing network module for 4.18.6-arch1-1-ARCH

That's less than 12 seconds into the boot…

Offline

Board footer

Powered by FluxBB