|
发表于 2022-6-13 15:07:34
只看该作者
地板
- firefly@firefly:~/Tools/dma_ip_drivers/XDMA/linux-kernel/xdma$ make
- Makefile:16: XVC_FLAGS: .
- make -C /lib/modules/5.10.66/build M=/home/firefly/Tools/dma_ip_drivers/XDMA/linux-kernel/xdma modules
- make[1]: *** /lib/modules/5.10.66/build: No such file or directory. Stop.
- make: *** [Makefile:35: all] Error 2
- firefly@firefly:~/Tools/dma_ip_drivers/XDMA/linux-kernel/xdma$
- firefly@firefly:~/Tools/dma_ip_drivers/XDMA/linux-kernel/xdma$
- firefly@firefly:~/Tools/dma_ip_drivers/XDMA/linux-kernel/xdma$
- firefly@firefly:~/Tools/dma_ip_drivers/XDMA/linux-kernel/xdma$ ll /lib/modules/5.10.66/
- total 326
- drwxrwxr-x 3 root root 1024 Jun 13 07:02 ./
- drwxrwxr-x 3 root root 1024 Apr 24 02:47 ../
- drwxrwxr-x 3 root root 1024 Apr 24 02:47 kernel/
- -rw-r--r-- 1 root root 20077 Apr 24 02:47 modules.alias
- -rw-r--r-- 1 root root 20846 Apr 24 02:47 modules.alias.bin
- -rw-rw-r-- 1 root root 24198 Apr 24 02:47 modules.builtin
- -rw-r--r-- 1 root root 27179 Apr 24 02:47 modules.builtin.bin
- -rw-rw-r-- 1 root root 159146 Apr 24 02:47 modules.builtin.modinfo
- -rw-r--r-- 1 root root 8260 Apr 24 02:47 modules.dep
- -rw-r--r-- 1 root root 17682 Apr 24 02:47 modules.dep.bin
- -rw-r--r-- 1 root root 0 Apr 24 02:47 modules.devname
- -rw-rw-r-- 1 root root 7333 Apr 24 02:47 modules.order
- -rw-r--r-- 1 root root 55 Apr 24 02:47 modules.softdep
- -rw-r--r-- 1 root root 16277 Apr 24 02:47 modules.symbols
- -rw-r--r-- 1 root root 23322 Apr 24 02:47 modules.symbols.bin
- firefly@firefly:~/Tools/dma_ip_drivers/XDMA/linux-kernel/xdma$
复制代码
下载源码以后,建立软链接,编译还是失败
- build -> /home/firefly/Tools/rk3588/kernel/
- source -> /home/firefly/Tools/rk3588/kernel/
复制代码
- firefly@firefly:~/Tools/dma_ip_drivers/XDMA/linux-kernel/xdma$ make
- Makefile:16: XVC_FLAGS: .
- make -C /lib/modules/5.10.66/build M=/home/firefly/Tools/dma_ip_drivers/XDMA/linux-kernel/xdma modules
- make[1]: Entering directory '/home/firefly/Tools/rk3588/kernel'
- 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.
- Makefile:667: include/config/auto.conf: No such file or directory
- make[1]: *** [Makefile:744: include/config/auto.conf] Error 1
- make[1]: Leaving directory '/home/firefly/Tools/rk3588/kernel'
- make: *** [Makefile:35: all] Error 2
- firefly@firefly:~/Tools/dma_ip_drivers/XDMA/linux-kernel/xdma$ make
- Makefile:16: XVC_FLAGS: .
- make -C /lib/modules/5.10.66/build M=/home/firefly/Tools/dma_ip_drivers/XDMA/linux-kernel/xdma modules
- make[1]: *** /lib/modules/5.10.66/build: No such file or directory. Stop.
- make: *** [Makefile:35: all] Error 2
- firefly@firefly:~/Tools/dma_ip_drivers/XDMA/linux-kernel/xdma$
复制代码 |
|