| docs | ||
| extra-stuff | ||
| FW | ||
| RESOURCES | ||
| temp | ||
| TOOLS | ||
| .gitignore | ||
| auto_install.cfg | ||
| build.sh | ||
| fwdl.sh | ||
| options.cfg | ||
| pack.sh | ||
| patch.sh | ||
| README.md | ||
| unpack.sh | ||
Anycubic Kobra 2 Series Tools
This repository contains tools for the Anycubic Kobra 2 Series 3D printers.
Documentation
Documentation can be found in the docs directory.
- MQTT_API.md - MQTT API.
- COMMANDS.md - Useful commands.
- PRINTER_CFG.md - Printer.cfg things.
- EMMC_BACKUP.md - How to backup the EMMC.
- EMMC_RESTORE.md - How to restore the EMMC.
- ENTER_FEL_MODE.md - How to enter FEL mode.
- DOWNLOAD_SDK.md - How to download the SDK.
- OLD_INFO.md - Old information.
- CREDITS.md - Credits.
This flashforge is similar to the Anycubic Kobra 2 Series. So we need to investigate it.
Usage
- Clone the repository.
- Place
.bin,.zipor.swufirmware files in theFWdirectory. If you don't have firmware files, you can use the scriptfwdl.sh <model> <version>to download in the folderFWthe version for the printer model you need. The supported models areK2Pro,K2PlusandK2Max. The version is given in the formatX.Y.Zlike3.0.9. - Run
unpack.sh <update_file>to unpack the selected firmware update file. The supported file extensions arebin,zipandswu. The result is in the folderunpacked. - Modify the options file
options.cfgto select the options you need and runpatch.shto patch the firmware files in theunpackedfolder. The result is still in the folderunpacked. You may manually modify the current state of the files if needed. You can also prepare different configuration files for different needs based on the default fileoptions.cfg. The custom configuration file is provided as parameter:patch.sh <custom_configuration_file>. If no parameter is provided, the fileoptions.cfgwill be used. - Run
pack.shto pack the firmware files from the folderunpacked. The result is the fileupdate/update.swu. At the end, if you selectedsshandroot_accesswith a password, you will be asked if you want to upload the update automatically through ssh. If your printer has already a custom update (with ssh and root password) you can typeyand pressenter. The update will be transferred to the printer, executed and the printer will reboot. Otherwise, press enter to exit and follow the next step for USB update. - If your printer is still with the original firmware, you have to make root access first. Then replace the
/etc/swupdate_public.pemin the printer with the one from theRESOURCESdirectory or create your own (make a copy first of the original/etc/swupdate_public.pemkey in case you want to return to the originalotaupdates). Then apply the newly generated custom softwareupdate/update.swuby USB update (place the fileupdate.swuin the folderupdateon the root of a FAT32 formatted USB disk). If your printer already has custom update installed, then you can directly apply the new update by USB update.
Notes
This repository is a work in progress and may contain bugs or may not work as expected any pull requests are welcome.
Default password for the root access (UART and SSH) is toor but it can be changed in the options.cfg file.
Start the scripts directly by ./script_name.sh <parameters> to be started by the requested bash shell. Shells like sh are not compatible at this time.
Use only FAT32 formatted USB disks and place the file update.swu inside a folder update created at the root of the USB disk.
In order for the auto update upload to work properly, you need to setup in advance the configuration file auto_install.cfg. It requires one line of text with the following information:
host_ip,user_name,printer_ip,ssh_port
Example:
192.168.1.234,root,192.168.1.242,22
Information
FW - Place .bin, .zip or .swu firmware files here.
RESOURCES - Contains resources for the firmware options.
TOOLS - Contains tools to decrypt and encrypt firmware files and more.
unpacked - Contains the unpacked firmware files.
update - Contains the packed firmware files.