View previous topic :: View next topic |
Author |
Message |
C5ace Guru

Joined: 23 Dec 2013 Posts: 494 Location: Brisbane, Australia
|
Posted: Tue Oct 08, 2019 3:09 pm Post subject: [SOLVED] RTL8821CE Wi-Fi/Bluetooth driver will not compile |
|
|
I have a HP Notebook - 15-db0125au. The wireless driver net-wireless/rtl8821ce-driver (https://github.com/tomaspinho/rtl8821ce/) will not compile anymore after newly installing Gentoo with profile 17.1 replacing Windows 10 on the SSD. Previously Gentoo was with profile 17.0 on the HDD dual booting with Windows 10 and working fine. The HDD died before I could make a working backup.
lspci:
Code: | ........
03:00.0 Network controller [0280]: Realtek Semiconductor Co., Ltd. RTL8821CE 802.11ac PCIe Wireless Network Adapter [10ec:c821]
Subsystem: Hewlett-Packard Company RTL8821CE 802.11ac PCIe Wireless Network Adapter [103c:831a]
....... |
Build log:
www.linux.c5ace.com/build.log
Error 1 at line 635
Error 2 at line 685
Any recommendations?
PS: Ubuntu WI-FI works OK. _________________ Observation after 30 years working with computers:
All software has known and unknown bugs and vulnerabilities. Especially software written in complex, unstable and object oriented languages such as perl, python, C++, C#, Rust and the likes.
Last edited by C5ace on Sun Oct 13, 2019 2:20 am; edited 3 times in total |
|
Back to top |
|
 |
fedeliallalinea Administrator


Joined: 08 Mar 2003 Posts: 31679 Location: here
|
Posted: Tue Oct 08, 2019 3:11 pm Post subject: |
|
|
Try to port this patch _________________ Questions are guaranteed in life; Answers aren't.
"Those who would give up essential liberty to purchase a little temporary safety,
deserve neither liberty nor safety."
- Ben Franklin
https://www.news.admin.ch/it/nsb?id=103968 |
|
Back to top |
|
 |
duane Apprentice

Joined: 03 Jun 2002 Posts: 193 Location: Oklahoma City
|
Posted: Wed Oct 09, 2019 5:17 am Post subject: |
|
|
I had problems with that ebuild as well, and ended up dropping the driver directory into the kernel source and compiling everything together.
Edit: Actually, if you change the commit number to the latest, and patch out the change to TopDIR, it compiles fine from the ebuild.
Code: | --- a/rtl8821ce-driver-5.5.2_p20190811.ebuild 2019-10-09 03:24:27.776285317 -0500
+++ b/rtl8821ce-driver-5.5.2_p20190811.ebuild 2019-10-09 03:21:42.073537432 -0500
@@ -4,7 +4,7 @@
EAPI=7
inherit eutils linux-info linux-mod
-COMMIT="6b9a569657afb530020c3489ff88886ad7b157ce"
+COMMIT="55b90f46e203c6f46f731b039497b9aac8ea67ac"
DESCRIPTION="ReatlTek 8821ce wifi driver"
HOMEPAGE="https://github.com/tomaspinho/rtl8821ce/"
SRC_URI="https://github.com/tomaspinho/rtl8821ce/archive/${COMMIT}.tar.gz"
@@ -48,6 +48,7 @@
eerror "You must build this against 4.14.0 or higher kernels."
fi
+ eapply "${FILESDIR}/change-top.patch"
eapply_user
}
|
Code: | diff --git a/Makefile b/Makefile
index e18eefb..8b3b58f 100755
--- a/Makefile
+++ b/Makefile
@@ -21,11 +21,11 @@ ifeq ($(GCC_VER_49),1)
EXTRA_CFLAGS += -Wno-date-time # Fix compile error && warning on gcc 4.9 and later
endif
-ifneq (,$(findstring /usr/lib/dkms,$(PATH)))
+#ifneq (,$(findstring /usr/lib/dkms,$(PATH)))
export TopDIR ?= $(shell pwd)
-else
- export TopDIR ?= $(srctree)/$(src)
-endif
+#else
+# export TopDIR ?= $(srctree)/$(src)
+#endif
EXTRA_CFLAGS += -I$(TopDIR)/include
|
|
|
Back to top |
|
 |
C5ace Guru

Joined: 23 Dec 2013 Posts: 494 Location: Brisbane, Australia
|
Posted: Thu Oct 10, 2019 11:21 pm Post subject: |
|
|
fedeliallalinea:
I tried the patch you recommend. rtl8821ce-driver-5.5.2_p20190811.ebuild with rtw_android.c patched works fine when compiled on my about 14 year old desktop. Will not compile on the HP notebook. The driver rtl8821ce builds and installs OK on dual boot Ubuntu 19.04 located on HDD on the same notebook.
Probably because Gentoo is on the SDD. Will do a fresh install of Gentoo on HDD this weekend.
duane: Will try your recommendations if this does not work. _________________ Observation after 30 years working with computers:
All software has known and unknown bugs and vulnerabilities. Especially software written in complex, unstable and object oriented languages such as perl, python, C++, C#, Rust and the likes. |
|
Back to top |
|
 |
