Tiny Core Base > TCB Talk

ASUS NUC 14

<< < (4/4)

bohfoitoch:
I now want to compile the r8125 drivers on a Tinycore VM. But I can't get it to work. I've installed the linux-6.12_api_headers, compile, etc., but I keep getting these messages during make:

make -C src/ clean
make[1]: Entering directory '/home/tc/r8125-9.016.00/src'
make -C /lib/modules/6.12.11-tinycore64/build M=/home/tc/r8125-9.016.00/src clean
make[2]: Entering directory '/lib/modules/6.12.11-tinycore64/build'
make[2]: *** No rule to make target 'clean'.  Stop.
make[2]: Leaving directory '/lib/modules/6.12.11-tinycore64/build'
make[1]: *** [Makefile:208: clean] Error 2
make[1]: Leaving directory '/home/tc/r8125-9.016.00/src'
make: *** [Makefile:48: clean] Error 2

CNK:
Did you download the kernel sources and run "make modules_prepare"?

I use these commands before building the r8168 driver:

--- Code: ---* cd /tmp
* mirror=`cat /opt/tcemirror`
* kerver=`uname -r` && wget ${mirror}`version -m`.x/`uname -m`/release/src/kernel/linux-${kerver%-*}-patched.txz
  (~130MB download)
* tce-load -i compiletc squashfs-tools submitqc gettext bc elfutils-dev
* kerver=`uname -r` && tar xvJf /tmp/linux-${kerver%-*}-patched.txz
* cd linux-${kerver%-*}
* sudo ln -s "`pwd`" /lib/modules/`uname -r`/build
* wget -O .config ${mirror}`version -m`.x/`uname -m`/release/src/kernel/config-${kerver%-*}-tinycore64
* wget ${mirror}`version -m`.x/`uname -m`/release/src/kernel/Module.symvers-${kerver%-*}-tinycore64.gz
* gunzip -c Module.symvers-${kerver%-*}-tinycore64.gz > Module.symvers
* export CFLAGS="-mtune=generic -Os -pipe" CXXFLAGS="-mtune=generic -Os -pipe" LDFLAGS="-Wl,-O1"
* make oldconfig && make prepare && make modules_prepare

--- End code ---

bohfoitoch:
Thanks for your reply.
I managed to install the r8125 drivers in Tinycore and the network card is now recognized.

Navigation

[0] Message Index

[*] Previous page

Go to full version