WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: make oldconfig on kernel source fails  (Read 3622 times)

Offline johand

  • Newbie
  • *
  • Posts: 19
make oldconfig on kernel source fails
« 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

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11590
Re: make oldconfig on kernel source fails
« Reply #1 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.

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14798
Re: make oldconfig on kernel source fails
« Reply #2 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

Offline bmarkus

  • Administrator
  • Hero Member
  • *****
  • Posts: 7183
    • My Community Forum
Re: make oldconfig on kernel source fails
« Reply #3 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 :)
Béla
Ham Radio callsign: HA5DI

"Amateur Radio: The First Technology-Based Social Network."

Offline johand

  • Newbie
  • *
  • Posts: 19
Re: make oldconfig on kernel source fails
« Reply #4 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