Init
This commit is contained in:
51
firmware/update_fw.sh
Executable file
51
firmware/update_fw.sh
Executable file
@@ -0,0 +1,51 @@
|
||||
#!/bin/bash
|
||||
|
||||
#Полезные комманды
|
||||
#make menuconfig KCONFIG_CONFIG=/home/biqu/printer_data/config/firmware/config.manta723.CAN
|
||||
#make flash FLASH_DEVICE=0483:df11
|
||||
#python3 flash_can.py -i can0 -u 6c3c86ee0b29 -f ~/firmware/octopus_klipper.bin
|
||||
#python3 ~/katapult/scripts/flashtool.py -i can0 -q
|
||||
|
||||
#Toolheads
|
||||
#rp_sb2209=350f10596216
|
||||
#sht36_v2=8ce295109ef0
|
||||
|
||||
toolhed_name=rp_sb2209
|
||||
toolhed_uuid=350f10596216
|
||||
mcu_uuid=afcf80281237
|
||||
mcu_path=/dev/serial/by-id/usb-katapult_stm32h723xx_320006001751313431393536-if00
|
||||
config_path=/home/biqu/printer_data/config/firmware/
|
||||
|
||||
mkdir -p ~/firmware
|
||||
|
||||
sudo service klipper stop
|
||||
|
||||
cd ~/klipper
|
||||
make clean
|
||||
make -j4 KCONFIG_CONFIG="${config_path}octopus-pro.config"
|
||||
mv ~/klipper/out/klipper.bin ~/firmware/octopus_klipper.bin
|
||||
|
||||
make clean
|
||||
toolhead_config="${config_path}/${used_toolhed}.CAN"
|
||||
make -j4 KCONFIG_CONFIG=$toolhead_config
|
||||
mv ~/klipper/out/klipper.bin ~/firmware/toolhead_klipper.bin
|
||||
|
||||
cd ~/katapult/scripts
|
||||
# Update MCU Octopus Pro
|
||||
echo "Start update MCU Octopus Pro"
|
||||
python3 ~/katapult/scripts/flashtool.py -i can0 -u $mcu_uuid -r
|
||||
python3 flash_can.py -f ~/firmware/octopus_klipper.bin -d $mcu_path
|
||||
sleep 2
|
||||
#read -p "MCU Manta M5P firmware flashed, please check above for any errors. Press [Enter] to continue, or [Ctrl+C] to abort"
|
||||
#echo "Finish update MCU octopus"
|
||||
|
||||
# Update Toolhead MCU
|
||||
echo "Start update Toolhead MCU"
|
||||
python3 flash_can.py -i can0 -u $toolhed_uuid -f ~/firmware/toolhead_klipper.bin
|
||||
sleep 2
|
||||
#read -p "MCU EBB36 firmware flashed, please check above for any errors. Press [Enter] to continue, or [Ctrl+C] to abort"
|
||||
#echo "Finish update MCU EBB36"
|
||||
|
||||
python3 ~/katapult/scripts/flashtool.py -i can0 -q
|
||||
|
||||
sudo service klipper start
|
||||
Reference in New Issue
Block a user