Welcome!

The kernel problem with recent updates has been solved. Find the solution here

Important information
-- Required MX 15/16 Repository Changes
-- Information on torrent hosting changes
-- Information on MX15/16 GPG Keys
-- Spectre and Meltdown vulnerabilities

News
-- Introducing our new Website
-- MX Linux on social media: here

Current releases
-- MX-18.3 Point Release release info here
-- Migration Information to MX-18 here
-- antiX-17.4.1 release info here

New users
-- Please read this first, and don't forget to add system and hardware information to posts!
-- Here are the Forum Rules

Any DKMS package build problems with antiX 5.1 kernels?

Post Reply
User avatar
Stevo
Forum Veteran
Forum Veteran
Posts: 19529
Joined: Fri Dec 15, 2006 8:07 pm

Any DKMS package build problems with antiX 5.1 kernels?

#1

Post by Stevo » Sat Jun 01, 2019 4:40 pm

I'm going to port over the new 5.1 Liquorix kernel, and am wondering if anyone has had any problems with Nvidia, broadcom-sta, virtualbox, or ndiswrapper, for example.

User avatar
Stevo
Forum Veteran
Forum Veteran
Posts: 19529
Joined: Fri Dec 15, 2006 8:07 pm

Re: Any DKMS package build problems with antiX 5.1 kernels?

#2

Post by Stevo » Sat Jun 01, 2019 5:48 pm

Well, it looks like broadcom-sta-dkms needs patching.
Virtualbox 5.2.30, Ndiswrapper, and Nvidia-driver 4.18.74 all build and work.

Edit: imported the change from Parrot OS to fix the build: https://nest.parrotsec.org/h0tw4t3r/bro ... ad45b71104

Here's the patch, if antiX doesn't already have it:

Code: Select all

Description: Fix 5.1 kernel DKMS builds
Last-Update: 2019-06-01

--- broadcom-sta-6.30.223.271.orig/amd64/src/wl/sys/wl_cfg80211_hybrid.c
+++ broadcom-sta-6.30.223.271/amd64/src/wl/sys/wl_cfg80211_hybrid.c
@@ -457,7 +457,7 @@ wl_dev_ioctl(struct net_device *dev, u32
 	ifr.ifr_data = (caddr_t)&ioc;
 
 	fs = get_fs();
-	set_fs(get_ds());
+	set_fs(KERNEL_DS);
 #if defined(WL_USE_NETDEV_OPS)
 	err = dev->netdev_ops->ndo_do_ioctl(dev, &ifr, SIOCDEVPRIVATE);
 #else
--- broadcom-sta-6.30.223.271.orig/amd64/src/wl/sys/wl_iw.c
+++ broadcom-sta-6.30.223.271/amd64/src/wl/sys/wl_iw.c
@@ -117,7 +117,7 @@ dev_wlc_ioctl(
 	ifr.ifr_data = (caddr_t) &ioc;
 
 	fs = get_fs();
-	set_fs(get_ds());
+	set_fs(KERNEL_DS);
 #if defined(WL_USE_NETDEV_OPS)
 	ret = dev->netdev_ops->ndo_do_ioctl(dev, &ifr, SIOCDEVPRIVATE);
 #else
--- broadcom-sta-6.30.223.271.orig/i386/src/wl/sys/wl_cfg80211_hybrid.c
+++ broadcom-sta-6.30.223.271/i386/src/wl/sys/wl_cfg80211_hybrid.c
@@ -450,7 +450,7 @@ wl_dev_ioctl(struct net_device *dev, u32
 	ifr.ifr_data = (caddr_t)&ioc;
 
 	fs = get_fs();
-	set_fs(get_ds());
+	set_fs(KERNEL_DS);
 #if defined(WL_USE_NETDEV_OPS)
 	err = dev->netdev_ops->ndo_do_ioctl(dev, &ifr, SIOCDEVPRIVATE);
 #else
--- broadcom-sta-6.30.223.271.orig/i386/src/wl/sys/wl_iw.c
+++ broadcom-sta-6.30.223.271/i386/src/wl/sys/wl_iw.c
@@ -117,7 +117,7 @@ dev_wlc_ioctl(
 	ifr.ifr_data = (caddr_t) &ioc;
 
 	fs = get_fs();
-	set_fs(get_ds());
+	set_fs(KERNEL_DS);
 #if defined(WL_USE_NETDEV_OPS)
 	ret = dev->netdev_ops->ndo_do_ioctl(dev, &ifr, SIOCDEVPRIVATE);
 #else
 
or a zip if this messes up the formatting:
15-fix_5.1_kernel_build.zip
You do not have the required permissions to view the files attached to this post.

Post Reply

Return to “antiX”