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

0.环境

vmware pro 14,centos 7.3

petalinux 2017.2

1.petalinux安装环境配置

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

python安装过程:

  1. wget https://www.python.org/ftp/python/3.4.1/Python-3.4.1.tgz
  2. tar xf Python-3.4.1.tgz
  3. cd Python-3.4.1
  4. ./configure
  5. make
  6. make install

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

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

2.安装及配置

  1. [root@localhost opt]# chown liuwanpeng:liuwanpeng -R /opt
  2. [root@localhost opt]# ls / -lh
  3. 总用量 28K
  4. ......
  5. drwxr-xr-x. 3 root root 18 12 4 14:01 mnt
  6. drwxr-xr-x. 4 liuwanpeng liuwanpeng 27 12 4 14:40 opt
  7. dr-xr-xr-x. 223 root root 0 12 4 16:15 proc
  8. ......
  9. [root@localhost opt]# su liuwanpeng
  10. [liuwanpeng@localhost ~]$ ./petalinux-v2017.2-final-installer.run /opt/pkg/petalinux
  11. INFO: Checking installer checksum...
  12. INFO: Extracting PetaLinux installer...
  13. INFO: Installing PetaLinux...
  14. INFO: Checking PetaLinux installer integrity...
  15. INFO: Extracting Installation files...
  16. LICENSE AGREEMENTS
  17. PetaLinux SDK contains software from a number of sources. Please review
  18. the following licenses and indicate your acceptance of each to continue.
  19. You do not have to accept the licenses, however if you do not then you may
  20. not use PetaLinux SDK.
  21. Use PgUp/PgDn to navigate the license viewer, and press 'q' to close
  22. Press Enter to display the license agreements
  23. Do you accept Xilinx End User License Agreement? [y/N] > y
  24. Do you accept Webtalk Terms and Conditions? [y/N] > y
  25. Do you accept Third Party End User License Agreement? [y/N] > y
  26. INFO: Checking installation environment requirements...
  27. INFO: Checking free disk space
  28. INFO: Checking installed tools
  29. INFO: Checking installed development libraries
  30. INFO: Checking network and other services
  31. WARNING: No tftp server found - please refer to "PetaLinux SDK Installation Guide" for its impact and solution
  32. INFO: Installing PetaLinux SDK to "/opt/pkg/petalinux/."
  33. INFO: Installing PetaLinux zynqMP Yocto SDK to "/opt/pkg/petalinux/./components/yocto/source/aarch64"...
  34. PetaLinux Extensible SDK installer version 2017.2
  35. =================================================
  36. You are about to install the SDK to "/opt/pkg/petalinux/components/yocto/source/aarch64". Proceed[Y/n]? Y
  37. Extracting SDK.............................................done
  38. Setting it up...
  39. Extracting buildtools...
  40. done
  41. SDK has been successfully set up and is ready to be used.
  42. Each time you wish to use the SDK in a new shell session, you need to source the environment setup script e.g.
  43. $ . /opt/pkg/petalinux/components/yocto/source/aarch64/environment-setup-aarch64-xilinx-linux
  44. INFO: PetaLinux Yocto SDK for zynqMP has been successfully installed.
  45. INFO: Installing PetaLinux zynq Yocto SDK to "/opt/pkg/petalinux/./components/yocto/source/arm"...
  46. PetaLinux Extensible SDK installer version 2017.2
  47. =================================================
  48. You are about to install the SDK to "/opt/pkg/petalinux/components/yocto/source/arm". Proceed[Y/n]? Y
  49. Extracting SDK.........................................done
  50. Setting it up...
  51. Extracting buildtools...
  52. done
  53. SDK has been successfully set up and is ready to be used.
  54. Each time you wish to use the SDK in a new shell session, you need to source the environment setup script e.g.
  55. $ . /opt/pkg/petalinux/components/yocto/source/arm/environment-setup-cortexa9hf-neon-xilinx-linux-gnueabi
  56. INFO: PetaLinux Yocto SDK for zynq has been successfully installed.
  57. INFO: Installing PetaLinux microblaze (Full) Yocto SDK to "/opt/pkg/petalinux/./components/yocto/source/microblaze_full"...
  58. PetaLinux Extensible SDK installer version 2017.2
  59. =================================================
  60. You are about to install the SDK to "/opt/pkg/petalinux/components/yocto/source/microblaze_full". Proceed[Y/n]? Y
  61. Extracting SDK.............................done
  62. Setting it up...
  63. Extracting buildtools...
  64. done
  65. SDK has been successfully set up and is ready to be used.
  66. Each time you wish to use the SDK in a new shell session, you need to source the environment setup script e.g.
  67. $ . /opt/pkg/petalinux/components/yocto/source/microblaze_full/environment-setup-microblazeel-v10.0-bs-cmp-mh-div-xilinx-linux
  68. INFO: Installing PetaLinux microblaze (Lite) Yocto SDK to "/opt/pkg/petalinux/./components/yocto/source/microblaze_lite"...
  69. PetaLinux Extensible SDK installer version 2017.2
  70. =================================================
  71. You are about to install the SDK to "/opt/pkg/petalinux/components/yocto/source/microblaze_lite". Proceed[Y/n]? Y
  72. Extracting SDK.............................done
  73. Setting it up...
  74. Extracting buildtools...
  75. done
  76. SDK has been successfully set up and is ready to be used.
  77. Each time you wish to use the SDK in a new shell session, you need to source the environment setup script e.g.
  78. $ . /opt/pkg/petalinux/components/yocto/source/microblaze_lite/environment-setup-microblazeel-v10.0-bs-cmp-ml-xilinx-linux
  79. INFO: PetaLinux Yocto SDK for microblaze has been successfully installed.
  80. INFO: PetaLinux SDK has been installed to /opt/pkg/petalinux/.
  81. [liuwanpeng@localhost ~]$ source /opt/pkg/petalinux/settings.sh
  82. PetaLinux environment set to '/opt/pkg/petalinux'
  83. INFO: Checking free disk space
  84. INFO: Checking installed tools
  85. INFO: Checking installed development libraries
  86. INFO: Checking network and other services
  87. WARNING: No tftp server found - please refer to "PetaLinux SDK Installation Guide" for its impact and solution

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

