From c25af8825818dea525b9d22827a354f913d1149b Mon Sep 17 00:00:00 2001 From: ritt Date: Fri, 17 Dec 2021 15:19:12 +0100 Subject: [PATCH] Added 41-drs.rules and raspi.txt --- 41-drs.rules | 2 ++ raspi.txt | 55 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 57 insertions(+) create mode 100644 41-drs.rules create mode 100644 raspi.txt diff --git a/41-drs.rules b/41-drs.rules new file mode 100644 index 0000000..f8d89ad --- /dev/null +++ b/41-drs.rules @@ -0,0 +1,2 @@ +ATTRS{idVendor}=="04b4", ATTRS{idProduct}=="1175", SUBSYSTEMS=="usb", ACTION=="add", MODE="0666", GROUP="plugdev" + diff --git a/raspi.txt b/raspi.txt new file mode 100644 index 0000000..84d7ca1 --- /dev/null +++ b/raspi.txt @@ -0,0 +1,55 @@ +Installations notes for DRS software under Raspberry Pi +======================================================= +S. Ritt , Nov. 28th, 2012 + + +Prerequisites +------------- + +In order to run the DRS software, the libusb-1.0 package needs to be installed. +It can be compiled from the sources at http://www.libusb.org/wiki/libusb-1.0 or +directly installed via + +$ sudo apt-get install libusb-1.0.0-dev + +Next, the wxWidgets package is required. This requires first the GTK+ libraries: + +$ sudo apt-get install libgtk2.0-dev libtiff5.def libjpeg8-dev + +then the wxWidgets package can be downloaded and compiled: + +$ cd /usr/local +$ sudo wget http://prdownloads.sourceforge.net/wxwindows/wxGTK-2.8.12.tar.gz +$ mkdir wxGTK-2.8.12 +$ sudo chown pi:pi wxGTK-2.8.12 +$tar -xzvf wxGTK-2.8.12.tar.gz +$ cd wxGTK-2.8.12 +$ mkdir buildgdk +$ cd buildgdk +$ ../configure --with-gdk +$ make ( <-- will take 3+ hours) +$ sudo make install +$ sudo ldconfig + +Installation +------------ + +If all that works fine, the drscl, drs_exam and drsosc programs can be compiled +from the tar ball with a simple "make". This process takes about 15 minutes. If +you want to run the programs from a non-root account (such as under 'pi'), you +have to place a "udev" rule. Simply copy the rules file from the tar ball into +the system: + +$ sudo cp 41-drs.rules /etc/udev/rules.d/ + +and make sure the current user is a member of the “plugdev” group. This is usually +the case on Debian systems. On other Linux brands, you might have to adjust the +group setting in 41-drs.rules. + +When you connect the evaluation board to the Raspberry Pi, it immediately draws +about 500 mA from the 5V power supply. Depending on the primary USB power supply +this might cause the Pi to crash. In that case you should either connect the +evaluation board to the pi before you turn on the power, or use an external +powered USB hub between the Pi and the Evaluation board. + +For a screen shot see here: http://www.psi.ch/drs/SoftwareDownloadEN/screenshot_pi.png