Open gunthervermeir opened 9 years ago
that depends on your system setup and is not related to RE:Load Pro as such, for example on Debian/Ubuntu user would need to be a member of dialout group to use serial ports without sudo.
@raivisr I don't think that's true - sudo will be necessary to install Python modules and dmesg is a way to get the serial port ID on any distro.
@Arachnid not quite true about python modules installation, you can install stuff into your home as well http://legacy.python.org/dev/peps/pep-0370/. And some switch could be added to cyflash to output available ports for convenience.
I happened to have written a blog entry on this topic. The article needs a bit more work, but I am running out of time for today and didn't want to wait publishing my findings. Feedback is welcomed. http://blog.linformatronics.nl/221/linux/using-reload-pro-on-ubuntu-linux Also in my git repository there is a simple (but only tested on my PC!) tool to automatically find the device file: http://git.linformatronics.nl/gitweb/?p=reLoadPro;a=summary
A tips: It's not necessary to install cyflash, you can run it from the source-folder. I prefer not installing thing a use just once or twice (unless it's installed as a deb). To get the latest cyflash from github and run it (on linux):
git clone https://github.com/arachnidlabs/cyflash.git cyflash cd cyflash python -m cyflash --serial /dev/ttyUSB0 ../path/tofw.cyacd
cyflash needs sudo
$ sudo python -m pip install cyflash
download firmware (for example to /home/user/Downloads/reload/Reload Pro v1.9.cyacd )
-> connect Re:load Pro usb cable
to find out tty port :
$ dmesg
output [15561.315782] usb 2-7: Number of endpoints 2 [15561.315786] usb 2-7: Endpoint 1 MaxPacketSize 64 [15561.315790] usb 2-7: Endpoint 2 MaxPacketSize 64 [15561.315794] usb 2-7: Setting MaxPacketSize 64 [15561.316072] usb 2-7: FTDI USB Serial Device converter now attached to ttyUSB0 <<<--- this is the serial
issue:
$ sudo python -m cyflash --serial /dev/ttyUSB0 "/home/user/Downloads/reload/Reload Pro v1.9.cyacd"
with /dev/ttyUSB0 the value of dmesg output