epsolar-tracer icon indicating copy to clipboard operation
epsolar-tracer copied to clipboard

Why do you have to reinstall these drivers after each reboot???

Open pmitham opened this issue 7 years ago • 5 comments

I've gone through the install per the readme.txt file but when I re boot the pi I have to re run the make and insmod commands each time in order for the pi to see theses USB devices. There must be a step missing in the instructions!! help!

pmitham avatar Feb 08 '18 01:02 pmitham

What I had to do to get over this problem. I used these commands on my raspberry pi. from https://www.computerhope.com/unix/modprobe.htm#examples

Watchout for the `` grave accent marks around the uname -r command! Can't display it correctly here because that is also the code delimiter on this website. You will have to know where your "xr_usb_serial_common.ko" file is: Mine was, ~/projects/epsolar-tracer/xr_usb_serial_common-1a/xr_usb_serial_common.ko

Then you will use the module name which should be "xr_usb_serial_common" in the modprobe command. Do not use "xr_usb_serial_common.ko"!

This made my /dev/ttyXRUSB0 persistent across the boots and sessions.

I also edited /etc/modules file adding to the last line of that file "xr_usb_serial_common". Not sure if I have to do that or not. The "modprobe" command may have added that? But if not add it so that the module gets loaded at boot.

jhulstedt avatar Mar 03 '18 17:03 jhulstedt

I wrote and installed a service file to do everything and made sure the service runs before any other Epever related services.

jimlynnjulian avatar Sep 24 '18 17:09 jimlynnjulian

[Unit] Description=Epever Exar driver install Service After=multi-user.target hwclock.service

[Service] Type=oneshot ExecStart=/bin/bash /home/pi/epdriver.sh

[Install] WantedBy=multi-user.target

jimlynnjulian avatar Sep 24 '18 17:09 jimlynnjulian

Run this after writing the bash script that follows, "epdriver.sh" Both the bash script and the driver module are in /home/pi The service is in /lib/systemd/system

sudo systemctl enable epdriver.service sudo systemctl start epdriver.service

jimlynnjulian avatar Sep 24 '18 17:09 jimlynnjulian

#!/bin/bash sudo rmmod cdc-acm sudo modprobe -r cdc-acm sudo insmod /home/pi/xr_usb_serial_common.ko

jimlynnjulian avatar Sep 24 '18 17:09 jimlynnjulian

Closing as stale

kasbert avatar Mar 20 '23 17:03 kasbert