-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathupdate_creality_board.sh
23 lines (19 loc) · 1020 Bytes
/
update_creality_board.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/bin/bash
echo "Stopping Klipper service - needs elevated privileges"
sudo service klipper stop
pushd ~/klipper
make clean # KCONFIG_CONFIG=config.spider
make menuconfig # KCONFIG_CONFIG=config.spider
make # KCONFIG_CONFIG=config.spider
read -p "Firmware built, please check above for any errors. Press [Enter] to continue flashing, or [Ctrl+C] to abort"
./scripts/flash-sdcard.sh /dev/serial/by-id/usb-1a86_USB_Serial-if00-port0 creality-v4.2.2
read -p "You must manually power cycle the printer for this firmware to flash. Shutting down Klipper host.\nFirmware flashed, please check above for any errors. Press [Enter] to continue, or [Ctrl+C] to abort"
#make clean KCONFIG_CONFIG=config.rpi
#make menuconfig KCONFIG_CONFIG=config.rpi
#make KCONFIG_CONFIG=config.rpi
#read -p "RPi firmware built, please check above for any errors. Press [Enter] to continue flashing, or [Ctrl+C] to abort"
#make flash KCONFIG_CONFIG=config.rpi
#echo "Starting Klipper service"
#sudo service klipper start
#popd
sudo shutdown now