Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Issue with making rtl8723 driver on 4.15.7-r1 kernel
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
stormblade
n00b
n00b


Joined: 06 Sep 2017
Posts: 65

PostPosted: Tue Mar 06, 2018 9:26 am    Post subject: Issue with making rtl8723 driver on 4.15.7-r1 kernel Reply with quote

I was struggling to build rtl8723 wifi driver for the newest kernel 4.15.7-r1 from gentoo-sources and got this "make" error, can't fully understand what is the problem. I have a guess that it just might be not working with 4.15+ kernels as it worked on 4.14.13, but it's just a guess and I wonder what can it be, and how can I fix it, if possible
https://paste.pound-python.org/show/viLExJqlW7nPMdekEQkJ/
Back to top
View user's profile Send private message
fedeliallalinea
Administrator
Administrator


Joined: 08 Mar 2003
Posts: 31478
Location: here

PostPosted: Tue Mar 06, 2018 9:39 am    Post subject: Reply with quote

It seems that init_timer is deprecate in kernel 4.15, you should wait that bug is resolved.
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
stormblade
n00b
n00b


Joined: 06 Sep 2017
Posts: 65

PostPosted: Tue Mar 06, 2018 10:22 am    Post subject: Reply with quote

So the problem is in the driver implementation that needs to be updated to suit the new kernel?
Back to top
View user's profile Send private message
fedeliallalinea
Administrator
Administrator


Joined: 08 Mar 2003
Posts: 31478
Location: here

PostPosted: Tue Mar 06, 2018 10:37 am    Post subject: Reply with quote

stormblade wrote:
So the problem is in the driver implementation that needs to be updated to suit the new kernel?

Exactly
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
stormblade
n00b
n00b


Joined: 06 Sep 2017
Posts: 65

PostPosted: Tue Mar 06, 2018 5:08 pm    Post subject: Reply with quote

I have little will to wait for a patch which may not happen at all, and would rather do it myself. Sadly, I have no experience in C programming and all this driver/kernel programming stuff.
Found a driver which, as it seems, needed some similar commits: https://github.com/lwfinger/rtl8188eu/commit/1f08a062ad1fec5bc050177604e25430a7bdcf46
Could be used as an example, probably. Or are there any patches out there that can do the work... Anything?
Back to top
View user's profile Send private message
fedeliallalinea
Administrator
Administrator


Joined: 08 Mar 2003
Posts: 31478
Location: here

PostPosted: Tue Mar 06, 2018 6:05 pm    Post subject: Reply with quote

You can try to apply patch from links, or you can try directly the repository that contains your driver
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
stormblade
n00b
n00b


Joined: 06 Sep 2017
Posts: 65

PostPosted: Tue Mar 06, 2018 7:29 pm    Post subject: Reply with quote

Thanks for pointing out to this repository, I didn't notice rtl8723de driver when was reviewing it earlier.
sudo make install was successful, however when I tried to modprobe the new driver, I got this:
modprobe: ERROR: Error running install command for rtlwifi
modprobe: ERROR: could not insert 'rtl8723de': Operation not permitted

despite the fact that I ran it from sudo (so it's not a permission problem, then what could it be?)
Back to top
View user's profile Send private message
Hu
Administrator
Administrator


Joined: 06 Mar 2007
Posts: 23103

PostPosted: Wed Mar 07, 2018 2:55 am    Post subject: Reply with quote

What does dmesg say about the failure?
Back to top
View user's profile Send private message
stormblade
n00b
n00b


Joined: 06 Sep 2017
Posts: 65

PostPosted: Wed Mar 07, 2018 7:11 am    Post subject: Reply with quote

Nothing more than that:
udevd[1927]: Error running install command for rtlwifi
Back to top
View user's profile Send private message
fedeliallalinea
Administrator
Administrator


Joined: 08 Mar 2003
Posts: 31478
Location: here

PostPosted: Wed Mar 07, 2018 7:15 am    Post subject: Reply with quote

See this comment
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
stormblade
n00b
n00b


Joined: 06 Sep 2017
Posts: 65

PostPosted: Wed Mar 07, 2018 7:34 am    Post subject: Reply with quote

1) I run as root
2) Secure Boot is disabled in Bios
I also don't think this might be the case as secure boot restricts the usage of certain drivers etc not verified by manufacturer, and I successfuly modprobed the earlier version of the same driver, but for another kernel (4.14.13)
Back to top
View user's profile Send private message
Hu
Administrator
Administrator


Joined: 06 Mar 2007
Posts: 23103

PostPosted: Thu Mar 08, 2018 3:00 am    Post subject: Reply with quote

stormblade wrote:
Nothing more than that:
udevd[1927]: Error running install command for rtlwifi
Are you sure? As a user component, udev ought to be writing to syslog, but not to the kernel ring buffer that dmesg prints. How did you obtain the line shown here?
Back to top
View user's profile Send private message
stormblade
n00b
n00b


Joined: 06 Sep 2017
Posts: 65

PostPosted: Thu Mar 08, 2018 10:18 am    Post subject: Reply with quote

You are right, syslog is more informative here:
https://paste.pound-python.org/show/fZD01e713YVZ2wOhiCUR/

However, I can't remember the consequences that led to most of these logs yesterday :-[


I also tried logging "strace sudo modprobe -v rtl8723de", but it turned out not to be very informative
https://paste.pound-python.org/show/XMirpaVEclTCnjP0tGgM/
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