Tiny Core Linux

Tiny Core Base => TCB Talk => Topic started by: danny on April 09, 2020, 01:00:17 AM

Title: piCore-10.1beta1a install linux headers
Post by: danny 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?
Title: Re: piCore-10.1beta1a install linux headers
Post by: Juanito 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
Title: Re: piCore-10.1beta1a install linux headers
Post by: danny 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+
Title: Re: piCore-10.1beta1a install linux headers
Post by: Juanito 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?
Title: Re: piCore-10.1beta1a install linux headers
Post by: danny 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?
Title: Re: piCore-10.1beta1a install linux headers
Post by: Juanito 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.
Title: Re: piCore-10.1beta1a install linux headers
Post by: danny on April 12, 2020, 08:43:35 PM
Hi Juanito,
Do you know where to install piCore 11.x ?
Title: Re: piCore-10.1beta1a install linux headers
Post by: Rich 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.