cd /home/petalinux source ./settings.sh after that, it can show $PETALINUX and petalinux-create could go.