While trying to make the file I get the following error:
“rtl8822bu$ make
make ARCH=arm CROSS_COMPILE= -C /lib/modules/4.14.78-4-osmc/build M=/home/osmc/temp/rtl8822bu modules
make[1]: Entering directory ‘/usr/src/rbp2-headers-4.14.78-4-osmc’
CC [M] /home/osmc/temp/rtl8822bu/core/rtw_cmd.o
In file included from ./include/linux/netfilter.h:8:0,
from ./include/linux/netfilter/nf_conntrack_tuple_common.h:6,
from ./include/linux/netfilter/nf_conntrack_dccp.h:29,
from ./include/net/netns/conntrack.h:11,
from ./include/net/net_namespace.h:27,
from ./include/linux/netdevice.h:42,
from /home/osmc/temp/rtl8822bu/include/osdep_service_linux.h:35,
from /home/osmc/temp/rtl8822bu/include/osdep_service.h:41,
from /home/osmc/temp/rtl8822bu/include/drv_types.h:32,
from /home/osmc/temp/rtl8822bu/core/rtw_cmd.c:22:
./include/linux/if.h:28:54: fatal error: sys/socket.h: No such file or directory #include <sys/socket.h> /* for struct sockaddr. */
^
compilation terminated.
scripts/Makefile.build:328: recipe for target ‘/home/osmc/temp/rtl8822bu/core/rtw_cmd.o’ failed
make[2]: *** [/home/osmc/temp/rtl8822bu/core/rtw_cmd.o] Error 1
Makefile:1527: recipe for target ‘module/home/osmc/temp/rtl8822bu’ failed
make[1]: *** [module/home/osmc/temp/rtl8822bu] Error 2
make[1]: Leaving directory ‘/usr/src/rbp2-headers-4.14.78-4-osmc’
Makefile:1318: recipe for target ‘modules’ failed
make: *** [modules] Error 2”
When looking for sys/socket.h: it seems to be in there… So I do not get the reason of the error.
Any thoughts? I tried different version of the driver without success. Same error everytime.
osmc@osmc:~/rtl8822bu$ sudo make install
install -p -m 644 88x2bu.ko /lib/modules/4.14.78-4-osmc/kernel/drivers/net/wireless/
install: cannot stat ‘88x2bu.ko’: No such file or directory
Makefile:2007: recipe for target ‘install’ failed
make: *** [install] Error 1
Now the issue I have is that Kodi do not start anymore with the sad smiley.
I tried to do reinstall the mediacenter but it still does not start. Here is what I get when checking status:
mediacenter.service - media center application
Loaded: loaded (/lib/systemd/system/mediacenter.service; enabled; vendor preset: enabled)
Active: active (running) since Sun 2019-10-13 20:03:01 CEST; 3min 41s ago
Main PID: 246 (mediacenter)
CGroup: /system.slice/mediacenter.service
`-246 /bin/bash /usr/bin/mediacenter
Oct 13 20:06:19 osmc sudo[918]: pam_unix(sudo:session): session opened for user osmc by (uid=0)
Oct 13 20:06:21 osmc sudo[918]: pam_unix(sudo:session): session closed for user osmc
Oct 13 20:06:21 osmc mediacenter[246]: /usr/bin/mediacenter: line 142: 918 Illegal instruction sudo -u osmc LIRC_SOCKET_PATH=/var/run/lirc/lircd $KODI --standalone -fs
Oct 13 20:06:21 osmc mediacenter[246]: Kodi exited with return code 132 after 0 hours, 0 minutes and 2 seconds
Oct 13 20:06:33 osmc mediacenter[246]: Starting Kodi…
Oct 13 20:06:33 osmc sudo[934]: root : TTY=unknown ; PWD=/ ; USER=osmc ; ENV=LIRC_SOCKET_PATH=/var/run/lirc/lircd ; COMMAND=/usr/lib/kodi/kodi.bin --standalone -fs
Oct 13 20:06:33 osmc sudo[934]: pam_unix(sudo:session): session opened for user osmc by (uid=0)
Oct 13 20:06:36 osmc sudo[934]: pam_unix(sudo:session): session closed for user osmc
Oct 13 20:06:36 osmc mediacenter[246]: /usr/bin/mediacenter: line 142: 934 Illegal instruction sudo -u osmc LIRC_SOCKET_PATH=/var/run/lirc/lircd $KODI --standalone -fs
Oct 13 20:06:36 osmc mediacenter[246]: Kodi exited with return code 132 after 0 hours, 0 minutes and 3 seconds