-
Notifications
You must be signed in to change notification settings - Fork 0
General Project PetaLinux Yocto Tips
This is not intended to be a complete guide on PetaLinux or Yocto, but will offer some specific troubleshooting information for issues that frequently crop up in this project, or useful tips.
If you're having trouble where changes appear not to be propagating through (sometimes if your resources reference symlinks), you can clean only a single recipe rather than a whole project- this saves a lot of time.
petalinux-build -c <recipe name> -x distclean#TODO
For example:
sed: can't read /tmp/loki//work/x86_64-linux/attr-native/2.4.47-r0/recipe-sysroot-native/usr/bin/quilt: No such file or directoryThis is obviously an error that could be caused by many things, but more often than not with this project it is due to the specified TMPDIR for Yocto not existing, or being accidentally shared with another project.
It could also be because one is not specified at all in the machine.env file in the application layer- the whole process should really be made more robust anyway, with a better default than blank.
To fix this, ensure that you have set a temp directory in your machine.env, and that it is unique to your project.
If you are changing this, the autoconf needs to run again- you will need to cd into your project's loki directory and run make distclean before making your full project again.