Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
How to backup current firmware on Huawei E5885

Huawei E5885 current firmware backup manual.

  1. Download modified usbloader, which will copy proper busybox into /system/busybox and enable telnetd on your device (will add additional line into /system/autorun.sh). Use it only on E5885, not on other device!
  2. Load it using balong-usbdload. Refer to this disassembling manual.
  3. After loading, wait about one minute, disconnect device from the computer and power off the device holding power button for ~15 seconds.
  4. Insert MicroSD card to the device and power it on.
  5. telnet 192.168.8.1 2323
/system/busybox sh
mount /dev/block/mmcblk0p1 /sdcard
cd /sdcard

mkdir mtdblocks
cd mtdblocks
for i in `seq 0 27`; do cat /dev/block/mtdblock$i > mtdblock$i; done

cd ..
mkdir nanddump
cd nanddump
for i in `seq 0 27`; do nanddump -f mtd$i /dev/mtd/mtd$i; done
for i in `seq 0 27`; do nanddump -o -f mtdoob$i /dev/mtd/mtd$i; done

cd ..
tar cf files.tar /system /app /data /root /modem_log /modem_fw /online /mnvm2:0
cat /proc/mtd > procmtd
cat /proc/kallsyms > kallsyms
mount > mount

cd /
umount /sdcard
  1. That's it. All files should be on MicroSD card.
@mahmood666

This comment has been minimized.

Copy link

@mahmood666 mahmood666 commented Dec 1, 2017

how to restore?

@ValdikSS

This comment has been minimized.

Copy link
Owner Author

@ValdikSS ValdikSS commented Dec 13, 2017

@mahmood666, that's tricky. You need to write saved flies to the MTD device again, using nandwrite command (or copy files directly to mtdblock devices). If you have your router bricked, the best way is to flash a firmware using USB crisis boot, load modified usbloader which enables telnet once, and then perform restore steps with telnet.

@testuser7

This comment has been minimized.

Copy link

@testuser7 testuser7 commented Oct 23, 2018

@ValdikSS is there any chance to get somewhere modified usbloader with busybox and telnetd for B528?

@ValdikSS

This comment has been minimized.

Copy link
Owner Author

@ValdikSS ValdikSS commented Nov 26, 2018

@testuser7, As far as I know, B528 has different architecture.

@saqi755

This comment has been minimized.

Copy link

@saqi755 saqi755 commented Sep 23, 2019

please how to backup in pc the device is E8372h-153 my device not reading memory card

@ValdikSS

This comment has been minimized.

Copy link
Owner Author

@ValdikSS ValdikSS commented Sep 24, 2019

@saqi755, if you have telnet/adb shell access already, you can setup netcat on the host and execute something like tar somefiles | nc hostip:hostport on the router.

@saqi755

This comment has been minimized.

Copy link

@saqi755 saqi755 commented Oct 1, 2019

I have access through putty and total commander please can you provide me complete code or procedures?

@saqi755

This comment has been minimized.

Copy link

@saqi755 saqi755 commented Oct 1, 2019

I want to copy firmware and webui of the device on my pc as a backup please help

@neonJr

This comment has been minimized.

Copy link

@neonJr neonJr commented Feb 8, 2020

i want to get backup firmware file for my current unlocked zong bolt 21.333.64.000.1456 is there any solution that i can extract files for current unlocked device

@rajithavk

This comment has been minimized.

Copy link

@rajithavk rajithavk commented Jul 5, 2020

Is it possible to dump the stockfirmware of a b310s-925 the same way?

@sasha53727

This comment has been minimized.

Copy link

@sasha53727 sasha53727 commented Oct 20, 2020

Hey @ValdikSS, How can I backup and restore Huawei B5 Talkband firmware?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.