04-24-2019 10:18 AM - edited 04-24-2019 10:24 AM
Tools / Version: Vivado, XSDK, Petalinux 2018.2; Ultra96 BSP
System: Ubuntu 16.04
I would like to develop an OpenAMP App to use on one of the Cortex R5. My Plan: create firmware for the r5, and corresponding A53-App for communication.
So I created the project and for testing a helloworld "firmware" to run on R5, etc. Everything works.
To be able to develop linux app, I read, that I have to create and build the rootfs in petalinux, using petalinux-build --sdk and petalinux-package --sysroot. However the build-command already fails at ERROR: petalinux-user-image-1.0-r0 do_populate_sdk: Function failed: do_populate_sdk. I attached the complete logfile. Apparently, I need (at least) 709MB more space. The weird thing is, that everything (Petalinux-bin, the project, ...) is run from a 1TB SSD which still has 463,5GB free space.
Thank you very much in advance!
04-24-2019 01:05 PM
Hey, me again.
Just replying to me own question:
Turns out, shutting the laptop down, going home, upgrading my RAM from 8GB to 16GB and a fresh start somehow fixed it. Weird.
05-31-2019 02:31 PM
I am having the same problem with Petalinux 2018.3 on CentOS 7.6. I don't belive that adding more RAM should be an acceptable solution to this issue. Has anyone discovered a better solution?
05-31-2019 03:57 PM - edited 05-31-2019 04:00 PM
I don't believe adding RAM fixed it, however I think the reboot somehow did something. The problem appeared again a few days ago after a mrproper-clean. I tried several things with no luck. With every try, the space needed increased by about 1MB. After cleaning, it jumped from about 143MB needed to 190MB needed. I deleted several GB of the drive, no change.
I found no other way around it, than to ask a friend to redo the same steps I did and it worked for him, so I copied his sdk-folder to be able to work again.
This is a serious issue and needs to be fixed in my opinion!
Good luck, ~ Frederik
PS: I unmarked my previous answer as solution, it probably was just a lucky coincidence..
06-03-2019 10:36 AM
I tried running these steps and the SDK continues to fail to build. This is CentOS 7.6 running Petalinux for the Ultra96 based on an HDF file created in Xilinx SDK:
petalinux-build -x mrproper
The full error logfile is attached, this is the summary:
At least 806MB more space needed on the /home/rdubielzig/no_fpga/pl/build/tmp/work/ultra96_zynqmp-xilinx-linux/petalinux-user-image/1.0-r0/sdk/image/opt/petalinux/2018.3/sysroots/aarch64-xilinx-linux/ filesystem.
And here's how I know I have the space:
[rdubielzig@localhost aarch64-xilinx-linux]$ pwd
[rdubielzig@localhost aarch64-xilinx-linux]$ df .
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/mapper/centos-home 1888779184 144249488 1744529696 8% /home
06-03-2019 10:44 AM
06-03-2019 11:27 AM
06-04-2019 03:27 PM
Another observation: There are a couple of huge nonfatal warnings thrown by sed earlier in the log file I attached above, regarding the security context of several files (one warning is 4818 characters long, the other is 44182). A small snippet is below. Again, this is on CenOS 7.6.
...sed: warning: failed to get security context of /home/rdubielzig/no_fpga/pl/build/tmp/work/ultra96_zynqmp-xilinx-linux/petalinux-user-image/1.0-r0/recipe-sysroot-native/usr/bin/crossscripts/gpg-error-config: No data availablesed: warning: failed to get security context of /home/rdubielzig/no_fpga/pl/build/tmp/work/ultra96_zynqmp-xilinx-linux/petalinux-user-image/1.0-r0/recipe-sysroot-native/usr/bin/gpg-error-config: No data availablesed: warning: failed to get security context of /home/rdubielzig/no_fpga/pl/build/tmp/work/ultra96_zynqmp-xilinx-linux/petalinux-user-image/1.0-r0/recipe-sysroot-native/usr/bin/crossscripts/libassuan-config: No data availablesed: warning: failed to get security context of /home/rdubielzig/no_fpga/pl/build/tmp/work/ultra96_zynqmp-xilinx-linux/petalinux-user-image/1.0-r0/recipe-sysroot-native/usr/bin/libassuan-config: No data available...