Open shawnmire opened 4 years ago
I get a similar result. I'm trying to get bluetooth working on a pavilion G6 with Realtek rtl8192ce:
sean@hp:~/rtl8188ce-linux-driver$ git checkout ubuntu-18.04
Already on 'ubuntu-18.04'
Your branch is up-to-date with 'origin/ubuntu-18.04'.
sean@hp:~/rtl8188ce-linux-driver$ make
if [ -e verify_branch.sh ] ; \
then \
./verify_branch.sh ; \
fi;
Verifying a sane branch for your kernel version...
You are running kernel 5.3.0-62-generic, which is not well supported.
See the README.md for recommended branch.
Continue with the build? (Y/N): y
make -C /lib/modules/5.3.0-62-generic/build M=/home/sean/rtl8188ce-linux-driver modules
make[1]: Entering directory '/usr/src/linux-headers-5.3.0-62-generic'
CC [M] /home/sean/rtl8188ce-linux-driver/rc.o
/home/sean/rtl8188ce-linux-driver/rc.c: In function ‘rtl_get_rate’:
/home/sean/rtl8188ce-linux-driver/rc.c:168:7: error: implicit declaration of function ‘rate_control_send_low’; did you mean ‘rate_control_set_rates’? [-Werror=implicit-function-declaration]
if ( rate_control_send_low( sta, priv_sta, txrc ) )
^~~~~
rate_control_set_rates
/home/sean/rtl8188ce-linux-driver/rc.c: At top level:
/home/sean/rtl8188ce-linux-driver/rc.c:295:11: error: initialization from incompatible pointer type [-Werror=incompatible-pointer-types]
.alloc = rtl_rate_alloc,
^~~~~~
/home/sean/rtl8188ce-linux-driver/rc.c:295:11: note: (near initialization for ‘rtl_rate_ops.alloc’)
cc1: some warnings being treated as errors
scripts/Makefile.build:288: recipe for target '/home/sean/rtl8188ce-linux-driver/rc.o' failed
make[2]: [/home/sean/rtl8188ce-linux-driver/rc.o] Error 1
Makefile:1664: recipe for target 'module/home/sean/rtl8188ce-linux-driver' failed
make[1]: [module/home/sean/rtl8188ce-linux-driver] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-5.3.0-62-generic'
Makefile:28: recipe for target 'all' failed
make: *** [all] Error 2
I came across the same issue on a ThinkPad X121e running KDE neon (Ubuntu 18.04 under the hood):
if [ -e verify_branch.sh ] ; \ then \ ./verify_branch.sh ; \ fi; Verifying a sane branch for your kernel version... No (Current branch master) Recommended branch is generic-5.3.x based on your kernel version (5.3.0-62-generic) Should I switch it to generic-5.3.x for you? (y/n): y Branch 'generic-5.3.x' set up to track remote branch 'generic-5.3.x' from 'origin'. Switched to a new branch 'generic-5.3.x' make -C /lib/modules/5.3.0-62-generic/build M=/home/stp/Treiber/rtl8188ce-linux-driver modules make[1]: Entering directory '/usr/src/linux-headers-5.3.0-62-generic' CC [M] /home/stp/Treiber/rtl8188ce-linux-driver/base.o CC [M] /home/stp/Treiber/rtl8188ce-linux-driver/usb.o CC [M] /home/stp/Treiber/rtl8188ce-linux-driver/rc.o /home/stp/Treiber/rtl8188ce-linux-driver/rc.c:300:11: error: initialization from incompatible pointer type [-Werror=incompatible-pointer-types] .alloc = rtl_rate_alloc, ^
~~~~~ /home/stp/Treiber/rtl8188ce-linux-driver/rc.c:300:11: note: (near initialization for ‘rtl_rate_ops.alloc’) cc1: some warnings being treated as errors scripts/Makefile.build:288: recipe for target '/home/stp/Treiber/rtl8188ce-linux-driver/rc.o' failed make[2]: [/home/stp/Treiber/rtl8188ce-linux-driver/rc.o] Error 1 Makefile:1664: recipe for target 'module/home/stp/Treiber/rtl8188ce-linux-driver' failed make[1]: [module/home/stp/Treiber/rtl8188ce-linux-driver] Error 2 make[1]: Leaving directory '/usr/src/linux-headers-5.3.0-62-generic' Makefile:28: recipe for target 'all' failed make: ** [all] Error 2 [] The build has failed! Please make sure you have all dependencies installed and you are building on the correct branch (kernel version, not linux distro version, is most important for the branch)
I hope this isn't the end of the Linux road for this otherwise still perfectly fine device.
@STPKITT and others, are you running distribution kernels or custom kernels of some sort?
It looks like the detection didn't notice you were on Ubuntu (maybe KDE Neon doesn't use the Canonical kernel) so might have picked the wrong branch. You can try building ubuntu-18.04 (and tell the script no when it offers to switch you).
If it builds it will most likely work, but there's always the risk of kernel panic so have a USB rescue image ready just in case
I’m using Ubuntu mate 18.04. But even if I select that branch (see my previous message) it still fails.
Sean
On 14 Jul 2020, at 18:46, Ben Porter notifications@github.com wrote:
@STPKITT and others, are you running distribution kernels or custom kernels of some sort?
It looks like the detection didn't notice you were on Ubuntu (maybe KDE Neon doesn't use the Canonical kernel) so might have picked the wrong branch. You can try building ubuntu-18.04 (and tell the script no when it offers to switch you).
If it builds it will most likely work, but there's always the risk of kernel panic so have a USB rescue image ready just in case
— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe.
Thanks for answering this issue!
I'm did nothing manually to change the kernel and AFAIK KDE neon just runs whatever the latest Ubuntu LTS offers.
uname -r
on that machine ouputs
5.3.0-62-generic
and when doing apt full-upgrade
it more specifically says
5.3.0-62.56~18.04.1
Is that the issue, that being 18.04.1 it means an additional branch for .1 is needed? I already tried manual install, tried with branch set to 18.04 and 20.04 as well, but none of that worked. Btw just using ./install.sh already mentions "You are running kernel 5.3.0.-62-generic, which is not well supported. See the README.md for recommended branch.". However in README.md I found no mention about recommended branch regarding that kernel version. What I found strange on my machine as a non-expert was that when install.sh at the beginning tries to install dependencies it lists linux-headers-5.3.0.-62-generic and linux-headers-generic as already being the newest version though for the latter it's 4.15.0.111.99 which doesn't fit the 5.3.0.x pattern of the other component. Is that an issue? Ok, I got nothing more to report right now but if I need to provide any more information or logs or so please let me know!
I just wanted to let you guys know that I currently have it working again by manually installing kernel 5.4.15-050415-generic and switching the branch to that.
Great! I’ll try it. Does Bluetooth work?
Sean
On 5 Aug 2020, at 23:49, STPKITT notifications@github.com wrote:
I just wanted to let you guys know that I currently have it working again by manually installing kernel 5.4.15-050415-generic and switching the branch to that.
— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe.
I didn't try Bluetooth so you need to try it yourself and maybe report your findings here :-) Btw I guess a newer generic kernel might also work, but the kernel updater I used went for 5.4.15-050415-generic for whatever reason.
Hi all, I managed to install the 5.4.15 kernel with wget -c https://kernel.ubuntu.com/~kernel-ppa/mainline//v5.4.15/linux-modules-5.4.15-050415-generic_5.4.15-050415.202001261031_amd64.deb wget -c https://kernel.ubuntu.com/~kernel-ppa/mainline//v5.4.15/linux-headers-5.4.15-050415_5.4.15-050415.202001261031_all.deb ...there were 2 more files on that webpage I had to get, then: sudo dpkg -i .deb ...to get that to compile I had to: cd /lib/firmware/rtl_nic sudo wget https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git/plain/rtl_nic/rtl8125a-3.fw then cd back to where i'd saved the .deb files and sudo dpkg -i .deb again... then I could run rm -rf rtl8188ce-linux-driver/ ; git clone https://github.com/FreedomBen/rtl8188ce-linux-driver.git && cd rtl8188ce-linux-driver && ./install.sh ...which compiled (on the second attempt - the first time I had an old repo which selected the wrong kernel version!) Unfortunately, I get: ./am_i_using_this_driver.sh [] Not running the new rtlwifi (running stock driver) [] Not running the new rtl8192c_common (running stock driver) [*] Not running the new rtl8192ce (running stock driver) ...and rebooting does not help. Any suggestions? Ben, do you know if this driver will enable Blutooth for this device? The card has shared bluetooth/wifi which works fine on Windows but not on Linux.
you can add -Wno-incompatible-pointer-types to extra flags in makefile to suppress the error.
Good afternoon! Am on Ubuntu 18.04 and trying to install this driver but getting a build error. I downloaded the zip from https://github.com/FreedomBen/rtl8188ce-linux-driver/tree/ubuntu-18.04 and ran the install.sh script.
Below is my terminal output from when it tried to compile: