TechKnow

Author Topic: [How To] WM8505 - Root Built-in Factory ROM  (Read 1392 times)

0 Members and 1 Guest are viewing this topic.

Offline tengz08

  • Newbie
  • *
  • Posts: 35
  • Karma: +6/-0
  • Techboy in the house!
  • Tablet / Size / Model: Apad Irobot 7" (Flytouch) [BRICKED]
[How To] WM8505 - Root Built-in Factory ROM
« on: August 22, 2014, 01:13:26 PM »
About

         This tutorial is for rooting the ROM that your WM8505 tablet came with. This works for me and should work for you, but if you encounter any problems, do not hesitate to reply.

Prerequisites

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

Instructions

1. Extract the downloaded script archive to the root of your Micro SD Card. (There should be a script folder in the Micro SD Card after extraction)

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 Root Script after 8 second(s) ..." 0000ff
sleep 1
textout 30 80 "Starting Custom Root Script after 7 second(s) ..." 0000ff
sleep 1
textout 30 80 "Starting Custom Root Script after 6 second(s) ..." 0000ff
sleep 1
textout 30 80 "Starting Custom Root Script after 5 second(s) ..." 0000ff
sleep 1
textout 30 80 "Starting Custom Root Script after 4 second(s) ..." 0000ff
sleep 1
textout 30 80 "Starting Custom Root Script after 3 second(s) ..." 0000ff
sleep 1
textout 30 80 "Starting Custom Root Script after 2 second(s) ..." 0000ff
sleep 1
textout 30 80 "Starting Custom Root Script after 1 second(s) ..." 0000ff
sleep 1
mmcinit
setenv ctxt1 'textout2 668 455 "Custom Script" c5c5c5'
run ctxt1
cleanlcd
textout 30 80 "Loading Built-in Kernel" 0000ff
nandrw read 0 0 600000
textout -1 -1 "Built-in Kernel Successfully Loaded" 99ffff
textout -1 -1 "Starting Rooting Process =>" 0000ff
setenv bootargs 'mem=237M Root=/dev/ram rw initrd=0x01000000,32M console=ttyS0,115200n8 init=/linuxrc lcdid=1 loadtime=-2'
fatload mmc 0 1000000 script/ramdisk_for_upgrade.gz
textout -1 -1 "Please wait =>" 99ffff
bootm 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 with the 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 on your Micro SD Card.

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

8. When its finished, remove the Micro SD Card, wait for it to shutdown then turn it on again.

9. There should be a terminal app installed. Open it and type su. If a superuser prompt appears, the rooting process was successful.

Notes

    There are two ram disk for upgrade in the script folder. If the first one doesn't work try the other one which is for a X.XX_88 but if it is unnecessary, I'll remove it to reduce the file size.

    If the factory kernel doesn't load change
Code: [Select]
nandrw read to
Code: [Select]
nand read or any other command that would work for you. (Search in Google for uboot commands, also reply what command you used that worked including the tablet specs that it worked on.)

Problems

    None at the moment.