ubuntu虽然能正常安装,但是build时会出现闪退情况,闪退后一切归零,没啥错误提示,改用centos来安装petalinux。

0.环境

vmware pro 14,centos 7.3
petalinux 2017.2

1.petalinux安装环境配置

除了python,其他都用yum直接安装即可,安装UG1144里的所有库
python安装过程:

wget https://www.python.org/ftp/python/3.4.1/Python-3.4.1.tgz
tar xf Python-3.4.1.tgz
cd Python-3.4.1
./configure
make
make install

安装到/usr/local/bin/python3目录了,在/usr/bin/中创建指向该位置的符号连接

ln -s /usr/local/bin/python3 /usr/bin/python3

2.安装及配置

[root@localhost opt]# chown liuwanpeng:liuwanpeng -R /opt
[root@localhost opt]# ls / -lh
总用量 28K
......
drwxr-xr-x.   3 root       root         18 12月  4 14:01 mnt
drwxr-xr-x.   4 liuwanpeng liuwanpeng   27 12月  4 14:40 opt
dr-xr-xr-x. 223 root       root          0 12月  4 16:15 proc
......
[root@localhost opt]# su liuwanpeng
[liuwanpeng@localhost ~]$ ./petalinux-v2017.2-final-installer.run /opt/pkg/petalinux
INFO: Checking installer checksum...
INFO: Extracting PetaLinux installer...
INFO: Installing PetaLinux...
INFO: Checking PetaLinux installer integrity...
INFO: Extracting Installation files...LICENSE AGREEMENTSPetaLinux SDK contains software from a number of sources.  Please review
the following licenses and indicate your acceptance of each to continue.You do not have to accept the licenses, however if you do not then you may
not use PetaLinux SDK.Use PgUp/PgDn to navigate the license viewer, and press 'q' to closePress Enter to display the license agreements
Do you accept Xilinx End User License Agreement? [y/N] > y
Do you accept Webtalk Terms and Conditions? [y/N] > y
Do you accept Third Party End User License Agreement? [y/N] > y
INFO: Checking installation environment requirements...
INFO: Checking free disk space
INFO: Checking installed tools
INFO: Checking installed development libraries
INFO: Checking network and other services
WARNING: No tftp server found - please refer to "PetaLinux SDK Installation Guide" for its impact and solution
INFO: Installing PetaLinux SDK to "/opt/pkg/petalinux/."
INFO: Installing PetaLinux zynqMP Yocto SDK to "/opt/pkg/petalinux/./components/yocto/source/aarch64"...
PetaLinux Extensible SDK installer version 2017.2
=================================================
You are about to install the SDK to "/opt/pkg/petalinux/components/yocto/source/aarch64". Proceed[Y/n]? Y
Extracting SDK.............................................done
Setting it up...
Extracting buildtools...
done
SDK has been successfully set up and is ready to be used.
Each time you wish to use the SDK in a new shell session, you need to source the environment setup script e.g.$ . /opt/pkg/petalinux/components/yocto/source/aarch64/environment-setup-aarch64-xilinx-linux
INFO: PetaLinux Yocto SDK for zynqMP has been successfully installed.
INFO: Installing PetaLinux zynq Yocto SDK to "/opt/pkg/petalinux/./components/yocto/source/arm"...
PetaLinux Extensible SDK installer version 2017.2
=================================================
You are about to install the SDK to "/opt/pkg/petalinux/components/yocto/source/arm". Proceed[Y/n]? Y
Extracting SDK.........................................done
Setting it up...
Extracting buildtools...
done
SDK has been successfully set up and is ready to be used.
Each time you wish to use the SDK in a new shell session, you need to source the environment setup script e.g.$ . /opt/pkg/petalinux/components/yocto/source/arm/environment-setup-cortexa9hf-neon-xilinx-linux-gnueabi
INFO: PetaLinux Yocto SDK for zynq has been successfully installed.
INFO: Installing PetaLinux microblaze (Full) Yocto SDK to "/opt/pkg/petalinux/./components/yocto/source/microblaze_full"...
PetaLinux Extensible SDK installer version 2017.2
=================================================
You are about to install the SDK to "/opt/pkg/petalinux/components/yocto/source/microblaze_full". Proceed[Y/n]? Y
Extracting SDK.............................done
Setting it up...
Extracting buildtools...
done
SDK has been successfully set up and is ready to be used.
Each time you wish to use the SDK in a new shell session, you need to source the environment setup script e.g.$ . /opt/pkg/petalinux/components/yocto/source/microblaze_full/environment-setup-microblazeel-v10.0-bs-cmp-mh-div-xilinx-linux
INFO: Installing PetaLinux microblaze (Lite) Yocto SDK to "/opt/pkg/petalinux/./components/yocto/source/microblaze_lite"...
PetaLinux Extensible SDK installer version 2017.2
=================================================
You are about to install the SDK to "/opt/pkg/petalinux/components/yocto/source/microblaze_lite". Proceed[Y/n]? Y
Extracting SDK.............................done
Setting it up...
Extracting buildtools...
done
SDK has been successfully set up and is ready to be used.
Each time you wish to use the SDK in a new shell session, you need to source the environment setup script e.g.$ . /opt/pkg/petalinux/components/yocto/source/microblaze_lite/environment-setup-microblazeel-v10.0-bs-cmp-ml-xilinx-linux
INFO: PetaLinux Yocto SDK for microblaze has been successfully installed.
INFO: PetaLinux SDK has been installed to /opt/pkg/petalinux/.[liuwanpeng@localhost ~]$ source /opt/pkg/petalinux/settings.sh
PetaLinux environment set to '/opt/pkg/petalinux'
INFO: Checking free disk space
INFO: Checking installed tools
INFO: Checking installed development libraries
INFO: Checking network and other services
WARNING: No tftp server found - please refer to "PetaLinux SDK Installation Guide" for its impact and solution

