Open winewise opened 7 years ago
You need to install the kernel headers. Directory /lib/modules/4.1.18+/build must be a link to the directory containing either the kernel source code, or at least the include directory with the headers used to build that kernel.
Does not fix the issue. I might have installed the wrong headers.
Please see below:
pberrypi:~/rtl8723au $ sudo apt-get install raspberrypi-kernel-headers
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
raspberrypi-kernel-headers
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 14.3 MB of archives.
After this operation, 104 MB of additional disk space will be used.
Get:1 http://archive.raspberrypi.org/debian/ jessie/main raspberrypi-kernel-headers armhf 1.20161215-1 [14.3 MB]
Fetched 14.3 MB in 29s (486 kB/s)
Selecting previously unselected package raspberrypi-kernel-headers.
(Reading database ... 32313 files and directories currently installed.)
Preparing to unpack .../raspberrypi-kernel-headers_1.20161215-1_armhf.deb ...
Unpacking raspberrypi-kernel-headers (1.20161215-1) ...
Setting up raspberrypi-kernel-headers (1.20161215-1) ...
pi@raspberrypi:~/rtl8723au $ ll
total 128
drwxr-xr-x 7 pi pi 4096 Feb 15 18:37 ./
drwxr-xr-x 5 pi pi 4096 Feb 15 18:37 ../
drwxr-xr-x 2 pi pi 4096 Feb 15 18:37 core/
-rw-r--r-- 1 pi pi 177 Feb 15 18:37 dkms.conf
drwxr-xr-x 8 pi pi 4096 Feb 15 18:37 .git/
-rw-r--r-- 1 pi pi 1091 Feb 15 18:37 .gitignore
drwxr-xr-x 2 pi pi 4096 Feb 15 18:37 hal/
drwxr-xr-x 2 pi pi 4096 Feb 15 18:37 include/
-rw-r--r-- 1 pi pi 14502 Feb 15 18:37 Makefile
drwxr-xr-x 2 pi pi 4096 Feb 15 18:37 os_dep/
-rw-r--r-- 1 pi pi 262 Feb 15 18:37 README.dkms
-rw-r--r-- 1 pi pi 321 Feb 15 18:37 README.md
-rw-r--r-- 1 pi pi 22172 Feb 15 18:37 rtl8723aufw_A.bin
-rw-r--r-- 1 pi pi 24118 Feb 15 18:37 rtl8723aufw_B.bin
-rw-r--r-- 1 pi pi 19200 Feb 15 18:37 rtl8723aufw_B_NoBT.bin
pi@raspberrypi:~/rtl8723au $ cd ..
pi@raspberrypi:~ $ ll
total 36
drwxr-xr-x 5 pi pi 4096 Feb 15 18:37 ./
drwxr-xr-x 3 root root 4096 Nov 25 17:24 ../
-rw------- 1 pi pi 139 Feb 15 17:26 .bash_history
-rw-r--r-- 1 pi pi 220 Nov 25 17:24 .bash_logout
-rw-r--r-- 1 pi pi 3511 Feb 15 17:24 .bashrc
-rw-r--r-- 1 pi pi 675 Nov 25 17:24 .profile
drwxr-xr-x 7 pi pi 4096 Feb 15 18:37 rtl8723au/
drwxr-xr-x 12 pi pi 4096 Feb 15 18:15 sakis3g-source/
drwx------ 2 pi pi 4096 Feb 15 17:25 .ssh/
pi@raspberrypi:~ $ cd /usr/src/
pi@raspberrypi:/usr/src $ ll
total 16
drwxr-xr-x 4 root root 4096 Feb 15 18:46 ./
drwxr-xr-x 10 root root 4096 Nov 25 17:19 ../
drwxr-xr-x 24 root root 4096 Feb 15 18:50 linux-headers-4.4.38+/
drwxr-xr-x 24 root root 4096 Feb 15 18:50 linux-headers-4.4.38-v7+/
pi@raspberrypi:/usr/src $ cd ~
pi@raspberrypi:~ $ ll
total 36
drwxr-xr-x 5 pi pi 4096 Feb 15 18:37 ./
drwxr-xr-x 3 root root 4096 Nov 25 17:24 ../
-rw------- 1 pi pi 139 Feb 15 17:26 .bash_history
-rw-r--r-- 1 pi pi 220 Nov 25 17:24 .bash_logout
-rw-r--r-- 1 pi pi 3511 Feb 15 17:24 .bashrc
-rw-r--r-- 1 pi pi 675 Nov 25 17:24 .profile
drwxr-xr-x 7 pi pi 4096 Feb 15 18:37 rtl8723au/
drwxr-xr-x 12 pi pi 4096 Feb 15 18:15 sakis3g-source/
drwx------ 2 pi pi 4096 Feb 15 17:25 .ssh/
pi@raspberrypi:~ $ cd rtl8723au/
pi@raspberrypi:~/rtl8723au $ make
make ARCH=armv6l CROSS_COMPILE= -C /lib/modules/4.4.38+/build M=/home/pi/rtl8723au modules
make[1]: Entering directory '/usr/src/linux-headers-4.4.38+'
Makefile:617: arch/armv6l/Makefile: No such file or directory
make[1]: No rule to make target 'arch/armv6l/Makefile'. Stop.
make[1]: Leaving directory '/usr/src/linux-headers-4.4.38+'
Makefile:516: recipe for target 'modules' failed
make: [modules] Error 2
pi@raspberrypi:~/rtl8723au $ cd /lib/modules/
pi@raspberrypi:/lib/modules $ ll
total 16
drwxr-xr-x 4 root root 4096 Feb 15 17:50 ./
drwxr-xr-x 17 root root 4096 Feb 15 17:37 ../
drwxr-xr-x 3 root root 4096 Feb 15 18:50 4.4.38+/
drwxr-xr-x 3 root root 4096 Feb 15 18:50 4.4.38-v7+/
pi@raspberrypi:/lib/modules $ cd 4.4.38+
pi@raspberrypi:/lib/modules/4.4.38+ $ ll
total 1764
drwxr-xr-x 3 root root 4096 Feb 15 18:50 ./
drwxr-xr-x 4 root root 4096 Feb 15 17:50 ../
lrwxrwxrwx 1 root root 30 Dec 19 20:19 build -> /usr/src/linux-headers-4.4.38+/
drwxr-xr-x 11 root root 4096 Feb 15 17:48 kernel/
-rw-r--r-- 1 root root 451381 Dec 19 20:02 modules.alias
-rw-r--r-- 1 root root 470066 Dec 19 20:02 modules.alias.bin
-rw-r--r-- 1 root root 4532 Dec 19 20:02 modules.builtin
-rw-r--r-- 1 root root 6006 Dec 19 20:02 modules.builtin.bin
-rw-r--r-- 1 root root 149068 Dec 19 20:02 modules.dep
-rw-r--r-- 1 root root 216521 Dec 19 20:02 modules.dep.bin
-rw-r--r-- 1 root root 302 Dec 19 20:02 modules.devname
-rw-r--r-- 1 root root 60138 Dec 19 20:02 modules.order
-rw-r--r-- 1 root root 55 Dec 19 20:02 modules.softdep
-rw-r--r-- 1 root root 183754 Dec 19 20:02 modules.symbols
-rw-r--r-- 1 root root 227475 Dec 19 20:02 modules.symbols.bin
pi@raspberrypi:/lib/modules/4.4.38+ $ cd /lib/modules/4.4.38+/
pi@raspberrypi:/lib/modules/4.4.38+ $ ll
total 1764
drwxr-xr-x 3 root root 4096 Feb 15 18:50 ./
drwxr-xr-x 4 root root 4096 Feb 15 17:50 ../
lrwxrwxrwx 1 root root 30 Dec 19 20:19 build -> /usr/src/linux-headers-4.4.38+/
drwxr-xr-x 11 root root 4096 Feb 15 17:48 kernel/
-rw-r--r-- 1 root root 451381 Dec 19 20:02 modules.alias
-rw-r--r-- 1 root root 470066 Dec 19 20:02 modules.alias.bin
-rw-r--r-- 1 root root 4532 Dec 19 20:02 modules.builtin
-rw-r--r-- 1 root root 6006 Dec 19 20:02 modules.builtin.bin
-rw-r--r-- 1 root root 149068 Dec 19 20:02 modules.dep
-rw-r--r-- 1 root root 216521 Dec 19 20:02 modules.dep.bin
-rw-r--r-- 1 root root 302 Dec 19 20:02 modules.devname
-rw-r--r-- 1 root root 60138 Dec 19 20:02 modules.order
-rw-r--r-- 1 root root 55 Dec 19 20:02 modules.softdep
-rw-r--r-- 1 root root 183754 Dec 19 20:02 modules.symbols
-rw-r--r-- 1 root root 227475 Dec 19 20:02 modules.symbols.bin
pi@raspberrypi:/lib/modules/4.4.38+ $ cd kernel/
pi@raspberrypi:/lib/modules/4.4.38+/kernel $ ll
total 44
drwxr-xr-x 11 root root 4096 Feb 15 17:48 ./
drwxr-xr-x 3 root root 4096 Feb 15 18:50 ../
drwxr-xr-x 3 root root 4096 Feb 15 17:48 arch/
drwxr-xr-x 3 root root 4096 Feb 15 17:49 crypto/
drwxr-xr-x 43 root root 4096 Feb 15 17:48 drivers/
drwxr-xr-x 26 root root 4096 Feb 15 17:49 fs/
drwxr-xr-x 2 root root 4096 Feb 15 17:49 kernel/
drwxr-xr-x 5 root root 4096 Feb 15 17:49 lib/
drwxr-xr-x 2 root root 4096 Feb 15 17:49 mm/
drwxr-xr-x 36 root root 4096 Feb 15 17:48 net/
drwxr-xr-x 8 root root 4096 Feb 15 17:49 sound/
pi@raspberrypi:/lib/modules/4.4.38+/kernel $ cd arch/
pi@raspberrypi:/lib/modules/4.4.38+/kernel/arch $ ll
total 12
drwxr-xr-x 3 root root 4096 Feb 15 17:48 ./
drwxr-xr-x 11 root root 4096 Feb 15 17:48 ../
drwxr-xr-x 4 root root 4096 Feb 15 17:48 arm/
pi@raspberrypi:/lib/modules/4.4.38+/kernel/arch $ cd arm/
pi@raspberrypi:/lib/modules/4.4.38+/kernel/arch/arm $ ll
total 16
drwxr-xr-x 4 root root 4096 Feb 15 17:48 ./
drwxr-xr-x 3 root root 4096 Feb 15 17:48 ../
drwxr-xr-x 2 root root 4096 Feb 15 17:49 crypto/
drwxr-xr-x 2 root root 4096 Feb 15 17:49 oprofile/
pi@raspberrypi:/lib/modules/4.4.38+/kernel/arch/arm $ uname -r
4.4.38+
pi@raspberrypi:/lib/modules/4.4.38+/kernel/arch/arm $
On Feb 15, 2017, at 11:49 AM, lwfinger notifications@github.com wrote:
You need to install the kernel headers. Directory /lib/modules/4.1.18+/build must be a link to the directory containing either the kernel source code, or at least the include directory with the headers used to build that kernel.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/lwfinger/rtl8723au/issues/62#issuecomment-280066706, or mute the thread https://github.com/notifications/unsubscribe-auth/AAMQFArWMm2afaIfJY1t_WM2NhbQMnMOks5rcyyKgaJpZM4MBx0a.
Build is correct. What does 'll /usr/src/linux-headers-4.4.38+/' show? It should have a directory "include".
I had almost the same problem with last raspbian lite (stretch) and kernel 4.9.80+
Makefile:629: arch/armv6l/Makefile: No such file or directory
I check the folder include ls /usr/src/linux-headers-4.9.80+/include/ there are a lot of folder inside acpi, crypto, etc...
I solved with this by-pass sudo ln -s /usr/src/linux-headers-4.9.80+/arch/arm /usr/src/linux-headers-4.9.80+/arch/armv6l
this is the error that I get following download pi@raspberrypi:~/rtl8723au $ make make ARCH=armv6l CROSS_COMPILE= -C /lib/modules/4.1.18+/build M=/home/pi/rtl8723au modules make[1]: /lib/modules/4.1.18+/build: No such file or directory. Stop. Makefile:516: recipe for target 'modules' failed make: [modules] Error 2 uname -r gives this 4.1.18+