cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
stew.hansen
Contributor
Contributor
949 Views
Registered: ‎08-10-2018

Petalinux build error fsbl_domain

I installed PetaLinux version 2019.1 for use with custom board using the PicoZed board with the 7Z010 FGPA.

I started the setup with the following steps:

petalinux-create -t project --template zynq --name test
    INFO: Create project: test
    INFO: New project successfully created in /mnt/scratch/test/test

petalinux-config --get-hw-description=/Workspace/PetaBuild/test/sw/zynq/fsbootloader/test_top_hw_platform_0/
   INFO: Getting hardware description...
   [INFO] generating Kconfig for project
   [INFO] menuconfig project
   configuration written to /mnt/scratch/test/test/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
   [INFO] generating user layers
   [INFO] generating machine configuration
   [INFO] generating bbappends for project . This may take time !
   [INFO] generating u-boot configuration files
   [INFO] generating kernel configuration files
   [INFO] generating kconfig for Rootfs
   [INFO] silentconfig rootfs
   [INFO] generating petalinux-user-image.bb

(I setup the machine_name as zc702 left everything else as is. The advanged bootable images storage settings are are configured for primary flash except for dtb which is from boot image.)

petalinux-build
[INFO] building project
[INFO] sourcing bitbake
[INFO] generating user layers
INFO: bitbake petalinux-user-image
Loading cache: 100% |###################################################################################################################################################################| Time: 0:00:00
Loaded 3810 entries from dependency cache.
Parsing recipes: 100% |#################################################################################################################################################################| Time: 0:00:03
Parsing of 2777 .bb files complete (2769 cached, 8 parsed). 3812 targets, 163 skipped, 0 masked, 0 errors.
NOTE: Resolving any missing task queue dependencies
Initialising tasks: 100% |##############################################################################################################################################################| Time: 0:00:02
Checking sstate mirror object availability: 100% |######################################################################################################################################| Time: 0:00:07
Sstate summary: Wanted 875 Found 700 Missed 350 Current 0 (80% match, 0% complete)
NOTE: Executing SetScene Tasks
NOTE: Executing RunQueue Tasks
ERROR: fsbl-2019.1+gitAUTOINC+26c14d9861-r0 do_configure: Function failed: do_configure (log file is located at /mnt/scratch/test/test/build/tmp/work/plnx_zynq7-xilinx-linux-gnueabi/fsbl/2019.1+gitAUTOINC+26c14d9861-r0/temp/log.do_configure.17154)
ERROR: Logfile of failure stored in: /mnt/scratch/test/test/build/tmp/work/plnx_zynq7-xilinx-linux-gnueabi/fsbl/2019.1+gitAUTOINC+26c14d9861-r0/temp/log.do_configure.17154
Log data follows:
| DEBUG: Executing shell function do_configure
| MISC_ARG is -yamlconf /mnt/scratch/test/test/build/tmp/work/plnx_zynq7-xilinx-linux-gnueabi/fsbl/2019.1+gitAUTOINC+26c14d9861-r0/fsbl.yaml
| APP_ARG is -app "Zynq FSBL"
| Using xsct from: /opt/pkg/petalinux/2019.1/tools/xsct/bin/xsct
| cmd is: xsct -sdx -nodisp /mnt/scratch/test/test/build/tmp/work/plnx_zynq7-xilinx-linux-gnueabi/fsbl/2019.1+gitAUTOINC+26c14d9861-r0/app.tcl -ws /mnt/scratch/test/test/build/tmp/work/plnx_zynq7-xilinx-linux-gnueabi/fsbl/2019.1+gitAUTOINC+26c14d9861-r0/build -pname fsbl -rp /mnt/scratch/test/test/build/tmp/work/plnx_zynq7-xilinx-linux-gnueabi/fsbl/2019.1+gitAUTOINC+26c14d9861-r0/git -processor ps7_cortexa9_0 -hdf /mnt/scratch/test/test/build/tmp/deploy/images/plnx-zynq7/Xilinx-plnx-zynq7.hdf -arch 32 -app "Zynq FSBL" -yamlconf /mnt/scratch/test/test/build/tmp/work/plnx_zynq7-xilinx-linux-gnueabi/fsbl/2019.1+gitAUTOINC+26c14d9861-r0/fsbl.yaml
| INFO: [Hsi 55-1698] elapsed time for repository loading 0 seconds
| Opening the hardware design, this may take few seconds.
| App name
| Description
| ERROR: [Hsi 55-1606] Unable to find ps7 init files in the directory /mnt/scratch/test/test/build/tmp/work/plnx_zynq7-xilinx-linux-gnueabi/fsbl/2019.1+gitAUTOINC+26c14d9861-r0/build/fsbl_plat/_platform/dsa.
| WARNING : No interface that uses file system is available
|
| INFO: create bsp using fsbl_domain
| App name
| Description
| Creating app at: /mnt/scratch/test/test/build/tmp/work/plnx_zynq7-xilinx-linux-gnueabi/fsbl/2019.1+gitAUTOINC+26c14d9861-r0/build
| App name
| Description
| WARNING : No interface that uses file system is available
|
| ERROR: [Hsi 55-1606] Unable to find ps7 init files in the directory /mnt/scratch/test/test/build/tmp/work/plnx_zynq7-xilinx-linux-gnueabi/fsbl/2019.1+gitAUTOINC+26c14d9861-r0/build/fsbl_plat/_platform/dsa.
| ERROR: [Hsi 55-1438] Error running generate_app.
| ERROR: [Common 17-39] 'hsi::generate_app' failed due to earlier errors.
|
| while executing
| "::hsi::generate_app -app $hsitemplate"
| (procedure "app" line 359)
| invoked from within
| "app create -name $params(pname) -lang c -template $params(app) -plnx"
| invoked from within
| "if { $params(ws) ne "" } {
| #Local Work Space available
| if { $params(pname) ne "" } {
| # hwpname/bspname is empty then default it to pname+_hwproj/b..."
| (file "/mnt/scratch/test/test/build/tmp/work/plnx_zynq7-xilinx-linux-gnueabi/fsbl/2019.1+gitAUTOINC+26c14d9861-r0/app.tcl" line 139)
| WARNING: /mnt/scratch/test/test/build/tmp/work/plnx_zynq7-xilinx-linux-gnueabi/fsbl/2019.1+gitAUTOINC+26c14d9861-r0/temp/run.do_configure.17154:1 exit 1 from 'eval xsct -sdx -nodisp /mnt/scratch/test/test/build/tmp/work/plnx_zynq7-xilinx-linux-gnueabi/fsbl/2019.1+gitAUTOINC+26c14d9861-r0/app.tcl -ws /mnt/scratch/test/test/build/tmp/work/plnx_zynq7-xilinx-linux-gnueabi/fsbl/2019.1+gitAUTOINC+26c14d9861-r0/build -pname fsbl -rp /mnt/scratch/test/test/build/tmp/work/plnx_zynq7-xilinx-linux-gnueabi/fsbl/2019.1+gitAUTOINC+26c14d9861-r0/git -processor ps7_cortexa9_0 -hdf /mnt/scratch/test/test/build/tmp/deploy/images/plnx-zynq7/Xilinx-plnx-zynq7.hdf -arch 32 ${APP_ARG} ${MISC_ARG}'
| ERROR: Function failed: do_configure (log file is located at /mnt/scratch/test/test/build/tmp/work/plnx_zynq7-xilinx-linux-gnueabi/fsbl/2019.1+gitAUTOINC+26c14d9861-r0/temp/log.do_configure.17154)
ERROR: Task (/opt/pkg/petalinux/2019.1/components/yocto/source/arm/layers/meta-xilinx-tools/recipes-bsp/fsbl/fsbl_git.bb:do_configure) failed with exit code '1'
NOTE: Tasks Summary: Attempted 3062 tasks of which 2318 didn't need to be rerun and 1 failed.

Summary: 1 task failed: /opt/pkg/petalinux/2019.1/components/yocto/source/arm/layers/meta-xilinx-tools/recipes-bsp/fsbl/fsbl_git.bb:do_configure
Summary: There was 1 ERROR message shown, returning a non-zero exit code.
ERROR: Failed to build project

 

The error or seems to be due to a misconfiguration, but I have not been able to target that. I will also attach the .hdf file.  I have been able to import a zc702 BSP and get it to compile just fine, but as soon as I imoprt the .hdf file the build fails.

Any help would be greatly appreciated.

0 Kudos
5 Replies
stew.hansen
Contributor
Contributor
946 Views
Registered: ‎08-10-2018

Also note that in the directory noted  /mnt/scratch/test/test/build/tmp/work/plnx_zynq7-xilinx-linux-gnueabi/fsbl/2019.1+gitAUTOINC+26c14d9861-r0/build/fsbl_plat/_platform/dsa there are only these two files Xilinx-plnx-zynq7.dsa and Xilinx-plnx-zynq7.hdf.

0 Kudos
zbx5922
Observer
Observer
738 Views
Registered: ‎04-16-2014

Hi, I meet the same problem in Petalinux 2018.3 ,  have you solve the problem? Thanks

0 Kudos
stew.hansen
Contributor
Contributor
674 Views
Registered: ‎08-10-2018

Yes I did solve the issue. I'll review my notes and post up what I ended up doing.

0 Kudos
stew.hansen
Contributor
Contributor
666 Views
Registered: ‎08-10-2018

Hey @zbx5922,

Yes I was able to move on from the build error mentioned, but I had to start from a template project. I was not able to get the BSP mentioned to build with our HDF. What I ended up doing was the following:

  1. petalinux-create -t project --template zynqMP -n <project-name>
  2. petalinux-config --get-hw-description <path-to-hdf-directory>
  3. petalinux-config
  4. petlainux-config -c u-boot  (setup as needed for hardware)
  5. petalinux-config -c kernel  (setup as needed for hardware)

The project was just a template type which defaulted with a u-boot config target as "xilinx_zynqmp_zcu102_rev1_0_defconfig". This can be accessed by petalinux-config and then navigate to "u-boot Configuration".

I was trying to use a solution that already existed for BSPs, but I ended up needing to just start from a template project and go through all the settings for the u-boot, kernel, top level configuration.

To get things working I also had to copy over the system-user.dtsi content. From a 2018.2 BSP that I pulled down from http://www.ultrazed.org/support/design/17596/131

Here is the content that I copied over to the system-user.dtsi found at <petalinux-project>/project-spec/meta-user/recipes-bsp/device-tree/files/system-user.dtsi

/include/ "system-conf.dtsi"
/ {
};

&gem3 {
	status = "okay";
	local-mac-address = [00 0d f7 00 1a 00];
	phy-mode = "rgmii-id";
	phy-handle = <&phy0>;
	phy0: phy@9 {
		reg = <0x9>;
		ti,rx-internal-delay = <0x5>;
		ti,tx-internal-delay = <0x5>;
		ti,fifo-depth = <0x1>;
	};
};

&i2c1 {
	status = "okay";
	clock-frequency = <400000>;

	i2cswitch@70 { /* U7 on UZ3EG SOM */
		compatible = "nxp,pca9542";
		#address-cells = <1>;
		#size-cells = <0>;
		reg = <0x70>;
		
	};
};

&qspi {
	#address-cells = <1>;
	#size-cells = <0>;
	status = "okay";
	is-dual = <1>; /* Set for dual-parallel QSPI config */
	num-cs = <2>;
	xlnx,fb-clk = <0x1>;
	flash0: flash@0 {
        /* The Flash described below doesn't match our board ("micron,n25qu256a"), but is needed */
        /* so the Flash MTD partitions are correctly identified in /proc/mtd */
		compatible = "micron,m25p80"; /* 32MB */
		#address-cells = <1>;
		#size-cells = <1>;
		reg = <0x0>;
		spi-tx-bus-width = <1>;
		spi-rx-bus-width = <4>; /* FIXME also DUAL configuration possible */
		spi-max-frequency = <108000000>; /* Set to 108000000 Based on DC1 spec */
	};
};

/* SD0 eMMC, 8-bit wide data bus */
&sdhci0 {
	status = "okay";
	bus-width = <8>;
	max-frequency = <50000000>;
};

/* SD1 with level shifter */
&sdhci1 {
	status = "okay";
	max-frequency = <50000000>;
	no-1-8-v;	/* for 1.0 silicon */
};

/* ULPI SMSC USB3320 */
&usb0 {
	status = "okay";
};

&dwc3_0 {
	status = "okay";
	dr_mode = "host";
	phy-names = "usb3-phy";
  maximum-speed = "super-speed";
};

Hope that helps.

zbx5922
Observer
Observer
619 Views
Registered: ‎04-16-2014

Hi @stew.hansen , Thanks a lot , it is very helpfull. I find the project need to be clean( "petalinux-build - mrproper " , after create the project)  , before run the " petalinux build ".  

0 Kudos