每次打开termal时,上述命令需要重新输入,太麻烦。可以将该命令加入到~/.bashrc文件中,每次打开termal会自动执行该脚本。

// 关闭网络交互

[liuwanpeng@localhost ~]$ petalinux-util --webtalk off
INFO: Turn off webtalk feature!

3. 建工程

[liuwanpeng@localhost mpsoc]$ petalinux-create -t project -s ../xilinx-zcu102-v2017.2-final.bsp
INFO: Create project:
INFO: Projects:
INFO:   * xilinx-zcu102-2017.2
INFO: has been successfully installed to /home/liuwanpeng/mpsoc/
INFO: New project successfully created in /home/liuwanpeng/mpsoc/

4.config

弹出的图形界面配置里不用动

[liuwanpeng@localhost xilinx-zcu102-2017.2]$ petalinux-config --get-hw-description=hardware/xilinx-zcu102-2017.2/xilinx-zcu102-2017.2.sdk/
INFO: Getting hardware description...
[INFO] generating Kconfig for project
[INFO] menuconfig project
/home/liuwanpeng/mpsoc/xilinx-zcu102-2017.2/build/misc/config/Kconfig.syshw:30:warning: defaults for choice values not supported
/home/liuwanpeng/mpsoc/xilinx-zcu102-2017.2/build/misc/config/Kconfig:574:warning: config symbol defined without type
configuration written to /home/liuwanpeng/mpsoc/xilinx-zcu102-2017.2/project-spec/configs/config*** End of the configuration.
*** Execute 'make' to start the build or try 'make help'.[INFO] sourcing bitbake
[INFO] generating plnxtool conf
[INFO] generating meta-plnx-generated layer
~/mpsoc/xilinx-zcu102-2017.2/build/misc/plnx-generated ~/mpsoc/xilinx-zcu102-2017.2
~/mpsoc/xilinx-zcu102-2017.2
[INFO] generating machine configuration
[INFO] generating bbappends for project . This may take time !
~/mpsoc/xilinx-zcu102-2017.2/build/misc/plnx-generated ~/mpsoc/xilinx-zcu102-2017.2
~/mpsoc/xilinx-zcu102-2017.2
[INFO] generating u-boot configuration files
[INFO] generating kernel configuration files
[INFO] generating kconfig for Rootfs
Generate rootfs kconfig
[INFO] oldconfig rootfs
[INFO] generating petalinux-user-image.bb

5.build

总结:
-错误:install: cannot stat ‘/home/liuwanpeng/mpsoc/xilinx-zcu102-2017.2/build/../components/plnx_workspace/pmu-firmware/Release/pmu-firmware.elf’: No such file or directory
解决:缺库,安装libstdc++.i686,glibc-devel.i686,libz.so.1

  • timeout while establishing a connection with SDK
    解决:AR# 69812没用,看论坛https://forums.xilinx.com/xlnx/board/crawl_message?board.id=EDK&message.id=41823
    in fsbl and pmufw recipes add this two lines
    export _JAVA_OPTIONS
    _JAVA_OPTIONS = "-Duser.home=${TMPDIR}/xsctenv"

(1)出错了 install: cannot stat ‘/home/liuwanpeng/mpsoc/xilinx-zcu102-2017.2/build/../components/plnx_workspace/pmu-firmware/Release/pmu-firmware.elf’: No such file or directory

[liuwanpeng@localhost xilinx-zcu102-2017.2]$ petalinux-build
[INFO] building project
[INFO] sourcing bitbake
INFO: bitbake petalinux-user-image
Loading cache: 100% |############################################| Time: 0:00:02
Loaded 3235 entries from dependency cache.
Parsing recipes: 100% |##########################################| Time: 0:00:09
Parsing of 2446 .bb files complete (2407 cached, 39 parsed). 3236 targets, 224 skipped, 0 masked, 0 errors.
NOTE: Resolving any missing task queue dependencies
Initialising tasks: 100% |#######################################| Time: 0:01:28
Checking sstate mirror object availability: 100% |###############| Time: 0:00:13
NOTE: Executing SetScene Tasks
NOTE: Executing RunQueue Tasks
fsbl-2017.2+gitAUTOINC+122565ec40-r0 do_compile: NOTE: fsbl: compiling from external source tree /opt/pkg/petalinux/tools/hsm/data/embeddedsw
pmu-firmware-2017.2+gitAUTOINC+122565ec40-r0 do_compile: NOTE: pmu-firmware: compiling from external source tree /opt/pkg/petalinux/tools/hsm/data/embeddedsw
ERROR: pmu-firmware-2017.2+gitAUTOINC+122565ec40-r0 do_deploy: Function failed: do_deploy (log file is located at /home/liuwanpeng/mpsoc/xilinx-zcu102-2017.2/build/tmp/work/plnx_aarch64-xilinx-linux/pmu-firmware/2017.2+gitAUTOINC+122565ec40-r0/temp/log.do_deploy.94828)
ERROR: Logfile of failure stored in: /home/liuwanpeng/mpsoc/xilinx-zcu102-2017.2/build/tmp/work/plnx_aarch64-xilinx-linux/pmu-firmware/2017.2+gitAUTOINC+122565ec40-r0/temp/log.do_deploy.94828
Log data follows:
| DEBUG: Executing python function sstate_task_prefunc
| DEBUG: Python function sstate_task_prefunc finished
| DEBUG: Executing shell function do_deploy
| install: cannot stat ‘/home/liuwanpeng/mpsoc/xilinx-zcu102-2017.2/build/../components/plnx_workspace/pmu-firmware/Release/pmu-firmware.elf’: No such file or directory
| ERROR: Function failed: do_deploy (log file is located at /home/liuwanpeng/mpsoc/xilinx-zcu102-2017.2/build/tmp/work/plnx_aarch64-xilinx-linux/pmu-firmware/2017.2+gitAUTOINC+122565ec40-r0/temp/log.do_deploy.94828)
ERROR: Task (/opt/pkg/petalinux/components/yocto/source/aarch64/layers/meta-xilinx-tools/recipes-bsp/pmu/pmu-firmware_git.bb:do_deploy) failed with exit code '1'
NOTE: Tasks Summary: Attempted 2399 tasks of which 1865 didn't need to be rerun and 1 failed.Summary: 1 task failed:/opt/pkg/petalinux/components/yocto/source/aarch64/layers/meta-xilinx-tools/recipes-bsp/pmu/pmu-firmware_git.bb:do_deploy

xilinx有专门的AR# 69293:跟上述问题还不是同一个
2017.1/2 Zynq UltraScale+ MPSoC: PetaLinux fails to build PMU Firmware on CentOS 7.2/3

Search for Another Answer

Description
Solution
Description

The 2017.1 release of PetaLinux fails to build PMUFW on CentOS 7.2/3 with a build error as shown below:

log.do_deploy:
install: cannot stat /home/wtsemb/Downloads/zcu102-centos-test/build/../components/plnx_workspace/pmu-firmware/Release/pmu-firmware.elf: No such file or directory
ERROR: Function failed: do_deploy (log file is located at /home/wtsemb/Downloads/zcu102-centos-test/build/tmp/work/plnx_aarch64-xilinx-linux/pmu-firmware/2017.1+gitAUTOINC+3813f14966-r0/temp/log.do_deploy.60209)
u
log.do_compile:
mb-gcc: error while loading shared libraries: libstdc++.so.6: wrong ELF class: ELFCLASS64
make[1]: *** [Makefile:25: xipipsu.o] Error 127
Solution

