ameer1234567890 / OnlineNandroid

Nandroid Backup without Reboot
Other
117 stars 46 forks source link

Partition Layout for Huawei Y201 U8666E-51 #19

Closed g2droid closed 11 years ago

g2droid commented 11 years ago

Hello ! Very nice app - thank you for your good work.

From what I can see, the partition layout for the U8666e currently supplied with the app doesn't seem to apply to the U8666E-51. Interestingly, the partition layout contained in your part_detect_tool.u666e.zip appears to be different to the layout supplied with the app, and may actually be suited to the U8666E-51. The following is the content of the file "recovery_mmc.fstab" obtained directly from the phone.

Copyright (c) 2011, Code Aurora Forum. All rights reserved.

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. * Neither the name of Code Aurora Forum, Inc. nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

mount point fstype device [device2]

/* < DTS2012011906026 chendeng 20120120 begin _/ /boot emmc /dev/block/mmcblk0p15 /cache ext4 /dev/block/mmcblk0p6 /data ext4 /dev/block/mmcblk0p13 /recovery emmc /dev/block/mmcblk0p16 /misc emmc /dev/block/mmcblk0p7 /sdcard vfat /dev/block/mmcblk1p1 /dev/block/mmcblk1 /system ext4 /dev/block/mmcblk0p12 /sysboot vfat /dev/block/mmcblk0p3 /fat vfat /dev/block/mmcblk0p3 /HWUserData vfat /dev/block/mmcblk0p19
/
< DTS2012020804291 weizhonghui 20120208 begin / /cust ext4 /dev/block/mmcblk0p18 / DTS2012020804291 weizhonghui 20120208 end >/ / DTS2012011906026 chendeng 20120120 end > */

Manually installing the "partlayout4nandroid" file from your zip seems to result in valid restore/recovery backups from onandroid - gauged by comparing results with those from "dd" . However I haven't as yet tested other partitions or performed any restores.

Also I couldn't directly flash your zip file from my stock recovery - signature error. Does flashing require a custom recovery to be used or is there another issue here perhaps?

Would be grateful if you could look at this and perhaps include this model in your supported devices.

Thank you. Regards.

ameer1234567890 commented 11 years ago

Can you post /proc/partitions

g2droid commented 11 years ago

shell@android:/ # cat /proc/partitions major minor #blocks name

179 0 3817472 mmcblk0 179 1 20 mmcblk0p1 179 2 300 mmcblk0p2 179 3 133120 mmcblk0p3 179 4 1 mmcblk0p4 179 5 12288 mmcblk0p5 179 6 196608 mmcblk0p6 179 7 4096 mmcblk0p7 179 8 3072 mmcblk0p8 179 9 4096 mmcblk0p9 179 10 3072 mmcblk0p10 179 11 3072 mmcblk0p11 179 12 393216 mmcblk0p12 179 13 786432 mmcblk0p13 179 14 4096 mmcblk0p14 179 15 8192 mmcblk0p15 179 16 20480 mmcblk0p16 179 17 4096 mmcblk0p17 179 18 81920 mmcblk0p18 179 19 2154496 mmcblk0p19 179 64 1024 mmcblk0boot1 179 32 1024 mmcblk0boot0 179 96 1955840 mmcblk1 179 97 1954816 mmcblk1p1 31 0 4096 mtdblock0

Also file "recovery.fstab"

Copyright (c) 2011, Code Aurora Forum. All rights reserved.

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. * Neither the name of Code Aurora Forum, Inc. nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

mount point fstype device [device2]

/boot mtd boot /cache yaffs2 cache /data yaffs2 userdata /misc mtd misc /recovery mtd recovery /sdcard vfat /dev/block/mmcblk0p1 /dev/block/mmcblk0 /system yaffs2 system /< DTS2012020804291 weizhonghui 20120208 begin */ /HWUserData yaffs2 userdata2 (null) /cust yaffs2 cust / DTS2012020804291 weizhonghui 20120208 end >*/

Regards

ameer1234567890 commented 11 years ago

I believe Huawei Ascend Y201 Pro U8666E and Huawei Ascend Y201 U8666E-51 are two different devices. I shall add your device and update here soon.

ameer1234567890 commented 11 years ago

I have just added your device.