Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Trying to install on a Flash drive wit FAT fs : Installation has failed with exit code 128 #187

Open
georgewicks opened this issue May 29, 2023 · 3 comments

Comments

@georgewicks
Copy link

Used latest online installer

Slightly different error from the install on my setup:
Setup Log 2023-05-29 #001.txt

@georgik
Copy link
Collaborator

georgik commented May 30, 2023

@georgewicks Thank you for reporting the error.

Installing on flash drive is interesting option. Yet from performance point of view we would recommend to deploy the installation on SSD drive.

The problem might be connected with FAT filesystem and git meta atributes. Which filesystem do you have on flash drive? NTFS or FAT?

As a workaround you can try Offline installer, which does not perform the problematic git operation.
https://github.com/espressif/idf-installer/releases

@georgik georgik changed the title Trying to install on a Flash drive : Installation has failed with exit code 128 Trying to install on a Flash drive wit FAT fs : Installation has failed with exit code 128 May 30, 2023
@georgik
Copy link
Collaborator

georgik commented May 30, 2023

The problem seems to be caused by "xcopy" which is not transferring .git to FAT-fsi n the case of Online installer when the repo is downloaded as ZIP instead of cloning, which is the situation for the release version.

In the case of Offline installer, we're changing attributes of some directories, so the Windows does not have a problem with it using attrib command. This approach works well: https://github.com/espressif/idf-installer/blob/main/Build-Installer.ps1#L254

One possible correction would be to include this change also after extracting ZIP file.

We can also confirm that using Offline installer is a working solution even for FAT filesystem.

@georgik georgik added this to the 2.22 milestone May 30, 2023
@georgik
Copy link
Collaborator

georgik commented Jul 20, 2023

The attempt to remove xcopy from the installer failed. The main reason is that 7zip is not able to skip top level directory when extracting archive. It will require different extraction mechanism, so that ESP-IDF is stored in correct location.
Moving to 2.23

@georgik georgik modified the milestones: 2.22, 2.23 Jul 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants