I am stuck with the following error: *** No rule to make target 'arch/arm/tools/gen-mach-types', needed by 'include/generated/mach-types.h'. What is necessary to rebuild and replace the module with a new one?
Here is what was done so far:
root@orangepiplus:/usr/src/rtl8189ES_linux# uname -a Linux orangepiplus 3.4.110-sun8i #18 SMP PREEMPT Tue Mar 8 20:03:32 CET 2016 armv7l GNU/Linux
A trunk A trunk/Kconfig A trunk/Makefile A trunk/clean A trunk/core A trunk/core/efuse A trunk/core/efuse/rtw_efuse.c A trunk/core/rtw_ap.c A trunk/hal/efuse A trunk/hal/efuse/efuse_mask.h A trunk/hal/efuse/rtl8188e A trunk/hal/efuse/rtl8188e/HalEfuseMask8188E_PCIE.c A trunk/hal/efuse/rtl8188e/HalEfuseMask8188E_PCIE.h A trunk/hal/phydm/rtl8188e/hal8188ereg.h A trunk/runwpa A trunk/wlan0dhcp Exported revision 6.
Question
y52
The built-in WIFI module doesn't switch to monitor mode. This makes me looking for rebuilding the module from the Git repository: https://github.com/rdm-dev/rtl8189ES_linux/tree/52ee6388111fbaf990ec60e93b086cafa6cc373a
I am stuck with the following error: *** No rule to make target 'arch/arm/tools/gen-mach-types', needed by 'include/generated/mach-types.h'. What is necessary to rebuild and replace the module with a new one?
Here is what was done so far:
root@orangepiplus:/usr/src/rtl8189ES_linux# uname -a Linux orangepiplus 3.4.110-sun8i #18 SMP PREEMPT Tue Mar 8 20:03:32 CET 2016 armv7l GNU/Linux
root@orangepiplus:/usr/src/rtl8189ES_linux# dmesg |grep 8189 [ 3.923104] RTL871X: rtl8189es v4.3.0.4_11916.20140724_COB [ 3.923090] RTL871X: module init start [ 3.923104] RTL871X: rtl8189es v4.3.0.4_11916.20140724_COB [ 3.923112] RTL871X: build time: Mar 8 2016 20:02:27 root@orangepiplus:~# lsmod Module Size Used by 8189es 896688 0
root@orangepiplus:~# rmmod 8189es
root@orangepiplus:/usr/src/rtl8189ES_linux# ls -al /lib/modules/`uname -r`/ lrwxrwxrwx 1 root root 36 Mar 8 20:03 build -> /usr/src/linux-headers-3.4.110-sun8i
root@orangepiplus:/usr/src# svn ls https://github.com/rdm-dev/rtl8189ES_linux/trunk
Kconfig
Makefile
clean
core/
hal/
ifcfg-wlan0
import-update.sh
include/
os_dep/
platform/
runwpa
wlan0dhcp
root@orangepiplus:/usr/src# svn export https://github.com/rdm-dev/rtl8189ES_linux/trunk
A trunk A trunk/Kconfig A trunk/Makefile A trunk/clean A trunk/core A trunk/core/efuse A trunk/core/efuse/rtw_efuse.c A trunk/core/rtw_ap.c A trunk/hal/efuse A trunk/hal/efuse/efuse_mask.h A trunk/hal/efuse/rtl8188e A trunk/hal/efuse/rtl8188e/HalEfuseMask8188E_PCIE.c A trunk/hal/efuse/rtl8188e/HalEfuseMask8188E_PCIE.h A trunk/hal/phydm/rtl8188e/hal8188ereg.h A trunk/runwpa A trunk/wlan0dhcp Exported revision 6.
root@orangepiplus:/usr/src# mv trunk rtl8189ES_linux
root@orangepiplus:/usr/src# ls -al rtl8189ES_linux
total 112 drwxr-xr-x 7 root root 4096 Apr 2 19:28 . drwxr-xr-x 11 root root 4096 Apr 2 19:30 .. -rw-r--r-- 1 root root 64 Oct 6 21:21 clean drwxr-xr-x 3 root root 4096 Apr 2 19:28 core drwxr-xr-x 8 root root 4096 Apr 2 19:28 hal -rw-r--r-- 1 root root 54 Oct 6 21:21 ifcfg-wlan0 -rwxr-xr-x 1 root root 496 Oct 6 21:21 import-update.sh drwxr-xr-x 4 root root 12288 Apr 2 19:28 include -rw-r--r-- 1 root root 110 Oct 6 21:21 Kconfig -rwxr-xr-x 1 root root 51507 Oct 6 21:21 Makefile drwxr-xr-x 3 root root 4096 Apr 2 19:28 os_dep drwxr-xr-x 2 root root 4096 Apr 2 19:28 platform -rw-r--r-- 1 root root 423 Oct 6 21:21 runwpa -rw-r--r-- 1 root root 294 Oct 6 21:21 wlan0dhcp
cd /usr/src/rtl8189ES_linux
root@orangepiplus:/usr/src/rtl8189ES_linux# make -C /lib/modules/`uname -r`/build
make: Entering directory '/usr/src/linux-headers-3.4.110-sun8i'
HOSTCC scripts/basic/fixdep
HOSTCC scripts/kconfig/conf.o
SHIPPED scripts/kconfig/zconf.tab.c
SHIPPED scripts/kconfig/zconf.lex.c
SHIPPED scripts/kconfig/zconf.hash.c
HOSTCC scripts/kconfig/zconf.tab.o
HOSTLD scripts/kconfig/conf
scripts/kconfig/conf --silentoldconfig Kconfig
CHK include/linux/version.h
CHK include/generated/utsrelease.h
UPD include/generated/utsrelease.h
make[1]: *** No rule to make target 'arch/arm/tools/gen-mach-types', needed by 'include/generated/mach-types.h'. Stop.
/usr/src/linux-headers-3.4.110-sun8i/arch/arm/Makefile:278: recipe for target 'archprepare' failed
make: *** [archprepare] Error 2
make: Leaving directory '/usr/src/linux-headers-3.4.110-sun8i'
Link to comment
Share on other sites
62 answers to this question
Recommended Posts