Init
This commit is contained in:
40
firmware/update_fw.sh.old
Executable file
40
firmware/update_fw.sh.old
Executable file
@@ -0,0 +1,40 @@
|
||||
#!/bin/bash
|
||||
|
||||
mkdir -p ~/firmware
|
||||
|
||||
sudo service klipper stop
|
||||
|
||||
cd ~/klipper
|
||||
make clean
|
||||
#make menuconfig KCONFIG_CONFIG=/home/biqu/printer_data/config/firmware/config.manta723.CAN
|
||||
make -j4 KCONFIG_CONFIG=/home/biqu/printer_data/config/firmware/octopus-pro.config
|
||||
#make flash FLASH_DEVICE=0483:df11
|
||||
mv ~/klipper/out/klipper.bin ~/firmware/octopus_klipper.bin
|
||||
|
||||
make clean
|
||||
#make menuconfig KCONFIG_CONFIG=/home/biqu/printer_data/config/firmware/rp_sb2209.CAN
|
||||
make -j4 KCONFIG_CONFIG=/home/biqu/printer_data/config/firmware/rp_sb2209.CAN
|
||||
mv ~/klipper/out/klipper.bin ~/firmware/toolhead_klipper.bin
|
||||
|
||||
cd ~/katapult/scripts
|
||||
# Update MCU Octopus Pro
|
||||
echo "Start update MCU Octopus Pro"
|
||||
#echo ""
|
||||
#python3 flash_can.py -i can0 -u 6c3c86ee0b29 -f ~/firmware/octopus_klipper.bin
|
||||
python3 ~/katapult/scripts/flashtool.py -i can0 -u afcf80281237 -r
|
||||
python3 flash_can.py -f ~/firmware/octopus_klipper.bin -d /dev/serial/by-id/usb-katapult_stm32h723xx_320006001751313431393536-if00
|
||||
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"
|
||||
#echo ""
|
||||
python3 flash_can.py -i can0 -u 350f10596216 -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"
|
||||
|
||||
#echo ""
|
||||
|
||||
sudo service klipper start
|
||||
Reference in New Issue
Block a user