Link to fix: Duet 2 firmware compilation broken on Debian 11 - #9 by lurifax
This is not something I do everyday, so the steps I had written down before (2 years ago) to get everything flashed were not working. The first step was to always install MainsailOS. This was apparently the root cause of my issues. Here are the steps I used in order to get this working on my setup.
NOTE: My EBB42 board had already been flashed with CanBoot prior, and the video I used is here https://www.youtube.com/watch?v=EA-oBfenxAE
- With Raspberry PI imager I installed Raspberry Pi OS Lite (64-bit).
- I followed the steps and installed Kiuah with everything I needed for my setup, then rebooted: GitHub - dw-0/kiauh: Klipper Installation And Update Helper
- I shorted the reset pins on my board, then hit the reset button to wipe the firmware.
- I followed the steps in this guide from step 3 to get my board flashed without errors after flashing the troodon board (this was where I kept getting stalled at after flashing the board)
Advanced-3D-Printing-Klipper-Kit-Installation-Guide-v0.1-2.pdf (1.3 MB) - I think this next part is just for my EBB42 mcu. SSH’d to the Pi with Putty and ran:
sudo nano /etc/network/interfaces.d/can0
then pasted in and saved:
auto can0
iface can0 can static
bitrate 250000
up ifconfig $IFACE txqueuelen 128
- Then ran:
sudo nano /boot/firmware/config.txt
then pasted this at the bottom and saved:
dtoverlay=mcp2515-can0,oscillator=12000000,interrupt=25,spimaxfrequency=200000
- Then I had to flash my rpi mcu with makeconfig, and set it to Linux.
It took me about an hour to go through all that last night, but everything finally came online without any errors. Something in the latest MainsailOS was causing it to not read correctly from the USB port after flashing the board. Hopefully this will help point someone else in the correct direction. And I would appreciate feedback on this fix, and what I could have done differently.