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: 
Observer tomo_naga
Observer
1,216 Views
Registered: ‎08-02-2017

XAPP1305: petalinux 2017.4 build error

Jump to solution

Hi.

 

I'm trying to implement the XAPP1305 design to ZCU102 (rev. 1.1) in the 2017.4 environment (Vivado and Petalinux).

 

Firstly, the design implemented by Vivado 2017.1 was updated, namely IP upgrade, by Vivado 2017.4.

Secondly, the petalinux project using .hdf by Vivado 2017.4 was created.

And then, I got the below errors at the petalinux building step.

ERROR: device-tree-generation-xilinx+gitAUTOINC+3c7407f6f8-r0 do_compile: Function failed: do_compile (log file is located at /opt/petalinux/xilinx-zcu102-zu9-es2-rev1.0-2017.4/build/tmp/work/plnx_aarch64-xilinx-linux/device-tree-generation/xilinx+gitAUTOINC+3c7407f6f8-r0/temp/log.do_compile.11456)
ERROR: Logfile of failure stored in: /opt/petalinux/xilinx-zcu102-zu9-es2-rev1.0-2017.4/build/tmp/work/plnx_aarch64-xilinx-linux/device-tree-generation/xilinx+gitAUTOINC+3c7407f6f8-r0/temp/log.do_compile.11456
Log data follows:
| DEBUG: Executing shell function do_compile
| /opt/petalinux/xilinx-zcu102-zu9-es2-rev1.0-2017.4/build/../components/plnx_workspace/device-tree/device-tree-generation/plnx_aarch64-system.dtb: ERROR (phandle_references): Reference to non-existent node or label "rx_data_fifo_0"
| 
| /opt/petalinux/xilinx-zcu102-zu9-es2-rev1.0-2017.4/build/../components/plnx_workspace/device-tree/device-tree-generation/plnx_aarch64-system.dtb: ERROR (phandle_references): Reference to non-existent node or label "rx_data_fifo_0"
| 
| ERROR: Input tree has errors, aborting (use -f to force output)
| WARNING: exit code 2 from a shell command.
| ERROR: Function failed: do_compile (log file is located at /opt/petalinux/xilinx-zcu102-zu9-es2-rev1.0-2017.4/build/tmp/work/plnx_aarch64-xilinx-linux/device-tree-generation/xilinx+gitAUTOINC+3c7407f6f8-r0/temp/log.do_compile.11456)
ERROR: Task (/opt/petalinux/components/yocto/source/aarch64/layers/meta-xilinx-tools/recipes-bsp/device-tree/device-tree-generation_git.bb:do_compile) failed with exit code '1'

Based on the above errors, I deleted the code 

axistream-connected = <&rx_data_fifo_0>;
axistream-control-connected = <&rx_data_fifo_0>;

 on "pl.dts" in  "/opt/petalinux/xilinx-zcu102-zu9-es2-rev1.0-2017.4/components/plnx_workspace/device-tree/device-tree-generation".

After that, the re-build could be completed without errors and the linux could be booted on ZCU102. 

 

However, I got the below kernel panic when starting up eth1(10GE).

root@xilinx-zcu102-zu9-es2-rev1_0-2017:~# ifconfig eth1 up
[   27.107103] xilinx_axienet 80010000.ethernet eth1: __axienet_device_reset: DMA reset timeout!
[   27.117112] xilinx_axienet 80010000.ethernet eth1: __axienet_device_reset: DMA reset timeout!
[   27.125864] Unhandled fault: synchronous external abort (0x96000210) at 0xffffff8008f2040c
[   27.134128] Internal error: : 96000210 [#1] SMP
[   27.138611] Modules linked in: uio_pdrv_genirq
[   27.145000] CPU: 2 PID: 2293 Comm: ifconfig Not tainted 4.9.0-xilinx-v2017.4 #1
[   27.154313] Hardware name: ZynqMP ZCU102 Rev1.0 (DT)
[   27.161312] task: ffffffc8794d8380 task.stack: ffffffc87ad7c000
[   27.169320] PC is at axienet_device_reset+0x55c/0x6e8
[   27.176431] LR is at axienet_device_reset+0x53c/0x6e8

continued...

 

I've already confirmed that the XAPP1305 design implemented in "the 2017.1 environment" worked.

I'd like to build the design in the 2047.4 environment.

 

Does anyone have any solutions or comments?

 

Thank you very much in advance.

0 Kudos
1 Solution

Accepted Solutions
Moderator
Moderator
1,494 Views
Registered: ‎08-25-2009

Re: XAPP1305: petalinux 2017.4 build error

Jump to solution

Hi @tomo_naga,

 

You will also need to connect txoutclksel/rxoutclksel to 101 in the toplevel BD file. The IP has been updated in the newer version of the tool to bring out the clock select signals for customer use. You should not see the "DMA reset timeout" error with this change.

"Don't forget to reply, kudo and accept as solution."

View solution in original post

0 Kudos
4 Replies
Moderator
Moderator
1,187 Views
Registered: ‎08-25-2009

Re: XAPP1305: petalinux 2017.4 build error

Jump to solution

Hi @tomo_naga,

 

When upgrading xapp1305 to 2017.3/4, there is a patch needed. Please check the details in the following wiki page:

https://forums.xilinx.com/t5/Networking-and-Connectivity/Zynq-AXI-Ehernet-Subsystem-with-MII2RMII-problem/td-p/849418

 

 

"Don't forget to reply, kudo and accept as solution."
0 Kudos
Highlighted
Observer tomo_naga
Observer
1,165 Views
Registered: ‎08-02-2017

Re: XAPP1305: petalinux 2017.4 build error

Jump to solution

Thank you very much for your reply!

 

I tried to build the project with the patch file you uploaded.

Although the build could be done without any errors, the same kernel panic occurred when eth1 was started up.

 

Do you have any ideas?

 

Thank you in advance.

0 Kudos
Moderator
Moderator
1,495 Views
Registered: ‎08-25-2009

Re: XAPP1305: petalinux 2017.4 build error

Jump to solution

Hi @tomo_naga,

 

You will also need to connect txoutclksel/rxoutclksel to 101 in the toplevel BD file. The IP has been updated in the newer version of the tool to bring out the clock select signals for customer use. You should not see the "DMA reset timeout" error with this change.

"Don't forget to reply, kudo and accept as solution."

View solution in original post

0 Kudos
Observer tomo_naga
Observer
1,134 Views
Registered: ‎08-02-2017

Re: XAPP1305: petalinux 2017.4 build error

Jump to solution

Thank you for your kind reply @nanz!

 

The design after reflected your suggestions worked done well!

 

0 Kudos