cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Visitor
Visitor
653 Views
Registered: ‎01-18-2017

I create a image.ub with a HDF file, it does not recognize USB device.

I try to create linux with petalinux 2018.2, so I export hdf file with vivado 2018.2. Then I got the generated image.ub and boot.bin.The uboot and linux runs ok,but linux does not recognize usb device, while uboot can.

petalinux-create -t project --template zynq -n zynq_linux
petalinux-config --get-hw-description=zynq.hdf
petalinux-build

Then I create image.ub with  ZC702 BSP(download from xilinx websit), the generated linux can recognize usb device.

 

 

petalinux-create -t project -s xilinx-zc702-v2018.2-final.bsp
petalinux-build

 

 

So I try to use hdf in  xilinx-zc702-v2018.2-final.bsp, but still failed.

 

So the question is that : how to use petalinux with hdf, generate a correct linux?

 

0 Kudos
2 Replies
Highlighted
Moderator
Moderator
633 Views
Registered: ‎12-04-2016

Re: I create a image.ub with a HDF file, it does not recognize USB device.

Hi

 

In that case, You can compare the system.dtb files generated between BSP and HDF specifically for usb device tree nodes.

(Decompile system.dtb to dts files for comparisions)

 

Add the USB device tree nodes to system-user.dtsi and rebuild the petalinux project with HDF flow

 

 

Best Regards

Shabbir

0 Kudos
Highlighted
Moderator
Moderator
604 Views
Registered: ‎09-12-2007

Re: I create a image.ub with a HDF file, it does not recognize USB device.

If you generate the petalinux project using the bsp then this will add all the device nodes for this board.

If you generate the petalinux project and use the petalinux-config —get-hw-description=path to HDF. Then this will only have the device nodes for IP in the fpga ( or more specifically the block design generated in vivado.

So this could be the reason. You copy the system-user.dtsi in the bsp generated project. Into your HDF generated project and try again.

Or, just use the flow below.
petalinux-create -t project -s path to bsp
cd <petalinux project>
rm -ref components/plnx-workspace
petalinux-config —get-hw-description=path to HDF
petalinux-build.

This flow will over lay the bsp project with your custom hw in the HDF.

0 Kudos