在利用zc706+ad9371板子时,利用adi提供的HDL,将其编译后,生成.hdf文件,然后创建petalinux工程文件,,编译报错,错误信息如下:
Log data follows:
| DEBUG: Executing shell function do_compile
| Error: /home/kun/zc706/ad9371/build/../components/plnx_workspace/device-tree/device-tree/pl.dtsi:36.32-33 syntax error
| FATAL ERROR: Unable to parse input tree
解决方法:
在解决该问题时,其pl.dtsi路径相当于
/home/kun/zc706/ad9371/components/plnx_workspace/device-tree/device-tree/pl.dtsi
根据报错信息,打开pl.dtsi文件,
将36行的时钟频率的小数部分去掉如下所示
保存后重新编译即可(在该终端继续运行petalinux-build)。