[Android General] mikeopi:
Dump and Flash the dopo M7088 and other RK3066 based ROMs

Any information I give is to be used at your own risk. I take no responsibility for any damage to your device.

Here's my story: I installed an application to change the fonts after I rooted. This damaged the system and created a boot loop. At this point I had not worked out a reliable method to backup and restore the ROM and in the process of trying to fix, I wound up damaging the partitions trying to push a file back into the tablet with adb.

So in my research to restore the ROM, I came across several methods to flash the ROM, but very few methods to dump the complete ROM and I wanted to be able to extract and restore the entire ROM. In another thread, I found scripts to dump the rk3066 chipset. I expanded this idea and modified the scripts to flash the ROM as well. Also, I created an installer script to simplify the process.

These scripts need to use the Ubuntu Linux live DVD to dump and flash the ROM. The advantages of Linux is you can directly connect to the tablet in flash mode without the trouble of having to install drivers or the android SDK.

Download the Linux 12.04 LTS version from the following Link http://www.ubuntu.com/download/desktop .

Once downloaded, burn this ISO file to a DVD using your favorite DVD burning software. Most burning software have the ability to decode ISO files. If needed, here is a free ISO burner. Link: http://download.cnet.com/ImgBurn/3000-2646_4-10847481.html?tag=mncol;2

Download the attached zip file and copy the zip to the USB drive. Do not decompress in windows as we need to do this under linux to preserve the stored permissions.

Boot the PC from the DVD drive. This should start the Linux. You may need to press an “F” key during the BIOS boot to bring up a menu to select which drive to boot from. You should see a purple screen. This is Linux loading. Select the “Try Ubuntu” option and the Linux should boot to the Linux Desktop.

OK, we are in Linux!

Insert the USB drive into the PC wait for the Linux to open a window. It may take a little bit as we are running off a DVD and some resources need to load. Be patient and watch the light to finish blinking on the USB stick! Drag the “ExtractRomRK3066.zip” file in the USB window to the desktop.

Write down the name of the USB in the title bar of the window.

For example, My USB window says: F490-4740 in the title bar. Write this down, then move the USB window to the side.

Double click on the zip file, this opens the zip in a window. Drag the “ExtractRomRK3066“ folder in the zip window to the desktop. When the copy is finished, close the zip window.

Click on the “Dash Home” icon on the top left of the desktop, Type “Terminal” in the search box and select the terminal application icon.

In the Terminal Window type exactly as shown while observing the caps:

cd ~/Desktop/Ex*

Type the command:

ls -l

You should see a file named “install.sh” along with other commands ending with “.sh”.

Type the line as shown below including the “./”:

./install.sh

The required libraries should install to Linux. Don't worry this is only in memory as we are not installing anything to your hard drive. Make sure everything completed without Errors. If you only see warnings, this is OK!

Let's connect the Tablet to the USB port and put into flash mode. With the Tablet power off and the all cables removed, hold the Vol– button and plug in the USB cable. Continue to hold the Vol- button for 5 seconds. Let go of the Vol- button and connect the power cable. We should now be in flash mode.

We can test if we connected to flash mode by typing:

lsusb

You should see a list of USB devices. Within this list you should see a entry that has the ID:

ID: 2207:300a

If you see the ID, great we are connected to the tablet. If not, make sure the tablet is off and do the above Tablet procedure again.

OK we are connected!

Dumping the ROM

Type the following command replacing the “F490-4740” with your USB name we wrote down earlier from the USB title bar and follow the prompts. This will start the dump of the tablet:

sudo ./dumpall.sh /media/F490-4740/output

YAY! We are dumping the ROM!

Now we wait for “done...”, hopefully without any errors.

Double click on the “ output” folder in the USB drive window.

Verify that we have “backup.img”, “boot.img”, “kernel.img”, “misc.img”, “parm.img”, “recovery.img”, “system.img and userdata.img.

Now in the left panel of the USB window. Click on the ^ icon next to the USB drive description. This will unmount the USB drive for removal.

We are done!

Flashing the ROM

To flash a file you will notice other commands with the extension “.sh”. You may use any of these commands to restore all or part of the ROM.

For example:

To flash the below stock rom, extract the zip file to a USB drive and type the command changing the “F490-4740” to the name of your USB drive:

sudo ./flashall-user.sh /media/F490-4740/dopo7088stock

To flash a backup of all files including the userdata.img, type the command changing the “F490-4740” to the name of your USB drive:

sudo ./flashall.sh /media/F490-4740/dopo7088stock

To flash just the recovery, do the same as above only with the command:

sudo ./flashrecovery.sh /media/F490-4740/dopo7088stock

To flash just the system, do the same as above only with the command:

sudo ./flashsystem.sh /media/F490-4740/dopo7088stock

The valid command are:

sudo ./dump?.sh

or

sudo ./flash?.sh

replacing ? With:

all, all-user, backup, boot. cache, kernel, kpanic, misc, recovery, system, user, userdata

----------------------

Hope this helps somebody create a full backup.

Thanks.

UPDATE:

I got another dopo m7088 tablet, created a backup using the above method and flashed my bricked m7088 tablet. Everything works again. YAY!

Below is the dumped stock rom for the dopo m7088. Hopes this help's sombody unbrick their tablet.

Extract the dopo7088stk.zip to a USB drive and follow the above instructions.

Thanks

Stock Rom Link: https://docs.google.com/file/d/0B8YnQA1FX-_yUU1ERXh1TjNUbnc/edit?usp=sharing