WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: Make and linux-kernel-sources-env  (Read 2699 times)

Offline julcar

  • Jr. Member
  • **
  • Posts: 77
Make and linux-kernel-sources-env
« on: May 13, 2018, 03:06:26 PM »
TinyCore 9.0 running on virtual machine
Trying to compile some drivers from sources, so installed linux-kernel-sources-env.tcz and all of his dependences.
Running /usr/local/bin/linux-kernel-sources-env.sh
Alright until the section "preparing kernel src...."
Code: [Select]
extracting kernel src... tar: short read
Step 1 "make mproper"... make: *** No rule to make target 'mrproper'. Stop.
Step 2 "make oldconfig" make: *** No rule to make target 'oldconfig'. Stop.
Step 3 "make prepare" make: *** No rule to make target 'prepare'. Stop.
Step 4 "make modules_prepare" make: *** No rule to make target 'modules_prepare'. Stop.

Module.symvers-4.14.10-tinycore copied
make: *** No targets specified and no makefile found. Stop.

After running the script, I am unable to compile anything because the error make: *** No rule to make target 'xxx'. Stop. appears everytime.

Offline coreplayer2

  • Hero Member
  • *****
  • Posts: 3020
Make and linux-kernel-sources-env
« Reply #1 on: May 13, 2018, 11:49:58 PM »
Hello julcar
iirc the “short read” error indicates an issue with the Linux kernel source file.  Possibly corrupted due out of memory, bad download,  changed tar version, etc etc.
I will check if there’s been any recent changes.  Meanwhile I recommend downloading the kernel source file manually and store locally for this and future needs.  The script will find and use locally stored source files first.




Sent from my iPad using Tapatalk

Offline coreplayer2

  • Hero Member
  • *****
  • Posts: 3020
Re: Make and linux-kernel-sources-env
« Reply #2 on: May 14, 2018, 09:59:32 PM »
Hello julcar
Sorry I can't duplicate on tc9.x  x86   the expanded source files alone will need almost 1 GB of free space if that helps

Offline julcar

  • Jr. Member
  • **
  • Posts: 77
Re: Make and linux-kernel-sources-env
« Reply #3 on: May 15, 2018, 02:43:45 AM »
Yes, you're right, the VM seemed to have less resources than needed, on my laptop which have 4gb ram, the script runs w/o problems, thanks for your help.