-
-
Notifications
You must be signed in to change notification settings - Fork 0
Installation guide for fresh systems
This guide is for users who:
- Have a stock printer with stock software or
- Dont have an open armbian system with mainline klipper or
- Want to start with a fresh system to make it from scratch
If you followed my guide for an open armbian system with mainline klipper (FreeQIDI) already,
and you just want to add the screen functionality, please head over to my Installation guide for existing 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:
On a 8GB EMMC.
- Simply download the image file for your needs.
You can find the full image at the releases section.
Search for a *.rar file, download it and unpack it (you will get an *.img file).
- Flash the *.img file to your EMMC card or an USB flash drive (eg. by using Win32DiskImager, balenaEtcher or a similar tool).
- Insert the EMMC/USB drive to your printer and start it.
- Done.
The whole operating system with all the software is now on your printer.
As the firmware if your screen can currently only communicate with the stock operating system, you will see this now on your screen:
Dont worry, this is totally fine!
We will flash the screen with my firmware to make it work with an official and unmodified klipper.
To flash the display firmware, you will need a FAT32 formatted sd card.
- Take the matching firmware from the screen_firmwares directory
(unsure which one to use?)
- Copy the *.tft file to the sd card.
- Make sure there is only the *.tft file on the sd card.
- Switch off the printer.
- Insert the sd card into the screens sd slot.
It is located on the backside of the screen and a bit hidden at the first sight.
You can see it "from the inside" of your print volume.
- Turn the printer on.
- The screen will tell you that its flashing - wait patiently untill "updated successed" is visible. (not a typo)
- Switch off the printer.
- Remove the sd card.
Your operating system and screen are now set up.
Next, we need to ensure that the subsystems (mainboard MCU and toolhead) are running the same Klipper version and adjust the configuration to match your specific hardware.
Open the Mainsail UI of your printer with a browser by entering the printer's IP address.
Don't use the modified port (10088) that you might be used to from the stock machine.
Then 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:
You will also see a hint, that your printer cant find the toolhead (MKS_THR):
Dont worry, that is completely OK!
It simply says it cant find your toolhead by the default ID I set as placeholder.
In the next steps, we will adjust your printer config to match the unique ID of your toolhead.
Depending on hardware setup and liking, choose one of the following guides:
Yes, its on Klipper v0.12.0-289
To finish your configuration, we need find the 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:
You are done :)
Happy printing!
#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!
To make it easy for you, I pre-compiled files for your subsystems.
Please download and flash them.
You can find them in the
mainboard_and_toolhead_firmwares section.
Make sure you get the version matching your Klipper.
You will finde a Toolhead_RP2040.uf2 for the toolhead and a X_4.bin for the mainboard MCU:
- 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.
As the final step, you need to flash the display.
Please head over to the next chapter:
https://github.com/Phil1988/FreeDi/wiki/Flashing-the-display
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.
As the final step, you need to flash the display.
Please head over to the next chapter:
https://github.com/Phil1988/FreeDi/wiki/Flashing-the-display