Firmware updater

I have Server Pro installed with a license.  Its running on ubuntu. Everything working fine.  Now I would like to update my firmware for some new stepsticks.  I have it compiled with vscode firmware.hex

I click upload and get the following:

Uploading firmware binary ...
/usr/local/Repetier-Server/modules/firmware/bin/avrdude -C/usr/local/Repetier-Server/modules/firmware/bin/avrdude.conf -patmega2560 -cwiring -P/dev/ttyUSB0 -b115200 -D -Uflash:w:/var/lib/Repetier-Server/tmp/tmplua1.hex:i
/usr/local/Repetier-Server/modules/firmware/bin/avrdude: line 4: /usr/local/Repetier-Server/modules/firmware/bin/avrdude_bin: No such file or directoryUpload finished
Reactivating printer connection ...
Firmware upload finished.

I dont really know, but it seems like its not seeing avrdude.  I look where avrdude is installed on the server see below:

dad@repetier-server:~$ dpkg -L avrdude
/.
/etc
/etc/avrdude.conf
/lib
/lib/udev
/lib/udev/rules.d
/lib/udev/rules.d/60-avrdude.rules
/usr
/usr/bin
/usr/bin/avrdude
/usr/share
/usr/share/doc
/usr/share/doc/avrdude
/usr/share/doc/avrdude/AUTHORS
/usr/share/doc/avrdude/ChangeLog-2001.gz
/usr/share/doc/avrdude/ChangeLog-2002.gz
/usr/share/doc/avrdude/ChangeLog-2003.gz
/usr/share/doc/avrdude/ChangeLog-2004-2006.gz
/usr/share/doc/avrdude/ChangeLog-2007.gz
/usr/share/doc/avrdude/ChangeLog-2008.gz
/usr/share/doc/avrdude/ChangeLog-2009.gz
/usr/share/doc/avrdude/ChangeLog-2010.gz
/usr/share/doc/avrdude/ChangeLog-2011.gz
/usr/share/doc/avrdude/ChangeLog-2012.gz
/usr/share/doc/avrdude/ChangeLog-2013.gz
/usr/share/doc/avrdude/NEWS.gz
/usr/share/doc/avrdude/README.Debian
/usr/share/doc/avrdude/changelog.Debian.gz
/usr/share/doc/avrdude/copyright
/usr/share/man
/usr/share/man/man1
/usr/share/man/man1/avrdude.1.gz


Please how do I get firmware to flash to my machines?

Thanks

