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!
08-28-2018 06:17 PM
Host OS: Ubuntu 16.04.5
Petalinux: v2018.2
Board/BSP: xilinx-zcu102-v2018.2-final.bsp
I have been unable to build the v2018.2 FSBL of PMU Firmware with petalinux v2018.2 and can't figure out why.
The do_configure stage for both hangs indefinitely. Checking the configure logs show:
DEBUG: Executing shell function do_configure MISC_ARG is -yamlconf /xilinx/petalinux/v2018.2/projects/zcu102_base/build/tmp/work/zcu102_zynqmp-xilinx-linux/fsbl/2018.2+gitAUTOINC+6e82c0183b-r0/fsbl.yaml APP_ARG is -app "Zynq MP FSBL" cmd is: xsct /xilinx/petalinux/v2018.2/projects/zcu102_base/build/tmp/work/zcu102_zynqmp-xilinx-linux/fsbl/2018.2+gitAUTOINC+6e82c0183b-r0/app.tcl -ws /xilinx/petalinux/v2018.2/projects/zcu102_base/build/../components/plnx_workspace/fsbl -pname fsbl -rp /xilinx/petalinux/v2018.2/tools/hsm/data/embeddedsw -processor psu_cortexa53_0 -hdf /xilinx/petalinux/v2018.2/projects/zcu102_base/build/tmp/deploy/images/zcu102-zynqmp/Xilinx-zcu102-zynqmp.hdf -arch 64 -app "Zynq MP FSBL" -yamlconf /xilinx/petalinux/v2018.2/projects/zcu102_base/build/tmp/work/zcu102_zynqmp-xilinx-linux/fsbl/2018.2+gitAUTOINC+6e82c0183b-r0/fsbl.yaml Display is :142 Starting xsdk. This could take few seconds... Picked up _JAVA_OPTIONS: -Duser.home=/xilinx/petalinux/v2018.2/projects/zcu102_base/build/tmp/xsctenv done XSCTHELPER INFO: Empty WorkSpace {channel "tcfchan#0" closed} {-code 1 -level 0 -errorcode NONE -errorinfo {channel "tcfchan#0" closed while executing "::tcf::send_command $chan $service $cmd [list sdk_command_callback]"} -errorline 12} Eclipse: GTK+ Version Check
DEBUG: Executing shell function do_configure MISC_ARG is -yamlconf /xilinx/petalinux/v2018.2/projects/zcu102_base/build/tmp/work/zcu102_zynqmp-xilinx-linux/pmu-firmware/2018.2+gitAUTOINC+6e82c0183b-r0/pmu-firmware.yaml APP_ARG is -app "ZynqMP PMU Firmware" cmd is: xsct /xilinx/petalinux/v2018.2/projects/zcu102_base/build/tmp/work/zcu102_zynqmp-xilinx-linux/pmu-firmware/2018.2+gitAUTOINC+6e82c0183b-r0/app.tcl -ws /xilinx/petalinux/v2018.2/projects/zcu102_base/build/../components/plnx_workspace/pmu-firmware -pname pmu-firmware -rp /xilinx/petalinux/v2018.2/tools/hsm/data/embeddedsw -processor psu_pmu_0 -hdf /xilinx/petalinux/v2018.2/projects/zcu102_base/build/tmp/deploy/images/zcu102-zynqmp/Xilinx-zcu102-zynqmp.hdf -arch 32 -app "ZynqMP PMU Firmware" -yamlconf /xilinx/petalinux/v2018.2/projects/zcu102_base/build/tmp/work/zcu102_zynqmp-xilinx-linux/pmu-firmware/2018.2+gitAUTOINC+6e82c0183b-r0/pmu-firmware.yaml Display is :125 Starting xsdk. This could take few seconds... Picked up _JAVA_OPTIONS: -Duser.home=/xilinx/petalinux/v2018.2/projects/zcu102_base/build/tmp/xsctenv done XSCTHELPER INFO: Empty WorkSpace {channel "tcfchan#0" closed} {-code 1 -level 0 -errorcode NONE -errorinfo {channel "tcfchan#0" closed while executing "::tcf::send_command $chan $service $cmd [list sdk_command_callback]"} -errorline 12} Eclipse: GTK+ Version Check
It appears that this error occurs in both of the packages in the app.tcl when it calls:
repo -set $path
Any ideas on what might be causing this would be helpful.
Here are the steps to recreate:
$ mkdir -p /xilinx/petalinux/v2018.2 $ /srv/software/xilinx/petalinux/petalinux-v2018.2-final-installer.run /xilinx/petalinux/v2018.2 $ cd /xilinx/petalinux/v2018.2 $ source settings.sh $ mkdir projects $ petalinux-create -t project -n projects/zcu102_base -s /srv/software/xilinx/bsps/xilinx-zcu102-v2018.2-final.bsp $ cd projects/zcu102_base $ petalinux-config - Set the following: -> Image Packaging Configuration -> tftpboot directory = /srv/tfptboot/v2018.2/zcu102_base -> Yocto Settings -> Parallel thread execution -> BB_NUMBER_THREADS = 4 -> PARALLEL_MAKE = 4 -> Local sstate feed settings -> local sstate feeds url = /srv/sstate-mirrors/sstate-rel-v2018.2/aarch64 $ petalinux-build -c fsbl
[INFO] building fsbl
[INFO] sourcing bitbake
INFO: bitbake fsbl
Loading cache: 100% |#####################################################################################################################################| Time: 0:00:00
Loaded 3437 entries from dependency cache.
Parsing recipes: 100% |###################################################################################################################################| Time: 0:00:03
Parsing of 2552 .bb files complete (2513 cached, 39 parsed). 3441 targets, 138 skipped, 0 masked, 0 errors.
NOTE: Resolving any missing task queue dependencies
Initialising tasks: 100% |################################################################################################################################| Time: 0:00:00
Checking sstate mirror object availability: 100% |########################################################################################################| Time: 0:00:00
NOTE: Executing SetScene Tasks
NOTE: Executing RunQueue Tasks
Currently 1 running tasks (617 of 627) 98% |####################################################################################################################### |
0: fsbl-2018.2+gitAUTOINC+6e82c0183b-r0 do_configure - 1605s (pid 19530)
08-28-2018 10:49 PM
Hi
Did petalinux-build working for you? Can you also try petalinux-build -c bootloader?
08-29-2018 06:44 AM
Petalinux seems to be working fine for anything that doesn't rely on the FSBL or PMUFW (unfortunately the bootloader is tied to FSBL in Petalinux).
It actually looks like what's causing the problem is related to XSCT in some way, but I don't now enough about what goes on in the background to begin to understand what's missing. I can call XSCT directly with the same commands that the Petalinux FSBL recipe uses during the configure stage of the FSBL source and see the same thing.
Prep clean source: ------------------------- $ cd /xilinx/petalinux/v2018.2 $ source settings.sh $ cd projects/zcu102_base $ petalinux-build -c fsbl -x distclean $ petalinux-build -c fsbl -x unpack $ petalinux-build -c fsbl -x create_yaml $ pushd build/tmp/work/zcu102_zynqmp-xilinx-linux/fsbl/2018.2+gitAUTOINC+6e82c01 83b-r0/
Setup the environment (manually) (same as Petalinux recipe) ------------------------------------------- $ export RDI_PLATFORM=lnx64 $ export SW_GTK3=0 $ export 'AP_ARG= -app "Zynq MP FSBL"' $ export 'MISC_ARG= -yamlconf /xilinx/petalinux/v2018.2/projects/zcu102_base/build/tmp/work/zcu102_zynqmp-xilinx-linux/fsbl/2018.2+gitAUTOINC+6e82c0183b-r0/fsbl.yaml' $ export PATH=/xilinx/petalinux/v2018.2/tools/hsm/bin:$PATH
Run the XSCT command manually ---------------------------------------------- $ xsct /xilinx/petalinux/v2018.2/projects/zcu102_base/build/tmp/work/zcu102_zynqmp-xilinx-linux/fsbl/2018.2+gitAUTOINC+6e82c0183b-r0/app.tcl -ws /xilinx/petalinux/v2018.2/projects/zcu102_base/build/../components/plnx_workspace/fsbl -pname fsbl -rp /xilinx/petalinux/v2018.2/tools/hsm/data/embeddedsw -processor psu_cortexa53_0 -hdf /xilinx/petalinux/v2018.2/projects/zcu102_base/build/tmp/deploy/images/zcu102-zynqmp/Xilinx-zcu102-zynqmp.hdf -arch 64 -app "Zynq MP FSBL" -yamlconf /xilinx/petalinux/v2018.2/projects/zcu102_base/build/tmp/work/zcu102_zynqmp-xilinx-linux/fsbl/2018.2+gitAUTOINC+6e82c0183b-r0/fsbl.yaml Starting xsdk. This could take few seconds... Eclipse: GTK+ Version Check done XSCTHELPER INFO: Empty WorkSpace {channel "tcfchan#0" closed} {-code 1 -level 0 -errorcode NONE -errorinfo {channel "tcfchan#0" closed while executing "::tcf::send_command $chan $service $cmd [list sdk_command_callback]"} -errorline 12}
If I add some additional output messages to the fsbl app.tcl file around the call to 'repo -set $path'...
147: if { $params(rp) ne "none" } { 148: #Local Repo Available, Set repo path. Or will pick it up from build 149: set path [split $params(rp) { }] 150: puts "+repo -set $path" 151: repo -set $path 152: puts "-repo -set $path" 153: }
It shows the call to repo is what's not returning...
xsct /xilinx/petalinux/v2018.2/projects/zcu102_base/build/tmp/work/zcu102_zynqmp-xilinx-linux/fsbl/2018.2+gitAUTOINC+6e82c0183b-r0/app.tcl -ws /xilinx/petalinux/v2018.2/projects/zcu102_base/build/../components/plnx_workspace/fsbl -pname fsbl -rp /xilinx/petalinux/v2018.2/tools/hsm/data/embeddedsw -processor psu_cortexa53_0 -hdf /xilinx/petalinux/v2018.2/projects/zcu102_base/build/tmp/deploy/images/zcu102-zynqmp/Xilinx-zcu102-zynqmp.hdf -arch 64 -app "Zynq MP FSBL" -yamlconf /xilinx/petalinux/v2018.2/projects/zcu102_base/build/tmp/work/zcu102_zynqmp-xilinx-linux/fsbl/2018.2+gitAUTOINC+6e82c0183b-r0/fsbl.yaml Starting xsdk. This could take few seconds... Eclipse: GTK+ Version Check done XSCTHELPER INFO: Empty WorkSpace +repo -set /xilinx/petalinux/v2018.2/tools/hsm/data/embeddedsw {channel "tcfchan#0" closed} {-code 1 -level 0 -errorcode NONE -errorinfo {channel "tcfchan#0" closed while executing "::tcf::send_command $chan $service $cmd [list sdk_command_callback]"} -errorline 12}
It looks like the next step is to dig into xsct and see what this script is calling and where that might lead - I suspect a host configuration issue, but just need to peel the onion a bit more.
Thanks,
Jason
08-31-2018 01:55 AM
I 'm having the same error, using zcu106 bsp.
anybody can tell me how to fix it?
09-03-2018 01:46 AM
It seems my os lost some package in gtk2.0
I reinstall gtk2.0 .
It works fine.
09-09-2018 09:43 AM
I had precisely the same issue using Ubuntu server 16.04.5 and, taking the suggestion by ffcs, installed GTK 2 and 3:
$ sudo apt install libgtk-3-dev $ sudo apt install libgtk2.0-dev
My build attempt after installing version 3 still hung, so I think it was installation of 2.0 that made the difference. My guess is that Xilinx's testing of Ubuntu 16.04 was done on the desktop version, which probably includes GTK in the base configuration, so GTK didn't make the list of prerequisites.
10-24-2018 08:06 PM
10-25-2018 03:18 AM
10-26-2018 08:36 AM
I confirmed that libgtk2.0-dev is required for petalinux-build. Thanks for the tip, @ffcs and @galentx!
@shabbirk, please ask for this dependency to be added to UG1144 Table 2-1.
I built a Docker image for building petalinux using Ubuntu 16.04 as the base, and I found these other dependencies that are not listed in UG1144:
10-28-2018 06:35 PM
Hi @clarkchris,
We haven't mentioned that we support building petalinux using Docker. This is something we haven't decided to support.
But you need GUI packages to build petalinux. We are working on this to address all the GUI package dependencies to documented in 2018.3.
Other issues we see is there are number of desktop environment available for each Linux distro but we wanted to limit this support for Gnome/KDE but this still in discussion.
Current petalinux tools are tested with GUI/Sever with Desktop/Desktop environment