系统移植"/>
linux驱动系统移植
环境
开发板: imx6ull pro
Ubuntu: ubuntu2022 64位 (在比较新的版本的ubuntu才会出现这个错误)
交叉工具链: arm-linux-gnueabihf-gcc gcc version 6.2.1 20161016 (Linaro GCC 6.2-2016.11)
linux版本 : Linux4.9.88
/usr/bin/ld: scripts/dtc/dtc-parser.tab.o:(.bss+0x10): multiple definition of `yylloc’; scripts/dtc/dtc-lexer.lex.o:(.bss+0x0): first defined here
重复定义的yylloc
进入scripts/dtc/dtc-lexer.lex.c
搜索 yylloc变量的定义
640 YYLTYPE yylloc;
修改为
640 extern YYLTYPE yylloc;
/bin/sh: 1: lzop: not found
sudo apt install lzop
更多推荐
linux驱动系统移植
发布评论