vivado-on-silicon-mac icon indicating copy to clipboard operation
vivado-on-silicon-mac copied to clipboard

Bind mount does not provide the required permissions for the installer

Open davidchisnall opened this issue 1 year ago • 15 comments

The installer needs to be able to chown files in the working directory. This is not possible with a bind mount from the host. Copying files into the container in the first step of docker.sh avoids this problem.

davidchisnall avatar Nov 09 '23 09:11 davidchisnall

Hi! I'm facing this same issue. Can you better explain how to solve this issue please?

riccardilorenzo avatar Nov 11 '23 15:11 riccardilorenzo

I will try to write up what I did, but unfortunately I worked with a download (as recommended in the README) not a git clone, so it's going to take a while to figure out what I changed.

I ended up running the installer in graphical mode, but that also required fixing things because bind mounting the UNIX domain socket didn't work and I needed to use TCP.

For the Arty A7, the shipped version of xvcd didn't work either, but I have managed to patch that to make it work.

davidchisnall avatar Nov 11 '23 16:11 davidchisnall

Hi, I have the same problem. Can you please write how you fixed it?

DaryaGolovko avatar Nov 21 '23 16:11 DaryaGolovko

@DaryaGolovko If you take a look at my fork, I solved this issue by extracting and taking ownership of the files in an internal docker directory before moving them to the mountpoint

NelsonDane avatar Nov 29 '23 04:11 NelsonDane

@DaryaGolovko If you take a look at my fork, I solved this issue by extracting and taking ownership of the files in an internal docker directory before moving them to the mountpoint

That solved my problem as well !!

tachsin avatar Dec 07 '23 02:12 tachsin

Awesome, I created a PR with my changes

NelsonDane avatar Dec 21 '23 16:12 NelsonDane

OMG, it works. Be blessed !!! This fix should be added to the main branch and also mentioned in the description.

VladBara avatar Dec 28 '23 13:12 VladBara

@DaryaGolovko If you take a look at my fork, I solved this issue by extracting and taking ownership of the files in an internal docker directory before moving them to the mountpoint

doesnt worK:

errors: 1)ERROR - There was an error executing: [/bin/sh, -c, echo $TMPDIR]

2)ProcessBuilder.start() or Runtime.exec() in a java application Copyright (c) 1986-2022 Xilinx, Inc. All rights reserved. Copyright (c) 2022-2024 Advanced Micro Devices, Inc. All rights reserved. INFO - User has accepted the EULAs. ERROR - There is not enough disk space on /home/user/Xilinx to install.

Generating App icon ./install.sh:73: no matches found: Xilinx/Vivado/*/doc/images/vivado_logo.png Warning: not a valid file - skipping Warning: not a valid file - skipping Warning: not a valid file - skipping Warning: not a valid file - skipping Warning: not a valid file - skipping Warning: not a valid file - skipping Warning: not a valid file - skipping Warning: not a valid file - skipping Warning: not a valid file - skipping icon.iconset:Failed to generate ICNS. mv: rename icon.icns to Launch_Vivado.app/Contents/Resources/icon.icns: No such file or directory

mohay3069 avatar Jan 17 '24 21:01 mohay3069

It says you don't have enough disk space @mohay3069

NelsonDane avatar Jan 17 '24 21:01 NelsonDane

It says you don't have enough disk space @mohay3069 INFO - User has accepted the EULAs. ERROR - There is not enough disk space on /home/user/Xilinx to install.

Generating App icon ./install.sh:73: no matches found: Xilinx/Vivado/*/doc/images/vivado_logo.png Warning: not a valid file - skipping Warning: not a valid file - skipping Warning: not a valid file - skipping Warning: not a valid file - skipping Warning: not a valid file - skipping Warning: not a valid file - skipping Warning: not a valid file - skipping Warning: not a valid file - skipping Warning: not a valid file - skipping icon.iconset:Failed to generate ICNS. mv: rename icon.icns to Launch_Vivado.app/Contents/Resources/icon.icns: No such file or directory i have 100 gibabytes of space how much more do i need?

mohay3069 avatar Jan 17 '24 22:01 mohay3069

It says you don't have enough disk space @mohay3069

is this it?

is this it:{ "builder": { "gc": { "defaultKeepStorage": "20GB", "enabled": true } }, "experimental": false }

mohay3069 avatar Jan 17 '24 22:01 mohay3069

Isn't all data not within a bind mount lost anyway? How could you do an install to a directory in the container that is not a bind mount and have it be permanent?

ichi4096 avatar Mar 29 '24 20:03 ichi4096

No, a bind mount is a host directory that is mounted into the container. The scripts install into that directory. It is not ephemeral.

davidchisnall avatar Mar 29 '24 21:03 davidchisnall

Exactly, so you still need to install into the bind mound for the installation to be non-volatile.

ichi4096 avatar Mar 29 '24 21:03 ichi4096

I pulled @NelsonDane 's for but I still ge the same error... I already set the settings in docker to include both the /tmp and git repo folders... I get:

Drag and drop the installation binary into this terminal window and press Enter: 
path-to-bin/FPGAs_AdaptiveSoCs_Unified_2023.2_1013_2256_Lin64.bin 
Launching Docker container and installation script
docker: Error response from daemon: invalid mount config for type "bind": bind source path does not exist: /tmp/.X11-unix.
See 'docker run --help'.
Generating App icon
./install.sh:73: no matches found: Xilinx/Vivado/*/doc/images/vivado_logo.png
Warning:  not a valid file - skipping
Warning:  not a valid file - skipping
Warning:  not a valid file - skipping
Warning:  not a valid file - skipping
Warning:  not a valid file - skipping
Warning:  not a valid file - skipping
Warning:  not a valid file - skipping
Warning:  not a valid file - skipping
Warning:  not a valid file - skipping
icon.iconset:Failed to generate ICNS.
mv: rename icon.icns to Launch_Vivado.app/Contents/Resources/icon.icns: No such file or directory

sapertuz avatar Apr 15 '24 13:04 sapertuz

I've updated the scripts, addressing both the Vivado version and permissions issues. Please try them and open new issues if there are any further problems.

ichi4096 avatar Jul 28 '24 23:07 ichi4096