arachnidlabs / reload-pro

Schematics and code for the Re:load Pro
http://www.arachnidlabs.com/reload-pro/
Apache License 2.0
98 stars 32 forks source link

linux firmware update (ubuntu/linux mint etc) steps #57

Open gunthervermeir opened 9 years ago

gunthervermeir commented 9 years ago

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

raivisr commented 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.

Arachnid commented 9 years ago

@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.

raivisr commented 9 years ago

@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.

jippiegithub commented 9 years ago

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

malind commented 9 years ago

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