-
-
Notifications
You must be signed in to change notification settings - Fork 0
Installation guide for fresh systems
I have prepared a full image ready to go for you.
Its a fresh and clean system to make it as simple for you as I can.
To understand what is included in my image, here is the list, what it is based on:
- Armbian-unofficial_24.2.0-trunk_Mkspi_bookworm_current_6.6.17 Installed is:
- kiauh v5.1 (v6 is in alpha state)
- Klipper v0.12.0-289
- Moonraker v0.9.2-6
- and everything you need for input shaping, wifi and of course the touch screen functionality.
- no crowsnest, klippain-shaketune or other things. Simply a pure basis for everyone
This makes it:
- Simply download the image file for your needs and flash it to your EMMC card or an USB flash drive (eg. by using balenaEtcher or a similar tool).
- Boot it.
- Done.
You can find the full image at the [releases section](https://github.com/Phil1988/FreeDi/releases/).
The initial release can be found here: https://github.com/Phil1988/FreeDi/releases/tag/v1.00
Depending on your hardware setup and liking there are 3 possible ways to make it work with your printer.
Use a browser to open the Mainsail UI of your printer (by entering the printers IP address).
Go to the MACHINE section:
On the right side you will find your current Klipper versions for the MCU, the toolhead (MKS_THR) and also the host:
Depending on the versions, choose one of the following guides:
Yes, its on Klipper v0.12.0-289
The only thing left to do for us is to find unique ID of your toolhead and insert it to your printer.cfg.
-
SSH to your printer (eg. via putty) and run the command
ls /dev/serial/by-id/*
Note the device ID which will be printed like: -
Connect to your printer via your favorite browser and replace the ID in the [mcu MKS_THR] section of the printer.cfg with the one you got before:
#2 Your mainboard MCU and the toolhead are NOT on Klipper v0.12.0-289
- and you want it the easy way?
Yes please, go easy on me!
Just take my pre compiled files and flash them.
You can find them in the releases section.
Make sure you get the version matching your klipper.
- Format a microSD card as FAT32 (not lager in size then 32GB – maybe larger sized SD-cards will work if you create a partition not larger then 32GB).
- Copy the „X_4.bin“ file to this SD-card.
- Eject the microSD card from your computer.
- Shut down your printer and wait at least 30sec.
- Put the microSD card into the SD card slot of the printers mainboard.
- Turn the printer on. The mainboard STM32F402 MCU will now be flashed (which takes about 10sec, but make sure to not turn it down before 1min… just in case).
-
SSH to your printer (eg. via putty) and run the command
ls /dev/serial/by-id/*
Note the device ID which will be printed like: -
Connect to your printer via your favorite browser and replace the ID in the [mcu MKS_THR] section of the printer.cfg with the one you got before:
- Remove the back cover of the tool head.
- Press and hold the „boot“ button.
- Press and release the „reset“ button.
- Release the „boot“ button.
Verify if its really in "RP2 Boot" mode. You can do this by:
lsusb
This means it is in boot mode:
This means it NOT in boot mode:
Run lsblk and see if you can find a partition at 128MB size:
lsblk
This means it is in boot mode and the partition is "sda1":
This means it NOT in boot mode:
if thats the case, go back to step 1.
- Find the file Toolhead_RP2040.uf2 from the firmware section matching your Klipper version.
- Download it.
- Use your favourite program to copy this file to the ~/X3seriesLCD folder of your printer (eg. WinSCP).
- Flash the toolhead by run:
sudo cp ~/X3seriesLCD/Toolhead_RP2040.uf2 /dev/sda1
- Shut the system down (sudo shutdown) and shut it off (switch off).
- Wait a few seconds and turn the printer on.
Yessir, I want it the hard way!
Run:
cd ~/klipper
make menuconfig
set it according to this:
save with q
Run:
make clean
make -j4
Bring the toolhead into "RP2 Boot" mode (check the easy section how to do that).
Check the partition with lsblk - in my case "sda1".
Run the following command adjusted to the partition you found.
sudo cp ~/klipper/out/klipper.uf2 /dev/sda1
Run:
cd ~/klipper
make menuconfig
set it according to this:
save with q
Run:
make clean
make -j4
This will generate a „klipper.bin“ file in the /home/mks/klipper/out/ folder.
Use your favourite program to get this file onto your computer (I am using WinSCP).
Rename it to „X_4.bin“ and flash it like in the easy section.