Comments

  • Which server version are you using? Inter 64 bit?
    avrdude is bundled in server and it is starting
    /usr/local/Repetier-Server/modules/firmware/bin/avrdude

    Can you call it without arguments in the terminal?

    The strange part is the message from avrdude
    line 4: /usr/local/Repetier-Server/modules/firmware/bin/avrdude_bin: No such file or directory

    I checked it and it is a binary not a source so there is no line, but can of course come from compilation. But there is no avrdude_bin executeable and there never was one. Even in the package of ubuntu it does not exist.

    You can replace the avrdude in server by the ubuntu version with
    sudo cp /usr/bin/avrdude /usr/local/Repetier-Server/modules/firmware/bin/avrdude

    in case it is corrupt.
  • Im printing at the moment, but when its done, in about an hour, I will backup /usr/bin/avrdude then copy the one from /usr/local/Repetier-Server/modules/firmware/bin/

    The version of Repetier is most recent version.  Server Pro 0.93.1

    yes I can call it from command line

    dad@repetier-server:~$ avrdude
    Usage: avrdude [options]
    Options:
      -p <partno>                Required. Specify AVR device.
      -b <baudrate>              Override RS-232 baud rate.
      -B <bitclock>              Specify JTAG/STK500v2 bit clock period (us).
      -C <config-file>           Specify location of configuration file.
      -c <programmer>            Specify programmer type.
      -D                         Disable auto erase for flash memory
      -i <delay>                 ISP Clock Delay [in microseconds]
      -P <port>                  Specify connection port.
      -F                         Override invalid signature check.
      -e                         Perform a chip erase.
      -O                         Perform RC oscillator calibration (see AVR053).
      -U <memtype>:r|w|v:<filename>[:format]
                                 Memory operation specification.
                                 Multiple -U options are allowed, each request
                                 is performed in the order specified.
      -n                         Do not write anything to the device.
      -V                         Do not verify.
      -u                         Disable safemode, default when running from a script.
      -s                         Silent safemode operation, will not ask you if
                                 fuses should be changed back.
      -t                         Enter terminal mode.
      -E <exitspec>[,<exitspec>] List programmer exit specifications.
      -x <extended_param>        Pass <extended_param> to programmer.
      -y                         Count # erase cycles in EEPROM.
      -Y <number>                Initialize erase cycle # in EEPROM.
      -v                         Verbose output. -v -v for more.
      -q                         Quell progress output. -q -q for less.
      -l logfile                 Use logfile rather than stderr for diagnostics.
      -?                         Display this usage.

    it is a 32bit processor.  I installed 16.04 and upgraded to 18.04

    dad@repetier-server:~$ uname -a
    Linux repetier-server 4.15.0-96-generic #97-Ubuntu SMP Wed Apr 1 03:02:00 UTC 2020 i686 athlon i686 GNU/Linux
    dad@repetier-server:~$ lsb_release -a
    No LSB modules are available.
    Distributor ID: Ubuntu
    Description:    Ubuntu 18.04.4 LTS
    Release:        18.04
    Codename:       bionic

    PS...

    There is a button on the dashboard that looks like it will change from temperature views to webcam views, but it does nothing.  Stays on temperatures.  Is this broken or has it ever worked?  

    Thanks for your help
  • The PS I put in last post about webcams still stands, but copying the file did the trick.  Thanks.  

    Uploading firmware binary ...
    Stopping printer connection
    /usr/local/Repetier-Server/modules/firmware/bin/avrdude -C/usr/local/Repetier-Server/modules/firmware/bin/avrdude.conf -patmega2560 -cwiring -P/dev/ttyUSB0 -b115200 -D -Uflash:w:/var/lib/Repetier-Server/tmp/tmplua2.hex:i
    avrdude: AVR device initialized and ready to accept instructionsReading | ################################################## | 100% 0.02savrdude: Device signature = 0x1e9801 (probably m2560)avrdude: reading input file "/var/lib/Repetier-Server/tmp/tmplua2.hex"avrdude: writing flash (139184 bytes):Writing | ################################################## | 100% 21.86savrdude: 139184 bytes of flash writtenavrdude: verifying flash memory against /var/lib/Repetier-Server/tmp/tmplua2.hex:avrdude: load data flash data from input file /var/lib/Repetier-Server/tmp/tmplua2.hex:avrdude: input file /var/lib/Repetier-Server/tmp/tmplua2.hex contains 139184 bytesavrdude: reading on-chip flash data:Reading | ################################################## | 100% 16.94savrdude: verifying ...avrdude: 139184 bytes of flash verifiedavrdude done.  Thank you.Upload finished
    Reactivating printer connection ...
    Firmware upload finished.
  • Is it 32 bit intel/amd processor? Not many around so 32 bit is normally an arm processor which is why I ask.
    Guess it is a problem with dynamically linked libraries that do not work any more. Will see if I can replace it with a static version.
  • Yes. Intel 32bit. The computer is old. Running linux server with only repetier server, and its requirements. Plenty enough horsepower for that.

    What about webcams? I searched around a bit, and that does seem to have broken in an update.
  • If you want the improved webcam support you can configure it like this:
    https://www.repetier-server.com/setting-webcam-repetier-server-linux/

    Or use any other solution and enter image/mjpg url by hand.
  • I already have the webcams going. I'm talking about the dashboard icon that switches from temps to cams.
  • Ok, that is defect at the moment and fixed in next release.
Sign In or Register to comment.