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: 
4,759 Views
Registered: ‎12-01-2015

ZCU102 TRD DM1 petalinux issue

Hi,

 

I'm working on ZCU102 ES2 and I try to follow the TRD reference design (rdf0421-zcu102-base-trd-2016-3.zip).

 

It's my first time with Petalinux and I'm facing an issue.

 

After installing successfully Petalinux on my Ubuntu, I followed steps in DM1 app.

http://www.wiki.xilinx.com/Zynq+UltraScale+MPSoC+Base+TRD+2016.3+-+Design+Module+1

 

At petalinux-build, I get this error message:

 

~/Documents/petalinux_bsp_dm1$ petalinux-build
INFO: Checking component...
INFO: Generating make files and build linux
INFO: Generating make files for the subcomponents of linux
WARNING: /home/starbreezefrance/Documents/petalinux_bsp_dm1/build/linux/kernel/download/linux-xlnx already exists.
WARNING: Not fetching from remote url!
WARNING: If you want to get a fresh copy, please run 'petalinux-build -c <COMPONENT> -x mrproper'
INFO: Building linux
[INFO ] pre-build linux/rootfs/rpmsg_user_dev_driver
[INFO ] pre-build linux/rootfs/edid
[INFO ] pre-build linux/rootfs/fru_tools
[INFO ] pre-build linux/rootfs/fwupgrade
[INFO ] pre-build linux/rootfs/gpio-demo
[INFO ] pre-build linux/rootfs/init
[INFO ] pre-build linux/rootfs/peekpoke
[INFO ] pre-build linux/rootfs/perfapm_server
[INFO ] pre-build linux/rootfs/tty-vt
[INFO ] build linux/kernel
[INFO ] generate linux/u-boot configuration files
[INFO ] update linux/u-boot source
[INFO ] build linux/u-boot
[INFO ] build zynqmp_fsbl
[INFO ] update linux/arm-trusted-firmware source
[INFO ] build linux/arm-trusted-firmware
[INFO ] build kernel in-tree modules
[INFO ] modules linux/kernel
[INFO ] build linux/rootfs/rpmsg_user_dev_driver
[INFO ] modules linux/kernel
[INFO ] building /home/starbreezefrance/Documents/petalinux_bsp_dm1/build/linux/rootfs/packages-repo/pkgs_sysroot_list
[INFO ] do_gen_sysroot
[INFO ] build linux/rootfs/edid
[INFO ] build linux/rootfs/fru_tools
[INFO ] build linux/rootfs/fwupgrade
[INFO ] build linux/rootfs/gpio-demo
[INFO ] build linux/rootfs/init
[INFO ] build linux/rootfs/peekpoke
[INFO ] build linux/rootfs/perfapm_server
[INFO ] build linux/rootfs/tty-vt
[INFO ] post-build linux/rootfs/rpmsg_user_dev_driver
[INFO ] post-build linux/rootfs/edid
[INFO ] post-build linux/rootfs/fru_tools
[INFO ] post-build linux/rootfs/fwupgrade
[INFO ] post-build linux/rootfs/gpio-demo
[INFO ] post-build linux/rootfs/init
[INFO ] post-build linux/rootfs/peekpoke
[INFO ] post-build linux/rootfs/perfapm_server
[INFO ] post-build linux/rootfs/tty-vt
[INFO ] pre-install linux/rootfs/rpmsg_user_dev_driver
[INFO ] pre-install linux/rootfs/edid
[INFO ] pre-install linux/rootfs/fru_tools
[INFO ] pre-install linux/rootfs/fwupgrade
[INFO ] pre-install linux/rootfs/gpio-demo
[INFO ] pre-install linux/rootfs/init
[INFO ] pre-install linux/rootfs/peekpoke
[INFO ] pre-install linux/rootfs/perfapm_server
[INFO ] pre-install linux/rootfs/tty-vt
[INFO ] install device trees
[INFO ] install linux/kernel
[INFO ] generate linux/u-boot configuration files
[INFO ] update linux/u-boot source
[INFO ] build linux/u-boot
[INFO ] install linux/u-boot
[INFO ] install linux/arm-trusted-firmware
[INFO ] do_gen_baserootfs
[INFO ] install sys_init
[INFO ] install kernel in-tree modules
[INFO ] modules_install linux/kernel
[INFO ] install linux/rootfs/rpmsg_user_dev_driver
[INFO ] modules_install linux/kernel
[INFO ] install linux/rootfs/edid
[INFO ] install linux/rootfs/fru_tools
[INFO ] install linux/rootfs/fwupgrade
[INFO ] install linux/rootfs/gpio-demo
[INFO ] install linux/rootfs/init
[INFO ] install linux/rootfs/peekpoke
[INFO ] install linux/rootfs/perfapm_server
[INFO ] install linux/rootfs/tty-vt
[INFO ] post-install linux/rootfs/rpmsg_user_dev_driver
[INFO ] post-install linux/rootfs/edid
[INFO ] post-install linux/rootfs/fru_tools
[INFO ] post-install linux/rootfs/fwupgrade
[INFO ] post-install linux/rootfs/gpio-demo
[INFO ] post-install linux/rootfs/init
[INFO ] post-install linux/rootfs/peekpoke
[INFO ] post-install linux/rootfs/perfapm_server
[INFO ] post-install linux/rootfs/tty-vt
[INFO ] package rootfs.cpio to /home/starbreezefrance/Documents/petalinux_bsp_dm1/images/linux
[ERROR] make[1]: *** [package-rootfs-cpio] Error 255
ERROR: Failed to build linux

 

Any help?

 

Regards,

Raphael

