WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: piCore-10.1beta1a install linux headers  (Read 2414 times)

Offline danny

  • Jr. Member
  • **
  • Posts: 73
piCore-10.1beta1a install linux headers
« on: April 09, 2020, 01:00:17 AM »
Hi everyone!
I want to install wifi driver on piCore, but happened the following problem.
/lib/modules/4.19.46-piCore-v7/build: No such file or directory.
Are there any solutions?

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14801
Re: piCore-10.1beta1a install linux headers
« Reply #1 on: April 09, 2020, 01:19:47 AM »
It might be better to use piCore-11.x - I tested the rpi3 built-in wifi a week ago and it worked fine.

If you still wish to use piCore-10.x, the wireless drivers are available for linux-4.19.58, so you probably need to update your version of piCore-10.x.

Otherwise, you need to symlink /lib/modules/4.19.46-piCore-v7/build to your kernel source, for example:
Code: [Select]
$ sudo ln -s /usr/src/linux-4.19.46 /lib/modules/4.19.46-piCore-v7/build

Offline danny

  • Jr. Member
  • **
  • Posts: 73
Re: piCore-10.1beta1a install linux headers
« Reply #2 on: April 09, 2020, 02:02:29 AM »
Hi Juanito,
Thanks for your response.
It didn't have /usr/src/linux-4.19.46 this file or directory on my rpi3b+

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14801
Re: piCore-10.1beta1a install linux headers
« Reply #3 on: April 09, 2020, 02:23:23 AM »
If you are compiling a linux kernel driver, you need to have the kernel source somewhere.

Which wireless kernel driver are you trying to compile?

Offline danny

  • Jr. Member
  • **
  • Posts: 73
Re: piCore-10.1beta1a install linux headers
« Reply #4 on: April 09, 2020, 03:43:19 AM »
I have wifi driver RS9116 on rpi3b+.
On raspbian buster I use "apt-get install linux-headers" to build headers file ("/lib/modules/'uname -a'/build")
Is there the same instruction on piCore?

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14801
Re: piCore-10.1beta1a install linux headers
« Reply #5 on: April 09, 2020, 04:09:47 AM »
You need to load the compiletc extension.

Note that "/lib/modules/'uname -a'/build" is not a headers file, it is a symlink to the kernel source.

Offline danny

  • Jr. Member
  • **
  • Posts: 73
Re: piCore-10.1beta1a install linux headers
« Reply #6 on: April 12, 2020, 08:43:35 PM »
Hi Juanito,
Do you know where to install piCore 11.x ?

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11595
Re: piCore-10.1beta1a install linux headers
« Reply #7 on: April 12, 2020, 09:34:36 PM »
Hi danny
If you are asking where to download it from, it's here:
http://tinycorelinux.net/11.x/armv6/test_releases/RPi/

The  beta1a  is the most recent one.