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: 
Adventurer
Adventurer
741 Views
Registered: ‎06-13-2017

Obscure Patch for Minized

Jump to solution

I tried to follow steps described in the Minized Petalinux workshop and found that it fails at the petalinux-build stage. The error turned out to be documented and patched at https://www.xilinx.com/support/answers/70402.html  . The patch may be effective, but there is no instructions how to apply it, just the text below. If anybody knows how to apply it please help!

 

 

The patch:

 

 

From d8a0476ff1d36f7e0a92129c687b69f38830abb3 Mon Sep 17 00:00:00 2001
From: Venkatesh Yadav Abbarapu <vabbarap@xilinx.com>
Date: Mon, 11 Dec 2017 09:52:24 +0530
Subject: [PATCH] Update the logic to check if cpu is present in the design or
 not

Some of the designs doesn't have all the cpus, so add the logic to
fix this.

Signed-off-by: Venkatesh Yadav Abbarapu <vabbarap@xilinx.com>
Acked-by: Michal Simek <michals@xilinx.com>
---
 device_tree/data/device_tree.tcl | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/device_tree/data/device_tree.tcl b/device_tree/data/device_tree.tcl
index dd3928b..a838141 100644
--- a/device_tree/data/device_tree.tcl
+++ b/device_tree/data/device_tree.tcl
@@ -377,6 +377,11 @@ proc update_cpu_node {os_handle} {
     set proc_instance 0
     for {set i 0} {$i < $total_cores} {incr i} {
         set proc_name [lindex [get_cells -hier -filter {IP_TYPE==PROCESSOR}] $i]
+        if {[llength $proc_name] == 0} {
+            set cpu_node [add_or_get_dt_node -n "cpus" -d ${default_dts} -p ${system_root_node}]
+            hsi::utils::add_new_dts_param "${cpu_node}" "/delete-node/ cpu@$i" "" boolean
+            continue
+        }
 	if {[string match -nocase [get_property IP_NAME [get_cells -hier $proc_name]] "microblaze"]} {
 		return
 	}
-- 
2.7.4
0 Kudos
1 Solution

Accepted Solutions
Adventurer
Adventurer
906 Views
Registered: ‎06-13-2017

Re: Obscure Patch for Minized

Jump to solution

Just found the answers myself:

-the file does need to be modified

-the correct path has to be shown in the ...bbappend file (after file://)

 

... and it works

View solution in original post

0 Kudos
3 Replies
Moderator
Moderator
720 Views
Registered: ‎05-10-2017

Re: Obscure Patch for Minized

Jump to solution

These steps are provided in the AR as well

Copy the patch file attached to project-spec/meta-user/recipes-bsp/device-tree/files/ directory

The patch should be applied to <plnx-proj-root>/project-spec/meta-user/recipes-bsp/device-tree/device-tree-generation_%.bbappend

 

In the device-tree-generation_%.bbappend add the content below

SRC_URI_append ="\
    file://0001-Update-the-logic-to-check-if-cpu-is-present-in-the-d.patch \
"
FILESEXTRAPATHS_prepend := "${THISDIR}/files:"

 

 Run a petalinux-build
-------------------------------------------------------------------------
Don’t forget to reply, kudo, and accept as solution.
-------------------------------------------------------------------------
0 Kudos
Adventurer
Adventurer
688 Views
Registered: ‎06-13-2017

Re: Obscure Patch for Minized

Jump to solution

The instructions are missing this information:

 

1. Where the patch file has to be saved?

 

2. The patch file has a lot of text that is evidently notes about its origin. Do I need them to be commented out?

 

I added the text to ...bbappend as you described and saved the patch in the same folder but it just produced a long trail of errors starting with:

 

ERROR: device-tree-generation-xilinx+gitAUTOINC+3c7407f6f8-r0 do_fetch: Fetcher failure: Unable to find file file://0001-Update-the-logic-to-check-if-cpu-is-present-in-the-d.patch anywhere.

 

 

This is the file is stored:

$ ls -l project-spec/meta-user/recipes-bsp/device-tree/
total 12
-rw-rw-r-- 1 oleg oleg 1300 Apr 19 09:02 0001-Update-the-logic-to-check-if-cpu-is-present-in-the-d.patch
-rw-r--r-- 1 oleg oleg  244 Apr 19 08:59 device-tree-generation_%.bbappend
drwxr-xr-x 2 oleg oleg 4096 Apr 18 17:02 files

0 Kudos
Adventurer
Adventurer
907 Views
Registered: ‎06-13-2017

Re: Obscure Patch for Minized

Jump to solution

Just found the answers myself:

-the file does need to be modified

-the correct path has to be shown in the ...bbappend file (after file://)

 

... and it works

View solution in original post

0 Kudos