0 Kudos
8 Replies
Moderator
Moderator
4,729 Views
Registered: ‎12-04-2016

Re: ZCU102 TRD DM1 petalinux issue

Hi Raphael

 

This looks more like environmenr PATH issue, can you please try the below command:

 

export PATH=/​usr/​bin:/​usr/​sbin:/​etc:/​bin:/​usr/​local/​bin:$PATH
 
 
Best Regards
Shabbir
0 Kudos
Adventurer
Adventurer
4,721 Views
Registered: ‎03-21-2013

Re: ZCU102 TRD DM1 petalinux issue

Hi.

I am suffering the exact same issue. I tried this suggestion but got the same result.

Any other thoughts?

Best regards

 

Clive

 

0 Kudos
4,708 Views
Registered: ‎12-01-2015

Re: ZCU102 TRD DM1 petalinux issue

Hi,

 

Thank you for your answer.

I got the same error.

Console log attached.

 

BR,

Raphael

0 Kudos
Moderator
Moderator
4,665 Views
Registered: ‎04-17-2011

Re: ZCU102 TRD DM1 petalinux issue

Can you post the build.log from /build folder as it may have more details? Could be an environment issue.
Regards,
Debraj
----------------------------------------------------------------------------------------------
Kindly note- Please mark the Answer as "Accept as solution" if information provided is helpful.

Give Kudos to a post which you think is helpful and reply oriented.
----------------------------------------------------------------------------------------------
0 Kudos
4,638 Views
Registered: ‎12-01-2015

Re: ZCU102 TRD DM1 petalinux issue

Find here the build.log file.

 

Regards.

Raphael

0 Kudos
Moderator
Moderator
4,634 Views
Registered: ‎12-04-2016

Re: ZCU102 TRD DM1 petalinux issue

Hi Rapheal

 

In the build log, I can see the following issue:

 /bin/sh: 1: [: aarch64: unexpected operator  

 

Your /bin/sh probably isn't bash. Looks like this is causing build failure.

 

Can you please try installing below packages and then re-build:

sudo apt install bash && sudo dpkg-reconfigure dash

 

 

Best Regards

Shabbir

0 Kudos
Visitor shawnlxf
Visitor
3,762 Views
Registered: ‎04-09-2017

Re: ZCU102 TRD DM1 petalinux issue

Hello, when I followed the steps in Zynq UltraScale MPSoC Base TRD 2016.4 - Design Module 1

link: http://www.wiki.xilinx.com/Zynq+UltraScale+MPSoC+Base+TRD+2016.4+-+Design+Module+1

% cd subsystems/linux/configs/device-tree
% cp system-dm1.dts system-top.dts
% petalinux-build

I also found some problem. Could anyone help me?  

---------------------------------------------------

root@sunny-HP-Z640:/home/sunny/Desktop/lxf/share/rdf0421-zcu102-base-trd-2016-4/apu/petalinux_bsp/subsystems/linux/configs/device-tree# petalinux-build
INFO: Checking component...
INFO: Generating make files and build linux
INFO: Generating make files for the subcomponents of linux
WARNING: /home/sunny/Desktop/lxf/share/rdf0421-zcu102-base-trd-2016-4/apu/petalinux_bsp/build/linux/kernel/download/linux-xlnx already exists.
WARNING: Not fetching from remote url!
WARNING: If you want to get a fresh copy, please run 'petalinux-build -c <COMPONENT> -x mrproper'
INFO: Building linux
[INFO ] pre-build linux/rootfs/rpmsg_user_dev_driver
[INFO ] pre-build linux/rootfs/edid
[INFO ] pre-build linux/rootfs/fru_tools
[INFO ] pre-build linux/rootfs/fwupgrade
[INFO ] pre-build linux/rootfs/gpio-demo
[INFO ] pre-build linux/rootfs/init
[INFO ] pre-build linux/rootfs/peekpoke
[INFO ] pre-build linux/rootfs/perfapm_server
[INFO ] pre-build linux/rootfs/tty-vt
[INFO ] build system.dtb
[INFO ] build linux/kernel
[INFO ] generate linux/u-boot configuration files
[INFO ] update linux/u-boot source
[INFO ] build linux/u-boot
[INFO ] build zynqmp_fsbl
[INFO ] update linux/arm-trusted-firmware source
[INFO ] build linux/arm-trusted-firmware
[INFO ] build kernel in-tree modules
[INFO ] modules linux/kernel
[INFO ] build linux/rootfs/rpmsg_user_dev_driver
[INFO ] modules linux/kernel
[INFO ] building /home/sunny/Desktop/lxf/share/rdf0421-zcu102-base-trd-2016-4/apu/petalinux_bsp/build/linux/rootfs/packages-repo/pkgs_sysroot_list
[INFO ] do_gen_sysroot
[INFO ] build linux/rootfs/edid
[INFO ] build linux/rootfs/fru_tools
[ERROR] make[2]: *** [fru-dump] Error 1
[ERROR] make[1]: *** [sub_build_component_/none/apps/multi/fru_tools] Error 2
ERROR: Failed to build linux

-------------------------------------------------------------

0 Kudos
Visitor wofeicaoge
Visitor
3,391 Views
Registered: ‎12-19-2016

Re: ZCU102 TRD DM1 petalinux issue

This is due to the date format.

 

You can modify the petalinux_bsp/components/apps/fru_tools/Makefile and at line 23

BUILD_FLAGS = -DVERSION=\"$(MAIN_VERSION)\" -DVERSION_DATE=\"2017-06-12\"

of course, the 2017-06-12 can be replaced by any other string you like, but better without blank and chinese words

 

 

0 Kudos