mirror of
https://github.com/LIV2/ise-docker.git
synced 2025-12-05 22:42:44 +00:00
Add dennisfen/xilinx-usb-driver and fixup usb passthrough of run-docker script
This commit is contained in:
parent
944f6f6b4e
commit
52a758c0d5
11
Dockerfile
11
Dockerfile
@ -38,6 +38,17 @@ RUN rm -rf /tmp/*
|
||||
RUN chmod 777 /tmp/
|
||||
|
||||
RUN adduser --disabled-password --gecos '' ise
|
||||
|
||||
#setup libusb driver
|
||||
RUN apt -y install libusb-dev gcc make git fxload && \
|
||||
cd /opt && \
|
||||
git clone https://github.com/dennisfen/xilinx-usb-driver.git && \
|
||||
cd xilinx-usb-driver && \
|
||||
make && \
|
||||
echo ise: | chpasswd -e && \
|
||||
mkdir -p /etc/hotplug/usb/xusbdfwu.fw/ && cp /opt/Xilinx/14.7/ISE_DS/ISE/bin/lin64/*.hex /etc/hotplug/usb/xusbdfwu.fw/ && \
|
||||
echo alias impact=\'LD_PRELOAD=/opt/xilinx-usb-driver/libusb-driver.so impact\' >> /home/ise/.bashrc
|
||||
|
||||
USER ise
|
||||
WORKDIR /home/ise
|
||||
|
||||
|
||||
@ -2,6 +2,4 @@
|
||||
MY_PATH="$(dirname -- "${BASH_SOURCE[0]}")" # relative
|
||||
MY_PATH="$(cd -- "$MY_PATH" && pwd)"
|
||||
|
||||
docker run -ti --rm --net=host -e DISPLAY=$DISPLAY -v $MY_PATH/Xilinx.lic:/home/ise/.Xilinx/Xilinx.lic -v /tmp/.X11-unix:/tmp/.X11-unix -v /home/andrea:/mnt -v /home/andrea/.Xauthority:/home/ise/.Xauthority ise-14-7
|
||||
|
||||
# --device=/dev/bus/usb/003/009
|
||||
docker run -ti --rm --net=host -e DISPLAY=$DISPLAY -v /dev/bus:/dev/bus --device-cgroup-rule='c *:* rmw' -v $MY_PATH/Xilinx.lic:/home/ise/.Xilinx/Xilinx.lic -v /tmp/.X11-unix:/tmp/.X11-unix -v $HOME:/mnt -v $HOME/.Xauthority:/home/ise/.Xauthority ise-14-7
|
||||
Loading…
x
Reference in New Issue
Block a user