This can be due to missing packages which are required to build the PMUFW. The work-around for this issue is to install the packages below on the Linux host.

Once you install the packages and reboot Linux host, you can source PetaLinux tools and then create a new PetaLinux and build it.

libstdc++.i686
glibc-devel.i686
Was this Answer Record helpful?
光安装上述库有时不管用。直接查看log.do_deploy.94828之前的log文件,log.do_compile时有错误,缺少库
mb-ar: error while loading shared libraries: libz.so.1: cannot open shared object file: No such file or directory

(2) Checking sstate mirror object availability不动了,安装(1)的补丁之前无此问题,重启后问题消失

[liuwanpeng@localhost xilinx-zcu102-2017.2]$ petalinux-build
[INFO] building project
[INFO] sourcing bitbake
INFO: bitbake petalinux-user-image
Loading cache: 100% |############################################| Time: 0:00:03
Loaded 3235 entries from dependency cache.
Parsing recipes: 100% |##########################################| Time: 0:00:08
Parsing of 2446 .bb files complete (2407 cached, 39 parsed). 3236 targets, 224 skipped, 0 masked, 0 errors.
NOTE: Resolving any missing task queue dependencies
Initialising tasks: 100% |#######################################| Time: 0:01:35
Checking sstate mirror object availability:   3% |               | ETA:  0:04:30
Keyboard Interrupt, closing down...

(3)又来了新错误,"timeout while establishing a connection with SDK""