// 关闭网络交互

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

3. 建工程

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

4.config

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

  1. [liuwanpeng@localhost xilinx-zcu102-2017.2]$ petalinux-config --get-hw-description=hardware/xilinx-zcu102-2017.2/xilinx-zcu102-2017.2.sdk/
  2. INFO: Getting hardware description...
  3. [INFO] generating Kconfig for project
  4. [INFO] menuconfig project
  5. /home/liuwanpeng/mpsoc/xilinx-zcu102-2017.2/build/misc/config/Kconfig.syshw:30:warning: defaults for choice values not supported
  6. /home/liuwanpeng/mpsoc/xilinx-zcu102-2017.2/build/misc/config/Kconfig:574:warning: config symbol defined without type
  7. configuration written to /home/liuwanpeng/mpsoc/xilinx-zcu102-2017.2/project-spec/configs/config
  8. *** End of the configuration.
  9. *** Execute 'make' to start the build or try 'make help'.
  10. [INFO] sourcing bitbake
  11. [INFO] generating plnxtool conf
  12. [INFO] generating meta-plnx-generated layer
  13. ~/mpsoc/xilinx-zcu102-2017.2/build/misc/plnx-generated ~/mpsoc/xilinx-zcu102-2017.2
  14. ~/mpsoc/xilinx-zcu102-2017.2
  15. [INFO] generating machine configuration
  16. [INFO] generating bbappends for project . This may take time !
  17. ~/mpsoc/xilinx-zcu102-2017.2/build/misc/plnx-generated ~/mpsoc/xilinx-zcu102-2017.2
  18. ~/mpsoc/xilinx-zcu102-2017.2
  19. [INFO] generating u-boot configuration files
  20. [INFO] generating kernel configuration files
  21. [INFO] generating kconfig for Rootfs
  22. Generate rootfs kconfig
  23. [INFO] oldconfig rootfs
  24. [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

  1. [liuwanpeng@localhost xilinx-zcu102-2017.2]$ petalinux-build
  2. [INFO] building project
  3. [INFO] sourcing bitbake
  4. INFO: bitbake petalinux-user-image
  5. Loading cache: 100% |############################################| Time: 0:00:02
  6. Loaded 3235 entries from dependency cache.
  7. Parsing recipes: 100% |##########################################| Time: 0:00:09
  8. Parsing of 2446 .bb files complete (2407 cached, 39 parsed). 3236 targets, 224 skipped, 0 masked, 0 errors.
  9. NOTE: Resolving any missing task queue dependencies
  10. Initialising tasks: 100% |#######################################| Time: 0:01:28
  11. Checking sstate mirror object availability: 100% |###############| Time: 0:00:13
  12. NOTE: Executing SetScene Tasks
  13. NOTE: Executing RunQueue Tasks
  14. fsbl-2017.2+gitAUTOINC+122565ec40-r0 do_compile: NOTE: fsbl: compiling from external source tree /opt/pkg/petalinux/tools/hsm/data/embeddedsw
  15. pmu-firmware-2017.2+gitAUTOINC+122565ec40-r0 do_compile: NOTE: pmu-firmware: compiling from external source tree /opt/pkg/petalinux/tools/hsm/data/embeddedsw
  16. 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)
  17. 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
  18. Log data follows:
  19. | DEBUG: Executing python function sstate_task_prefunc
  20. | DEBUG: Python function sstate_task_prefunc finished
  21. | DEBUG: Executing shell function do_deploy
  22. | 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
  23. | 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)
  24. 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'
  25. NOTE: Tasks Summary: Attempted 2399 tasks of which 1865 didn't need to be rerun and 1 failed.
  26. Summary: 1 task failed:
  27. /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)的补丁之前无此问题,重启后问题消失

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

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

  1. [liuwanpeng@localhost xilinx-zcu102-2017.2]$ petalinux-build
  2. [INFO] building project
  3. INFO: bitbake petalinux-user-image
  4. Loading cache: 100% |############################################| Time: 0:00:02
  5. Loaded 3235 entries from dependency cache.
  6. Parsing recipes: 100% |##########################################| Time: 0:00:07
  7. Parsing of 2446 .bb files complete (2407 cached, 39 parsed). 3236 targets, 224 skipped, 0 masked, 0 errors.
  8. NOTE: Resolving any missing task queue dependencies
  9. Initialising tasks: 100% |#######################################| Time: 0:01:26
  10. Checking sstate mirror object availability: 100% |###############| Time: 0:00:13
  11. NOTE: Executing SetScene Tasks
  12. NOTE: Executing RunQueue Tasks
  13. fsbl-2017.2+gitAUTOINC+122565ec40-r0 do_compile: NOTE: fsbl: compiling from external source tree /opt/pkg/petalinux/tools/hsm/data/embeddedsw
  14. 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)
  15. 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
  16. Log data follows:
  17. | DEBUG: Executing python function sysroot_cleansstate
  18. | DEBUG: Python function sysroot_cleansstate finished
  19. | DEBUG: Executing shell function do_configure
  20. | 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
  21. | APP_ARG is -app "ZynqMP PMU Firmware"
  22. | 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
  23. | Starting xsdk. This could take few seconds... Eclipse:
  24. | An error has occurred. See the log file
  25. | /home/liuwanpeng/mpsoc/xilinx-zcu102-2017.2/components/plnx_workspace/.metadata/.log.
  26. | XSCTHELPER INFO: Empty WorkSpace
  27. | Starting xsdk. This could take few seconds... Eclipse:
  28. | An error has occurred. See the log file
  29. | /home/liuwanpeng/mpsoc/xilinx-zcu102-2017.2/components/plnx_workspace/.metadata/.log.
  30. | timeout while establishing a connection with SDK
  31. | while executing
  32. | "error "timeout while establishing a connection with SDK""
  33. | (procedure "getsdkchan" line 111)
  34. | invoked from within
  35. | "getsdkchan"
  36. | (procedure "::sdk::set_user_repo_path_sdk" line 16)
  37. | invoked from within
  38. | "::sdk::set_user_repo_path_sdk $params(set)"
  39. | (procedure "repo" line 27)
  40. | invoked from within
  41. | "repo -set $path"
  42. | invoked from within
  43. | "if { $params(ws) ne "" } {
  44. | #Local Work Space available
  45. | setws $params(ws)
  46. | if { [catch {importprojects $params(ws)} result] } {
  47. | puts "XSCTHELPER IN..."
  48. | (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)
  49. | 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'
  50. | 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)
  51. 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

  1. 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

都加上

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

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

MPSOC之3——centos环境配置及petalinux安装及使用的更多相关文章

  1. MPSOC之2——ubuntu环境配置及petalinux安装

    MPSOC的linux开发需要使用petalinux,选择Ubuntu操作系统. 1.Ubuntu 1.1. Ubuntu安装 版本16.04.03 vmare版本:12.0 安装时注意选择" ...

  2. win2008 r2 服务器php+mysql+sqlserver2008运行环境配置(从安装、优化、安全等)

    这篇文章主要介绍了win2008 r2 服务器php+mysql+sqlserver2008运行环境配置(从安装.优化.安全等),需要的朋友可以参考下 win2008 r2 安装 http://www ...

  3. JDK和环境配置,eclipse安装与使用

    本博客部分参照https://blog.csdn.net/PGY0000/article/details/79256720 (记住要尊重别人的劳动产品) 原博客给的链接和后面的安装过程有点不一样,不能 ...

  4. CentOS环境下通过YUM安装软件,搭建lnmp环境

    安装nginx.php-fpm和mysql. yum install nginx yum install php-fpm yum install mysql CentOS下LNMP环境配置 1. 配置 ...

  5. grunt的使用方法,环境配置和插件安装

    虽然现在grunt的用的越来越少了,但是插件数量还是相当多的,另外grunt和gulp的使用相当相似: grunt需要安装node和npm 验证node是否安装:node -v 验证npm是否安装:n ...

  6. anadonca环境配置和模块安装

    1.最方便的python环境配置: 下载anaconda即可,自带spyder,集成科学计算的库,自带pip,不用折腾. 想用sublime编写python并运行的话,需要自己配置编译环境,并下载插件 ...

  7. ios开发环境配置及cordova安装与常用命令

    一.ios开发环境配置 1.首先要有台Mac Book,如果有Mac Book,跳过步骤2.3.4,如果没有,执行步骤2.3.4: 2.下载并安装VMware Workstation,最好是下最新版本 ...

  8. Unity3D 发布APK安卓环境配置步骤、安装、教程(含Java/Android)(超全流程)

    Unity3D安卓环境配置运行 本文提供全流程,中文翻译.Chinar坚持将简单的生活方式,带给世人!(拥有更好的阅读体验 -- 高分辨率用户请根据需求调整网页缩放比例) Chinar -- 心分享. ...

  9. 阿里云 centos 环境配置与 django 部署

    1. 免密码登陆 # 本机生成密钥, 并将 pub 复制到阿里云服务器上 $ ssh-keygen -t rsa -P '' # -P表示密码,-P '' 就表示空密码 $ scp ~/.ssh/FI ...

