# Printer.cfg for Anycubic Kobra 2 Plus/Pro/Max

**URL:** https://klipper.discourse.group/t/printer-cfg-for-anycubic-kobra-2-plus-pro-max/11658
**Category:** Configs
**Created:** [November 17, 2023, 11:56pm UTC](https://klipper.discourse.group/t/printer-cfg-for-anycubic-kobra-2-plus-pro-max/11658 "2023-11-17T23:56:49Z")
**Posts on this page:** 20
**Page:** 8

<div class="post-metadata">

### Author: ![Sparky961](https://avatars.discourse-cdn.com/v4/letter/s/7feea3/32.png) [@Sparky961](https://klipper.discourse.group/u/Sparky961)
#### Post date: [January 28, 2024, 10:12am UTC](https://klipper.discourse.group/t/printer-cfg-for-anycubic-kobra-2-plus-pro-max/11658/146 "2024-01-28T10:12:16Z")

</div>

```auto
root@TinaLinux:~# swapon --show
swapon: invalid option -- '-'
Usage: swapon [-s] [-a] [[-p pri] DEVICE]

        Start swapping on [DEVICE]
 -a Start swapping on all swap devices
 -p pri Set priority of swap device
 -s Show summary
root@TinaLinux:~# swapon -s
block: failed to open /proc/swaps

```

---

<div class="post-metadata">

### Author: ![Dump](https://avatars.discourse-cdn.com/v4/letter/d/f05b48/32.png) [@Dump](https://klipper.discourse.group/u/Dump)
#### Post date: [January 28, 2024, 10:14am UTC](https://klipper.discourse.group/t/printer-cfg-for-anycubic-kobra-2-plus-pro-max/11658/147 "2024-01-28T10:14:41Z")

</div>

Cat /proc/swaps

---

<div class="post-metadata">

### Author: ![Sparky961](https://avatars.discourse-cdn.com/v4/letter/s/7feea3/32.png) [@Sparky961](https://klipper.discourse.group/u/Sparky961)
#### Post date: [January 28, 2024, 10:16am UTC](https://klipper.discourse.group/t/printer-cfg-for-anycubic-kobra-2-plus-pro-max/11658/148 "2024-01-28T10:16:58Z")

</div>

Not a valid switch.

I’ve been noticing this quite a bit. Every common utility program is stripped down and missing options.

```auto
root@TinaLinux:~# ps --help
BusyBox v1.27.2 () multi-call binary.

Usage: ps

Show list of processes

        w Wide output

```

---

<div class="post-metadata">

### Author: ![Sparky961](https://avatars.discourse-cdn.com/v4/letter/s/7feea3/32.png) [@Sparky961](https://klipper.discourse.group/u/Sparky961)
#### Post date: [January 28, 2024, 10:17am UTC](https://klipper.discourse.group/t/printer-cfg-for-anycubic-kobra-2-plus-pro-max/11658/149 "2024-01-28T10:17:59Z")

</div>

Doesn’t exist

---

<div class="post-metadata">

### Author: ![Kuroi](https://yyz2.discourse-cdn.com/free1/user_avatar/klipper.discourse.group/kuroi/32/8132_2.png) [@Kuroi](https://klipper.discourse.group/u/Kuroi)
#### Post date: [January 28, 2024, 10:27am UTC](https://klipper.discourse.group/t/printer-cfg-for-anycubic-kobra-2-plus-pro-max/11658/150 "2024-01-28T10:27:38Z")

</div>

mqtt perhaps?

---

<div class="post-metadata">

### Author: ![Dump](https://avatars.discourse-cdn.com/v4/letter/d/f05b48/32.png) [@Dump](https://klipper.discourse.group/u/Dump)
#### Post date: [January 28, 2024, 10:28am UTC](https://klipper.discourse.group/t/printer-cfg-for-anycubic-kobra-2-plus-pro-max/11658/151 "2024-01-28T10:28:54Z")

</div>

All right, instead of filling this post i created a tg group if someone want to join.  
There we can discuss about and once we unlock/find something important we can post results here in this topic.

Group is closed atm. Advanced programming user can still join: dm @Matm8p (tell who you are here to gain access)

Thanks

---

<div class="post-metadata">

### Author: ![NerdOctave](https://avatars.discourse-cdn.com/v4/letter/n/71e660/32.png) [@NerdOctave](https://klipper.discourse.group/u/NerdOctave)
#### Post date: [January 28, 2024, 1:42pm UTC](https://klipper.discourse.group/t/printer-cfg-for-anycubic-kobra-2-plus-pro-max/11658/152 "2024-01-28T13:42:28Z")

</div>

if there is an M8XXX code to run arbitrary shell code why cant we use that to get root access?

---

<div class="post-metadata">

### Author: ![CodexNovus](https://yyz2.discourse-cdn.com/free1/user_avatar/klipper.discourse.group/codexnovus/32/8697_2.png) [@CodexNovus](https://klipper.discourse.group/u/CodexNovus)
#### Post date: [January 28, 2024, 5:28pm UTC](https://klipper.discourse.group/t/printer-cfg-for-anycubic-kobra-2-plus-pro-max/11658/153 "2024-01-28T17:28:17Z")

</div>

In 3.0.3 they added decription keys (@daksimpson found it on Jan 21st), and from 3.0.5 onward they started encrypting the firmware (and also closed down the serial). And I would guess it comes with a mechanism to prevent downgrading, or flashing unsigned images. If it doesn’t, they will implement it soon.

I guess someone at anycubic doesn’t like people tinkering with the firmware… 🤷

---

<div class="post-metadata">

### Author: ![Sparky961](https://avatars.discourse-cdn.com/v4/letter/s/7feea3/32.png) [@Sparky961](https://klipper.discourse.group/u/Sparky961)
#### Post date: [January 28, 2024, 5:32pm UTC](https://klipper.discourse.group/t/printer-cfg-for-anycubic-kobra-2-plus-pro-max/11658/154 "2024-01-28T17:32:58Z")

</div>

Nothing prevented me downgrading from 3.0.5 to 2.3.9 (may have incorrectly stated 2.3.6 earlier) using a USB flash drive with unzipped OTA firmware.

But as you say, that may not hold for future updates.

---

<div class="post-metadata">

### Author: ![daksimpson](https://yyz2.discourse-cdn.com/free1/user_avatar/klipper.discourse.group/daksimpson/32/9655_2.png) [@daksimpson](https://klipper.discourse.group/u/daksimpson)
#### Post date: [January 28, 2024, 11:07pm UTC](https://klipper.discourse.group/t/printer-cfg-for-anycubic-kobra-2-plus-pro-max/11658/156 "2024-01-28T23:07:44Z")

</div>

Small update. Looks like I found some interesting things from our chinese friends. AFAICS it is the full SDK to develop FW for HiFi4 DSP in T113: [CODING | 一站式软件研发管理平台](https://e.coding.net/weidongshan/100ask_t113-pro/rtos-dsp.git)  
It is subrepo of [https://gitee.com/weidongshan/eLinuxCore\_100ask-t113-pro.git](https://gitee.com/weidongshan/eLinuxCore_100ask-t113-pro.git) a complete SDK for linux developing on T113… I’ve ordered a T113 dev board on Aliexpress and when it arrive I’ll start to tinkering with.

---

<div class="post-metadata">

### Author: ![daksimpson](https://yyz2.discourse-cdn.com/free1/user_avatar/klipper.discourse.group/daksimpson/32/9655_2.png) [@daksimpson](https://klipper.discourse.group/u/daksimpson)
#### Post date: [January 28, 2024, 11:14pm UTC](https://klipper.discourse.group/t/printer-cfg-for-anycubic-kobra-2-plus-pro-max/11658/157 "2024-01-28T23:14:15Z")

</div>

Still have no spare time to check thoroughly.

---

<div class="post-metadata">

### Author: ![ultimatelifeform](https://yyz2.discourse-cdn.com/free1/user_avatar/klipper.discourse.group/ultimatelifeform/32/8342_2.png) [@ultimatelifeform](https://klipper.discourse.group/u/ultimatelifeform)
#### Post date: [January 29, 2024, 12:32am UTC](https://klipper.discourse.group/t/printer-cfg-for-anycubic-kobra-2-plus-pro-max/11658/158 "2024-01-29T00:32:34Z")

</div>

What? There is?

Any more info on that? Sounds interesting… I haven’t been active lately.

I wanna check it out.

---

<div class="post-metadata">

### Author: ![ultimatelifeform](https://yyz2.discourse-cdn.com/free1/user_avatar/klipper.discourse.group/ultimatelifeform/32/8342_2.png) [@ultimatelifeform](https://klipper.discourse.group/u/ultimatelifeform)
#### Post date: [January 29, 2024, 3:02am UTC](https://klipper.discourse.group/t/printer-cfg-for-anycubic-kobra-2-plus-pro-max/11658/159 "2024-01-29T03:02:20Z")

</div>

Bingbada boom that encryption has been dealt with!!!

> <https://github.com/ultimateshadsform/Anycubic-Kobra-2-Series-Firmware/blob/main/scripts/firmwares/decryptthatbitch.py>

EDIT: I didn’t see that it was already done! Lol but it was a fun challenge!

---

<div class="post-metadata">

### Author: ![DexDeadly](https://yyz2.discourse-cdn.com/free1/user_avatar/klipper.discourse.group/dexdeadly/32/9843_2.png) [@DexDeadly](https://klipper.discourse.group/u/DexDeadly)
#### Post date: [January 29, 2024, 7:10am UTC](https://klipper.discourse.group/t/printer-cfg-for-anycubic-kobra-2-plus-pro-max/11658/160 "2024-01-29T07:10:11Z")

</div>

Hello All,

I just recently purchased a Kobra 2 Max. I would love to help in any way I can with this project. I had joined the telegram group and was following along but looks like I was removed? Not sure if its because I wasn’t a member here or not but again would love to contribute in any way possible.

---

<div class="post-metadata">

### Author: ![ultimatelifeform](https://yyz2.discourse-cdn.com/free1/user_avatar/klipper.discourse.group/ultimatelifeform/32/8342_2.png) [@ultimatelifeform](https://klipper.discourse.group/u/ultimatelifeform)
#### Post date: [January 29, 2024, 7:43am UTC](https://klipper.discourse.group/t/printer-cfg-for-anycubic-kobra-2-plus-pro-max/11658/161 "2024-01-29T07:43:44Z")

</div>

Honestly feel free to post here. We mostly use the telegram for advanced programming stuff and all that really technical stuff.

But feel free to share here if you find anything interesting!

---

<div class="post-metadata">

### Author: ![ultimatelifeform](https://yyz2.discourse-cdn.com/free1/user_avatar/klipper.discourse.group/ultimatelifeform/32/8342_2.png) [@ultimatelifeform](https://klipper.discourse.group/u/ultimatelifeform)
#### Post date: [January 29, 2024, 3:57pm UTC](https://klipper.discourse.group/t/printer-cfg-for-anycubic-kobra-2-plus-pro-max/11658/162 "2024-01-29T15:57:15Z")

</div>

Hi guys! I just wanted to share our progress.

You can now replace a system partition with the `dd` command.

You just extract your `rootfsA` from /dev/by-name/rootfsA example:

```bash
ls -lah /dev/by-name/

```

rootfsA → /dev/mmcblk0p5

Now you just do

```bash
dd if=/dev/mmcblk0p5 of=/mnt/exUDISK/rootfsA

```

Now move that USB stick to your PC and then run:

```bash
unsquashfs rootfsA

```

Now modify any files you want inside the filesystem.

Now when you’re done you run:

```bash
mksquashfs squashfs-root filesystem.squashfs -comp xz

```

After that move it to a USB stick and put it into your printer with uart root access.

Now run:

```bash
dd if=/mnt/exUDISK/filesystem.squashfs of=/dev/mmcblk0p5

```

Now you need to switch to the A partition by doing:

```bash
fw_setenv root_partition rootfsA
fw_setenv systemAB_next A

```

Now reboot and see your changes!!!

You can also do it with the B partition. Just make sure you aren’t on that partition when modifying with dd.

---

<div class="post-metadata">

### Author: ![DexDeadly](https://yyz2.discourse-cdn.com/free1/user_avatar/klipper.discourse.group/dexdeadly/32/9843_2.png) [@DexDeadly](https://klipper.discourse.group/u/DexDeadly)
#### Post date: [January 30, 2024, 5:05am UTC](https://klipper.discourse.group/t/printer-cfg-for-anycubic-kobra-2-plus-pro-max/11658/163 "2024-01-30T05:05:42Z")

</div>

yea hence following along and was looking to contribute with anything I can

---

<div class="post-metadata">

### Author: ![AGG2020](https://avatars.discourse-cdn.com/v4/letter/a/df705f/32.png) [@AGG2020](https://klipper.discourse.group/u/AGG2020)
#### Post date: [January 31, 2024, 12:22pm UTC](https://klipper.discourse.group/t/printer-cfg-for-anycubic-kobra-2-plus-pro-max/11658/164 "2024-01-31T12:22:18Z")

</div>

It is better first to do:

```auto
fw_printenv -n root_partition

```

in order to find out which is the current partition (rootfsA or rootfsB).

---

<div class="post-metadata">

### Author: ![idontnowcoding](https://avatars.discourse-cdn.com/v4/letter/i/7feea3/32.png) [@idontnowcoding](https://klipper.discourse.group/u/idontnowcoding)
#### Post date: [February 1, 2024, 12:45pm UTC](https://klipper.discourse.group/t/printer-cfg-for-anycubic-kobra-2-plus-pro-max/11658/165 "2024-02-01T12:45:14Z")

</div>

Sorry for interraption but please some one can explane to us, mortals, is it going good, does it seems like we will able to use klipper? I have rpi does it helps 😅 , and sorry for my bad English.😅

---

<div class="post-metadata">

### Author: ![kt1040](https://avatars.discourse-cdn.com/v4/letter/k/45deac/32.png) [@kt1040](https://klipper.discourse.group/u/kt1040)
#### Post date: [February 1, 2024, 4:24pm UTC](https://klipper.discourse.group/t/printer-cfg-for-anycubic-kobra-2-plus-pro-max/11658/166 "2024-02-01T16:24:57Z")

</div>

Nearly the same question. I do own a K2M and would like to use it with Klipper as I do with my Vyper and my i3 Mega S. Do you see any chance achieving this? No problem to run Klipper or parts of it on a Raspberry Pi and connect it however to the printer.

[Previous page](https://klipper.discourse.group/t/printer-cfg-for-anycubic-kobra-2-plus-pro-max/11658.md?page=7)

[Next page](https://klipper.discourse.group/t/printer-cfg-for-anycubic-kobra-2-plus-pro-max/11658.md?page=9)
