Command '['git', 'describe', '--always', '--tags', '--match=*fw*', '--dirty=*']' returned non-zero exit status 128

When I compile, I’m getting the following error:

fatal: not a git repository (or any of the parent directories): .git
Command ‘[‘git’, ‘describe’, ‘–always’, ‘–tags’, ‘–match=fw’, ‘–dirty=*’]’ returned non-zero exit status 128.
Firmware version 0.0.0-dev ([unknown version])

Could you please support me on fixing this issue…

The firmware build script is trying to use Git to determine its version, but you are not using Git…
As a hack to make it work, you could try git init in the top directory, but you should really be using version control synced with the main repo, i.e. you should have used ‘git clone’ to download the firmware in the first place.

1 Like

@towen thank you very much. It worked.

2 Likes

If I don’t install git, can I compile the firmware? Due to the problem of network, we can’t use git directly. Best wishes!

Yes, but the firmware version recorded in the firmware will be 0.0.0-dev.