Author Topic: [How To] WM8505 - Factory ROM/"NAND & KERNEL" Dump (Backup)  (Read 1354 times)

0 Members and 1 Guest are viewing this topic.

Offline tengz08

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Received: 5
  • Posts: 35
  • Karma: +6/-0
  • Techboy in the house!
  • Tablet / Size / Model: Apad Irobot 7" (Flytouch) [BRICKED]
[How To] WM8505 - Factory ROM/"NAND & KERNEL" Dump (Backup)
« on: August 23, 2014, 02:02:45 PM »
About

               Sadly, the WM8505 neither does nor will ever support CWM so we cannot make a NAND dump of the factory ROM. Luckily I've come up with a simple yet fully working workaround (for me at least, but it should work for you) and would like to share it to everyone.

Prerequisites

A fat32 formatted Micro SD Card
A Rooted WM8505 Tablet; Tutorial Here
A diagnostic file for your particular Tablet (hcdiag.txt); Tutorial Here
Notepad++
MKImage (Windows and Linux)

NAND Dump Instructions

1. Paste this in a new text file with UNIX End Of Line (EOL) and save as *.sh using notepad++ (recommended).

Code: [Select]
echo "Tz08 Script Backup of System"
tar -cvf sdcard/android_fs.tar /bin /busybox /data /default.prop /etc /init /init.goldfish.rc /init.rc /sbin /system /.driver /.restore
echo "Tz08 Script Backup Finished""

2. Copy it to the root of the Micro SD Card.

3. Boot your tablet then insert the Micro SD Card.

4. Open any kind of terminal emulator for android as long as it works :).

5. Enter these commands per line:

Code: [Select]
su
sh sdcard/script.sh

6. After the script has finished, there will be an android_fs.tar on the root of the Micro SD Card.
(This file is fully usable for cooking ROMs for your specific tablet. Tutorial coming soon :android-tongue:)

(WARNING: "DO NOT" use it to replace android_fs.tar of any WM8505 ROM.)

Kernel Binary Dump Instructions

(Commands vary due to different U-Boot versions)

1. Create a folder named "script" in your Micro SD Card.

2. Open Notepad++ and make a script.txt with Unix/linux End Of Line (Important!).

3. Paste this in the empty script.txt:

Code: [Select]
fatload mmc 0 $(BMP_ADR) script/hint_custom.bmp
lcdinit
logo show -1 0
textout 30 80 "Starting Custom Script after 8 seconds ..." ffff00
sleep 1
textout 30 80 "Starting Custom Script after 7 seconds ..." ffff00
sleep 1
textout 30 80 "Starting Custom Script after 6 seconds ..." ffff00
sleep 1
textout 30 80 "Starting Custom Script after 5 seconds ..." ffff00
sleep 1
textout 30 80 "Starting Custom Script after 4 seconds ..." ffff00
sleep 1
textout 30 80 "Starting Custom Script after 3 seconds ..." ffff00
sleep 1
textout 30 80 "Starting Custom Script after 2 seconds ..." ffff00
sleep 1
textout 30 80 "Starting Custom Script after 1 seconds ..." ffff00
sleep 1
mmcinit
setenv ctxt1 'textout2 668 455 "Custom Script" c5c5c5'
run ctxt1
cleanlcd
textout 30 80 "Backing-up Built-in Kernel" ffff00
nandrw read 0 0 XXXXXX
fatstore mmc 0 0 kernel.bin XXXXXX
textout -1 -1 "Built-in Kernel Successfully Backed-up" ff00
textout -1 -1 "Booting ..." ffff00
boot 0

4. Open your hcdiag.txt and find the line containing:
   
Code: [Select]
0x000000000000-0x000000600000 : "kernel-NAND"
    Or any other similar line format with "kernel-NAND".

    4a. Replace the XXXXXX in the script.txt with the last offset from '0x000000000000-0x000000600000', removing the leading
          0x000. (e.g. 600000)

5. Compile it using mkimage with these commands:

Code: [Select]
mkimage -A arm -O linux -T script -C none -a 1 -e 0 -n "customscript" -d script scriptcmd

*Where 'script' is the source of the script.txt you made earlier.
*For Windows users: You can make a shortcut of the executable and add the command as parameters in the shortcut properties.

6. Copy the compiled 'scriptcmd' to the script folder.

7. Insert the Micro SD Card to the tablet and boot.

8. Once finished, there will be a kernel.bin on the root of the Micro SD Card.
(This file is fully usable for use with ROMs for your specific tablet. Tutorial coming soon :android-tongue:)

Recommendations

Kindly upload it to an online file storage and post the link, that would be really helpful for everyone :android-wink:.

To Do

ROM Cooking/Editing with Dumped Factory NAND & KERNEL
Backup RAM Disk (ramdisk(.gz/.tar etc))
Backup U-Boot (uboot.bin)

Credits

Tengz08

Offline Stephan

  • TechKnow Owner
  • Administrator
  • Uber Member
  • *****
  • Thank You
  • -Given: 3697
  • -Received: 1128
  • Posts: 9633
  • Karma: +2278/-106
Re: [How To] WM8505 - Factory ROM/NAND Dump (ROM Backup)
« Reply #1 on: August 28, 2014, 03:27:12 PM »
AWESOME article, thanks tengz08 !

HcH

Offline tengz08

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Received: 5
  • Posts: 35
  • Karma: +6/-0
  • Techboy in the house!
  • Tablet / Size / Model: Apad Irobot 7" (Flytouch) [BRICKED]
Re: [How To] WM8505 - Factory ROM/NAND Dump (ROM Backup)
« Reply #2 on: August 29, 2014, 11:04:43 AM »
Your welcome.

By the way, if you happen to have suggestions/thoughts/ideas/advices about the tar command, specifically what "other files" are needed to be backed up, that would be great :-D.

From what I remembered, build.prop is important, should I include it too?

Also, can you teach me how to cook WM8505 ROMs? Considering the fact that you are the genius behind the awesome ROM releases  :android-wink:. If not, can you just point me out to the right way? I really want to learn how to do it because I'm making a tutorial that will make use of this ROM Dump :-D.

 

Powered by EzPortal