Jump to content

Can't compile modules


Pinch

Recommended Posts

EDIT: It works! Apparently it was all about timing... See http://lime-technology.com/forum/index.php?topic=24303.0

 

I'm sorry for starting a new thread, since I've already been posting in the thread at http://lime-technology.com/forum/index.php?topic=20782.0, but since this isn't a TVHeadend related issue anymore, I hope it's okay to start a new one. It's probably not even related to unraid 5, but that's what I'm running, so this is where I'm posting ;)

EDIT: Sorry, wrong forum - the thread has been moved :)

 

When trying to build my own TVHeadend-ready rc8a kernel I need to compile and install the Realtek r8168 manually. Problem is whenever I try to "make module" it results in an error.

 

This is what I'm doing:

 

wget the following packages to the dir /mnt/cache/.unraiddev/packages_slack13.1.0 (these are the packages needed to get both TVHeadend and VirtualBox running, so they have nothing to do with what I'm actually trying to build...).

 

http://www.kernel.org/pub/linux/kernel/v3.x/linux-3.4.11.tar.gz

http://slackware.osuosl.org/slackware-13.1/slackware/d/gcc-4.4.4-i486-1.txz

http://slackware.osuosl.org/slackware-13.1/slackware/l/glibc-2.11.1-i486-3.txz

http://slackware.osuosl.org/slackware-13.1/slackware/d/binutils-2.20.51.0.8-i486-1.txz

http://slackware.osuosl.org/slackware-13.1/slackware/d/make-3.81-i486-1.txz

http://slackware.osuosl.org/slackware-13.1/slackware/a/cxxlibs-6.0.13-i486-2.txz

http://slackware.osuosl.org/slackware-13.1/slackware/a/pkgtools-13.1-noarch-1.tgz

http://slackware.osuosl.org/slackware-13.1/slackware/d/perl-5.10.1-i486-1.txz

http://slackware.osuosl.org/slackware-13.1/slackware/a/cpio-2.9-i486-2.txz

http://slackware.osuosl.org/slackware-13.1/slackware/a/patch-2.5.4-i486-1.txz

http://slackware.osuosl.org/slackware-13.1/slackware/l/ncurses-5.7-i486-1.txz

http://slackware.osuosl.org/slackware-13.1/slackware/d/git-1.7.1-i486-1.txz

http://slackware.osuosl.org/slackware-13.1/slackware/l/libidn-1.5-i486-1.txz

http://slackware.osuosl.org/slackware-13.1/slackware/n/curl-7.20.1-i486-1.txz

http://slackware.osuosl.org/slackware-13.1/slackware/d/pkg-config-0.23-i486-2.txz

http://slackware.osuosl.org/slackware-13.1/slackware/n/openssl-0.9.8n-i486-1.txz

http://slackware.osuosl.org/slackware-13.1/slackware/a/infozip-6.0-i486-1.txz

http://slackware.osuosl.org/slackware-13.1/slackware/d/gcc-g++-4.4.4-i486-1.txz

http://lime-technology.com/download/doc_download/37-unraid-server-version-50-rc8a-aio

 

Install the packages:

installpkg *.t*z

 

Download the Realtek driver from: http://218.210.127.131/downloads/downloadsView.aspx?Langid=1&PNid=13&PFid=5&Level=5&Conn=4&DownTypeID=3&GetDown=false.

 

Place the tar in /mnt/cache/.unraiddev/realtek_r8168 and:

tar -xjf r8168*.tar.bz2
cd /mnt/cache/.unraiddev/realtek_r8168/r8168-8.032.00
make modules

 

This results in the error:

make[1]: *** No rule to make target `modules'. Stop.

 

This happens no matter what I try to compile (have also been fiddling with the dvbhdhomerun module).

 

I think this is a simple problem, but my understanding of linux is just too limited to solve it myself. And it's incredible how Google offers absolutely no help at all: I get a lot of hits, but the solutions to the problem are never consistent and never address slackware (mostly ubuntu which involves apt-get and other random packages that isn't part of unraid).

 

I have been an unraid user for ages, but my post count on this forum is relatively low - I have always been able to google my questions, but not in this case...

 

EDIT: I'm just trying to install a driver - is it really supposed to be this complicated? ;) There are builds including both the dvbhdhomerun modules and the r8168, but none of them are based on rc8a. So it's possible, I just have no idea how it's done...

 

 

 

I have also tried going a bit further with the kernel customization before trying to compile the modules (using the guide for 4.7 at http://lime-technology.com/wiki/index.php/Installing_Tvheadend_in_unRAID, taking into account the different kernel):

 

Unzip the downloaded unRAID package:

unzip unRAID* -d /mnt/cache/.unraiddev/

 

Go to "/usr/src" directory, and rename the folder "linux" to "linux_original" (notice I'm not using these directories):

mv /usr/src/linux-3.4.11-unRAID /usr/src/linux-3.4.11-unRAID_original

 

Extract the vanilla kernel file (e.g. linux-2.6.32.9.tar.gz ) into "/usr/src":

tar -C /usr/src/ -zxvf linux-3.4.11.tar.gz

 

Link the new source directory (e.g. linux-2.6.32.9 ) to "/usr/src/linux" path:

ln -sf /usr/src/linux-3.4.11 /usr/src/linux-3.4.11-unRAID

 

Copy all default drivers and configuration to the new source directory:

cp -rf /usr/src/linux-3.4.11-unRAID_original/* /usr/src/linux-3.4.11/
cp -f /usr/src/linux-3.4.11-unRAID_original/.config /usr/src/linux-3.4.11/

 

Link kernel headers includes to the new source includes:

ln -sf /usr/src/linux-3.4.11-unRAID/include/asm-generic /usr/include/asm-generic
ln -sf /usr/src/linux-3.4.11-unRAID/include/linux /usr/include/linux
ln -sf /usr/src/linux-3.4.11-unRAID/arch/x86/include/asm /usr/include/asm

 

Configure the kernel:

cd /usr/src/linux-3.4.11-unRAID/
make clean
make menuconfig

and save the configuration.

 

 

Then I give the r8168 another try:

cd /mnt/cache/.unraiddev/realtek_r8168/r8168-8.032.00
make modules

 

Which now results in:

ERROR: Kernel configuration is invalid.
         include/generated/autoconf.h or include/config/auto.conf are missing.
         Run 'make oldconfig && make prepare' on kernel src to fix it.

 

So I:

cd /usr/src/linux-3.4.11-unRAID/
make oldconfig && make prepare

 

This creates the /usr/src/linux-3.4.11/include/config/auto.conf, but trying the first step again:

cd /mnt/cache/.unraiddev/realtek_r8168/r8168-8.032.00
make modules

Now results in:

  WARNING: Symbol version dump /usr/src/linux-3.4.11/Module.symvers
           is missing; modules will have no dependencies and modversions.

  CC [M]  /mnt/cache/.unraiddev/realtek_r8168/r8168-8.032.00/src/r8168_n.o
  CC [M]  /mnt/cache/.unraiddev/realtek_r8168/r8168-8.032.00/src/r8168_asf.o
  CC [M]  /mnt/cache/.unraiddev/realtek_r8168/r8168-8.032.00/src/rtl_eeprom.o
  CC [M]  /mnt/cache/.unraiddev/realtek_r8168/r8168-8.032.00/src/rtltool.o
  LD [M]  /mnt/cache/.unraiddev/realtek_r8168/r8168-8.032.00/src/r8168.o
  Building modules, stage 2.
  MODPOST 1 modules
/bin/sh: scripts/mod/modpost: No such file or directory
make[3]: *** [__modpost] Error 127
make[2]: *** [modules] Error 2
make[2]: Leaving directory `/usr/src/linux-3.4.11'
make[1]: *** [modules] Error 2
make[1]: Leaving directory `/mnt/cache/.unraiddev/realtek_r8168/r8168-8.032.00/src'
make: *** [modules] Error 2

 

Can anyone tell me what I'm missing?

Link to comment
  • 1 month later...
  • 2 weeks later...

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...