【error】scripts/basic/fixdep: Syntax error: ( unexpected
生活随笔
收集整理的這篇文章主要介紹了
【error】scripts/basic/fixdep: Syntax error: ( unexpected
小編覺得挺不錯的,現(xiàn)在分享給大家,幫大家做個參考.
前言
第一次安裝PCIE驅(qū)動的時候容易出現(xiàn)各種問題,總結(jié)一下下。。
原因分析
一般情況下,直接make的時候會出現(xiàn)問題.
scripts/basic/fixdep: 1: scripts/basic/fixdep: Syntax error: "(" unexpected scripts/Makefile.build:261: recipe for target '/opt/pcie_v4l2_mono-master/app/uisee-sensor.o' failed make[3]: *** [/opt/pcie_v4l2_mono-master/app/uisee-sensor.o] Error 2 Makefile:1414: recipe for target '_module_/opt/pcie_v4l2_mono-master/app' failed make[2]: *** [_module_/opt/pcie_v4l2_mono-master/app] Error 2 make[2]: Leaving directory '/usr/src/linux-headers-4.4.38-tegra' Makefile:16: recipe for target 'all' failed make[1]: *** [all] Error 2 make[1]: Leaving directory '/opt/pcie_v4l2_mono-master/app' Makefile:42: recipe for target 'all' failed make: *** [all] Error 2?原因一:
沒有在/etc/rc.local文件中加載pcie驅(qū)動;
echo "PCIE card exist, start pcie video driver"modprobe videodevmodprobe videobuf2-coremodprobe videobuf2-vmallocmodprobe videobuf2-dma-contigmodprobe v4l2-common等等。。。
原因二:
系統(tǒng)ext配置文件不完整;
解決方法:
在/boot/extconf,修改extconf文件,增加coherent_pool=16M,加在APPEND最后;
nvidia@tegra-ubuntu:/boot/extlinux$ sudo vi extlinux.conf TIMEOUT 30 DEFAULT primaryMENU TITLE p2771-0000 eMMC boot optionsLABEL primary MENU LABEL primary kernel LINUX /boot/Image APPEND ${cbootargs} root=/dev/mmcblk0p1 rw rootwait rootfstype=ext4 coherent_pool=16M原因三:
內(nèi)核需要重新編譯;
cd /lib/modules/4.4.38-tegra/ cd build cd scripts/ sudo make scriptsscripts目錄出錯:
make: *** No rule to make target 'scripts'. Stop.注意,也可能是在build而不是scripts目錄下進(jìn)行編譯;
build目錄編譯成功:
nvidia@tegra-ubuntu:/lib/modules/4.4.38-tegra/build$ sudo make scriptsHOSTCC scripts/basic/fixdepHOSTCC scripts/basic/bin2cHOSTCC scripts/kconfig/conf.oHOSTCC scripts/kconfig/zconf.tab.oHOSTLD scripts/kconfig/conf scripts/kconfig/conf --silentoldconfig Kconfig # # configuration written to .config #HOSTCC scripts/dtc/dtc.oHOSTCC scripts/dtc/flattree.oHOSTCC scripts/dtc/fstree.oHOSTCC scripts/dtc/data.oHOSTCC scripts/dtc/livetree.oHOSTCC scripts/dtc/treesource.oHOSTCC scripts/dtc/srcpos.oHOSTCC scripts/dtc/checks.oHOSTCC scripts/dtc/util.oHOSTCC scripts/dtc/dtc-lexer.lex.oHOSTCC scripts/dtc/dtc-parser.tab.oHOSTLD scripts/dtc/dtcCC scripts/mod/empty.oHOSTCC scripts/mod/mk_elfconfigMKELF scripts/mod/elfconfig.hHOSTCC scripts/mod/modpost.oCC scripts/mod/devicetable-offsets.sGEN scripts/mod/devicetable-offsets.hHOSTCC scripts/mod/file2alias.oHOSTCC scripts/mod/sumversion.oHOSTLD scripts/mod/modpostHOSTCC scripts/kallsymsHOSTCC scripts/pnmtologoHOSTCC scripts/conmakehashHOSTCC scripts/sortextable?
原因四:
驅(qū)動文件的權(quán)限問題;
原因五:
編譯驅(qū)動;
cd /opt/pcie_*** sudo make clean make #( no sudo) sudo make insert參考
1.編譯驅(qū)動內(nèi)核;
完
轉(zhuǎn)載于:https://www.cnblogs.com/happyamyhope/p/9430225.html
與50位技術(shù)專家面對面20年技術(shù)見證,附贈技術(shù)全景圖總結(jié)
以上是生活随笔為你收集整理的【error】scripts/basic/fixdep: Syntax error: ( unexpected的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: Vue项目中的初始化
- 下一篇: 【luogu P1343 地震逃生】 题