WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: linux-kernel-sources-env in 12.0 32 and 64  (Read 3685 times)

Offline gharig

  • Newbie
  • *
  • Posts: 24
linux-kernel-sources-env in 12.0 32 and 64
« on: April 17, 2021, 02:27:41 PM »
Hello and thanks for such a great product.

I'm using TC 12.0 both 32 and 64 bit and went to go practice writing some simple kernel modules :) :). On previous versions 11 and 10 I would load linux-kernel-sources-env.tcz and then run linux-kernel-sources-env.sh. However I can not find the linux-kernel-sources-env in the list of tcz for 12.0 but they are listed in 11.xx.  So is there a new process to prepare for kernel module development, or do I need to wait as you guys are really busy, and haven't loaded it yet.

Thanks
gharig

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14636

Offline gharig

  • Newbie
  • *
  • Posts: 24
Re: linux-kernel-sources-env in 12.0 32 and 64
« Reply #2 on: April 18, 2021, 07:43:34 PM »
Hi Juanito,

Thanks for getting back so quick.

So when you say that I can prepare the kernel source in the usual way, and give me a link to the source files, I get a bit confused. 


in the past I would
step 1: install linux-kernel-sources-env.tcz (which I'm not finding in the available tcz downloads for 12.0)
step 2: run  linux-kernel-sources-env.sh
                 which would basically go off and get three files. and unpacks them
                 and puts them in to the proper spot.
                  1)Module.symvers-5.10.3-tinycore64.gz
                  2)config-5.10.3-tinycore64
                  3)linux-5.10.3-patched.txz
step 3: go have fun trying to build a simple driver.

So are you telling me that I do not need to install linux-kernel-sources-env.tcz to build driver modules?



Thanks
gharig
 
« Last Edit: April 18, 2021, 07:57:51 PM by gharig »

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14636
Re: linux-kernel-sources-env in 12.0 32 and 64
« Reply #3 on: April 19, 2021, 01:04:35 AM »
No, you don't need linux-kernel-sources-env to compile kernel modules - it was a way of making things easier, but no longer works due to changes in linux-5.x

This will prepare the kernel source:
Code: [Select]
$ cd linux-5.10.3
$ make mrproper
$ cp ../config-5.10.3-tinycore64 .config
$ make oldconfig
$ make prepare
$ make modules_prepare

Offline gharig

  • Newbie
  • *
  • Posts: 24
Re: linux-kernel-sources-env in 12.0 32 and 64
« Reply #4 on: April 19, 2021, 02:20:18 PM »
Hi Juanito,

Thanks for the info, you are the best....