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!

cancel
Showing results for 
Search instead for 
Did you mean: 
Visitor andrew57jm
Visitor
11,584 Views
Registered: ‎06-14-2012

Another Device Tree Problem...

I'm trying to run through the 

Zynq-7000 AP SoC Spectrum Analyzer part 5 - Accelerating Software - Accelerating an FFT with ACP Coprocessor Tech Tip 2014.3

 

The hardware builds fine on Vivado and I can export the hw to an .sdk folder.

The problem occurs when I use petalinux-config --get-hw-description=<path to .hdf file>

 

peta-linux-config appears to run with no errors and even outputs a line:

[INFO]generate DTS to <path to project>/subsystems/linux/configs/device-tree

 

But when I look in that folder, there's no file ProjectName.dts as described in the TechTip

There's no error messages anywhere, just no .dts file.

Any ideas what could cause this file to not be generated?

 

 

0 Kudos
4 Replies
Visitor andrew57jm
Visitor
11,579 Views
Registered: ‎06-14-2012

Re: Another Device Tree Problem...

In case it helps, here's the  command I'm giving and the messages from petalinux-config that I'm getting:

 

ajm@Work1478 ~/petalinux-v2014.2-final/FftAcc $ sudo -E env PATH=$PATH petalinux-config --get-hw-description=/home/ajm/FFT/project/zynq_base_trd_2014.3.sdk


INFO: Checking component...
INFO: Getting hardware description...
INFO: Rename system_top_wrapper.hdf to system.hdf

****** hsm v2014.2
**** SW Build 928826 on Thu Jun 5 17:59:37 MDT 2014
** Copyright 1986-2014 Xilinx, Inc. All Rights Reserved.

INFO: [Hsm 55-1698] elapsed time for repository loading 1 seconds
source /home/ajm/petalinux-v2014.2-final/FftAcc/build/linux/hw-description/hw-description.tcl -notrace
INFO: [Common 17-206] Exiting hsm at Thu Feb 11 15:30:42 2016...
INFO: Config linux
[INFO ] config linux
configuration written to /home/ajm/petalinux-v2014.2-final/FftAcc/subsystems/linux/config

*** End of the configuration.


[INFO ] generate DTS to /home/ajm/petalinux-v2014.2-final/FftAcc/subsystems/linux/configs/device-tree
INFO: [Hsm 55-1698] elapsed time for repository loading 0 seconds
INFO: [Common 17-206] Exiting hsm at Thu Feb 11 15:33:05 2016...
[INFO ] generate linux/u-boot board header files
INFO: [Hsm 55-1698] elapsed time for repository loading 0 seconds
INFO: [Common 17-206] Exiting hsm at Thu Feb 11 15:33:06 2016...
[INFO ] generate BSP for zynq_fsbl
INFO: [Hsm 55-1698] elapsed time for repository loading 0 seconds
INFO: [Common 17-206] Exiting hsm at Thu Feb 11 15:33:07 2016...
INFO: Config linux/kernel
[INFO ] oldconfig linux/kernel
INFO: Config linux/rootfs
[INFO ] oldconfig linux/rootfs

-------------------------

After this there's no .dts file,  no .bsp, no nothing.

 

 

 

0 Kudos
11,531 Views
Registered: ‎03-27-2014

Re: Another Device Tree Problem...

can you try to cross-compile the devicetree manually, see if actually succeeds?

 

/path/to/petalinux/linux-kernel/scripts/dtc/dtc -I dts -O dtb  \
/home/ajm/petalinux-v2014.2-final/FftAcc/subsystems/linux/configs/device-treemy_devicetree.dtb \
/path/to/petalinux/devicetree.dts
G.W.,
NIST - Time Frequency metrology
0 Kudos
Visitor andrew57jm
Visitor
11,326 Views
Registered: ‎06-14-2012

Re: Another Device Tree Problem...

the problem is that there is no device tree file (*.dts) to compile. My understanding is that the project_name.dts file is generated by petalinux-config with the --get-hw-description option.

But after running petalinux-config there is nothing in the /petalinux-project/susbsystems/linux/configs/device-tree folder which reflects the project hw, it's all completely generic. (Although my processor options are reflected in the ps.dtsi file).

 

So where is this device tree file supposed to come from?

 

0 Kudos
Scholar sampatd
Scholar
11,308 Views
Registered: ‎09-05-2011

Re: Another Device Tree Problem...

Yes PetaLinux is supposed to generate the *.dts after parsing your system.hdf file.

Can you attach your system.hdf file? I will take a look.
0 Kudos