随机推荐

  1. 用python模拟登录(解析cookie + 解析html + 表单提交 + 验证码识别 + excel读写 + 发送邮件)

    老婆大人每个月都要上一个网站上去查数据,然后做报表. 为了减轻老婆大人的工作压力,所以我决定做个小程序,减轻我老婆的工作量. 准备工作 1.tesseract-ocr 这个工具用来识别验证码,非常好用 ...

  2. 通过Xshell连接CentOS虚拟机

    1.通过"setup"配置网络ip(CentOS7不支持setup配置) 2.通过"service network restart"来重启网络服务 3.&quo ...

  3. SICK激光雷达LMS511测量数据说明

    帧结构说明 LMS511的官方手册存在几个版本,在<Laser Measurement Systems of the LMS500 Product Family>的英文手册中,对单次(连续 ...

  4. Asp.Net MVC 捆绑(Bundle)

    Asp.Net MVC 捆绑(Bundle) 大多数浏览器会对同一域名的请求限制请求数量,一般是在8个以内.每次最多可以同时请求8个,要是资源多于8个,那么剩下的就要排队等待请求了.所以为了提高首次加 ...

  5. .net 分布式的未来:微服务

    一.背景&问题 之前框架是一个基于SOA思想设计的分布式框架.各应用通过服务方式提供使用,服务之间通信是RPC方式调用,具体实现基于.NET的WCF通信平台.框架存在如下2个问题: 1.高并发 ...

  6. lua luaconf解读

    定义了一些跟平台相关的宏,明确指出一些不推荐使用的函数,如lua_cpcall.lua_strlen

  7. c语言的数组

    1. 数组的基本概念 一个int类型的变量能保存一个人的年龄,如果想保存整个班的年龄呢? 1. 什么是数组 数组,从字面上看,就是一组数据的意思,没错,数组就是用来存储一组数据的 2. 数组的特点 ● ...

  8. [搜索]ElasticSearch Java Api(一) -添加数据创建索引

    转载:http://blog.csdn.net/napoay/article/details/51707023 ElasticSearch JAVA API官网文档:https://www.elast ...

  9. 爬虫day 04(通过登录去爬虫 解决django的csrf_token)

    #通过登录去爬虫 #首先要有用户名和密码 import urllib.request import http.cookiejar from lxml import etree head = { 'Co ...

  10. 【原创】python基于大数据现实双色球预测

    前提准备:利用sql筛选出每个球出现概率最高的前5个数 原理:先爬出所有的历史数据,然后模拟摇奖机出球的机制并大量模拟计算,直到出现列表中的某一个数后即停 注意事项:由于计算过程数据量很大,需要加入内 ...