Using RaspberryPi2 @ OSMC, I am trying to plug in my WiFi+BT stick:
osmc@osmc:~/drv/rtl8723bu$ uname -aLinux osmc 4.4.27-2-osmc #1 SMP PREEMPT Sun Oct 30 16:33:55 UTC 2016 armv7l GNU/Linux
osmc@osmc:~/drv/rtl8723bu$ lsusbBus 001 Device 005: ID 0bda:b720 Realtek Semiconductor Corp.Bus 001 Device 003: ID 0424:ec00 Standard Microsystems Corp. SMSC9512/9514 Fast Ethernet AdapterBus 001 Device 002: ID 0424:9514 Standard Microsystems Corp.Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Getting past that error and to the new one. Sorry, can't copypaste exact output right now, it was about missing file <mach/memory.h>
find /usr/src/ -iname "memory.h"
Copying missing mach/memory.h from /usr/src/rbp2-headers-4.4.27-2-osmc/arch/arm/mach-bcm2709/include/mach/ and trying again. Same error about missing <mach/io.h> - doing the same thing and trying again:
osmc@osmc:~/drv/rtl8723bu$ makemake ARCH=arm CROSS_COMPILE= -C /lib/modules/4.4.27-2-osmc/build M=/home/osmc/drv/rtl8723bu modulesmake[1]: Entering directory '/usr/src/rbp2-headers-4.4.27-2-osmc' CC [M] /home/osmc/drv/rtl8723bu/core/rtw_br_ext.oIn file included from include/linux/filter.h:16:0,from include/net/sock.h:62,from include/net/inet_sock.h:27,from include/net/ip.h:30,from /home/osmc/drv/rtl8723bu/core/rtw_br_ext.c:24:include/net/sch_generic.h: In function 'skb_at_tc_ingress':include/net/sch_generic.h:414:2: error: implicit declaration of function 'G_TC_AT' [-Werror=implicit-function-declaration]return G_TC_AT(skb->tc_verd) & AT_INGRESS;^include/net/sch_generic.h:414:33: error: 'AT_INGRESS' undeclared (first use in this function) return G_TC_AT(skb->tc_verd) & AT_INGRESS;^include/net/sch_generic.h:414:33: note: each undeclared identifier is reported only once for each function it appears incc1: some warnings being treated as errorsscripts/Makefile.build:258: recipe for target '/home/osmc/drv/rtl8723bu/core/rtw_br_ext.o' failedmake[2]: *** [/home/osmc/drv/rtl8723bu/core/rtw_br_ext.o] Error 1Makefile:1400: recipe for target '_module_/home/osmc/drv/rtl8723bu' failedmake[1]: *** [_module_/home/osmc/drv/rtl8723bu] Error 2make[1]: Leaving directory '/usr/src/rbp2-headers-4.4.27-2-osmc'Makefile:321: recipe for target 'modules' failedmake: *** [modules] Error 2
at this point, I am completely exhausted and desperate. Please help?
OK, got it myself:
do not link installed headers, instead move them:
sudo mkdir /lib/modules/4.4.27-2-osmc/buildsudo mv /usr/src/rbp2-headers-4.4.27-2-osmc/* /lib/modules/4.4.27-2-osmc/build/
Using RaspberryPi2 @ OSMC, I am trying to plug in my WiFi+BT stick:
osmc@osmc:~/drv/rtl8723bu$ uname -a
Linux osmc 4.4.27-2-osmc #1 SMP PREEMPT Sun Oct 30 16:33:55 UTC 2016 armv7l GNU/Linux
osmc@osmc:~/drv/rtl8723bu$ lsusb
Bus 001 Device 005: ID 0bda:b720 Realtek Semiconductor Corp.
Bus 001 Device 003: ID 0424:ec00 Standard Microsystems Corp. SMSC9512/9514 Fast Ethernet Adapter
Bus 001 Device 002: ID 0424:9514 Standard Microsystems Corp.
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
verbosed: lsusb.txt
Getting same error that many people had:
osmc@osmc:~/drv/rtl8723bu$ make
make ARCH=arm CROSS_COMPILE= -C /lib/modules/4.4.27-2-osmc/build M=/home/osmc/drv/rtl8723bu modules
make[1]: *** /lib/modules/4.4.27-2-osmc/build: No such file or directory. Stop.
Makefile:321: recipe for target 'modules' failed
make: *** [modules] Error 2
Getting headers and linking them:
sudo apt-get install rbp2-headers-4.4.27-2-osmc
sudo ln -s /usr/src/rbp2-headers-4.4.27-2-osmc/ /lib/modules/4.4.27-2-osmc/build
Getting past that error and to the new one. Sorry, can't copypaste exact output right now, it was about missing file <mach/memory.h>
find /usr/src/ -iname "memory.h"
Copying missing mach/memory.h from /usr/src/rbp2-headers-4.4.27-2-osmc/arch/arm/mach-bcm2709/include/mach/ and trying again. Same error about missing <mach/io.h> - doing the same thing and trying again:
osmc@osmc:~/drv/rtl8723bu$ make
make ARCH=arm CROSS_COMPILE= -C /lib/modules/4.4.27-2-osmc/build M=/home/osmc/drv/rtl8723bu modules
make[1]: Entering directory '/usr/src/rbp2-headers-4.4.27-2-osmc' CC [M] /home/osmc/drv/rtl8723bu/core/rtw_br_ext.o
In file included from include/linux/filter.h:16:0,
from include/net/sock.h:62,
from include/net/inet_sock.h:27,
from include/net/ip.h:30,
from /home/osmc/drv/rtl8723bu/core/rtw_br_ext.c:24:
include/net/sch_generic.h: In function 'skb_at_tc_ingress':
include/net/sch_generic.h:414:2: error: implicit declaration of function 'G_TC_AT' [-Werror=implicit-function-declaration]
return G_TC_AT(skb->tc_verd) & AT_INGRESS;
^
include/net/sch_generic.h:414:33: error: 'AT_INGRESS' undeclared (first use in this function) return G_TC_AT(skb->tc_verd) & AT_INGRESS;
^
include/net/sch_generic.h:414:33: note: each undeclared identifier is reported only once for each function it appears in
cc1: some warnings being treated as errors
scripts/Makefile.build:258: recipe for target '/home/osmc/drv/rtl8723bu/core/rtw_br_ext.o' failed
make[2]: *** [/home/osmc/drv/rtl8723bu/core/rtw_br_ext.o] Error 1
Makefile:1400: recipe for target '_module_/home/osmc/drv/rtl8723bu' failed
make[1]: *** [_module_/home/osmc/drv/rtl8723bu] Error 2
make[1]: Leaving directory '/usr/src/rbp2-headers-4.4.27-2-osmc'
Makefile:321: recipe for target 'modules' failed
make: *** [modules] Error 2
at this point, I am completely exhausted and desperate. Please help?