cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Highlighted
Visitor
Visitor
216 Views
Registered: ‎09-17-2020

sstate-cache configuration in PetaLinux.

Jump to solution

I've seen discussions about this topic, such as this one. But I'm still confused and got errors when configuring the kernel after set the Yocto options as stated. I'm running PetaLinux 2020.1 and my downloaded sstate files are in /opt/xilinx/PetaLinux/2020.1/sstate, in which I have 3 folders: arm, aarch64, and downloads (empty).

1. What is the pre-mirror url pointing to? Should it be an empty/writable folder or should I put something inside? I pointed it to /opt/xilinx/PetaLinux/2020.1/sstate/downlods.

2. I pointed local sstate feeds url to /opt/xilinx/PetaLinux/2020.1/sstate/arm for my zynq project.

3. I selected Enable BB NO NETWORK.

4. When running petalinux-config -c kernel, I got errors:

......
Checking sstate mirror object availability: 100% |############################################| Time: 0:00:00 Sstate summary: Wanted 44 Found 44 Missed 0 Current 0 (100% match, 0% complete) NOTE: Executing Tasks ERROR: Network access disabled through BB_NO_NETWORK (or set indirectly due to use of BB_FETCH_PREMIRRORONLY) but access requested with command /usr/bin/env wget -t 2 -T 30 --passive-ftp --no-check-certificate -P /home/data/fpga/exer/dma/dma-single-fifo/software/dma/build/downloads 'http://petalinux.xilinx.com/sswreleases/rel-v2020/downloads/git2_github.com.Xilinx.linux-xlnx.git.tar.gz' (for url http://petalinux.xilinx.com/sswreleases/rel-v2020/downloads/git2_github.com.Xilinx.linux-xlnx.git.tar.gz) ERROR: Logfile of failure stored in: /home/liji/data/fpga/exer/dma/dma-single-fifo/software/dma/build/tmp/work/zynq_generic-xilinx-linux-gnueabi/linux-xlnx/5.4+gitAUTOINC+22b71b4162-r0/devtooltmp-3zs10x1y/temp/log.do_fetch.30281 NOTE: Tasks Summary: Attempted 14 tasks of which 13 didn't need to be rerun and 1 failed. ERROR: Extracting source for linux-xlnx failed ERROR: Failed to config kernel.

Should I download something else (linux-xlnx.git.tar.gz?) as well to make petalinux to work offline completely?

0 Kudos
1 Solution

Accepted Solutions
Highlighted
Xilinx Employee
Xilinx Employee
128 Views
Registered: ‎05-15-2018

Hi @azzzztec 

The instructions on correctly setting up the sstate-cache in Petalinux can be found at:

https://xilinx-wiki.atlassian.net/wiki/spaces/A/pages/18842475/PetaLinux+Yocto+Tips#PetaLinuxYoctoTips-HowtoreducebuildtimeusingSSTATECACHE

The sstate-cache archive and the downloads archive are available for download as two separate entities via https://www.xilinx.com/support/download/index.html/content/xilinx/en/downloadNav/embedded-design-tools/2020-1.html

---------------------------------------------------------------------------
Don’t forget to Reply, Kudo, and Accept as Solution.
---------------------------------------------------------------------------

View solution in original post

0 Kudos
3 Replies
Highlighted
Visitor
Visitor
138 Views
Registered: ‎09-17-2020

Anyone had/didn't have this problem?

0 Kudos
Highlighted
Xilinx Employee
Xilinx Employee
129 Views
Registered: ‎05-15-2018

Hi @azzzztec 

The instructions on correctly setting up the sstate-cache in Petalinux can be found at:

https://xilinx-wiki.atlassian.net/wiki/spaces/A/pages/18842475/PetaLinux+Yocto+Tips#PetaLinuxYoctoTips-HowtoreducebuildtimeusingSSTATECACHE

The sstate-cache archive and the downloads archive are available for download as two separate entities via https://www.xilinx.com/support/download/index.html/content/xilinx/en/downloadNav/embedded-design-tools/2020-1.html

---------------------------------------------------------------------------
Don’t forget to Reply, Kudo, and Accept as Solution.
---------------------------------------------------------------------------

View solution in original post

0 Kudos
Highlighted
Visitor
Visitor
97 Views
Registered: ‎09-17-2020

OK, so downloads is a file to be downloaded. That makes sense and it should solve my problem. Thank you.

0 Kudos