Code Monkey home page Code Monkey logo

Comments (7)

mkuf avatar mkuf commented on July 30, 2024

It seems like the mcu image is missing the sudo command, therefore dfu-util can't be executed.
This has been added in 67ffc9c

The klipper image is currently being re-built, this will take about an hour.
You can follow the progress here https://github.com/mkuf/prind/actions/runs/4083441350/jobs/7038967819
When the Action is completed, delete all klipper container images from your machine and try again.

-Markus

from prind.

trackhacs avatar trackhacs commented on July 30, 2024

that's was fast. :)

tried it, but now get the following:

WARN[0000] Found orphan containers ([prind-traefik-1 prind-init-1 prind-webcam-1 prind-fluidd-1 prind-moonraker-1 prind-klipper-1 prind-octoprint-1 prind-klipper-priv-1 prind-mainsail-1]) for this project. If you removed or renamed this service in your compose file, you can run this command with the --remove-orphans flag to clean it up. 
Loaded configuration '/opt/klipper/.config'
No change to configuration in '/opt/klipper/.config'
  Building hid-flash
/bin/sh: 1: pkg-config: not found
    hid-flash requires libusb-1.0, please install with:
    sudo apt-get install libusb-1.0
  Flashing out/klipper.bin to /dev/serial/by-id/usb-STMicroelectronics_MARLIN_BIGTREE_OCTOPUS_V1_CDC_in_FS_Mode_205634505931-if00
Entering bootloader on /dev/serial/by-id/usb-STMicroelectronics_MARLIN_BIGTREE_OCTOPUS_V1_CDC_in_FS_Mode_205634505931-if00
Device reconnect on /sys/devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.5/1-1.5:1.0
sudo dfu-util -p 1-1.5 -R -a 0 -s 0x8008000:leave -D out/klipper.bin

sudo: dfu-util: command not found

Failed to flash to /dev/serial/by-id/usb-STMicroelectronics_MARLIN_BIGTREE_OCTOPUS_V1_CDC_in_FS_Mode_205634505931-if00: Error running dfu-util

If the device is already in bootloader mode it can be flashed with the
following command:
  make flash FLASH_DEVICE=0483:df11
  OR
  make flash FLASH_DEVICE=1209:beba

If attempting to flash via 3.3V serial, then use:
  make serialflash FLASH_DEVICE=/dev/serial/by-id/usb-STMicroelectronics_MARLIN_BIGTREE_OCTOPUS_V1_CDC_in_FS_Mode_205634505931-if00

src/stm32/Makefile:97: recipe for target 'flash' failed
make: *** [flash] Error 255

from prind.

mkuf avatar mkuf commented on July 30, 2024

While accumulating the packages for the mcu image I referenced klippers install-ubuntu-18.04.sh script which is missing this package. It seems that dfu-util only gets installed by klippers install-octopi.sh.

So, same spiel again.
Added the package in 1843582
Image is being re-built in https://github.com/mkuf/prind/actions/runs/4084121082/jobs/7040447537

-Markus

from prind.

trackhacs avatar trackhacs commented on July 30, 2024

ah - deutsche zeitzone ;)

seems to work - however - cant get my Octopus V1.1 into DFU mode ;\

from prind.

mkuf avatar mkuf commented on July 30, 2024

I'm not familiar with the Octopus board, but usually those boards have a boot button which needs to be pressed at power-on to enter dfu mode.

If you're sure your board is in dfu mode, you may also try to start a temporary container instead of using the method described in the readme.
In this container, you'll have klipper and everything you need to build and flash the firmware and you can interact with it in the same way as it would be directly on your host. This is probably easier for troubleshooting.

docker run \
  --rm -it --privileged --workdir /opt/klipper \
  -v /dev:/dev -v $(pwd)/config/build.config:/opt/klipper/.config -v $(pwd)/out:/opt/klipper/out \ 
  mkuf/klipper:latest-mcu

The output from your earlier logs also suggest that you'll need to specify a different make command, if your board is already in dfu mode.

If the device is already in bootloader mode it can be flashed with the
following command:
make flash FLASH_DEVICE=0483:df11
OR
make flash FLASH_DEVICE=1209:beba

from prind.

mkuf avatar mkuf commented on July 30, 2024

Any update on this?
Can you judge if this is an issue with your hardware or if there is still an issue with the Image?

-Markus

from prind.

trackhacs avatar trackhacs commented on July 30, 2024

could unfortunately get the octopus not into DFU mode ...

from prind.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.