How to prevent RatOS from flashing boards

I installed RatOS 2.0 a few days ago and took my time to setup everything again. And then, yesterday, some updates again and so i click on "update all". It took longer than normal and after a reboot, klipper couldn't connect to my octopus 1.1 any more. Turns out that during the update, the board got flashed too, but obviously with wrong settings (connection to Pi over serial port instead over USB). How can I prevent this from happening at all? Or is there a possibility to configure that in the first place? Couldn't find any info on that in the docs. Since I plan on adding maybe one or two picos or other arduinos, I don't want to constantly need to flash everything to get it working again. Kind of annoying.
27 Replies
blacksmithforlife
it is supposed to flash the board automatically because the version of klipper changed enough that your board needed new firmware. Did you override the MCU connection or something in your printer.cfg?
MightyMini
MightyMiniOP2y ago
then... why is it now working with my 4 days old firmware? what might have changed? The 3 lines I have in my config are: [mcu] baud: 250000 serial: /dev/btt-octopus-11 and I'm using a USB cable for connection. How does klipper think I want to use the other port instead?
blacksmithforlife
calling in the big guns: summon @miklschmidt
MightyMini
MightyMiniOP2y ago
hehe
blacksmithforlife
cause yeah, that doesn't make sense
MightyMini
MightyMiniOP2y ago
can't believe I'm the first encountering this problem 🤔
miklschmidt
miklschmidt2y ago
Turns out that during the update, the board got flashed too, but obviously with wrong settings (connection to Pi over serial port instead over USB).
How do you know?
MightyMini
MightyMiniOP2y ago
got this error in klippy.log mcu 'mcu': Starting serial connect mcu 'mcu': Unable to open serial port: [Errno 2] could not open port /dev/btt-octopus-11: [Errno 2] No such file or directory: '/dev/btt-octopus-11' so I was assuming that with flashing the board, it got told to use the serial header instead of the USB connection. where does klipper get the information what settings it should use for flashing a new firmware. If I do it manually with makeconfig, I get a lot of settings to choose
miklschmidt
miklschmidt2y ago
Yeah this is because your board isn't connecting for some reason. It hasn't been automatically flashed for UART (that would be pure magic) 😄 Those come from RatOS, in the board config folder there's a firmware.config, that gets copied into ~/klipper/.configure You should just do this via the configurator though
MightyMini
MightyMiniOP2y ago
but what other setting can there be, that no serial connection was possible? I just took my 4 days old firmware, flashed it to the board and it connected again
miklschmidt
miklschmidt2y ago
Please ssh in and check the result of lsusb This is not what happened. There are no magic settings that automatically get set, it's literally the same everytime, it's not the firmware, it's the flashing process. It happens, use the configurator to restore your board. (by flashing again) ah fine, same fix different steps 🙂
MightyMini
MightyMiniOP2y ago
correct, there is a firmware-folder now with the octopus1.1 bin this showed up after the klipper update. hadn't had that after the fresh install
miklschmidt
miklschmidt2y ago
The firmware flashing process isn't perfect, sometimes (rarely) it fails. Yeah this is a leftover from olden times 😄 Always use the configurator when you have board trouble That's what it's made for
MightyMini
MightyMiniOP2y ago
ohh.. ok, so you mean that maybe there was a hickup during flashing and that's what made it lose the connection
miklschmidt
miklschmidt2y ago
Yes, or rather, the firmware that was flashed got corrupted or the process didn't finish correctly or something like that, leaving the board with broken firmware.
MightyMini
MightyMiniOP2y ago
which configurator? 🫣
miklschmidt
miklschmidt2y ago
You're on RatOS 2.0 no?
MightyMini
MightyMiniOP2y ago
yes
miklschmidt
miklschmidt2y ago
the configurator at /configure so ratos.local/configure You know, the one you used when you installed RatOS in the first place.
MightyMini
MightyMiniOP2y ago
erm... eehhh.... I flashed the firmware to the sd card on my notebook, inserted it in the pi and hit the power button
miklschmidt
miklschmidt2y ago
So you didn't even look at the installation guide? You're not using wifi?
MightyMini
MightyMiniOP2y ago
i do.... but i just changed the txt file on the card, like back in ratOS 1, lol sry
miklschmidt
miklschmidt2y ago
ah ok, that's fine. Go to ratos.local/configure?step=1 and check it out, it'll help you next time something is wrong with the board 🙂 (it's also in the docs btw)
miklschmidt
miklschmidt2y ago
would've explained the situation 🙂 and fixed it too
MightyMini
MightyMiniOP2y ago
I was there, but I didn't recognize it as "my" error thanks for the clarification! RTFM again Thanks for your help mikl 🙂 just had another update of klipper from 188 to 189 where the board got flashed again... it worked now 🙂
miklschmidt
miklschmidt2y ago
excellent 👍
Want results from more Discord servers?
Add your server