- Follow instruction of Mainsail OS
- Disconnect power source with printer
- Turn on Pi and connect USB cable with printer board (because Gen L can't dual power outsource with 5V from usb. If you don't disconnect power, you may shock yourself or damage your equipment)
- Baud rate for serial port from 250000 or 115200
- From cmd, search connect usb with 'ls /dev/serial/by-id/*'
- Flash klipper to MCU follow this https://www.klipper3d.org/Installation.html#building-and-flashing-the-micro-controller
- After flashing completed, disconnect usb cable. Turn off power Pi.
- Use UART to connect Pi with Gen L
- On the RPI, I used pins 8: TXD (data send), 9: ground, and 10: RXD (data receive).
- I connected these wires to pins in the AUX-1 header of Gen L.
- RPI pin 8 (data send) to MKS gen L RX (data receive) / RPI pin 9 (ground) to MKS gen L GND (ground) / RPI pin 10 (data recieve) to MKS gen L TX (data send)
- Then, powered up the RPI and ssh to pi : ssh@ip_address
- From cmd run 'sudo raspi-config'
- Select Interfacing Options -> Serial -> Select No to login shell over serial -> Select Yes to serial port hardware to be enabled.
- Then rebooted, closed everything up, and powered up my printer.
- Edit klipper config file follow this https://www.klipper3d.org/Config_Reference.html
- Check klipper configuration follow this https://www.klipper3d.org/Config_checks.html
- Klipper Arduino pin map: https://github.com/Klipper3d/klipper/blob/master/config/sample-aliases.cfg