Browse Source

Rename reboot and allow installation

Matthias Vogelgesang 9 years ago
parent
commit
5ab078226a
3 changed files with 7 additions and 3 deletions
  1. 2 0
      Makefile
  2. 4 2
      README.md
  3. 1 1
      reload.sh

+ 2 - 0
Makefile

@@ -6,9 +6,11 @@ bindir ?= $(exec_prefix)/bin
 .PHONY: install
 
 install:
+	install -D -m 755 reload.sh $(bindir)
 	install -D -m 755 reset.sh $(bindir)
 	install -D -m 755 status.sh $(bindir)
 
 uninstall:
+	rm -f $(bindir)/reload.sh
 	rm -f $(bindir)/reset.sh
 	rm -f $(bindir)/status.sh

+ 4 - 2
README.md

@@ -1,5 +1,7 @@
 ### Camera scripts
 
-Install with `make install` or `prefix=/usr make install`.
+Install with `make install` or `prefix=/usr make install`. Use as follows:
 
-Usage: `reset.sh --dma --logic -cmosis`.
+    $ reload.sh         # unload and reload driver
+    $ reset.sh --all    # set up registers
+    $ status.sh

+ 1 - 1
instead_of_reboot.sh → reload.sh

@@ -6,7 +6,7 @@ if [ -z "$device" ]; then
     echo 1 > /sys/bus/pci/rescan
     exit
 else
-    echo "Xilin is located at: " $device
+    echo "Xilinx is located at: " $device
 fi
 echo "remove devices"
 echo  1 > /sys/bus/pci/devices/0000\:${device:0:2}\:${device:3:4}/remove