I want to compile a wifi driver (rtl8723bu). I´ve managed to build the driver on Raspbian, but now want it on TC, and try to follow the same steps as on Raspbian.
I downloaded kernel source, .config and Module.symvers from
http://tinycorelinux.net/7.x/armv6/releases/RPi/src/kernel/.
Was able to run "make mrproper". When running "make oldconfig" I get this error:
tc@box:/mnt/mmcblk0p2/build/4.1.8$ make oldconfig
HOSTCC scripts/basic/fixdep
In file included from /usr/include/bits/posix1_lim.h:160:0,
from /usr/include/limits.h:143,
from /usr/lib/gcc/armv7l-unknown-linux-gnueabihf/5.2.0/include-fixed/limits.h:168,
from /tmp/tcloop/gcc/usr/lib/gcc/armv7l-unknown-linux-gnueabihf/5.2.0/include-fixed/limits.h:168,
from /tmp/tcloop/gcc/usr/lib/gcc/armv7l-unknown-linux-gnueabihf/5.2.0/include-fixed/syslimits.h:7,
from /tmp/tcloop/gcc/usr/lib/gcc/armv7l-unknown-linux-gnueabihf/5.2.0/include-fixed/limits.h:34,
from scripts/basic/fixdep.c:114:
/usr/include/bits/local_lim.h:38:26: fatal error: linux/limits.h: No such file or directory
compilation terminated.
scripts/Makefile.host:91: recipe for target 'scripts/basic/fixdep' failed
make[1]: *** [scripts/basic/fixdep] Error 1
Makefile:449: recipe for target 'scripts_basic' failed
make: *** [scripts_basic] Error 2
This is on armv6, why references to armv7?
I guess the problem is the missing linux/limits.h and found out that this could caused by missing kernel headers. I read that there should be a package "compiletc", but cannot find it.
What can be wrong?
Johan