Code: Select all
make: *** /lib/modules/3.10.25+/build: No such file or directory. Stop.
make: *** [all] Error 2
Code: Select all
make: *** /lib/modules/3.10.25+/build: No such file or directory. Stop.
make: *** [all] Error 2
DougieLawson wrote:Can't you simply use
mkdir -p /lib/modules/3.10.25+/build
That /lib/modules/* stuff is all built by rpi-update
Code: Select all
make[1]: Entering directory `/lib/modules/3.10.25+/build'
make[1]: *** No rule to make target `modules'. Stop.
make[1]: Leaving directory `/lib/modules/3.10.25+/build'
make: *** [LINUX] Error 2
Code: Select all
make[1]: Entering directory `/lib/modules/3.10.27+/build'
make[1]: *** No rule to make target `modules'. Stop.
make[1]: Leaving directory `/lib/modules/3.10.27+/build'
make: *** [LINUX] Error 2
Code: Select all
cd /usr/src
wget https://github.com/raspberrypi/linux/archive/rpi-3.10.y.tar.gz
tar xvfz rpi-3.10.y.tar.gz
mv linux-rpi-3.10.y linux
ln -s /usr/src/linux /lib/modules/3.10.27+/build
cd /lib/modules/3.10.27+/build
make mrproper
gzip -dc /proc/config.gz > .config
make modules_prepare
wget https://github.com/raspberrypi/firmware/raw/master/extra/Module.symvers
Code: Select all
sudo apt-get install linux-headers
Code: Select all
sudo apt-get install linux-headers-3.10-3-rpi
Code: Select all
sudo ln -s /lib/modules/3.10-3-rpi/build /lib/modules/3.10.25+/build
Thank you!! I`ve been searching all over the place for this answer.PiWolli wrote:I had the same problem.
There is an easy solution for the Problem:
PiWolli wrote:I had the same problem.
There is an easy solution for the Problem:
1. Try to install linux-headersYou get a message that you try to install a virtual package and you have to install a concrete package. You find a list of concrete packages.Code: Select all
sudo apt-get install linux-headers
2. Install the concrete package3. Now the trick. You have to link the new build folder with the missing folder.Code: Select all
sudo apt-get install linux-headers-3.10-3-rpi
That's it. Now I can compile the driver. After install the drivers my WLAN module works fine.Code: Select all
sudo ln -s /lib/modules/3.10-3-rpi/build /lib/modules/3.10.25+/build
Use https://github.com/notro/rpi-source that does everything you need to get a kernel build environment built (run on your RPi for your current RPi kernel).abm413 wrote:hey!!! how to get it working for the latest kernel version? help plssss
I found a solution after lots of browsing ... execute this syntax:/lib/modules/4.9.35+/build: No such file or directory.
Code: Select all
sudo apt-get install raspberrypi-kernel-headers
Perfect! This approach worked for Raspbian Stretch and Kernel 4.19.50-v7+leftcoastshot wrote: ↑Sun Feb 10, 2019 5:32 amThis issue is still around. The error I received in response to my make command:I found a solution after lots of browsing ... execute this syntax:/lib/modules/4.9.35+/build: No such file or directory.Now my make command succeeds.Code: Select all
sudo apt-get install raspberrypi-kernel-headers
Code: Select all
sudo mkdir /lib/modules/4.19.58-v7+/build
sudo apt-get install raspberrypi-kernel-headers
sudo apt autoremove
sudo ln -s /lib/modules/4.19.58-v7+/build
sudo make
rm rf *.o *~core .depend .*.cmd *.ko *.mod.c .tmp_versions Module.* modules.order
make -c /lib/modules/4.19.58-V7+/build M=/home/GobiSerial modules
make[1]: Entering directory `/lib/modules/4.19.58-v7+/build'
make[1]: *** No rule to make target `modules'. Stop.
make[1]: Leaving directory `/lib/modules/3.10.27+/build'
make: *** [makefile:6: all] Error 2
some body knew how resolve this trouble?obj-m := GobiSerial.o
KDIR := /lib/modules/$(shell uname -r)/build
PWD := $(shell pwd)
all: clean
$(MAKE) -C $(KDIR) M=$(PWD) modules
clean:
rm -rf *.o *~ core .depend .*.cmd *.ko *.mod.c .tmp_versions Module.* modules.order