Welcome, Guest. Please login or register.

Username: Password:
Pages: [1] 2

Author Topic: AstroEQuploader Linux / Ubuntu problem  (Read 5470 times)

gehelem

  • Full Member
  • ***
  • Posts: 30
    • View Profile
    • DIY CCD Camera
AstroEQuploader Linux / Ubuntu problem
« on: August 29, 2017, 22:42:13 »

Hi
First of all, thank you for this great piece of hardware & software !

I'm using linux, but i can't use AstroEQUploader to upload firmware in my arduino.
here is what i get :
Code: [Select]
gilles@portabana:~$ astroequploader
Java version 1.8.0 found.
Starting AstroEQ Config Utility, V3.7.2
Time is 23:30:50
OS: Linux. JRE Version: 1.8.0_131. JRE Arch: amd64
Creating Window. Setting DPI Scaling to 1
Setting Window Size to: 510 x 520
Setting Frame Rate
Creating Executioner thread
Connecting to Clipboard
Current Dir: /usr/share/doc/astroequploader/
Loading ControlP5
ControlP5 2.2.6 infos, comments, questions at http://www.sojamo.de/libraries/controlP5
Building GUI
x=0, y=104, width=510, height=352
buildBeginScreen --- ID is: begin
buildVersionCheckScreen --- ID is: versionCheck
buildFirmwareFetchScreen --- ID is: firmwareFetch
buildEEPROMWriterScreen --- ID is: EEPROMWriter
buildCheckEEPROMScreen --- ID is: checkEEPROM
buildRecoverEEPROMScreen --- ID is: recoverEEPROM
buildEnterConfigScreen --- ID is: enterConfig
buildProgramConfigScreen --- ID is: programConfig
buildDownloadFirmwareScreen --- ID is: downloadFirmware
buildTestFirmwareScreen --- ID is: testFirmware
buildFinishedScreen --- ID is: finished
Board Version: AstroEQV4-DIYBoard(includingKits)
Matched to firmware file: AstroEQV4-DIYBoard(includingKits).hex
Initialising Serial Ports
/dev/ttyACM0 /dev/ttyS0 /dev/ttyS1 /dev/ttyS2 /dev/ttyS3 /dev/ttyS4 /dev/ttyS5 /dev/ttyS6 /dev/ttyS7 /dev/ttyS8 /dev/ttyS9 /dev/ttyS10 /dev/ttyS11 /dev/ttyS12 /dev/ttyS13 /dev/ttyS14 /dev/ttyS15 /dev/ttyS16 /dev/ttyS17 /dev/ttyS18 /dev/ttyS19 /dev/ttyS20 /dev/ttyS21 /dev/ttyS22 /dev/ttyS23 /dev/ttyS24 /dev/ttyS25 /dev/ttyS26 /dev/ttyS27 /dev/ttyS28 /dev/ttyS29 /dev/ttyS30 /dev/ttyS31
Matched to firmware file: AstroEQV4-DIYBoard(includingKits).hex
IB:520 JFH:549 JFHO:39
JFW:512 JFWO:12
COM Port: /dev/ttyACM0
Board Version: AstroEQArduinoMega2560
Matched to firmware file: AstroEQArduinoMega2560.hex
AstroEQArduinoMega2560
/usr/share/doc/astroequploader/avrdude -C/usr/share/doc/astroequploader/avrdude.conf -v -v -v -patmega2560 -cwiring -b115200 -D -P/dev/ttyACM0 -Uflash:w:/usr/share/doc/astroequploader/hex/AstroEQArduinoMega2560.hex:i java.io.IOException: Cannot run program "/usr/share/doc/astroequploader/avrdude": error=2, Aucun fichier ou dossier de ce type
at java.lang.ProcessBuilder.start(ProcessBuilder.java:1048)
at java.lang.Runtime.exec(Runtime.java:620)
at java.lang.Runtime.exec(Runtime.java:485)
at AstroEQUploader$ExecutableInterface.run(AstroEQUploader.java:1339)
at java.lang.Thread.run(Thread.java:748)
Caused by: java.io.IOException: error=2, Aucun fichier ou dossier de ce type
at java.lang.UNIXProcess.forkAndExec(Native Method)
at java.lang.UNIXProcess.<init>(UNIXProcess.java:247)
at java.lang.ProcessImpl.start(ProcessImpl.java:134)
at java.lang.ProcessBuilder.start(ProcessBuilder.java:1029)
... 4 more
running = false
complete = true
error = false

Looking at this log, you'll see avrdude is not found :
Code: [Select]
/usr/share/doc/astroequploader/avrdude -C/usr/share/doc/astroequploader/avrdude.conf -v -v -v -patmega2560 -cwiring -b115200 -D -P/dev/ttyACM0 -Uflash:w:/usr/share/doc/astroequploader/hex/AstroEQArduinoMega2560.hex:i java.io.IOException: Cannot run program "/usr/share/doc/astroequploader/avrdude": error=2, Aucun fichier ou dossier de ce type
But everything seems to be there :
Code: [Select]
gilles@portabana:~$ ll /usr/share/doc/astroequploader/*
-rwxr-xr-x 1 root   root   307760 oct.  13  2013 /usr/share/doc/astroequploader/avrdude*
-rw-r--r-- 1 root   root   554770 mars  30  2013 /usr/share/doc/astroequploader/avrdude.conf
-rw-r--r-- 1 root   root    19242 mai   27  2013 /usr/share/doc/astroequploader/icon.ico

/usr/share/doc/astroequploader/hex:
total 156
drwxrwxrwx 2 gilles gilles  4096 août  29 23:30 ./
drwxrwxrwx 4 root   root    4096 août  29 23:30 ../
-rw-r--r-- 1 root   root   35367 juil. 18 21:43 AstroEQArduinoMega1280.hex
-rw-r--r-- 1 root   root   35400 juil. 18 21:38 AstroEQArduinoMega2560.hex
-rw-r--r-- 1 root   root   33637 juil. 18 21:43 AstroEQV4-DIYBoard(includingKits).hex
-rw-r--r-- 1 root   root   33637 juil. 18 21:43 AstroEQV4-EQ5Board.hex
-rw-r--r-- 1 root   root     148 juil. 20 00:11 versions.txt

/usr/share/doc/astroequploader/mounts:
total 52
drwxrwxrwx 2 gilles gilles 4096 août  29 23:30 ./
drwxrwxrwx 4 root   root   4096 août  29 23:30 ../
-rwxrwxrwx 1 gilles gilles  177 août  23 20:46 a4988 av ustep.conf*
-rwxrwxrwx 1 gilles gilles  176 août  23 20:47 a4988 sa ustep.conf*
-rwxrwxrwx 1 gilles gilles  179 août  29 22:35 drv8825 av ustep.conf*
-rw-r--r-- 1 root   root    141 juin   3  2014 EQ3-2-Skywatcher-Type1.conf
-rw-r--r-- 1 root   root    143 juin   3  2014 EQ3-2-Skywatcher-Type2.conf
-rw-r--r-- 1 root   root    157 juin  26  2014 EQ3-2-Synscan-Motors.conf
-rw-r--r-- 1 root   root    159 mai   23  2015 EQ5-Custom-Pulley.conf
-rw-r--r-- 1 root   root    144 juin   3  2014 EQ5-Skywatcher.conf
-rw-r--r-- 1 root   root    159 mai   23  2015 EQ6-Synscan.conf
-rw-r--r-- 1 root   root    161 mai   23  2015 HEQ5-Syntrek.conf
-rwxrwxrwx 1 gilles gilles  177 août  21 21:59 perso.conf*

Am i missing something ?

I can use Arduino IDE to upload firmware, but it would be nice to do everything with this utility

Thank you for your help
Gilles.

Logged

TCWORLD

  • Administrator
  • *****
  • Posts: 809
    • View Profile
    • AstroEQ
Re: AstroEQuploader Linux / Ubuntu problem
« Reply #1 on: August 30, 2017, 10:55:13 »

Hi Gilles,

There are several issues with the Linux version that I am trying to solve.

However I've not come across the issue you are having. I wonder if it is because you are using x64 Linux (I've not tried it before on the 64 bit version). I'll try to find a solution when I am back from holiday.

Kind Regards,
Tom.
Logged
Tom Carpenter (AstroEQ)

gehelem

  • Full Member
  • ***
  • Posts: 30
    • View Profile
    • DIY CCD Camera
Re: AstroEQuploader Linux / Ubuntu problem
« Reply #2 on: August 30, 2017, 16:49:38 »

(...)I wonder if it is because you are using x64 Linux (I've not tried it before on the 64 bit version) (...)
Ok, thank you for your answer. I'll try to play on other platforms.
(...) when I am back from holiday.
Have a good time !

Gilles.
Logged

TCWORLD

  • Administrator
  • *****
  • Posts: 809
    • View Profile
    • AstroEQ
Re: AstroEQuploader Linux / Ubuntu problem
« Reply #3 on: August 30, 2017, 19:11:40 »

You could try downloading the x64 variant of avrdude and replacing the one that the AstroEQ .deb installed.

I wonder if avrdude exists as apt package ( edit: yes it does https://packages.ubuntu.com/search?keywords=avrdude) - if so I'll change the utility to use it as a dependency rather than packaging up. I already did that with the JSSC binaries for exactly this reason but seemingly forgot about avrdude.
Logged
Tom Carpenter (AstroEQ)

gehelem

  • Full Member
  • ***
  • Posts: 30
    • View Profile
    • DIY CCD Camera
Re: AstroEQuploader Linux / Ubuntu problem
« Reply #4 on: August 30, 2017, 22:18:13 »

yes, i did install avrdude ubuntu package already.
So i've made a symbolinc link to executable, it went further, but avrdude claims a bad avrdude.conf file...
>  i've copied arduino's one :
Code: [Select]
gilles@portabana:/usr/share/doc/astroequploader$ ll
total 1432
drwxrwxrwx    4 root   root     4096 août  30 23:13 ./
drwxr-xr-x 2330 root   root    77824 août  29 23:26 ../
lrwxrwxrwx    1 gilles gilles     16 août  30 22:59 avrdude -> /usr/bin/avrdude*
-rw-r--r--    1 gilles gilles 481473 janv. 17  2017 avrdude.conf
-rw-r--r--    1 root   root   554770 mars  30  2013 avrdude.confold
-rwxr-xr-x    1 root   root   307760 oct.  13  2013 avrdudeold*
drwxrwxrwx    2 gilles gilles   4096 août  29 23:30 hex/
-rw-r--r--    1 root   root    19242 mai   27  2013 icon.ico
drwxrwxrwx    2 gilles gilles   4096 août  29 23:30 mounts/
And.... it works !

Thank you

Logged

TCWORLD

  • Administrator
  • *****
  • Posts: 809
    • View Profile
    • AstroEQ
Re: AstroEQuploader Linux / Ubuntu problem
« Reply #5 on: August 31, 2017, 18:24:31 »

Yeah, they changed the style of the conf file from one version to another so my version may not match the one from that package.

Not such a problem. If I make the config utility search for the avrdude package executable and config files rather than distributing them that should solve that problem nicely. I'll add it to my list of things to do.
Logged
Tom Carpenter (AstroEQ)

gehelem

  • Full Member
  • ***
  • Posts: 30
    • View Profile
    • DIY CCD Camera
Re: AstroEQuploader Linux / Ubuntu problem
« Reply #6 on: August 31, 2017, 20:46:26 »

thank you.
I don't seem to use "issues" function of github : i can submit this one if you prefer...
edit : oh yes you do...
Do you want me to submit on github ?
« Last Edit: August 31, 2017, 20:50:03 by gehelem »
Logged

TCWORLD

  • Administrator
  • *****
  • Posts: 809
    • View Profile
    • AstroEQ
Re: AstroEQuploader Linux / Ubuntu problem
« Reply #7 on: September 01, 2017, 19:28:38 »

You can submit a github issue if you want, I don't mind either way.
Logged
Tom Carpenter (AstroEQ)

gehelem

  • Full Member
  • ***
  • Posts: 30
    • View Profile
    • DIY CCD Camera
Re: AstroEQuploader Linux / Ubuntu problem
« Reply #8 on: September 02, 2017, 08:34:16 »

You can submit a github issue if you want, I don't mind either way.
Ok, done for the record.
Thanks again for your tremendous work
Logged

TCWORLD

  • Administrator
  • *****
  • Posts: 809
    • View Profile
    • AstroEQ
Re: AstroEQuploader Linux / Ubuntu problem
« Reply #9 on: September 02, 2017, 21:40:18 »

Should be fixed now.

I've also added the download link to the AstroEQ downloads page.

Let me know if you still face any problems.
Logged
Tom Carpenter (AstroEQ)

gehelem

  • Full Member
  • ***
  • Posts: 30
    • View Profile
    • DIY CCD Camera
Re: AstroEQuploader Linux / Ubuntu problem
« Reply #10 on: September 03, 2017, 12:01:23 »

Thank you

It's okay, but there is just a huge log output :
Code: [Select]
(...)
JFW:512 JFWO:0
JFW:512 JFWO:0
JFW:512 JFWO:0
JFW:512 JFWO:0
JFW:512 JFWO:0
(...)
But avrdude is working, see log attached
Logged

TCWORLD

  • Administrator
  • *****
  • Posts: 809
    • View Profile
    • AstroEQ
Re: AstroEQuploader Linux / Ubuntu problem
« Reply #11 on: September 03, 2017, 12:14:49 »

Interesting. Was it doing that before?
Logged
Tom Carpenter (AstroEQ)

gehelem

  • Full Member
  • ***
  • Posts: 30
    • View Profile
    • DIY CCD Camera
Re: AstroEQuploader Linux / Ubuntu problem
« Reply #12 on: September 03, 2017, 12:18:36 »

No it wasn't
Logged

TCWORLD

  • Administrator
  • *****
  • Posts: 809
    • View Profile
    • AstroEQ
Re: AstroEQuploader Linux / Ubuntu problem
« Reply #13 on: September 03, 2017, 12:20:34 »

Could you try replacing /usr/share/astroequploader/AstroEQUploader.jar with the attached one.

<Note: remove the .txt extension, the forum blocks .jar extensions, so I've appended the .txt>
Logged
Tom Carpenter (AstroEQ)

gehelem

  • Full Member
  • ***
  • Posts: 30
    • View Profile
    • DIY CCD Camera
Re: AstroEQuploader Linux / Ubuntu problem
« Reply #14 on: September 03, 2017, 13:10:28 »

okay, i have no more this ouput.

I've noticed that after writing firmware, it's freezing during 10/20 seconds before to read EEPROM
(can't clic on "next")
I don't think i had this before.
But everything goes well after.

Thank you
Logged
Pages: [1] 2