Tiny Core Linux

Tiny Core Base => Raspberry Pi => Topic started by: johand on November 04, 2015, 01:00:02 PM

Title: make oldconfig on kernel source fails
Post by: johand on November 04, 2015, 01:00:02 PM
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:

Code: [Select]
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
Title: Re: make oldconfig on kernel source fails
Post by: Rich on November 04, 2015, 02:55:59 PM
Hi johand
I think  make mrproper  deletes the  .config  file, you might want to check that.
Compiletc  is for X86, the ARM version is called  compile-essentials. You might also need  linux api headers.
Title: Re: make oldconfig on kernel source fails
Post by: Juanito on November 04, 2015, 10:55:14 PM
"make mrproper" will delete .config and Module.symvers, so you need to copy them into the source tree after issuing that command, like this:
Code: [Select]
$ make mrproper
[copy .config into source tree]
$ make oldconfig
$ make prepare
$ make modules_prepare
[copy Module.symvers into source tree]
$ make SUBDIRS=scripts/mod
Title: Re: make oldconfig on kernel source fails
Post by: bmarkus on November 05, 2015, 02:46:26 AM

This is on armv6, why references to armv7?


It is just a name indicating it was built on RPi2 but that's all. It can be named thebestcompiler, hulahula or whatever you want :)
Title: Re: make oldconfig on kernel source fails
Post by: johand on November 05, 2015, 02:49:48 AM
Thank you! Managed to compile the driver now. Next challange is to install it, will see if I manage that...

Johan