[liuwanpeng@localhost xilinx-zcu102-2017.2]$ petalinux-build
[INFO] building project
INFO: bitbake petalinux-user-image
Loading cache: 100% |############################################| Time: 0:00:02
Loaded 3235 entries from dependency cache.
Parsing recipes: 100% |##########################################| Time: 0:00:07
Parsing of 2446 .bb files complete (2407 cached, 39 parsed). 3236 targets, 224 skipped, 0 masked, 0 errors.
NOTE: Resolving any missing task queue dependencies
Initialising tasks: 100% |#######################################| Time: 0:01:26
Checking sstate mirror object availability: 100% |###############| Time: 0:00:13
NOTE: Executing SetScene Tasks
NOTE: Executing RunQueue Tasks
fsbl-2017.2+gitAUTOINC+122565ec40-r0 do_compile: NOTE: fsbl: compiling from external source tree /opt/pkg/petalinux/tools/hsm/data/embeddedsw
ERROR: pmu-firmware-2017.2+gitAUTOINC+122565ec40-r0 do_configure: Function failed: do_configure (log file is located at /home/liuwanpeng/mpsoc/xilinx-zcu102-2017.2/build/tmp/work/plnx_aarch64-xilinx-linux/pmu-firmware/2017.2+gitAUTOINC+122565ec40-r0/temp/log.do_configure.71493)
ERROR: Logfile of failure stored in: /home/liuwanpeng/mpsoc/xilinx-zcu102-2017.2/build/tmp/work/plnx_aarch64-xilinx-linux/pmu-firmware/2017.2+gitAUTOINC+122565ec40-r0/temp/log.do_configure.71493
Log data follows:
| DEBUG: Executing python function sysroot_cleansstate
| DEBUG: Python function sysroot_cleansstate finished
| DEBUG: Executing shell function do_configure
| MISC_ARG is  -yamlconf /home/liuwanpeng/mpsoc/xilinx-zcu102-2017.2/build/tmp/work/plnx_aarch64-xilinx-linux/pmu-firmware/2017.2+gitAUTOINC+122565ec40-r0/pmu-firmware.yaml
| APP_ARG is  -app "ZynqMP PMU Firmware"
| cmd is: xsct /home/liuwanpeng/mpsoc/xilinx-zcu102-2017.2/build/tmp/work/plnx_aarch64-xilinx-linux/pmu-firmware/2017.2+gitAUTOINC+122565ec40-r0/app.tcl -ws /home/liuwanpeng/mpsoc/xilinx-zcu102-2017.2/build/../components/plnx_workspace -pname pmu-firmware -rp /opt/pkg/petalinux/tools/hsm/data/embeddedsw -processor psu_pmu_0 -hdf /home/liuwanpeng/mpsoc/xilinx-zcu102-2017.2/build/tmp/deploy/images/plnx_aarch64/Xilinx-plnx_aarch64.hdf -arch 32  -app "ZynqMP PMU Firmware"  -yamlconf /home/liuwanpeng/mpsoc/xilinx-zcu102-2017.2/build/tmp/work/plnx_aarch64-xilinx-linux/pmu-firmware/2017.2+gitAUTOINC+122565ec40-r0/pmu-firmware.yaml
| Starting xsdk. This could take few seconds... Eclipse:
| An error has occurred. See the log file
| /home/liuwanpeng/mpsoc/xilinx-zcu102-2017.2/components/plnx_workspace/.metadata/.log.
| XSCTHELPER INFO: Empty WorkSpace
| Starting xsdk. This could take few seconds... Eclipse:
| An error has occurred. See the log file
| /home/liuwanpeng/mpsoc/xilinx-zcu102-2017.2/components/plnx_workspace/.metadata/.log.
| timeout while establishing a connection with SDK
|     while executing
| "error "timeout while establishing a connection with SDK""
|     (procedure "getsdkchan" line 111)
|     invoked from within
| "getsdkchan"
|     (procedure "::sdk::set_user_repo_path_sdk" line 16)
|     invoked from within
| "::sdk::set_user_repo_path_sdk $params(set)"
|     (procedure "repo" line 27)
|     invoked from within
| "repo -set $path"
|     invoked from within
| "if { $params(ws) ne "" } {
|   #Local Work Space available
|   setws $params(ws)
|   if { [catch {importprojects $params(ws)} result] } {
|       puts "XSCTHELPER IN..."
|     (file "/home/liuwanpeng/mpsoc/xilinx-zcu102-2017.2/build/tmp/work/plnx_aarch64-xilinx-linux/pmu-firmware/2017.2+gitAUTOINC+122565ec40-r0/app.tcl" line 120)
| WARNING: /home/liuwanpeng/mpsoc/xilinx-zcu102-2017.2/build/tmp/work/plnx_aarch64-xilinx-linux/pmu-firmware/2017.2+gitAUTOINC+122565ec40-r0/temp/run.do_configure.71493:1 exit 1 from 'xsct /home/liuwanpeng/mpsoc/xilinx-zcu102-2017.2/build/tmp/work/plnx_aarch64-xilinx-linux/pmu-firmware/2017.2+gitAUTOINC+122565ec40-r0/app.tcl -ws /home/liuwanpeng/mpsoc/xilinx-zcu102-2017.2/build/../components/plnx_workspace -pname pmu-firmware -rp /opt/pkg/petalinux/tools/hsm/data/embeddedsw -processor psu_pmu_0 -hdf /home/liuwanpeng/mpsoc/xilinx-zcu102-2017.2/build/tmp/deploy/images/plnx_aarch64/Xilinx-plnx_aarch64.hdf -arch 32 -app "ZynqMP PMU Firmware" -yamlconf /home/liuwanpeng/mpsoc/xilinx-zcu102-2017.2/build/tmp/work/plnx_aarch64-xilinx-linux/pmu-firmware/2017.2+gitAUTOINC+122565ec40-r0/pmu-firmware.yaml'
| ERROR: Function failed: do_configure (log file is located at /home/liuwanpeng/mpsoc/xilinx-zcu102-2017.2/build/tmp/work/plnx_aarch64-xilinx-linux/pmu-firmware/2017.2+gitAUTOINC+122565ec40-r0/temp/log.do_configure.71493)
ERROR: Task (/opt/pkg/petalinux/components/yocto/source/aarch64/layers/meta-xilinx-tools/recipes-bsp/pmu/pmu-firmware_git.bb:do_configure) failed with exit code '1'

解决方法:
AR# 69812
2016.4-2017.2 PetaLinux: Build failed due to "error "timeout while establishing a connection with SDK"'

PetaLinux build can fail with the following timeout error in XSCT:

DEBUG: Executing python function sysroot_cleansstate
DEBUG: Python function sysroot_cleansstate finished
DEBUG: Executing shell function do_configure
MISC_ARG is -yamlconf /tmp/4x10GE-2017.09.12-16.17.33/work/plnx_aarch64-xilinx-linux/fsbl/2017.2+gitAUTOINC+122565ec40-r0/fsbl.yaml
APP_ARG is -app "Zynq MP FSBL"
cmd is: xsct /tmp/4x10GE-2017.09.12-16.17.33/work/plnx_aarch64-xilinx-linux/fsbl/2017.2+gitAUTOINC+122565ec40-r0/app.tcl -ws /home/bryanloz/ZCU102_4PES/4x10GE-Switch/Petalinux/4x10GE/build/../components/plnx_workspace -pname fsbl -rp /proj/petalinux/released/Petalinux-v2017.2/petalinux-v2017.2_0619_1/tools/hsm/data/embeddedsw -processor psu_cortexa53_0 -hdf /tmp/4x10GE-2017.09.12-16.17.33/deploy/images/plnx_aarch64/Xilinx-plnx_aarch64.hdf -arch 64 -app "Zynq MP FSBL" -yamlconf /tmp/4x10GE-2017.09.12-16.17.33/work/plnx_aarch64-xilinx-linux/fsbl/2017.2+gitAUTOINC+122565ec40-r0/fsbl.yaml
Starting xsdk. This could take few seconds... Eclipse:
An error has occurred. See the log file
/home/bryanloz/ZCU102_4PES/4x10GE-Switch/Petalinux/4x10GE/components/plnx_workspace/.metadata/.log.
XSCTHELPER INFO: Empty WorkSpace
Starting xsdk. This could take few seconds... Eclipse:
An error has occurred. See the log file
/home/bryanloz/ZCU102_4PES/4x10GE-Switch/Petalinux/4x10GE/components/plnx_workspace/.metadata/.log.
timeout while establishing a connection with SDK
while executing
"error "timeout while establishing a connection with SDK""
(procedure "getsdkchan" line 111)
invoked from within
"getsdkchan"
(procedure "::sdk::set_user_repo_path_sdk" line 16)
invoked from within
"::sdk::set_user_repo_path_sdk $params(set)"
(procedure "repo" line 27)
invoked from within
"repo -set $path"
invoked from within
"if { $params(ws) ne "" } {
#Local Work Space available
setws $params(ws)
if { [catch {importprojects $params(ws)} result] } {
puts "XSCTHELPER IN..."
(file "/tmp/4x10GE-2017.09.12-16.17.33/work/plnx_aarch64-xilinx-linux/fsbl/2017.2+gitAUTOINC+122565ec40-r0/app.tcl" line 120)
WARNING: /tmp/4x10GE-2017.09.12-16.17.33/work/plnx_aarch64-xilinx-linux/fsbl/2017.2+gitAUTOINC+122565ec40-r0/temp/run.do_configure.22432:1 exit 1 from 'eval xsct /tmp/4x10GE-2017.09.12-16.17.33/work/plnx_aarch64-xilinx-linux/fsbl/2017.2+gitAUTOINC+122565ec40-r0/app.tcl -ws /home/bryanloz/ZCU102_4PES/4x10GE-Switch/Petalinux/4x10GE/build/../components/plnx_workspace -pname fsbl -rp /proj/petalinux/released/Petalinux-v2017.2/petalinux-v2017.2_0619_1/tools/hsm/data/embeddedsw -processor psu_cortexa53_0 -hdf /tmp/4x10GE-2017.09.12-16.17.33/deploy/images/plnx_aarch64/Xilinx-plnx_aarch64.hdf -arch 64 ${APP_ARG} ${MISC_ARG}'
ERROR: Function failed: do_configure (log file is located at /tmp/4x10GE-2017.09.12-16.17.33/work/plnx_aarch64-xilinx-linux/fsbl/2017.2+gitAUTOINC+122565ec40-r0/temp/log.do_configure.22432)

解决方案

The following work-arounds can be used to overcome this issue

1) Increase the timeout in XSCT.

Create a file with name .xsdbrc in the $HOME directory
Add the line below in the .xsdbrc file
configparams-sdk-launch-timeout 180

2) Clean up using the following commands:

rm -rf ~/.Xil
rm -rf ~/.Xilinx
Note: This error could be due to a resource constraint on the PC.

The minimum configuration required for PetaLinux tool installation is 8 cores and 8GB RAM (This is not corrected in 2016.4-2017.2 (UG1144) documentation).

Ideally one project should be built at a time.

If you want to run projects in parallel, set parallel threads and configure execution in petalinux-config->Yocto Settings to lower values which match your system configuration.

[liuwanpeng@localhost xilinx-zcu102-2017.2]$ cd ~
[liuwanpeng@localhost ~]$ echo $HOME
/home/liuwanpeng
[liuwanpeng@localhost ~]$ pwd
/home/liuwanpeng
[liuwanpeng@localhost ~]$ touch .xsdbrc
[liuwanpeng@localhost ~]$ gedit .xsdbrc
[liuwanpeng@localhost ~]$ rm -rf ~/.Xil
[liuwanpeng@localhost ~]$ rm -rf ~/.Xilinx

无效,提示source xxxx/.xsdbrc error。
增加x权限再试,没用

==按技术支持提供的方法:==
https://forums.xilinx.com/xlnx/board/crawl_message?board.id=EDK&message.id=41823
Xilinx 2016.4 - xsct - Timeout while building fsbl and pmu-firmware
Re: Xilinx 2016.4 - xsct - Timeout while building fsbl and pmu-firmware
Options
‎10-03-2017 02:05 AM
The reason for failure is xsct uses a locking mechanism which is by default set to /home/user/
you have to change this
in fsbl and pmufw recipes add this two lines
export _JAVA_OPTIONS
_JAVA_OPTIONS = "-Duser.home=${TMPDIR}/xsctenv"

