UPGRADE YOUR BROWSER
We have detected your current browser version is not the latest one. Xilinx.com uses the latest web technologies to bring you the best online experience possible. Please upgrade to a Xilinx.com supported browser:Chrome, Firefox, Internet Explorer 11, Safari. Thank you!
11-17-2019 08:10 AM - 编辑日期 11-17-2019 08:35 AM
bd中已经为PL分配了地址。为了方便改PL部分,我把bd的axi接口设为外部端口,然后把bd作为一个模块,在顶层和PL模块一起例化。non-project模式,最后用命令生成hdf文件:
write_hwdef -file $hardwaredef -force write_bitstream -force $bitstream write_sysdef -hwdef $hardwaredef -bitfile $bitstream -file $sysdef -force
在petalinux里倒入这个hdf文件后,`./components/plnx_workspace/device-tree/device-tree/`目录中没有生成pl.dtsi文件。
请问我的方法(把bd作为和PL平级的模块)有没有问题?或者导出hwdef的方法不对?怎样才能正确的生成得到hdf文件?
修改时间 11-18-2019 09:27 AM
你把AXI作为外部接口的话,在address map中就不会给其分配一段地址了。
自然你导出的时候,不会生成相应的设备树信息。
修改时间 11-18-2019 11:26 AM
如果只是要生成device-tree的话,可以用petalinux-build -b device-tree指令。
ug1144 page 32有example可以参考
修改时间 11-18-2019 12:12 PM
谢谢。ug1144看过一遍,不过基本上config完就直接build整个project,还真没用过这些单独编译的命令。
ps:如果只用petalinux生成BOOT.BIN和image.ub,而不用它的rootfs,那么每次改完kernel/module,应该用什么命令来更新这两个文件,而避免重新编译rootfs?