original intention
The Petalinux2021.2 tool is relatively new, and it is difficult to find a solution to the problems used in the process of use on the Internet, resulting in a problem being stuck for several days, or even directly from getting started to giving up. I hope that sharing the problems I have encountered can bring little value to the majority of colleagues.
1. sstate-cache problem
problem record
ERROR: btrfs-tools-5.7-ro do populate sysroot setscene: Fetcher failure: Unable to find fi
lefile://7a/af/sstate:btrfs-tools: cortexa72-cortexa53-xilinx-linux:5.7:r0:cortexa72-corte
xa53:3:7aaff928809b165201dad6ed7f2d76e4bb8c4a9b2678184c14049adfefc880a1 populate sysroot.tgz.siginfo;downloadfilename=7a/af/sstate:btrfs-tools:cortexa72-cortexa53-xilinx-linux:5.7
r0:cortexa72cortexa53:3:7aaff928809b165201dad6ed7f2d76e4bb8C4a9b2678184c14049adfefc880a1populate sysroot.tgz.siginfo anywhere. The paths that were searched were:
/<工程路径>/build/sstate-cache
/<工程路径>/build/sstate-cache
problem causes
In the Petalinux2021.2 download address, the bottom "PetaLinux Tools sstate-cache Artifacts" states that sstate-cache is only needed when using Petalinux offline. However, due to the instability of the domestic network, during the compilation process of Petalinux, there may be a problem that the download of sstate-cache fails, which leads to the above error.
Solution
1. Download aarch64 sstate-cashe
2. Unzip the downloaded file in any directory
3. Run
petalinux-config
The configuration location is:
-> Yocto Settings->Local sstate feeds settings->local sstate feeds url
4. Enter the above decompression path into it
/<解压路径>/aarch64
5. Exit with an error, recompile the petalinux project, and the error disappears
ERROR: Failed to generate System hardware Kconfig file.
petalinux-config --get-hw-description
I get the following error when using the command
[INFO] Sourcing buildtools
INFO: Getting hardware description...
INFO: Renaming BDcanfddtu_800_wrapper.xsa to system.xsa
[INFO] Generating Kconfig for project
ERROR: Failed to generate <petalinux路径>/build/misc/config/Kconfig.syshw
ERROR: Failed to Kconfig project
ERROR: Failed to generate System hardware Kconfig file.
Check the cause of the error through the vim ./build/config.log command.
Enter in the terminal and sudo apt-get install libtinfo5
re-execute after installation.