有两个fsbl文件
./project-spec/meta-plnx-generated/recipes-bsp/fsbl/fsbl_%.bbappend
./project-spec/meta-user/recipes-bsp/fsbl/fsbl_%.bbappend
一个mufw
./project-spec/meta-plnx-generated/recipes-bsp/pmu/pmu-firmware_%.bbappend
都加上

我擦,真的编过去了,用了上面的方法:

[liuwanpeng@localhost xilinx-zcu102-2017.2]$ petalinux-build
[INFO] building project
[INFO] sourcing bitbake
INFO: bitbake petalinux-user-image
Loading cache: 100% |############################################| Time: 0:00:02
Loaded 3235 entries from dependency cache.
Parsing recipes: 100% |##########################################| Time: 0:00:07
Parsing of 2446 .bb files complete (2407 cached, 39 parsed). 3236 targets, 224 skipped, 0 masked, 0 errors.
NOTE: Resolving any missing task queue dependencies
Initialising tasks: 100% |#######################################| Time: 0:00:40
Checking sstate mirror object availability: 100% |###############| Time: 0:00:17
NOTE: Executing SetScene Tasks
NOTE: Executing RunQueue Tasks
fsbl-2017.2+gitAUTOINC+122565ec40-r0 do_compile: NOTE: fsbl: compiling from external source tree /opt/pkg/petalinux/tools/hsm/data/embeddedsw
pmu-firmware-2017.2+gitAUTOINC+122565ec40-r0 do_compile: NOTE: pmu-firmware: compiling from external source tree /opt/pkg/petalinux/tools/hsm/data/embeddedsw
NOTE: Tasks Summary: Attempted 2445 tasks of which 1869 didn't need to be rerun and all succeeded.
INFO: generating FIT Image
INFO: bitbake petalinux-user-image -R /home/liuwanpeng/mpsoc/xilinx-zcu102-2017.2/build/conf/fit-image.conf
Parsing recipes: 100% |##########################################| Time: 0:04:21
Parsing of 2446 .bb files complete (0 cached, 2446 parsed). 3236 targets, 224 skipped, 0 masked, 0 errors.
NOTE: Resolving any missing task queue dependencies
Initialising tasks: 100% |#######################################| Time: 0:00:21
Checking sstate mirror object availability: 100% |###############| Time: 0:00:03
NOTE: Executing SetScene Tasks
NOTE: Executing RunQueue Tasks
NOTE: Tasks Summary: Attempted 2446 tasks of which 2419 didn't need to be rerun and all succeeded.
INFO: Copying Images from deploy to images
INFO: Creating images/linux directory
[INFO] successfully built project

转载于:https://www.cnblogs.com/liuwanpeng/p/8074051.html

