Kobra3-Firmware - ADB + SSH + BED MESH VISUALIZER(2.3.3.9) + MJPG STREAMER + LIGHT CONTROL + TIMELAPSE ACCESS/CONVERT + REMOVE NAG SCREEN CUSTOM FIRMWARE
Kobra3 Firmware information and How to update Kobra3 Firmware via USB
Warning
This version start adb + ssh on port 2222 and a web server on port 8000. Web port has been changed to allow use of these tweaks in parallel to the other custom firmware with mainsail. Web server provide access to 4 pages :
- Bed leveling info
- Camera streaming + led control (Mp4 conversion may not work for now)
- Access to timelapse of the USB stick
- Upload page to upload gcode to the printer
Copy the folder in update-preparation called aGVscF9zb3Nf at the root of the usb stick. Boot the printer. Insert the usb key the printer will emit a bip after 5 seconds Wait after 30 seconds three bips will be emitted. Wait 30 more seconds and after a long bip, the tetris song will play. After tetris song, reboot the printer and that's it. You can connect to the web page on port 8000 or to ssh on port 2222 or to adb
Main
Summary of the steps :
- Create update.sh
- tar the file to setup.tar
- gzip the file to setup.tar.gz
- create a folder called update_swu
- move the file setup.tar.gz in the folder update_swu
- zip the folder update_swu with password U2FsdGVkX19deTfqpXHZnB5GeyQ/dtlbHjkUnwgCi+w=
- rename the zip file to update.swu
- create a folder on the usb stick called update
- put the file update.swu in aGVscF9zb3Nf
- boot printer with the stick, depending on your current firmware version, either the printer will update and start bipping or you need to check for update in the printer information menu
- do the update
- reboot the printer
- remove the aGVscF9zb3Nf folder from the usb stick
- boot the printer again
- test ssh access port 2222 (or adb) and connect to printer ip in http to see the web menu (http://x.x.x.x:8000/)
Note : Other repository of interest with moonraker and mainsail (untested by me) : https://github.com/utkabobr/DuckPro-Kobra3
In short:
You need to create a file called "update.sh" You can put whatever you want (at your onwn risk) in the script file.
For SSH access, you need to copy back the openssh lib which has been deleted with recent firmware and then start openssh server. Server binary needs to be modified to use /tmp/empty instead of /var/empty (/var/empty is read only and cannot be modified - squashfs filesystem). I've created an updated version of the openssh lib so it can be launched from the useremain directory and not be deleted with next firmware update. The new ssh server run on port 2222
You then need to tar/gzip these files. The resulting file must be called "setup.tar.gz".
This file should then be put in a folder name "update_swu".
You should then zip the update_swu folder and set the zip password to U2FsdGVkX19deTfqpXHZnB5GeyQ/dtlbHjkUnwgCi+w= (use zipcypto format. Not sure AES encryption will work).
The resulting file must be named update.swu
Once done, you should go to your usb stick and create a folder called "aGVscF9zb3Nf" and put the update.swu file in it. (if you use the command at the bottom of readme, the foler and files are automatically created).
Plug the stick, boot the printer. Either the update start itself and you'll hear plenty of beeps with a long one at the end or follow the steps on printer touch screen (on the readme below). It should do few bips and the update should done. It may take a bit of time the first time as it needs to create ssh keys on the printer.
You will need to reboot the printer when done. Go to your USB stick and rename or remove the folder aGVscF9zb3Nf to avoid the update to be performed everytime and messing with files.
Test if you can connect via SSH again. (port 2222)
Warning
In the folder "update-preparation" you will find the required files and in the "update.swu" you will find a prepackaged update. I invite you to open the update package and check the content before applying it to your printer (opeen swu with 7zip, decompress and use password mentionned above).
Windows command lines to create the proper structure for the usb stick :
tar -cvzf setup.tar.gz update.sh openssh nginx
mkdir update_swu
move setup.tar.gz update_swu
zip -P U2FsdGVkX19deTfqpXHZnB5GeyQ/dtlbHjkUnwgCi+w= -r update.swu update_swu
mkdir aGVscF9zb3Nf
move update.swu aGVscF9zb3Nf
If you connect to your printer newly installed webserver, you can view the main page :
Address: http://x.x.x.x:8000/
If you want to read the log pack created by a printer on the USB stcik when something goes wrong:
AC_LOG.pack password : 2YLVrATRvUEnMeXk6Vtc7qxfzYM4TJzrLnEBma8zpUKeGtseGWqp4LXs7e8KeU2u
BED:
Steps for the update (touch screen) on V2.3.3.2 :