Duet 2 Setup; How I did it. - Will-wastelander/Duet2Wifi_SBC_board GitHub Wiki

Welcome to the Duet2Wifi_SBC_board wiki!

When this process is completed, you will no longer have a SD card in the Duet 2 board.

Step 1. Download and burn duetpi image to SD card.

You will need at least an 8Gb class 10 SD card.

There are multiple programs to write an image file to an SD card. If there are any issues with this step, try following the Raspberry Pi documentation for flashing OS images

You need to use the latest Raspian image setup for Duet 3 that is available from the Duet 3D software site. You may choose the lite image for a GUI-less setup and the full variant for setups where a display is attached:

https://pkg.duet3d.com/DuetPi-lite.zip

https://pkg.duet3d.com/DuetPi.zip

Under Windows, MacOS and Linux, flash the file using using “etcher”

Select the image, select the SD card. Click flash. Will take about 5 minutes.

Once this is complete Windows may prompt you to format the disk. Do not do this, it is because Windows does not recognise one of the partitions on the image.

Step 2. Updating Duet board To update via USB (using a Windows host)

  • You will need to install Bossa 1.9.1 from https://github.com/shumatech/BOSSA/releases on your PC.
  • Place a jumper across the ERASE pins on the Duet 2 and power it up to erase the firmware. The Bossa port should appear on your PC (if it doesn't, try pressing the Reset button).
  • The erase jumper is located in the center of the board near the large CPU chip.
  • Remove the ERASE jumper, load Bossa and select the correct COM port. It should identify the device as ATSAM70x20.
  • Check the Erase All, Boot to Flash and Lock boxes
  • Download the latest RRF V3 from here: "The file is now named Duet2Firmware_SBC.bin" https://github.com/Duet3D/RepRapFirmware/releases
  • Browse to the firmware binary, and select Write.
  • When that completes, select Verify.
  • When that completes successfully, press the Reset button on the Duet 2 to restart the Duet in normal mode.

Bossa settings

To update via USB (using a Raspberry Pi host) Part1: Install bossa on the Pi with these commands:

sudo apt update && sudo apt install -y libwxgtk3.0-dev libreadline-dev git clone https://github.com/shumatech/BOSSA cd BOSSA make

Part 3: Connect the Duet to the Pi.

  • Use a data capable USB cable from any port on the Pi to the Duet.
  • It is OK to power the Duet from only the USB (which implies the Pi has its own power)
  • It is OK to power the Duet with VIN
  • Do one or the other; do not power both ways.
  • If the Pi is part of a Duet 2 with dupont cables, it is OK to leave this attached.

Part 4: Obtain firmware

Part 5: Run bossa

  • Be sure Duet board is erased and reset. (see above) ~/BOSSA/bin/bossac -e -w -v -b \<location saved>\Duet2Firmware_SBC.bin
  • This should take about one minute to run. If it hangs, try reset and/or reset erase again on the Duet board.