MPSOC之3——centos环境配置及petalinux安装及使用相关推荐

  1. python3.6爬虫环境安装要多少内存_Python3爬虫环境配置——解析库安装(附tesserocr安装方法)...

    Python3爬虫环境配置--解析库安装(附tesserocr安装方法) 抓取网页代码后,第二步就是提取信息,为了方便程序设计,这里不采用繁琐的正则提取,利用社区里强大的Python解析库,如lxml ...

  2. ubuntu 环境配置与软件安装

    ubuntu 环境配置与软件安装 ubuntu系统安装好后的环境配置 1.切换清华源 2.安装nvidia显卡驱动 3.pycharm下载 4.anaconda下载 5.google chrome下载 ...

  3. 关于vn.py的环境配置和项目安装——各种错误一招解决

    vn.py是基于Python的开源量化交易程序开发框架,可以即时进行开发回测以及实盘交易,而且相对于国内的一些其他的所谓免费的量化平台,vn.py是开源的,而且更加的底层,更加的灵活,这对于真正想要从 ...

  4. Geomagic Touch(LAN口版本) 环境配置及驱动安装【过程记录】

    Geomagic Touch(LAN口版本) 环境配置及驱动安装过程记录 进入官方链接,在该页面下可以看到有 OpenHaptics 环境配置文件.touch 驱动文件以及驱动安装教程 1. Open ...

  5. data2vec进行语音识别验证和微调时的环境配置——flashlight的安装

    data2vec进行语音识别验证和微调时的环境配置--flashlight的安装 flashlight/binding/python 依赖安装 gcc7.5.0 安装 CMAKE 安装 FFTW3环境 ...

  6. 【达梦数据库】VMware虚拟机 + CentOS7环境配置 + DM8 数据库安装流程

    文章目录 前言 一.前期准备 1.1 VMware安装 1.2 CentOS下载 1.3 DM8下载 1.4 SecureCRT安装 二.CentOS7环境搭建 2.1 虚拟机创建 2.2 网络配置 ...

  7. Win7环境配置Oracle 11g安装与配置过程

    这篇随笔作为新人的我的开场,主要用来帮助我自己以后在Win7环境配置oracle 11g时能有个提醒.当然不同Windows版本安装大同小异,所以也可以给需要的人一些借鉴. 一:下载安装包 直接从官网 ...

  8. 安卓学习日记:初识Android Studio · java环境配置和AS安装

    工欲善其事,必先利其器.要进行安卓开发,必须要有一款上手的开发利器.查阅了相关资料后,了解到,现在主流的安卓开发工具是: 1. Eclipse + Android SDK 2. Android Stu ...

  9. JDK环境配置和eclipse安装

    文章目录 一.JDK环境配置 具体配置过程 二.eclipse的安装 三.创建第一个项目 一.JDK环境配置 进入Oracle官网,选择相应的JDK类型进行下载. 在这里直接给大家提供网盘下载链接: ...

最新文章

  1. win7中Android开发环境搭建超详细(百度)
  2. COJ 0995 WZJ的数据结构(负五)区间操作
  3. java未知对象调用其某个方法_java如何调用一个方法内的对象
  4. piaoxue/feixue驱动程序分析
  5. 用计算机KADIO算方差,KADIO计算器怎样算方差
  6. go json 自定义_Go语言Echo Web框架9-日志
  7. python .center用法_Python Pandas Series.str.center()用法及代码示例
  8. 2010年寒假学习心得
  9. python 数据库查询返回list或tuple
  10. 自动驾驶计算本车离期望轨迹距离的方法
  11. 兼容ie6css怎么设置,CSS样式兼容IE6、IE7、IE8、FF火狐浏览器的方法
  12. SAP License:从SAP顾问面试看职场
  13. Linux Repositories 2
  14. 内网DNS地址自己定
  15. C语言简易学生管理系统(含源码)
  16. linux———/bin/sh、 /bin/bash、 /bin/dash的区别
  17. 短代码的java小游戏_java编写的简单移动方块小游戏代码
  18. 什么是大数据?如何入门学习大数据?
  19. SK6805MICRO-2427RGB灯珠 2427RGB内置IC灯珠 适用显示领域、智能应用、蓝牙WiFi装饰
  20. 文本文件和二进制文件详解(转)

热门文章

  1. “无中生有”计算机视觉探奇
  2. 奇异值分解和图像压缩
  3. 15个Android通用流行框架大全
  4. rpm命令,yum命令大全
  5. 【Spring Boot 实战开发】第2讲 Kotlin类型系统与空安全
  6. Rspamd 将收到的spam/ham转了到指定邮箱
  7. Block 再学习 !
  8. 基于Jquery+Ajax+Json+高效分页
  9. 很牛逼的短链接,我们一起来晒晒短链接程序(转)
  10. 新技术 新体验 - 北京.NET俱乐部Visual Studio2008 MVC 交流会