Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error creating full backup #9

Open
kilroy98 opened this issue Oct 29, 2023 · 7 comments
Open

Error creating full backup #9

kilroy98 opened this issue Oct 29, 2023 · 7 comments

Comments

@kilroy98
Copy link

Router: Redmi AC2100
Stock firmware version: 2.0.23

Select: 4

Download file: "/tmp/dmesg.log" ....
Download file: "/tmp/mtd_list.txt" ....
Download file: "/tmp/mtd_addr.txt" ....
Download file: "/tmp/kcmdline.log" ....
Download file: "/tmp/dmesg.log" ....
Download file: "/tmp/mtd_list.txt" ....
Download file: "/tmp/mtd_addr.txt" ....
Full backup creating...

ERROR: SSH execute command timed out! CMD: "dd if=/dev/mtd0 of=/tmp/mtd_dump.bin"

After this error web get "502 Bad Gateway" and tool no more work. And need to reboot router for fix it.

@remittor
Copy link
Contributor

@kilroy98
In this case, use options 8 - 4

@kilroy98
Copy link
Author

kilroy98 commented Oct 30, 2023

I tried this and backup was made only from 1 to 9. From 10 to 13 it fails with an error.

Choice: 4

Download file: "/tmp/dmesg.log" ....
Download file: "/tmp/mtd_list.txt" ....
Download file: "/tmp/mtd_addr.txt" ....
Download file: "/tmp/kcmdline.log" ....
Download file: "/tmp/dmesg.log" ....
Download file: "/tmp/mtd_list.txt" ....
Download file: "/tmp/mtd_addr.txt" ....
   0 > addr: 0x00000000  size: 0x07F80000  name: "ALL"
   1 > addr: 0x00000000  size: 0x00080000  name: "Bootloader"
   2 > addr: 0x00080000  size: 0x00040000  name: "Config"
   3 > addr: 0x000C0000  size: 0x00040000  name: "Bdata"
   4 > addr: 0x00100000  size: 0x00040000  name: "Factory"
   5 > addr: 0x00140000  size: 0x00040000  name: "crash"
   6 > addr: 0x00180000  size: 0x00040000  name: "crash_syslog"
   7 > addr: 0x001C0000  size: 0x00040000  name: "cfg_bak"
   8 > addr: 0x00200000  size: 0x00400000  name: "kernel0"
   9 > addr: 0x00600000  size: 0x00400000  name: "kernel1"
  10 > addr: 0x00A00000  size: 0x01A00000  name: "rootfs0"
  11 > addr: 0x02400000  size: 0x01A00000  name: "rootfs1"
  12 > addr: 0x03E00000  size: 0x02600000  name: "overlay"
  13 > addr: 0x06400000  size: 0x01B80000  name: "obr"

Enter partition name or mtd number: 12

ERROR: SSH execute command timed out! CMD: "dd if=/dev/mtd12 of=/tmp/mtd_dump.bin"

But if you select items from 10 to 13, then there will be no error 502. Only if you making a full backup or select item 0.

@kilroy98
Copy link
Author

kilroy98 commented Nov 1, 2023

@remittor Is it normal for stock Xiaomi firmware that some partitions cannot be backed up or the backup function is not optimised for my router?

@remittor
Copy link
Contributor

remittor commented Nov 1, 2023

It’s just that when writing the code, I didn’t take into account the fact that some devices have very small RAM.
For such cases, I need to rewrite my code.

@kilroy98
Copy link
Author

kilroy98 commented Nov 1, 2023

I understand. This router has 128MB of RAM.
If you plan to change the code in the near future, then I may not install custom firmware for now to check the functionality later.

@kilroy98
Copy link
Author

kilroy98 commented Nov 5, 2023

@remittor How can I find out the size of the partition? I connected to the router via winscp, when I tried to create a backup from 10 to 13, the file was still created, even though the utility had an error message. But I don’t know what size these partitions are to be sure that its backup of this partition is full.

P.S. And can I write here in Russian? Or is it better to use English?

@ge38kun
Copy link

ge38kun commented Jun 7, 2024

I have made a full backup of Xiaomi 6500 pro. How can be restored? is there any option?

thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants