Warning: Only flash this firmware on a DE-ELEGOO setup/image, not on stock Elegoo software.
-
Solder a Momentary Button:
- Solder a momentary (push to make) button on the BOOT pads on the MKS/Elegoo control board next to the RESET button.
- Alternatively, bridge these with sharp metal tweezers.
-
Power On and Boot Process:
- Power on the machine.
- Press the BOOT button down (or bridge the pads).
- While this is pressed, also press the RESET button next to it.
- Release RESET then BOOT.
-
SSH and Commands:
- Leave the printer on and SSH in (as root) and type:
service klipper stop apt update apt install stm32flash stm32flash -r firmware-bak.bin /dev/ttyS0
- If this errors out, repeat the BOOT/RESET button-press routine above until it works.
- Leave the printer on and SSH in (as root) and type:
-
Copy Firmware:
- From another terminal on the computer, copy this off your printer using:
scp root@IPADDRESS:/root/firmware-bak.bin .
- From another terminal on the computer, copy this off your printer using:
-
Reboot:
- Type
reboot
(then power cycle after a few minutes).
- Type
(Only do this if you have removed Elegoo services and are running standard/updated releases of Klipper.)
-
Enter Bootloader Mode:
- Follow the initial steps to enter bootloader mode.
-
SSH and Commands:
- Leave the printer on and SSH in (as mks) and type:
cd /home/mks/kiauh ./kiauh 4 Advanced 2 Build Only
- Enter these configurations - STMicroelectronics STM32 - STM32F401 - 32KiB Bootloader - and USART PA10/PA9 - settings.
- Leave the printer on and SSH in (as mks) and type:
-
Flash Klipper Firmware:
- Repeat the BOOT and RESET process.
- Then, type:
sudo service klipper stop stm32flash -w /home/mks/klipper/out/klipper.bin -v -S 0x08008000 -g 0x08000000 /dev/ttyS0
-
Start Klipper Service:
- Type
sudo service klipper start
.
- Type
-
If this doesnt work (usually if you flashed stock MCU firmware before):
- Repeat the BOOT and RESET process.
- Download the provided firmware-bak.bin (in this git repo)
- Then, flash it with:
sudo service klipper stop stm32flash -w ./firmware-bak.bin -v /dev/ttyS0
- After this reboot going forward you may use the first (compile with kaiuh) method.
(Pre-dumped N4Pro (might be the same as N4) firmware-bak.bin)
-
Power On and Boot Process:
- Similar to the above steps.
-
SSH and Commands:
- Leave the printer on and SSH in (as root) and type:
service klipper stop stm32flash -w firmware-bak.bin -v /dev/ttyS0
- If this fails, retry the BOOT & RESET button method above.
- Type
sudo reboot
(then power cycle after a few minutes).
- Leave the printer on and SSH in (as root) and type: