I am failing to install drivers for Archer T3U on my Pi2 running the latest OSMC version.
I have tried to install https://github.com/jeremyb31/rtl8822bu.git without success, as I can’t manage to make the file. Here is what I get
osmc@osmc:~$ git clone https://github.com/jeremyb31/rtl8822bu.git
Cloning into ‘rtl8822bu’…
remote: Enumerating objects: 14, done.
remote: Counting objects: 100% (14/14), done.
remote: Compressing objects: 100% (12/12), done.
remote: Total 1821 (delta 3), reused 7 (delta 2), pack-reused 1807
Receiving objects: 100% (1821/1821), 7.01 MiB | 745.00 KiB/s, done.
Resolving deltas: 100% (1007/1007), done.
Checking out files: 100% (599/599), done.
osmc@osmc:~$ cd rtl8822bu
osmc@osmc:~/rtl8822bu$ nano Makefile
osmc@osmc:~/rtl8822bu$ make
make ARCH=arm CROSS_COMPILE= -C /lib/modules/4.14.78-4-osmc/build M=/home/osmc/rtl8822bu modules
make[1]: *** /lib/modules/4.14.78-4-osmc/build: No such file or directory. Stop.
Makefile:2001: recipe for target ‘modules’ failed
make: *** [modules] Error 2
I looked all over the forum and elsewhere without success… And I am a total beginner.
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