添加链接
link管理
链接快照平台
  • 输入网页链接,自动生成快照
  • 标签化管理网页链接
相关文章推荐
内向的课本  ·  [OpenWrt Wiki] Xiaomi ...·  2 周前    · 
爱喝酒的葫芦  ·  Random dark ...·  4 天前    · 
怕考试的木耳  ·  Square Concept – ...·  3 周前    · 
斯文的茴香  ·  building for iOS ...·  5 月前    · 
气宇轩昂的大海  ·  OmegaRoc - OmegaRoc·  9 月前    · 
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
"make mrproper" will delete .config and Module.symvers, so you need to copy them into the source tree after issuing that command, like this: $ make mrproper
[copy .config into source tree]
$ make oldconfig
$ make prepare
$ make modules_prepare
[copy Module.symvers into source tree]
$ make SUBDIRS=scripts/mod