fedeliallalinea Administrator


Joined: 08 Mar 2003 Posts: 31679 Location: here
|
Posted: Fri Oct 11, 2019 5:13 am Post subject: |
|
|
C5ace wrote: | Probably because Gentoo is on the SDD. Will do a fresh install of Gentoo on HDD this weekend. |
I doubt that is the problem. What is the problem in your notebook (you have some log?) _________________ Questions are guaranteed in life; Answers aren't.
"Those who would give up essential liberty to purchase a little temporary safety,
deserve neither liberty nor safety."
- Ben Franklin
https://www.news.admin.ch/it/nsb?id=103968 |
|
Back to top |
|
 |
C5ace Guru

Joined: 23 Dec 2013 Posts: 494 Location: Brisbane, Australia
|
Posted: Fri Oct 11, 2019 11:52 am Post subject: |
|
|
fedeliallalinea wrote: | C5ace wrote: | Probably because Gentoo is on the SDD. Will do a fresh install of Gentoo on HDD this weekend. |
I doubt that is the problem. What is the problem in your notebook (you have some log?) |
Don't know jet. Win10 works. Ubuntu 19.04 works.
From dsmsg:
Code: | [ 0.306923] ACPI BIOS Error (bug): Could not resolve [\_SB.WLBU._STA.WLVD], AE_NOT_FOUND (20180810/psargs-330)
[ 0.306930] ACPI Error: Method parse/execution failed \_SB.WLBU._STA, AE_NOT_FOUND (20180810/psparse-516) | 4 times the same. 'AE_NOT_FOUND' Seems to be a common problem.
Code: | [ 6.683207] [drm:construct [amdgpu]] *ERROR* construct: Invalid Connector ObjectID from Adapter Service for connector index:2! type 0
expected 3
[ 6.683287] [drm:construct [amdgpu]] *ERROR* construct: Invalid Connector ObjectID from Adapter Service for connector index:3! type 0
expected 3 |
Ubuntu trows the same errors.
I probably f..ked up something when trying to get the rtl8821ce driver to work over and over. The Notebook works fine on Ethernet LAN. Am running 'emerge -e @world'. Should be done by Saturday morning my time. If this does not fix it, I will do a new install of Gentoo on the HDD. _________________ Observation after 30 years working with computers:
All software has known and unknown bugs and vulnerabilities. Especially software written in complex, unstable and object oriented languages such as perl, python, C++, C#, Rust and the likes. |
|
Back to top |
|
 |
C5ace Guru

Joined: 23 Dec 2013 Posts: 494 Location: Brisbane, Australia
|
Posted: Sun Oct 13, 2019 2:17 am Post subject: |
|
|
Ran 'emerge -e @world' . This fixed the unknown cause that prevented installing the rtk8821ce driver my notebook.
I then ran Code: | ebuild /var/db/repos/layman/trolltoo/net-wireless/rtl8821ce-driver/rtl8821ce-driver-5.5.2_p20190811.ebuild unpack | . Opened 'var/tmp/portage/net-wireless.working/rtl8821ce-driver-5.5.2_p20190811/work/rtl8821ce-6b9a569657afb530020c3489ff88886ad7b157ce/os_dep/linux/rtw_android.c' and replaced line 665 with Code: |
#if (LINUX_VERSION_CODE < KERNEL_VERSION(5, 0, 0))
if (!access_ok(VERIFY_READ, priv_cmd.buf, priv_cmd.total_len)) {
#else
if (!access_ok(priv_cmd.buf, priv_cmd.total_len)) {
#endif /* Linux kernel < 5.0.0 */ |
Then ran Code: | ebuild /var/db/repos/layman/trolltoo/net-wireless/rtl8821ce-driver/rtl8821ce-driver-5.5.2_p20190811.ebuild qmerge |
Note:
Layman places the ebuild in different locations depend on profile (17.0 or17.1) used.
Now WIFI works with the 2.4GHz band only. No 5GHZ. Win10 and Ubuntu 19.04 works with 2.4GHz and 5GHz. Will open and post under 'Networking & Security'.
Thanks fedeliallalinea and duane for the guidance. _________________ Observation after 30 years working with computers:
All software has known and unknown bugs and vulnerabilities. Especially software written in complex, unstable and object oriented languages such as perl, python, C++, C#, Rust and the likes. |
|
Back to top |
|
 |
|
|
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
|
|