Hi, I've just updated from 16.04 to 18.04, and have had a few teething problems, one of which is that I can't connect to the wifi at all at the moment, although initially it was more or less working OK. One thing that I suppose might be responsible is that I had a modified network manager file which I didn't overwrite during the update. I suppose that it was a bit stupid of me to assume that that wouldn't be a problem. If that's the problem, please just point me to the right place so that I can put it back to the correct settings.
If not.... I'm referring back here to a thread that I started a couple of years ago, when I first installed this wifi adapter. I have a script called
solvewifi which I have run every time I can't connect, and it's based on this answer to my post back then:
https://ubuntuforums.org/showthread....6#post13595876
When I run the script, this is what I get:
Code:
kizza@heatopher % solvewifi ~
make ARCH=x86_64 CROSS_COMPILE= -C /lib/modules/4.15.0-43-lowlatency/build M=/home/kizza/rtl8723bu modules
make[1]: Entering directory '/usr/src/linux-headers-4.15.0-43-lowlatency'
Makefile:975: "Cannot use CONFIG_STACK_VALIDATION=y, please install libelf-dev, libelf-devel or elfutils-libelf-devel"
CC [M] /home/kizza/rtl8723bu/core/rtw_cmd.o
In file included from /home/kizza/rtl8723bu/include/osdep_service.h:36:0,
from /home/kizza/rtl8723bu/include/drv_types.h:32,
from /home/kizza/rtl8723bu/core/rtw_cmd.c:22:
/home/kizza/rtl8723bu/include/osdep_service_linux.h: In function _init_timer:
/home/kizza/rtl8723bu/include/osdep_service_linux.h:246:8: error: _timer {aka struct timer_list} has no member named data
ptimer->data = (unsigned long)cntx;
^~
/home/kizza/rtl8723bu/include/osdep_service_linux.h:247:2: error: implicit declaration of function init_timer; did you mean _init_timer? [-Werror=implicit-function-declaration]
init_timer(ptimer);
^~~~~~~~~~
_init_timer
In file included from /home/kizza/rtl8723bu/include/drv_types.h:32:0,
from /home/kizza/rtl8723bu/core/rtw_cmd.c:22:
/home/kizza/rtl8723bu/include/osdep_service.h: In function thread_enter:
/home/kizza/rtl8723bu/include/osdep_service.h:260:2: error: implicit declaration of function allow_signal; did you mean do_signal? [-Werror=implicit-function-declaration]
allow_signal(SIGTERM);
^~~~~~~~~~~~
do_signal
/home/kizza/rtl8723bu/include/osdep_service.h: In function flush_signals_thread:
/home/kizza/rtl8723bu/include/osdep_service.h:265:6: error: implicit declaration of function signal_pending; did you mean timer_pending? [-Werror=implicit-function-declaration]
if (signal_pending (current))
^~~~~~~~~~~~~~
timer_pending
/home/kizza/rtl8723bu/include/osdep_service.h:266:3: error: implicit declaration of function flush_signals; did you mean do_signal? [-Werror=implicit-function-declaration]
flush_signals(current);
^~~~~~~~~~~~~
do_signal
cc1: some warnings being treated as errors
scripts/Makefile.build:332: recipe for target '/home/kizza/rtl8723bu/core/rtw_cmd.o' failed
make[2]: *** [/home/kizza/rtl8723bu/core/rtw_cmd.o] Error 1
Makefile:1551: recipe for target '_module_/home/kizza/rtl8723bu' failed
make[1]: *** [_module_/home/kizza/rtl8723bu] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-4.15.0-43-lowlatency'
Makefile:321: recipe for target 'modules' failed
make: *** [modules] Error 2
[sudo] password for kizza:
install -p -m 644 8723bu.ko /lib/modules/4.15.0-43-lowlatency/kernel/drivers/net/wireless/
install: cannot stat '8723bu.ko': No such file or directory
Makefile:327: recipe for target 'install' failed
make: *** [install] Error 1
insmod /lib/modules/4.15.0-43-lowlatency/kernel/drivers/net/wireless/8723bu.ko
modprobe: ERROR: could not insert '8723bu': Exec format error
Secondly, there's another similar script for when the system has been upgraded, which I call
recompilewifi, which is based on this post further down that old thread:
https://ubuntuforums.org/showthread.php?t=2349727&p=13596057#post13596057
.... and what I get from that is the following:
Code:
kizza@heatopher % recompilewifi ~
cd hal ; rm -fr *.mod.c *.mod *.o .*.cmd */*.ko
cd core ; rm -fr *.mod.c *.mod *.o .*.cmd *.ko
cd os_dep ; rm -fr *.mod.c *.mod *.o .*.cmd *.ko
cd platform ; rm -fr *.mod.c *.mod *.o .*.cmd *.ko
rm -fr Module.symvers ; rm -fr Module.markers ; rm -fr modules.order
rm -fr *.mod.c *.mod *.o .*.cmd *.ko *~
rm -fr .tmp_versions
make ARCH=x86_64 CROSS_COMPILE= -C /lib/modules/4.15.0-43-lowlatency/build M=/home/kizza/rtl8723bu modules
make[1]: Entering directory '/usr/src/linux-headers-4.15.0-43-lowlatency'
Makefile:975: "Cannot use CONFIG_STACK_VALIDATION=y, please install libelf-dev, libelf-devel or elfutils-libelf-devel"
CC [M] /home/kizza/rtl8723bu/core/rtw_cmd.o
In file included from /home/kizza/rtl8723bu/include/osdep_service.h:36:0,
from /home/kizza/rtl8723bu/include/drv_types.h:32,
from /home/kizza/rtl8723bu/core/rtw_cmd.c:22:
/home/kizza/rtl8723bu/include/osdep_service_linux.h: In function _init_timer:
/home/kizza/rtl8723bu/include/osdep_service_linux.h:246:8: error: _timer {aka struct timer_list} has no member named data
ptimer->data = (unsigned long)cntx;
^~
/home/kizza/rtl8723bu/include/osdep_service_linux.h:247:2: error: implicit declaration of function init_timer; did you mean _init_timer? [-Werror=implicit-function-declaration]
init_timer(ptimer);
^~~~~~~~~~
_init_timer
In file included from /home/kizza/rtl8723bu/include/drv_types.h:32:0,
from /home/kizza/rtl8723bu/core/rtw_cmd.c:22:
/home/kizza/rtl8723bu/include/osdep_service.h: In function thread_enter:
/home/kizza/rtl8723bu/include/osdep_service.h:260:2: error: implicit declaration of function allow_signal; did you mean do_signal? [-Werror=implicit-function-declaration]
allow_signal(SIGTERM);
^~~~~~~~~~~~
do_signal
/home/kizza/rtl8723bu/include/osdep_service.h: In function flush_signals_thread:
/home/kizza/rtl8723bu/include/osdep_service.h:265:6: error: implicit declaration of function signal_pending; did you mean timer_pending? [-Werror=implicit-function-declaration]
if (signal_pending (current))
^~~~~~~~~~~~~~
timer_pending
/home/kizza/rtl8723bu/include/osdep_service.h:266:3: error: implicit declaration of function flush_signals; did you mean do_signal? [-Werror=implicit-function-declaration]
flush_signals(current);
^~~~~~~~~~~~~
do_signal
cc1: some warnings being treated as errors
scripts/Makefile.build:332: recipe for target '/home/kizza/rtl8723bu/core/rtw_cmd.o' failed
make[2]: *** [/home/kizza/rtl8723bu/core/rtw_cmd.o] Error 1
Makefile:1551: recipe for target '_module_/home/kizza/rtl8723bu' failed
make[1]: *** [_module_/home/kizza/rtl8723bu] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-4.15.0-43-lowlatency'
Makefile:321: recipe for target 'modules' failed
make: *** [modules] Error 2
install -p -m 644 8723bu.ko /lib/modules/4.15.0-43-lowlatency/kernel/drivers/net/wireless/
install: cannot stat '8723bu.ko': No such file or directory
Makefile:327: recipe for target 'install' failed
make: *** [install] Error 1
insmod /lib/modules/4.15.0-43-lowlatency/kernel/drivers/net/wireless/8723bu.ko
modprobe: ERROR: could not insert '8723bu': Exec format error
I'm not very confident with this nuts and bolts stuff, so don't really know how to interpret very much!
I do need to add that the wifi gremlins never went away entirely, and that more often than not I would have to run the
solvewifi script at least once per session, so if someone can help me SOLVEWIFI once and for all, I would be
profoundly grateful :P
Thanks in advance!