[Q] Problem Getting JB 4.3 Port To IMX6Q Tablet - General Questions and Answers

This is for the Freescale IMX6Q tablet (Zenithink C-94). This really is a good tablet that never got a chance. Originally came out with ICS 4.0 on it. Freescale released the source for Jelly Bean 4.3. I have built a rom from that source (and a AOSPA+ rom) , but the problem is with Zenithink. There are the proprietary blobs patched to the "boot.img" and "uImage_update". I need these blobs to get the tablet to initialize, but Zenithink hides behind a wall of silence. I have requested the source for the u-boot and boot.img, but have gotten squat. I have tried to pressure them by reporting a GPL violation here: [email protected] and so far nothing. I have been left with reverse engineering this.
The "uImage_update" is essentially a uImage by what I can tell. On this tablet this writes to partition mmcblk08; basically a pre-file system that is up and running at initialization. The kicker is this is what I pulled off that:
Linux rev 1.0 ext4 filesystem data, UUID=80720123-59a2-fc56-b69d-aaf1e69ad9ae, volume name "vender" (extents) (large files)
This is a dev/zero section on that partition; meaning it overwrites the data from the first initramfs with zeros. Try to go into an adb shell:
Code:
cat /dev/zero
and you'll see what I mean; you get nothing shown. I have extracted the initramfs from this uImage_update and this is what it looks like:
http://www.mediafire.com/download/6e30ctaz6ydn58t/initramfs_uImage.zip
This is very different from what I have seen. I then extracted and decompressed the .gzip data file out of the uImage_update and named it "update". I then typed:
Code:
binwalk update > update.walk
to get this:
Code:
DECIMAL HEX DESCRIPTION
-------------------------------------------------------------------------------------------------------
185916 0x2D63C ASCII cpio archive (SVR4 with no CRC), file name: "system"
186036 0x2D6B4 ASCII cpio archive (SVR4 with no CRC), file name: "system/lib"
186160 0x2D730 ASCII cpio archive (SVR4 with no CRC), file name: "system/lib/libc.so"
468472 0x725F8 ASCII cpio archive (SVR4 with no CRC), file name: "system/lib/libext2_e2p.so"
487080 0x76EA8 ASCII cpio archive (SVR4 with no CRC), file name: "system/lib/libusbhost.so"
496836 0x794C4 ASCII cpio archive (SVR4 with no CRC), file name: "system/lib/libcutils.so"
560808 0x88EA8 ASCII cpio archive (SVR4 with no CRC), file name: "system/lib/libext2_uuid.so"
570612 0x8B4F4 ASCII cpio archive (SVR4 with no CRC), file name: "system/lib/libext4_utils.so"
622588 0x97FFC ASCII cpio archive (SVR4 with no CRC), file name: "system/lib/liblog.so"
636540 0x9B67C ASCII cpio archive (SVR4 with no CRC), file name: "system/lib/libstdc++.so"
642124 0x9CC4C ASCII cpio archive (SVR4 with no CRC), file name: "system/lib/libz.so"
738176 0xB4380 ASCII cpio archive (SVR4 with no CRC), file name: "system/lib/libext2fs.so"
843628 0xCDF6C ASCII cpio archive (SVR4 with no CRC), file name: "system/lib/libext2_blkid.so"
872304 0xD4F70 ASCII cpio archive (SVR4 with no CRC), file name: "system/lib/libext2_com_err.so"
882096 0xD75B0 ASCII cpio archive (SVR4 with no CRC), file name: "system/lib/libm.so"
969572 0xECB64 ASCII cpio archive (SVR4 with no CRC), file name: "system/lib/libext2_profile.so"
983680 0xF0280 ASCII cpio archive (SVR4 with no CRC), file name: "system/bin"
983804 0xF02FC ASCII cpio archive (SVR4 with no CRC), file name: "system/bin/toolbox"
1091336 0x10A708 ASCII cpio archive (SVR4 with no CRC), file name: "system/bin/ext4fixup"
1097032 0x10BD48 ASCII cpio archive (SVR4 with no CRC), file name: "system/bin/setup_fs"
1102812 0x10D3DC ASCII cpio archive (SVR4 with no CRC), file name: "system/bin/newfs_msdos"
1210348 0x1277EC ASCII cpio archive (SVR4 with no CRC), file name: "system/bin/linker"
1250068 0x131314 ASCII cpio archive (SVR4 with no CRC), file name: "system/bin/sh"
1402156 0x15652C ASCII cpio archive (SVR4 with no CRC), file name: "system/bin/ext2simg"
1412060 0x158BDC ASCII cpio archive (SVR4 with no CRC), file name: "system/bin/mke2fs"
1447104 0x1614C0 ASCII cpio archive (SVR4 with no CRC), file name: "system/bin/mkdosfs"
1554636 0x17B8CC ASCII cpio archive (SVR4 with no CRC), file name: "system/bin/make_ext4fs"
1560344 0x17CF18 ASCII cpio archive (SVR4 with no CRC), file name: "system/bin/logcat"
1574488 0x180658 ASCII cpio archive (SVR4 with no CRC), file name: "sbin"
1574604 0x1806CC ASCII cpio archive (SVR4 with no CRC), file name: "sbin/test.sh"
1577204 0x1810F4 ASCII cpio archive (SVR4 with no CRC), file name: "sbin/product_tool.sh_1"
1579444 0x1819B4 ASCII cpio archive (SVR4 with no CRC), file name: "sbin/product_tool.sh_2"
1581776 0x1822D0 ASCII cpio archive (SVR4 with no CRC), file name: "sbin/ueventd"
1680556 0x19A4AC ASCII cpio archive (SVR4 with no CRC), file name: "sbin/product_tool.sh2"
1684784 0x19B530 ASCII cpio archive (SVR4 with no CRC), file name: "sbin/product_tool.sh"
1689836 0x19C8EC ASCII cpio archive (SVR4 with no CRC), file name: "sbin/ts_calibrator"
1748816 0x1AAF50 ASCII cpio archive (SVR4 with no CRC), file name: "sbin/busybox"
3383044 0x339F04 ASCII cpio archive (SVR4 with no CRC), file name: "sbin/sh"
3535128 0x35F118 ASCII cpio archive (SVR4 with no CRC), file name: "sbin/product_tool.sh_5"
3540032 0x360440 ASCII cpio archive (SVR4 with no CRC), file name: "sbin/recovery"
3818032 0x3A4230 ASCII cpio archive (SVR4 with no CRC), file name: "sbin/product_tool.sh3"
3821452 0x3A4F8C ASCII cpio archive (SVR4 with no CRC), file name: "sbin/adbd"
3964160 0x3C7D00 ASCII cpio archive (SVR4 with no CRC), file name: "sbin/product_tool.sh_v0.1"
3968736 0x3C8EE0 ASCII cpio archive (SVR4 with no CRC), file name: "sbin/mkext2.sh"
3971392 0x3C9940 ASCII cpio archive (SVR4 with no CRC), file name: "sbin/product_tool.sh_v0.2"
3974620 0x3CA5DC ASCII cpio archive (SVR4 with no CRC), file name: "ueventd.freescale.rc"
3977084 0x3CAF7C ASCII cpio archive (SVR4 with no CRC), file name: "sys"
3977200 0x3CAFF0 ASCII cpio archive (SVR4 with no CRC), file name: "tmp"
3977316 0x3CB064 ASCII cpio archive (SVR4 with no CRC), file name: "ueventd.goldfish.rc"
3977720 0x3CB1F8 ASCII cpio archive (SVR4 with no CRC), file name: "res"
3977836 0x3CB26C ASCII cpio archive (SVR4 with no CRC), file name: "res/images"
3977960 0x3CB2E8 ASCII cpio archive (SVR4 with no CRC), file name: "res/images/icon_installing.png"
4003368 0x3D1628 ASCII cpio archive (SVR4 with no CRC), file name: "res/images/indeterminate01.png"
4004188 0x3D195C ASCII cpio archive (SVR4 with no CRC), file name: "res/images/progress_fill.png"
4004732 0x3D1B7C ASCII cpio archive (SVR4 with no CRC), file name: "res/images/indeterminate03.png"
4005540 0x3D1EA4 ASCII cpio archive (SVR4 with no CRC), file name: "res/images/icon_installing_overlay07.png"
4015756 0x3D468C ASCII cpio archive (SVR4 with no CRC), file name: "res/images/icon_installing_overlay02.png"
4025900 0x3D6E2C ASCII cpio archive (SVR4 with no CRC), file name: "res/images/indeterminate04.png"
4026712 0x3D7158 ASCII cpio archive (SVR4 with no CRC), file name: "res/images/icon_error.png"
4046156 0x3DBD4C ASCII cpio archive (SVR4 with no CRC), file name: "res/images/icon_installing_overlay04.png"
4056128 0x3DE440 ASCII cpio archive (SVR4 with no CRC), file name: "res/images/icon_installing_overlay05.png"
4066144 0x3E0B60 ASCII cpio archive (SVR4 with no CRC), file name: "res/images/indeterminate05.png"
4066972 0x3E0E9C ASCII cpio archive (SVR4 with no CRC), file name: "res/images/icon_installing_overlay03.png"
4076908 0x3E356C ASCII cpio archive (SVR4 with no CRC), file name: "res/images/indeterminate02.png"
4077740 0x3E38AC ASCII cpio archive (SVR4 with no CRC), file name: "res/images/icon_installing_overlay06.png"
4087836 0x3E601C ASCII cpio archive (SVR4 with no CRC), file name: "res/images/progress_empty.png"
4088096 0x3E6120 ASCII cpio archive (SVR4 with no CRC), file name: "res/images/indeterminate06.png"
4088916 0x3E6454 ASCII cpio archive (SVR4 with no CRC), file name: "res/images/icon_installing_overlay01.png"
4099164 0x3E8C5C ASCII cpio archive (SVR4 with no CRC), file name: "res/keys"
4100692 0x3E9254 ASCII cpio archive (SVR4 with no CRC), file name: "ueventd.rc"
4104644 0x3EA1C4 ASCII cpio archive (SVR4 with no CRC), file name: "data"
4104760 0x3EA238 ASCII cpio archive (SVR4 with no CRC), file name: "init"
4203532 0x40240C ASCII cpio archive (SVR4 with no CRC), file name: "init.rc"
4205208 0x402A98 ASCII cpio archive (SVR4 with no CRC), file name: "proc"
4205324 0x402B0C ASCII cpio archive (SVR4 with no CRC), file name: "default.prop"
4206964 0x403174 ASCII cpio archive (SVR4 with no CRC), file name: "etc"
4207080 0x4031E8 ASCII cpio archive (SVR4 with no CRC), file name: "etc/recovery.fstab"
4207564 0x4033CC ASCII cpio archive (SVR4 with no CRC), file name: "dev"
4207680 0x403440 ASCII cpio archive (SVR4 with no CRC), file name: "mkext2.sh"
4210328 0x403E98 ASCII cpio archive (SVR4 with no CRC), file name: "TRAILER!!!"
10454976 0x9F87C0 Linux kernel version "3.0.35 ([email protected]) (gcc version 4.4.3 (GCC) ) #258 SMP PRersion 4.4.3 (GCC) ) #258 SMP PREEMPT Mon Nov 19 18:58:49 CST 2REEMPT Mon Nov 19 18:58:49 CST 20122012"
10468824 0x9FBDD8 LZMA compressed data, properties: 0x02, dictionary size: 16777216 bytes, uncompressed size: 50331648 bytes
10470224 0x9FC350 gzip compressed data, from Unix, NULL date: Wed Dec 31 17:00:00 1969, max compression
10489368 0xA00E18 LZMA compressed data, properties: 0x01, dictionary size: 33554432 bytes, uncompressed size: 50331648 bytes
10546214 0xA0EC26 LZMA compressed data, properties: 0x02, dictionary size: 33554432 bytes, uncompressed size: 133128 bytes
10596880 0xA1B210 LZMA compressed data, properties: 0x48, dictionary size: 33554432 bytes, uncompressed size: 50331648 bytes
10597168 0xA1B330 LZMA compressed data, properties: 0x03, dictionary size: 16777216 bytes, uncompressed size: 67108864 bytes
10615161 0xA1F979 LZMA compressed data, properties: 0x75, dictionary size: 1048576 bytes, uncompressed size: 262144 bytes
10615197 0xA1F99D LZMA compressed data, properties: 0x6E, dictionary size: 1048576 bytes, uncompressed size: 262144 bytes
10615233 0xA1F9C1 LZMA compressed data, properties: 0x64, dictionary size: 1048576 bytes, uncompressed size: 262144 bytes
10625784 0xA222F8 LZMA compressed data, properties: 0x01, dictionary size: 33554432 bytes, uncompressed size: 167772160 bytes
10678417 0xA2F091 LZMA compressed data, properties: 0x02, dictionary size: 1048576 bytes, uncompressed size: 50593792 bytes
10698516 0xA33F14 LZMA compressed data, properties: 0x01, dictionary size: 16777216 bytes, uncompressed size: 92372993 bytes
10698732 0xA33FEC LZMA compressed data, properties: 0x01, dictionary size: 16777216 bytes, uncompressed size: 25231361 bytes
10698828 0xA3404C LZMA compressed data, properties: 0x01, dictionary size: 16777216 bytes, uncompressed size: 16842753 bytes
10698900 0xA34094 LZMA compressed data, properties: 0x02, dictionary size: 16777216 bytes, uncompressed size: 25296897 bytes
10699044 0xA34124 LZMA compressed data, properties: 0x01, dictionary size: 16777216 bytes, uncompressed size: 151060737 bytes
10699116 0xA3416C LZMA compressed data, properties: 0x02, dictionary size: 16777216 bytes, uncompressed size: 92340481 bytes
10699188 0xA341B4 LZMA compressed data, properties: 0x01, dictionary size: 16777216 bytes, uncompressed size: 151060737 bytes
10699260 0xA341FC LZMA compressed data, properties: 0x02, dictionary size: 16777216 bytes, uncompressed size: 92340481 bytes
10706088 0xA35CA8 LZMA compressed data, properties: 0x0A, dictionary size: 33554432 bytes, uncompressed size: 33554434 bytes
10713427 0xA37953 LZMA compressed data, properties: 0xC0, dictionary size: 65536 bytes, uncompressed size: 1 bytes
10735476 0xA3CF74 LZMA compressed data, properties: 0x02, dictionary size: 33554432 bytes, uncompressed size: 234881024 bytes
11474468 0xAF1624 ASCII cpio archive (SVR4 with no CRC), file name: "oop (skipped) already calibrated this CPU"
12398841 0xBD30F9 LZMA compressed data, properties: 0x04, dictionary size: 65536 bytes, uncompressed size: 98304000 bytes
12430328 0xBDABF8 LZMA compressed data, properties: 0x01, dictionary size: 33554432 bytes, uncompressed size: 4 bytes
12430373 0xBDAC25 LZMA compressed data, properties: 0x02, dictionary size: 65536 bytes, uncompressed size: 1179648 bytes
12460472 0xBE21B8 LZMA compressed data, properties: 0x01, dictionary size: 33554432 bytes, uncompressed size: 50331648 bytes
12466532 0xBE3964 LZMA compressed data, properties: 0x02, dictionary size: 16777216 bytes, uncompressed size: 33554432 bytes
12473624 0xBE5518 LZMA compressed data, properties: 0x01, dictionary size: 33554432 bytes, uncompressed size: 50331648 bytes
12474072 0xBE56D8 LZMA compressed data, properties: 0x01, dictionary size: 33554432 bytes, uncompressed size: 50331648 bytes
12513680 0xBEF190 LZMA compressed data, properties: 0x01, dictionary size: 33554432 bytes, uncompressed size: 1 bytes
12544155 0xBF689B LZMA compressed data, properties: 0x01, dictionary size: 65536 bytes, uncompressed size: 2057732 bytes
12544175 0xBF68AF LZMA compressed data, properties: 0x01, dictionary size: 65536 bytes, uncompressed size: 2049025 bytes
12544195 0xBF68C3 LZMA compressed data, properties: 0x01, dictionary size: 65536 bytes, uncompressed size: 2050048 bytes
12544215 0xBF68D7 LZMA compressed data, properties: 0x01, dictionary size: 65536 bytes, uncompressed size: 2032640 bytes
12544235 0xBF68EB LZMA compressed data, properties: 0x01, dictionary size: 65536 bytes, uncompressed size: 2049281 bytes
12544255 0xBF68FF LZMA compressed data, properties: 0x01, dictionary size: 65536 bytes, uncompressed size: 2049537 bytes
12544275 0xBF6913 LZMA compressed data, properties: 0x01, dictionary size: 65536 bytes, uncompressed size: 2049792 bytes
12544295 0xBF6927 LZMA compressed data, properties: 0x01, dictionary size: 65536 bytes, uncompressed size: 1847574 bytes
12544315 0xBF693B LZMA compressed data, properties: 0x01, dictionary size: 65536 bytes, uncompressed size: 1843222 bytes
12544435 0xBF69B3 LZMA compressed data, properties: 0x01, dictionary size: 65536 bytes, uncompressed size: 12722196 bytes
12544475 0xBF69DB LZMA compressed data, properties: 0x01, dictionary size: 65536 bytes, uncompressed size: 12722198 bytes
12544695 0xBF6AB7 LZMA compressed data, properties: 0x01, dictionary size: 65536 bytes, uncompressed size: 66070 bytes
12544895 0xBF6B7F LZMA compressed data, properties: 0x01, dictionary size: 65536 bytes, uncompressed size: 15679511 bytes
12544915 0xBF6B93 LZMA compressed data, properties: 0x01, dictionary size: 65536 bytes, uncompressed size: 12526989 bytes
12544935 0xBF6BA7 LZMA compressed data, properties: 0x01, dictionary size: 65536 bytes, uncompressed size: 12526990 bytes
12544955 0xBF6BBB LZMA compressed data, properties: 0x01, dictionary size: 65536 bytes, uncompressed size: 12526913 bytes
12544975 0xBF6BCF LZMA compressed data, properties: 0x01, dictionary size: 65536 bytes, uncompressed size: 12526922 bytes
12544995 0xBF6BE3 LZMA compressed data, properties: 0x01, dictionary size: 65536 bytes, uncompressed size: 12526849 bytes
12545015 0xBF6BF7 LZMA compressed data, properties: 0x01, dictionary size: 65536 bytes, uncompressed size: 12526850 bytes
12545035 0xBF6C0B LZMA compressed data, properties: 0x01, dictionary size: 65536 bytes, uncompressed size: 12526851 bytes
12545055 0xBF6C1F LZMA compressed data, properties: 0x01, dictionary size: 65536 bytes, uncompressed size: 12526852 bytes
12545075 0xBF6C33 LZMA compressed data, properties: 0x01, dictionary size: 65536 bytes, uncompressed size: 2105360 bytes
12545535 0xBF6DFF LZMA compressed data, properties: 0x01, dictionary size: 65536 bytes, uncompressed size: 2126102 bytes
12545555 0xBF6E13 LZMA compressed data, properties: 0x01, dictionary size: 65536 bytes, uncompressed size: 2126614 bytes
12545575 0xBF6E27 LZMA compressed data, properties: 0x01, dictionary size: 65536 bytes, uncompressed size: 2122518 bytes
12545595 0xBF6E3B LZMA compressed data, properties: 0x01, dictionary size: 65536 bytes, uncompressed size: 2126103 bytes
12545635 0xBF6E63 LZMA compressed data, properties: 0x01, dictionary size: 65536 bytes, uncompressed size: 15675410 bytes
12545655 0xBF6E77 LZMA compressed data, properties: 0x01, dictionary size: 65536 bytes, uncompressed size: 15675411 bytes
12545675 0xBF6E8B LZMA compressed data, properties: 0x01, dictionary size: 65536 bytes, uncompressed size: 15675412 bytes
12545695 0xBF6E9F LZMA compressed data, properties: 0x01, dictionary size: 65536 bytes, uncompressed size: 15675413 bytes
12545715 0xBF6EB3 LZMA compressed data, properties: 0x01, dictionary size: 65536 bytes, uncompressed size: 15675414 bytes
12545735 0xBF6EC7 LZMA compressed data, properties: 0x01, dictionary size: 65536 bytes, uncompressed size: 15679510 bytes
12545755 0xBF6EDB LZMA compressed data, properties: 0x01, dictionary size: 65536 bytes, uncompressed size: 15675415 bytes
12545775 0xBF6EEF LZMA compressed data, properties: 0x01, dictionary size: 65536 bytes, uncompressed size: 15679511 bytes
12554493 0xBF90FD LZMA compressed data, properties: 0x02, dictionary size: 1048576 bytes, uncompressed size: 1073741824 bytes
12554517 0xBF9115 LZMA compressed data, properties: 0x02, dictionary size: 1048576 bytes, uncompressed size: 1073741824 bytes
12554589 0xBF915D LZMA compressed data, properties: 0x02, dictionary size: 2097152 bytes, uncompressed size: 1073741824 bytes
12554613 0xBF9175 LZMA compressed data, properties: 0x02, dictionary size: 2097152 bytes, uncompressed size: 1073741824 bytes
12554685 0xBF91BD LZMA compressed data, properties: 0x02, dictionary size: 4194304 bytes, uncompressed size: 1073741824 bytes
12554709 0xBF91D5 LZMA compressed data, properties: 0x02, dictionary size: 4194304 bytes, uncompressed size: 1073741824 bytes
12554781 0xBF921D LZMA compressed data, properties: 0x02, dictionary size: 8388608 bytes, uncompressed size: 1073741824 bytes
12554805 0xBF9235 LZMA compressed data, properties: 0x02, dictionary size: 8388608 bytes, uncompressed size: 1073741824 bytes
12554829 0xBF924D LZMA compressed data, properties: 0x02, dictionary size: 8388608 bytes, uncompressed size: 1073741824 bytes
12554949 0xBF92C5 LZMA compressed data, properties: 0x02, dictionary size: 16777216 bytes, uncompressed size: 1073741824 bytes
12560849 0xBFA9D1 LZMA compressed data, properties: 0x13, dictionary size: 65536 bytes, uncompressed size: 7340032 bytes
12568984 0xBFC998 LZMA compressed data, properties: 0x01, dictionary size: 131072 bytes, uncompressed size: 2 bytes
12569104 0xBFCA10 LZMA compressed data, properties: 0x09, dictionary size: 131072 bytes, uncompressed size: 2 bytes
12569124 0xBFCA24 LZMA compressed data, properties: 0x0A, dictionary size: 131072 bytes, uncompressed size: 2 bytes
12573615 0xBFDBAF LZMA compressed data, properties: 0x01, dictionary size: 16777216 bytes, uncompressed size: 896 bytes
12573635 0xBFDBC3 LZMA compressed data, properties: 0x01, dictionary size: 16777216 bytes, uncompressed size: 896 bytes
12573655 0xBFDBD7 LZMA compressed data, properties: 0x01, dictionary size: 16777216 bytes, uncompressed size: 896 bytes
12573675 0xBFDBEB LZMA compressed data, properties: 0x01, dictionary size: 16777216 bytes, uncompressed size: 896 bytes
12573695 0xBFDBFF LZMA compressed data, properties: 0x01, dictionary size: 16777216 bytes, uncompressed size: 896 bytes
12573715 0xBFDC13 LZMA compressed data, properties: 0x01, dictionary size: 16777216 bytes, uncompressed size: 896 bytes
12580217 0xBFF579 LZMA compressed data, properties: 0x01, dictionary size: 33554432 bytes, uncompressed size: 49276 bytes
12605245 0xC0573D LZMA compressed data, properties: 0x01, dictionary size: 131072 bytes, uncompressed size: 196608 bytes
12605429 0xC057F5 LZMA compressed data, properties: 0x01, dictionary size: 131072 bytes, uncompressed size: 196608 bytes
12605613 0xC058AD LZMA compressed data, properties: 0x01, dictionary size: 131072 bytes, uncompressed size: 196608 bytes
12605797 0xC05965 LZMA compressed data, properties: 0x01, dictionary size: 131072 bytes, uncompressed size: 196608 bytes
12606165 0xC05AD5 LZMA compressed data, properties: 0x01, dictionary size: 131072 bytes, uncompressed size: 196608 bytes
12606809 0xC05D59 LZMA compressed data, properties: 0x01, dictionary size: 131072 bytes, uncompressed size: 196608 bytes
12631676 0xC0BE7C LZMA compressed data, properties: 0x01, dictionary size: 33554432 bytes, uncompressed size: 456912 bytes
12636813 0xC0D28D LZMA compressed data, properties: 0x04, dictionary size: 262144 bytes, uncompressed size: 65536 bytes
12636901 0xC0D2E5 LZMA compressed data, properties: 0x04, dictionary size: 262144 bytes, uncompressed size: 65536 bytes
12636989 0xC0D33D LZMA compressed data, properties: 0x04, dictionary size: 262144 bytes, uncompressed size: 65536 bytes
12637077 0xC0D395 LZMA compressed data, properties: 0x04, dictionary size: 262144 bytes, uncompressed size: 65536 bytes
12637165 0xC0D3ED LZMA compressed data, properties: 0x04, dictionary size: 262144 bytes, uncompressed size: 65536 bytes
12637253 0xC0D445 LZMA compressed data, properties: 0x04, dictionary size: 262144 bytes, uncompressed size: 65536 bytes
12637341 0xC0D49D LZMA compressed data, properties: 0x04, dictionary size: 262144 bytes, uncompressed size: 65536 bytes
12637429 0xC0D4F5 LZMA compressed data, properties: 0x04, dictionary size: 262144 bytes, uncompressed size: 65536 bytes
12637457 0xC0D511 LZMA compressed data, properties: 0x01, dictionary size: 8388608 bytes, uncompressed size: 2097152 bytes
12637501 0xC0D53D LZMA compressed data, properties: 0x01, dictionary size: 8388608 bytes, uncompressed size: 2097152 bytes
12637517 0xC0D54D LZMA compressed data, properties: 0x04, dictionary size: 262144 bytes, uncompressed size: 65536 bytes
12637605 0xC0D5A5 LZMA compressed data, properties: 0x04, dictionary size: 262144 bytes, uncompressed size: 65536 bytes
12637693 0xC0D5FD LZMA compressed data, properties: 0x04, dictionary size: 262144 bytes, uncompressed size: 65536 bytes
12637781 0xC0D655 LZMA compressed data, properties: 0x04, dictionary size: 262144 bytes, uncompressed size: 65536 bytes
12637869 0xC0D6AD LZMA compressed data, properties: 0x04, dictionary size: 262144 bytes, uncompressed size: 65536 bytes
12637957 0xC0D705 LZMA compressed data, properties: 0x04, dictionary size: 262144 bytes, uncompressed size: 65536 bytes
12638045 0xC0D75D LZMA compressed data, properties: 0x04, dictionary size: 262144 bytes, uncompressed size: 65536 bytes
12638133 0xC0D7B5 LZMA compressed data, properties: 0x04, dictionary size: 262144 bytes, uncompressed size: 65536 bytes
12638221 0xC0D80D LZMA compressed data, properties: 0x04, dictionary size: 262144 bytes, uncompressed size: 65536 bytes
12638309 0xC0D865 LZMA compressed data, properties: 0x04, dictionary size: 262144 bytes, uncompressed size: 65536 bytes
12638397 0xC0D8BD LZMA compressed data, properties: 0x04, dictionary size: 262144 bytes, uncompressed size: 65536 bytes
12638485 0xC0D915 LZMA compressed data, properties: 0x04, dictionary size: 262144 bytes, uncompressed size: 65536 bytes
12638573 0xC0D96D LZMA compressed data, properties: 0x04, dictionary size: 262144 bytes, uncompressed size: 65536 bytes
12638661 0xC0D9C5 LZMA compressed data, properties: 0x04, dictionary size: 262144 bytes, uncompressed size: 65536 bytes
12638749 0xC0DA1D LZMA compressed data, properties: 0x04, dictionary size: 262144 bytes, uncompressed size: 65536 bytes
12638837 0xC0DA75 LZMA compressed data, properties: 0x04, dictionary size: 262144 bytes, uncompressed size: 65536 bytes
12638925 0xC0DACD LZMA compressed data, properties: 0x04, dictionary size: 262144 bytes, uncompressed size: 65536 bytes
12640200 0xC0DFC8 LZMA compressed data, properties: 0x01, dictionary size: 16777216 bytes, uncompressed size: 654311424 bytes
12640232 0xC0DFE8 LZMA compressed data, properties: 0x01, dictionary size: 16777216 bytes, uncompressed size: 654311424 bytes
12640264 0xC0E008 LZMA compressed data, properties: 0x01, dictionary size: 16777216 bytes, uncompressed size: 704643072 bytes
12640296 0xC0E028 LZMA compressed data, properties: 0x01, dictionary size: 16777216 bytes, uncompressed size: 704643072 bytes
12646716 0xC0F93C LZMA compressed data, properties: 0x01, dictionary size: 16777216 bytes, uncompressed size: 50331648 bytes
12661391 0xC1328F LZMA compressed data, properties: 0xC0, dictionary size: 524288 bytes, uncompressed size: 720896 bytes
12675172 0xC16864 LZMA compressed data, properties: 0x02, dictionary size: 33554432 bytes, uncompressed size: 134217728 bytes
This, as you can see, shows the cpio, kernel, gzip, and LZMA files. The .gzip here is the configuration file for the kernel. I did the same with the uImage I built, from the freescale ICS source. This was done so I could compare the to images to isolate the extra files from Zenithink. Then I compared the ICS source to the JB 4.3 source I built to see the changes from ISC to JB. The kernels are essentially the same. I know that threre will be a difference between the builds (ICS=GCC 4.4.3 and JB=GCC 4.6). I extracted these extra (.LZMA) files (binaries) from the original uImage_update to put into the JB uImage.
Next, was the boot.img to boot up the device. I have extracted the initramfs from that:
http://www.mediafire.com/download/5yj8mq7lw2grtlm/initramfs_boot.zip
As one can see, this is very different form the uImage_update. I followed the process as I did with above and I extracted the extra (.LZMA) files (binaries) from the original boot.img to put into the JB boot.img. So now you have a little history traveling down this rabbit hole, My question is:
How do I put these .LZMA files into the JB uImage (to be built and named "uImage_update") and JB boot.img? I do know it comes down to the uImage_update and boot.img to get this to work. I've tried updating the "initramfs" to match the way it is in JB, for both these images, but that did not work. I know someone here can help with this. Please help. Any and all help would be greatly appreciated.
Thanks,

Related

G5 H850 MMC Dump Rom For Qualcomm HS-USB QDLoader 9008

MMC pinout does not exist for the moment for G5. can use it either by typing on the SD card or by programming the MMC directly.
Download
128mb or 512mb MMC Rom Click Here
Thanks for posting. What's this for?
totalnoob34 said:
Thanks for posting. What's this for?
Click to expand...
Click to collapse
for unbrick.
Hello
How do I print a sd card?
This works with SD-card, you tested it ?
The G5 doesn't have eMMC - It has UFS (Universal Flash Storage).
@BySezerSimsek is this for H850 only?
can you help me?how to use those fils
kdz extract linux sd card write done
command link https://mega.nz/#!cJ9WUAiA!TSt9L5G3C...n8vx0pQ9ToxCFw
https://forum.xda-developers.com/g4/...-qfil-t3748946
sorry bad english
---------- Post added at 12:01 PM ---------- Previous post was at 11:56 AM ----------
[email protected]:~/Downloads$ sudo dmesg -c >> /dev/null
[sudo] password for aaya:
[email protected]:~/Downloads$ dmesg
[email protected]:~/Downloads$ sudo fdisk -l /dev/sdb
Disk /dev/sdb: 58,4 GiB, 62730010624 bytes, 122519552 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x00000000
Device Boot Start End Sectors Size Id Type
/dev/sdb1 * 2048 122519551 122517504 58,4G c W95 FAT32 (LBA)
[email protected]:~/Downloads$ cd kdz
[email protected]:~/Downloads/kdz$ sudo -s
[email protected]:~/Downloads/kdz# dd if=PrimaryGPT.bin of=/dev/sdb
48+0 records in
48+0 records out
24576 bytes (25 kB, 24 KiB) copied, 0,0441583 s, 557 kB/s
[email protected]:~/Downloads/kdz# sync
[email protected]:~/Downloads/kdz# ls -la /dev/disk/by-partlabel
total 0
drwxr-xr-x 2 root root 60 Луу 18 19:32 .
drwxr-xr-x 7 root root 140 Луу 18 19:32 ..
lrwxrwxrwx 1 root root 10 Луу 18 18:35 EFI\x20System\x20Partition -> ../../sda1
[email protected]:~/Downloads/kdz# cd kdz
bash: cd: kdz: No such file or directory
[email protected]:~/Downloads/kdz# for i in $(ls *.bin |egrep -v "(GPT|userdata)");do echo dd if=$i of=/dev/disk/by-partlabel/${i/\.bin};done
dd if=abootbak.bin of=/dev/disk/by-partlabel/abootbak
dd if=aboot.bin of=/dev/disk/by-partlabel/aboot
dd if=apdp.bin of=/dev/disk/by-partlabel/apdp
dd if=boot.bin of=/dev/disk/by-partlabel/boot
dd if=cache.bin of=/dev/disk/by-partlabel/cache
dd if=cdt.bin of=/dev/disk/by-partlabel/cdt
dd if=cmnlib64bak.bin of=/dev/disk/by-partlabel/cmnlib64bak
dd if=cmnlib64.bin of=/dev/disk/by-partlabel/cmnlib64
dd if=cmnlibbak.bin of=/dev/disk/by-partlabel/cmnlibbak
dd if=cmnlib.bin of=/dev/disk/by-partlabel/cmnlib
dd if=ddr.bin of=/dev/disk/by-partlabel/ddr
dd if=devcfgbak.bin of=/dev/disk/by-partlabel/devcfgbak
dd if=devcfg.bin of=/dev/disk/by-partlabel/devcfg
dd if=devinfo.bin of=/dev/disk/by-partlabel/devinfo
dd if=dip.bin of=/dev/disk/by-partlabel/dip
dd if=dpo.bin of=/dev/disk/by-partlabel/dpo
dd if=drm.bin of=/dev/disk/by-partlabel/drm
dd if=eksst.bin of=/dev/disk/by-partlabel/eksst
dd if=encrypt.bin of=/dev/disk/by-partlabel/encrypt
dd if=factory.bin of=/dev/disk/by-partlabel/factory
dd if=fota.bin of=/dev/disk/by-partlabel/fota
dd if=fsc.bin of=/dev/disk/by-partlabel/fsc
dd if=fsg.bin of=/dev/disk/by-partlabel/fsg
dd if=grow2.bin of=/dev/disk/by-partlabel/grow2
dd if=grow3.bin of=/dev/disk/by-partlabel/grow3
dd if=grow4.bin of=/dev/disk/by-partlabel/grow4
dd if=grow5.bin of=/dev/disk/by-partlabel/grow5
dd if=grow6.bin of=/dev/disk/by-partlabel/grow6
dd if=grow.bin of=/dev/disk/by-partlabel/grow
dd if=hypbak.bin of=/dev/disk/by-partlabel/hypbak
dd if=hyp.bin of=/dev/disk/by-partlabel/hyp
dd if=keymasterbak.bin of=/dev/disk/by-partlabel/keymasterbak
dd if=keymaster.bin of=/dev/disk/by-partlabel/keymaster
dd if=keystore.bin of=/dev/disk/by-partlabel/keystore
dd if=lafbak.bin of=/dev/disk/by-partlabel/lafbak
dd if=laf.bin of=/dev/disk/by-partlabel/laf
dd if=misc.bin of=/dev/disk/by-partlabel/misc
dd if=modem.bin of=/dev/disk/by-partlabel/modem
dd if=modemst1.bin of=/dev/disk/by-partlabel/modemst1
dd if=modemst2.bin of=/dev/disk/by-partlabel/modemst2
dd if=mpt.bin of=/dev/disk/by-partlabel/mpt
dd if=msadp.bin of=/dev/disk/by-partlabel/msadp
dd if=persist.bin of=/dev/disk/by-partlabel/persist
dd if=pmicbak.bin of=/dev/disk/by-partlabel/pmicbak
dd if=pmic.bin of=/dev/disk/by-partlabel/pmic
dd if=raw_resourcesbak.bin of=/dev/disk/by-partlabel/raw_resourcesbak
dd if=raw_resources.bin of=/dev/disk/by-partlabel/raw_resources
dd if=rct.bin of=/dev/disk/by-partlabel/rct
dd if=recoverybak.bin of=/dev/disk/by-partlabel/recoverybak
dd if=recovery.bin of=/dev/disk/by-partlabel/recovery
dd if=reserve.bin of=/dev/disk/by-partlabel/reserve
dd if=rpmbak.bin of=/dev/disk/by-partlabel/rpmbak
dd if=rpm.bin of=/dev/disk/by-partlabel/rpm
dd if=sec.bin of=/dev/disk/by-partlabel/sec
dd if=sns.bin of=/dev/disk/by-partlabel/sns
dd if=spare1.bin of=/dev/disk/by-partlabel/spare1
dd if=spare2.bin of=/dev/disk/by-partlabel/spare2
dd if=ssd.bin of=/dev/disk/by-partlabel/ssd
dd if=system.bin of=/dev/disk/by-partlabel/system
dd if=tzbak.bin of=/dev/disk/by-partlabel/tzbak
dd if=tz.bin of=/dev/disk/by-partlabel/tz
dd if=xbl2bak.bin of=/dev/disk/by-partlabel/xbl2bak
dd if=xbl2.bin of=/dev/disk/by-partlabel/xbl2
dd if=xblbak.bin of=/dev/disk/by-partlabel/xblbak
dd if=xbl.bin of=/dev/disk/by-partlabel/xbl
[email protected]:~/Downloads/kdz# for i in $(ls *.bin |egrep -v "(GPT|userdata)");do dd if=$i of=/dev/disk/by-partlabel/${i/\.bin};done
4096+0 records in
4096+0 records out
2097152 bytes (2,1 MB, 2,0 MiB) copied, 0,0645802 s, 32,5 MB/s
4096+0 records in
4096+0 records out
2097152 bytes (2,1 MB, 2,0 MiB) copied, 0,033826 s, 62,0 MB/s
1024+0 records in
1024+0 records out
524288 bytes (524 kB, 512 KiB) copied, 0,0139195 s, 37,7 MB/s
81920+0 records in
81920+0 records out
41943040 bytes (42 MB, 40 MiB) copied, 0,538989 s, 77,8 MB/s
1048576+0 records in
1048576+0 records out
536870912 bytes (537 MB, 512 MiB) copied, 6,8639 s, 78,2 MB/s
8+0 records in
8+0 records out
4096 bytes (4,1 kB, 4,0 KiB) copied, 0,000314755 s, 13,0 MB/s
1024+0 records in
1024+0 records out
524288 bytes (524 kB, 512 KiB) copied, 0,00478674 s, 110 MB/s
1024+0 records in
1024+0 records out
524288 bytes (524 kB, 512 KiB) copied, 0,00568034 s, 92,3 MB/s
1024+0 records in
1024+0 records out
524288 bytes (524 kB, 512 KiB) copied, 0,00660332 s, 79,4 MB/s
1024+0 records in
1024+0 records out
524288 bytes (524 kB, 512 KiB) copied, 0,00483936 s, 108 MB/s
4096+0 records in
4096+0 records out
2097152 bytes (2,1 MB, 2,0 MiB) copied, 0,0297275 s, 70,5 MB/s
256+0 records in
256+0 records out
131072 bytes (131 kB, 128 KiB) copied, 0,00236585 s, 55,4 MB/s
256+0 records in
256+0 records out
131072 bytes (131 kB, 128 KiB) copied, 0,00274482 s, 47,8 MB/s
2048+0 records in
2048+0 records out
1048576 bytes (1,0 MB, 1,0 MiB) copied, 0,0135021 s, 77,7 MB/s
2048+0 records in
2048+0 records out
1048576 bytes (1,0 MB, 1,0 MiB) copied, 0,0120692 s, 86,9 MB/s
1024+0 records in
1024+0 records out
524288 bytes (524 kB, 512 KiB) copied, 0,0153506 s, 34,2 MB/s
20480+0 records in
20480+0 records out
10485760 bytes (10 MB, 10 MiB) copied, 0,13946 s, 75,2 MB/s
1024+0 records in
1024+0 records out
524288 bytes (524 kB, 512 KiB) copied, 0,00688644 s, 76,1 MB/s
1024+0 records in
1024+0 records out
524288 bytes (524 kB, 512 KiB) copied, 0,0049967 s, 105 MB/s
135168+0 records in
135168+0 records out
69206016 bytes (69 MB, 66 MiB) copied, 1,01334 s, 68,3 MB/s
8192+0 records in
8192+0 records out
4194304 bytes (4,2 MB, 4,0 MiB) copied, 0,0511182 s, 82,1 MB/s
1024+0 records in
1024+0 records out
524288 bytes (524 kB, 512 KiB) copied, 0,00611613 s, 85,7 MB/s
4096+0 records in
4096+0 records out
2097152 bytes (2,1 MB, 2,0 MiB) copied, 0,0170799 s, 123 MB/s
8+0 records in
8+0 records out
4096 bytes (4,1 kB, 4,0 KiB) copied, 0,000273026 s, 15,0 MB/s
8+0 records in
8+0 records out
4096 bytes (4,1 kB, 4,0 KiB) copied, 0,000179081 s, 22,9 MB/s
8+0 records in
8+0 records out
4096 bytes (4,1 kB, 4,0 KiB) copied, 0,000323429 s, 12,7 MB/s
8+0 records in
8+0 records out
4096 bytes (4,1 kB, 4,0 KiB) copied, 0,00018018 s, 22,7 MB/s
8+0 records in
8+0 records out
4096 bytes (4,1 kB, 4,0 KiB) copied, 0,000267083 s, 15,3 MB/s
7080+0 records in
7080+0 records out
3624960 bytes (3,6 MB, 3,5 MiB) copied, 0,0571791 s, 63,4 MB/s
1024+0 records in
1024+0 records out
524288 bytes (524 kB, 512 KiB) copied, 0,00556187 s, 94,3 MB/s
1024+0 records in
1024+0 records out
524288 bytes (524 kB, 512 KiB) copied, 0,00537099 s, 97,6 MB/s
1024+0 records in
1024+0 records out
524288 bytes (524 kB, 512 KiB) copied, 0,00457723 s, 115 MB/s
1024+0 records in
1024+0 records out
524288 bytes (524 kB, 512 KiB) copied, 0,0146511 s, 35,8 MB/s
1024+0 records in
1024+0 records out
524288 bytes (524 kB, 512 KiB) copied, 0,00600904 s, 87,2 MB/s
98304+0 records in
98304+0 records out
50331648 bytes (50 MB, 48 MiB) copied, 0,67333 s, 74,8 MB/s
98304+0 records in
98304+0 records out
50331648 bytes (50 MB, 48 MiB) copied, 0,616455 s, 81,6 MB/s
65536+0 records in
65536+0 records out
33554432 bytes (34 MB, 32 MiB) copied, 0,404057 s, 83,0 MB/s
176128+0 records in
176128+0 records out
90177536 bytes (90 MB, 86 MiB) copied, 1,1437 s, 78,8 MB/s
4096+0 records in
4096+0 records out
2097152 bytes (2,1 MB, 2,0 MiB) copied, 0,0244209 s, 85,9 MB/s
4096+0 records in
4096+0 records out
2097152 bytes (2,1 MB, 2,0 MiB) copied, 0,0240775 s, 87,1 MB/s
65536+0 records in
65536+0 records out
33554432 bytes (34 MB, 32 MiB) copied, 0,426183 s, 78,7 MB/s
1024+0 records in
1024+0 records out
524288 bytes (524 kB, 512 KiB) copied, 0,00713832 s, 73,4 MB/s
65536+0 records in
65536+0 records out
33554432 bytes (34 MB, 32 MiB) copied, 0,405352 s, 82,8 MB/s
1024+0 records in
1024+0 records out
524288 bytes (524 kB, 512 KiB) copied, 0,0956617 s, 5,5 MB/s
1024+0 records in
1024+0 records out
524288 bytes (524 kB, 512 KiB) copied, 0,00720851 s, 72,7 MB/s
8192+0 records in
8192+0 records out
4194304 bytes (4,2 MB, 4,0 MiB) copied, 0,0700125 s, 59,9 MB/s
8192+0 records in
8192+0 records out
4194304 bytes (4,2 MB, 4,0 MiB) copied, 0,0754277 s, 55,6 MB/s
1024+0 records in
1024+0 records out
524288 bytes (524 kB, 512 KiB) copied, 0,0422099 s, 12,4 MB/s
82944+0 records in
82944+0 records out
42467328 bytes (42 MB, 40 MiB) copied, 0,51604 s, 82,3 MB/s
82944+0 records in
82944+0 records out
42467328 bytes (42 MB, 40 MiB) copied, 0,542084 s, 78,3 MB/s
64+0 records in
64+0 records out
32768 bytes (33 kB, 32 KiB) copied, 0,00882342 s, 3,7 MB/s
1024+0 records in
1024+0 records out
524288 bytes (524 kB, 512 KiB) copied, 0,0230715 s, 22,7 MB/s
1024+0 records in
1024+0 records out
524288 bytes (524 kB, 512 KiB) copied, 0,0240835 s, 21,8 MB/s
1024+0 records in
1024+0 records out
524288 bytes (524 kB, 512 KiB) copied, 0,00557492 s, 94,0 MB/s
12288+0 records in
12288+0 records out
6291456 bytes (6,3 MB, 6,0 MiB) copied, 0,100289 s, 62,7 MB/s
8192+0 records in
8192+0 records out
4194304 bytes (4,2 MB, 4,0 MiB) copied, 0,0708991 s, 59,2 MB/s
4096+0 records in
4096+0 records out
2097152 bytes (2,1 MB, 2,0 MiB) copied, 0,042133 s, 49,8 MB/s
1024+0 records in
1024+0 records out
524288 bytes (524 kB, 512 KiB) copied, 0,0214201 s, 24,5 MB/s
dd: writing to '/dev/disk/by-partlabel/system': No space left on device
1740777+0 records in
1740776+0 records out
891277312 bytes (891 MB, 850 MiB) copied, 11,3213 s, 78,7 MB/s
dd: writing to '/dev/disk/by-partlabel/tzbak': No space left on device
1+0 records in
0+0 records out
0 bytes copied, 0,0257604 s, 0,0 kB/s
dd: writing to '/dev/disk/by-partlabel/tz': No space left on device
1+0 records in
0+0 records out
0 bytes copied, 0,0130488 s, 0,0 kB/s
dd: writing to '/dev/disk/by-partlabel/xbl2bak': No space left on device
1+0 records in
0+0 records out
0 bytes copied, 0,0112316 s, 0,0 kB/s
dd: writing to '/dev/disk/by-partlabel/xbl2': No space left on device
1+0 records in
0+0 records out
0 bytes copied, 0,00448855 s, 0,0 kB/s
dd: writing to '/dev/disk/by-partlabel/xblbak': No space left on device
1+0 records in
0+0 records out
0 bytes copied, 0,00429619 s, 0,0 kB/s
dd: writing to '/dev/disk/by-partlabel/xbl': No space left on device
1+0 records in
0+0 records out
0 bytes copied, 0,00457151 s, 0,0 kB/s
[email protected]:~/Downloads/kdz#
not working on G5 H820, dead after flashed with H820pr file now only 9008
hello guys, how i must write these files to sd card? just copy? or with any flasher program
BySezerSimsek said:
MMC pinout does not exist for the moment for G5. can use it either by typing on the SD card or by programming the MMC directly.
Download
128mb or 512mb MMC Rom Click Here
Click to expand...
Click to collapse
How do you make one for e.g. the h830?
Hello, need solution for H860 to unbrick
تم الإرسال من Redmi Note 5 باستخدام Tapatalk
Hello people. Anyone found a solution for G5 H850 when the phone does not turn on?
Is there a way to get data back from internal storage chip? Mine just died the other day, official service said one of the processors is unresponsive and they do not have the info how to get the data out.
Is there an option to access data?
Is there an option to make image of internal drive and copy paste to identical phone?
Is there an option to just switch memory module with identical phone?
Thanks to anyone who is able to answer even one question.

How can I backup Soyes XS ROM?

I received my Soyes XS (the 2GB+16GB model) today. Before I start tinkering with it, I would like to make a full backup of the ROM.
The device uses a MTK chip (MT6737?). I tried to google for a scatter file (for SP Flash Tool) for the device, but so far I have not found one. I could try to make a scatter file myself, if I can get the partition offsets and sizes, but so far I have not been able to do that. The device has no /proc/partinfo file and /proc/mtd is empty. Does anybody know how can I determine the partition structure (start offsets and sizes) so that I can make a scatter file?
Or is there any other way to backup the ROM?
I found file MT6737M_Android_scatter.txt from https://raphsonbd.com/mediatek-device-android-scatter-file/
From that file I got the starting offset (0x0) and length (0x80000) of the PGPT partition, which contains the GPT partition table, which contains start sectors and sizes for all of the partitions of my device.
So I started SP Flash Tool and used "Read Back" to read the PGPT partition to my Linux PC to file PGPT. There I issued command "sgdisk -p PGPT", which displayed the following information:
Code:
$ sgdisk -p PGPT
Warning! Disk size is smaller than the main header indicates! Loading
secondary header from the last sector of the disk! You should use 'v' to
verify disk integrity, and perhaps options on the experts' menu to repair
the disk.
Caution: invalid backup GPT header, but valid main header; regenerating
backup header from main header.
Warning! Error 25 reading partition table for CRC check!
Warning! One or more CRCs don't match. You should repair the disk!
Main header: OK
Backup header: ERROR
Main partition table: OK
Backup partition table: ERROR
****************************************************************************
Caution: Found protective or hybrid MBR and corrupt GPT. Using GPT, but disk
verification and recovery are STRONGLY recommended.
****************************************************************************
Disk /home/Big/tmp/Soyes XS/PGPT: 1024 sectors, 512.0 KiB
Sector size (logical): 512 bytes
Disk identifier (GUID): 00000000-0000-0000-0000-000000000000
Partition table holds up to 23 entries
Main partition table begins at sector 2 and ends at sector 7
First usable sector is 1024, last usable sector is 61070335
Partitions will be aligned on 1024-sector boundaries
Total free space is 0 sectors (0 bytes)
Number Start (sector) End (sector) Size Code Name
1 1024 7167 3.0 MiB 0700 proinfo
2 7168 17407 5.0 MiB 0700 nvram
3 17408 37887 10.0 MiB 0700 protect1
4 37888 58367 10.0 MiB 0700 protect2
5 58368 59391 512.0 KiB 0700 lk
6 59392 60415 512.0 KiB 0700 para
7 60416 93183 16.0 MiB 0700 boot
8 93184 125951 16.0 MiB 0700 recovery
9 125952 142335 8.0 MiB 0700 logo
10 142336 162815 10.0 MiB 0700 expdb
11 162816 163839 512.0 KiB 0700 seccfg
12 163840 167935 2.0 MiB 0700 oemkeystore
13 167936 180223 6.0 MiB 0700 secro
14 180224 196607 8.0 MiB 0700 keystore
15 196608 206847 5.0 MiB 0700 tee1
16 206848 217087 5.0 MiB 0700 tee2
17 217088 219135 1024.0 KiB 0700 frp
18 219136 284671 32.0 MiB 0700 nvdata
19 284672 360447 37.0 MiB 0700 metadata
20 360448 5603327 2.5 GiB 0700 system
21 5603328 6422527 400.0 MiB 0700 cache
22 6422528 61037567 26.0 GiB 0700 userdata
23 61037568 61070335 16.0 MiB 0700 flashinfo
Using that information I could use "Read Back" in SP Flash Tool to backup the partitions to my PC. The sector size is 512, so for example for the system partition I must enter 512*360448 = 184549376 as the Start Address and 512*(5603327-360448+1) = 2684354560 as the Length (in Decimal) when adding the partition to be read back.
By the way, the device should have only 16 GB memory, but the userdata partition is 26 GB! Strange!

My phone shows storage size 16 GB, but partition USERDATA is 27 GB - what to believe?

I have Soyes XS phone. I bought a version with 2GB RAM and 16 GB internal storage. And when I look at Settings > Storage it shows Total space 16.00 GB. So far everything is logical.
But then I used SP Flash Tool and used Read Back to download partition PGPT to my PC. That partition contains the partition table for the internal storage. Program sgdisk shows that partition USERDATA alone is bigger that 16 GB:
Code:
Number Start (sector) End (sector) Size Code Name
22 6422528 61037567 26.0 GiB 0700 userdata
Then I downloaded partition USERDATA to my Linux PC. According to program tune2fs, the partition size is 6826880 blocks * 4096 bytes/block = 27962900480 bytes! I checked the file system with fsck, and it found no errors.
Code:
[[email protected] Soyes-XS]$ ls -l
-rw-r--r--. 1 root root 27962900480 Jul 17 02:43 USERDATA
[[email protected] Soyes-XS]$ file *
USERDATA: Linux rev 1.0 ext4 filesystem data, UUID=c25d03d9-ea27-3358-873e-b911bfaab62b, volume name "data" (extents) (large files)
[[email protected] ~]# mount -r -o loop /d0/tmp/Soyes-XS/USERDATA /mnt/
[[email protected] ~]# fsck -n /dev/loop0
fsck from util-linux 2.33.2
e2fsck 1.44.6 (5-Mar-2019)
Warning! /dev/loop0 is mounted.
data: clean, 1980/1712128 files, 253823/6826880 blocks
[[email protected] ~]# tune2fs -l /dev/loop0
tune2fs 1.44.6 (5-Mar-2019)
Filesystem volume name: data
Last mounted on: /data
Filesystem UUID: c25d03d9-ea27-3358-873e-b911bfaab62b
Filesystem magic number: 0xEF53
Filesystem revision #: 1 (dynamic)
Filesystem features: has_journal ext_attr resize_inode filetype extent sparse_super large_file uninit_bg
Filesystem flags: unsigned_directory_hash
Default mount options: (none)
Filesystem state: clean
Errors behavior: Remount read-only
Filesystem OS type: Linux
Inode count: 1712128
Block count: 6826880
Reserved block count: 4096
Free blocks: 6573057
Free inodes: 1710148
First block: 0
Block size: 4096
Fragment size: 4096
Reserved GDT blocks: 126
Blocks per group: 32768
Fragments per group: 32768
Inodes per group: 8192
Inode blocks per group: 512
Last mount time: Tue Jul 16 12:07:14 2019
Last write time: Tue Jul 16 12:07:14 2019
Mount count: 27
Maximum mount count: -1
Last checked: Thu Jan 1 02:00:00 1970
Check interval: 0 (<none>)
Lifetime writes: 79 GB
Reserved blocks uid: 10010 (user unknown)
Reserved blocks gid: 0 (group root)
First inode: 11
Inode size: 256
Required extra isize: 28
Desired extra isize: 28
Journal inode: 8
Default directory hash: tea
Journal backup: inode blocks
What is the real size of my internal storage? If the size is only 16 GB, is there a danger that the phone will eventually try to write beyond the 16 GB and fail?
I though u r lucky
It's possible that your original partition has hard links and they were copied over as separate files by the backup tool. You can use the du program to check the size of the original partition properly without counting hard links more than once.

Question [TWRP] vbmeta.img command issues

The avbtool command couldn’t patch PEM to sign my new custom vbmeta.img
https://forum.xda-developers.com/t/42767...t-85011667 (14-05-2021, 04:57 AM)hd_scania Wrote: But unfortunately, are there vbmeta_pad.py for Android 11+ based firmware? My current stock firmware is And
forum.hovatek.com
My custom vbmeta.img patch issues, possibly due to commands,
Code:
% sudo python avbtool make_vbmeta_image --key PubliCert.TWRP.AOSP11.SM-A125F.hd_scania.pem --algorithm SHA256_RSA4096 --flag 2 --chain_partition bootloader:1:keys/bootloader.keys.bin --chain_partition odm:2:keys/odm.keys.bin --chain_partition tee1:3:keys/tee1.keys.bin --chain_partition lk:4:keys/lk.keys.bin --output vbmeta.TWRP.AOSP11.SM-A125F.hd_scania.img
avbtool: Error getting public key: b'unable to load Public Key\n140674809644416:error:0909006C:PEM routines:get_name:no start line:crypto/pem/pem_lib.c:745:Expecting: PUBLIC KEY\n'
% cat PubliCert.TWRP.AOSP11.SM-A125F.hd_scania.pem
-----BEGIN CERTIFICATE-----
MIIELTCCAxWgAwIBAgIJANEwmqM2Fs8EMA0GCSqGSIb3DQEBBQUAMGwxCzAJBgNV
BAYTAktSMRQwEgYDVQQIEwtTb3V0aCBLb3JlYTEOMAwGA1UEBxMFU3V3b24xJjAk
BgNVBAoTHVNhbXN1bmcgRWxlY3Ryb25pY3MgQ28uLCBMdGQuMQ8wDQYDVQQLEwZN
b2JpbGUwHhcNMTMxMjE2MDg1MDI4WhcNMjMxMjE0MDg1MDI4WjBsMQswCQYDVQQG
EwJLUjEUMBIGA1UECBMLU291dGggS29yZWExDjAMBgNVBAcTBVN1d29uMSYwJAYD
VQQKEx1TYW1zdW5nIEVsZWN0cm9uaWNzIENvLiwgTHRkLjEPMA0GA1UECxMGTW9i
aWxlMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEArjoOavjEbusT83Dv
LvsSVrq4y9HhUmZYnVX5VaOgsp7qUM5ntD9zSxR5JQ9QWCbCKh5RDy+ewnXmFcAV
L2MW5zxn6eI58e5e1Uonx9SnaID5JQHOhKImzH5/1qqVjs467nTTVpkXZOzrzLhs
EOau34Q/AlZ5QO0gh0TDr7YYHbry7Ie+gYePA/9gcB5UzbLQPz2oNGQPlB9e4KSw
4XNXu8BfguRltQbkJkm8/BD93vKN7MIbsxIYCzIIBjv/J79ho4NQqzpky9PFzCt/
KL1Ts7DsoQ6r3GeDgebc1ques18UXUZ1wenHy5k4ruCl6ZJ7QaxzHyEta/RT+VOC
j3IuwwIDAQABo4HRMIHOMB0GA1UdDgQWBBQp+BW4OYblL74MNaxtLPuKS1Ky4DCB
ngYDVR0jBIGWMIGTgBQp+BW4OYblL74MNaxtLPuKS1Ky4KFwpG4wbDELMAkGA1UE
BhMCS1IxFDASBgNVBAgTC1NvdXRoIEtvcmVhMQ4wDAYDVQQHEwVTdXdvbjEmMCQG
A1UEChMdU2Ftc3VuZyBFbGVjdHJvbmljcyBDby4sIEx0ZC4xDzANBgNVBAsTBk1v
YmlsZYIJANEwmqM2Fs8EMAwGA1UdEwQFMAMBAf8wDQYJKoZIhvcNAQEFBQADggEB
AEKg+91c2q1OKoP89QAQCKlLXKQNaaGQisMLISeBAkfF8npSPmftDSu9IPMTR9ZG
2AwCgH1SoI4cBqKJviU1M41IHTC3qJXRAv52Mjfv47AbkVyzLvE5YL/9R9zY+ER/
4KFvye4EvsybB9l0B8eoF/Pk4olX2KrhqkP8EtcDr47VI+FloeHGFef9DSvUz3Np
MQMp4jdNBUZ57mXwKRl1pMgz3f+Cgwi9zWmK9/lf+w0OXKBXxB+vhGMpg/7Y/Ohj
B4OHj7fOFedOEZlSmois41gknKgxyzvd1Xig7QcpIYUgH9FMPZxzhgMElY6zOroC
SYgfWsLmjJM+Q9nMhCMaJf0=
-----END CERTIFICATE-----
%
My stock vbmeta.img,
Code:
Minimum libavb version: 1.0
Header Block: 256 bytes
Authentication Block: 576 bytes
Auxiliary Block: 6784 bytes
Public key (sha1): 4b08c0ac5e043a6ea153b5573f4e9a4a163586b7
Algorithm: SHA256_RSA4096
Rollback Index: 0
Flags: 0
Rollback Index Location: 0
Release String: 'avbtool 1.1.0'
Descriptors:
Chain Partition descriptor:
Partition Name: recovery
Rollback Index Location: 5
Public key (sha1): 4b08c0ac5e043a6ea153b5573f4e9a4a163586b7
Chain Partition descriptor:
Partition Name: prism
Rollback Index Location: 10
Public key (sha1): 4b08c0ac5e043a6ea153b5573f4e9a4a163586b7
Chain Partition descriptor:
Partition Name: optics
Rollback Index Location: 11
Public key (sha1): 4b08c0ac5e043a6ea153b5573f4e9a4a163586b7
Prop: com.android.build.boot.os_version -> '11'
Prop: com.android.build.boot.security_patch -> '2021-05-01'
Prop: com.android.build.system.os_version -> '11'
Prop: com.android.build.system.security_patch -> '2021-05-01'
Prop: com.android.build.vendor.os_version -> '11'
Prop: com.android.build.vendor.security_patch -> '2021-05-01'
Hash descriptor:
Image Size: 14592528 bytes
Hash Algorithm: sha256
Partition Name: boot
Salt: 4ffb60369f22e58b651def4b1f542010e0f86893f606c6c56ac9e0541fb429c8
Digest: f281e0eccb48303ea69cbe3167a90ad60f0844fd326d36e1be5bed2db0967be5
Flags: 0
Hash descriptor:
Image Size: 236032 bytes
Hash Algorithm: sha256
Partition Name: bootloader
Salt: f927e0e2d15bde3d9f8962d09e956f3241a0acf326b1b4a44a7956095177e9f7
Digest: 41f6dcc8fb70ca0db71064abde5393ecc5d73754a96632b7bc771d537e31ea48
Flags: 0
Hash descriptor:
Image Size: 1261488 bytes
Hash Algorithm: sha256
Partition Name: lk
Salt: 0a902aeb436b1a4193fe2e17f0a841a24ac36d76849f38526da8bb085e112826
Digest: 88fb433cedb7f2d2f63392299cf1451be21aa200dcb6b51175065988ef5b4773
Flags: 0
Hash descriptor:
Image Size: 769248 bytes
Hash Algorithm: sha256
Partition Name: tee1
Salt: 06ddedc81645b86397000cab411c4630fdd9b38dce69c9946ce58d5e880c32e6
Digest: 7b71a09ea532f3a39c26caf204c5a967441a8fa51a8699bf84dc9fb6d99919b5
Flags: 0
Hashtree descriptor:
Version of dm-verity: 1
Image Size: 4194304 bytes
Tree Offset: 4194304
Tree Size: 36864 bytes
Data Block Size: 4096 bytes
Hash Block Size: 4096 bytes
FEC num roots: 2
FEC offset: 4231168
FEC size: 40960 bytes
Hash Algorithm: sha256
Partition Name: odm
Salt: 44ada8b3fa94014e47a255404f73f42a0b1bd3300c4253f6d8c160ed889ba4b4
Root Digest: 46d6766f06dce9dc0696be45fd51e07183c91916ccc8f50ba7a121681c79da87
Flags: 0
Hashtree descriptor:
Version of dm-verity: 1
Image Size: 863334400 bytes
Tree Offset: 863334400
Tree Size: 6803456 bytes
Data Block Size: 4096 bytes
Hash Block Size: 4096 bytes
FEC num roots: 2
FEC offset: 870137856
FEC size: 6881280 bytes
Hash Algorithm: sha256
Partition Name: product
Salt: 9d06f632977f1a82d6df0a7e5fa5ff53869fd135509b17f9ae7f864159df4d93
Root Digest: f2d69223a89de6b6c0d88be4939e6d0b8b06186d6c19062b288f8c8e96daaf75
Flags: 0
Hashtree descriptor:
Version of dm-verity: 1
Image Size: 3775029248 bytes
Tree Offset: 3775029248
Tree Size: 29732864 bytes
Data Block Size: 4096 bytes
Hash Block Size: 4096 bytes
FEC num roots: 2
FEC offset: 3804762112
FEC size: 30081024 bytes
Hash Algorithm: sha256
Partition Name: system
Salt: dcb169f26737b4025df472c3bcccff1d178f346b1e04913a593a1b9bfc9c3cae
Root Digest: a43d877bf747a0e8f19f6311249af37862d1aacab2112910f1963381ff69848f
Flags: 0
Hashtree descriptor:
Version of dm-verity: 1
Image Size: 513945600 bytes
Tree Offset: 513945600
Tree Size: 4055040 bytes
Data Block Size: 4096 bytes
Hash Block Size: 4096 bytes
FEC num roots: 2
FEC offset: 518000640
FEC size: 4096000 bytes
Hash Algorithm: sha256
Partition Name: vendor
Salt: e64f73094a6b5f611f60a305565fdd374981ded0c0ab927dff321cd2f22eaf06
Root Digest: fdb87f57c6b1d8efba5dc4357c9f940ff29cff8852d277ac22aaafd7ebdcaa39
Flags: 0

[INFO] My Moto G52

Hello All,
I bought Motorola G52 PAU70015IN (India) 6|128 variant on 22nd December 2022 via Flipkart. Here I will some guides and general info for Motorola G52
Specifications
Spoiler
169 grams lightweight
6.6in 90Hz FHD+ pOLED display
33w fast charging support with charger included in box
4G with Carrier Aggregation Support
Stereo Speakers with Dolby Atmos support, Secondary Noise Cancellation Mic
50MP main camera + 8 MP Ultrawide + 2MP Macro at back and 16MP front
Side mounted finger-print scanner, NFC support, IP52 rated
HDR10 and Widevine L1 support
UFS(2.1?) storage(uMCP)
Snapdragon 680 SM6225(Khaje)
5000 mAh with Type-C port
Android 12 and can be upgraded to 13
See all detailed specifications at https://www.motorola.in/smartphone-motorola-moto-g52/p and https://www.xda-developers.com/moto...lay-snapdragon-680-soc-and-a-5000mah-battery/
Software Info
Spoiler
Codename: rhode
Bootloader Unlockable (read this before doing)
Near to Stock Android 12 and upgradable to Android 13
Firmware: https://mirrors.lolinet.com/firmware/motorola/rhode/official/
Spoiler: Applications
List of Stock Moto Apps that can be available in Play Store
Moto Widget
Interactive Wallpapers
Device Help
Moto Gametime
FM Radio
Moto App
Moto Camera 3
Camera Tuner 4
Moto Camera Content 3
Moto Tour
Moto Actions
Moto Display
Moto Power Touch
Moto Face Unlock
Screenshot Editor
Moto AI Services
Moto Update Services
Moto Feedback
Recorder
Camera Desktop Settings
Easy Prefix
Moto Notifications
Guides by G52 Community
http://rentry.co/g52g_m or http://rentry.org/g52g_m
Guides by @sd_shadow
Spoiler
Unlocking Bootloader
Rooting with Magisk
Flashing Firmware
Flashing and Unbricking
Bootloader Unlock & Flashing
Spoiler
Warning: Don't unlock bootloader if you don't know how to correctly lock bootloader, since locking bootloader seems like scary thing in Moto because if you fail to restore Stock fully and relock bootloader, you can't able to flash anything with the available free flashing tools and resources. So proceed with care.
Also Widevine will become L3 from L1.
Unlike Google, Xiaomi, OnePlus, Realme bootloader unlocking in Motorola mobiles will VOID WARRANTY
See official guide at https://motorola-global-portal.custhelp.com/app/standalone/bootloader/unlock-your-device-a
Legal Terms at https://motorola-global-portal.custhelp.com/app/answers/detail/a_id/89425
Spoiler: Flashing
This device comes with Virtual A/B Partition Scheme. This means most of the partitions are doubled with _a and _b suffixes like boot_a and boot_b.
Some development links
Spoiler
Causes of Hard Brick
Locking Bootloader
Moto G60
Moto G100
Changing slots
Moto G7 Power
Bad flashing
Motorola Nexus 6
Because of downgrading
Moto G7 Plus (seems like downgrade in oem_locked)
Because of downgrading and locking
Moto G60
Moto G60 another guy
Moto G30
Because of downgrading and OTA updating
Moto Z Play
Moto Z Play (another)
Moto X Pure (SD Card Method)
Locking bootloader with custom images or other region stock roms
Moto Razr 5G
Moto G 5G Plus, xda
Moto G10
Moto G40
Misc Unbrick guides
Moto G6 Plus
Moto G5 Unbrick(SD Card Method)
Note:- Since our device uses UFS, SD Card Method will not work in devices with UFS. So only blankflash method is remaining.
Building blank flashes
Build blank flash yourself
Reddit Guide
Generating singleimage.bin (old disk image format)
HemanthJabalpuri said:
Hello All,
I bought Motorola G52(India) 6|128 variant on 22nd December 2022 via Flipkart. Here I will some guides and general info for Motorola G52
Specifications
169 grams lightweight
6.6in 90Hz FHD+ pOLED display
33w fast charging support with charger included in box
Stereo Speakers with Dolby Atmos support
50MP main camera + 8 MP Ultrawide + 2MP Macro at back and 16MP front
NFC support, IP52 rated
UFS storage(uMCP)
Snapdragon 680
5000 mAh with Type-C port
Android 12 and can be upgraded to 13
See all detailed specifications at https://www.xda-developers.com/moto...lay-snapdragon-680-soc-and-a-5000mah-battery/
Click to expand...
Click to collapse
Hello and good morning, @HemanthJabalpuri
Please read the sub-title of the forum you've originally posted in:
Miscellaneous Android Development
For ROMs, kernels, tools and scripts only (devices that do not have a forum on XDA)
forum.xda-developers.com
I've moved the thread to General Topics but also deleted the two posts that you called "Reserved". Such placeholder posts are only accepted for developers in their own development thread.
Regards
Oswald Boelcke
Senior Moderator
Partition Info of Moto G52.
Since G52 uses UFS it is divided into Logical UNits(LUNs). It has 6 LUNs.
Spoiler
LUN 0 - /dev/bloc/by-name/sda
Spoiler
Code:
:/ # sgdisk --print /dev/block/sda
Disk /dev/block/sda: 4096 sectors, 16.0 MiB
Sector size (logical/physical): 4096/4096 bytes
Disk identifier (GUID): EF690DA0-C557-D70D-D98A-2DB36D02AA99
Partition table holds up to 3 entries
Main partition table begins at sector 2 and ends at sector 2
First usable sector is 6, last usable sector is 4090
Partitions will be aligned on 32-sector boundaries
Total free space is 1781 sectors (7.0 MiB)
Number Start (sector) End (sector) Size Code Name
1 32 2079 8.0 MiB FFFF hw
2 2080 2335 1024.0 KiB A01A ddr
3 2336 4090 6.9 MiB FFFF last_parti0
LUN 1 - /dev/bloc/by-name/sdb
Spoiler
Code:
:/ # sgdisk --print /dev/block/sdb
Disk /dev/block/sdb: 2048 sectors, 8.0 MiB
Sector size (logical/physical): 4096/4096 bytes
Disk identifier (GUID): B4445DF1-19FF-620B-E822-98B3F9488AA5
Partition table holds up to 3 entries
Main partition table begins at sector 2 and ends at sector 2
First usable sector is 6, last usable sector is 2042
Partitions will be aligned on 32-sector boundaries
Total free space is 693 sectors (2.7 MiB)
Number Start (sector) End (sector) Size Code Name
1 32 1311 5.0 MiB A012 xbl_a
2 1312 1375 256.0 KiB FFFF xbl_config_a
3 1376 2042 2.6 MiB FFFF last_parti2
LUN 2 - /dev/bloc/by-name/sdc
Spoiler
Code:
:/ # sgdisk --print /dev/block/sdc
Disk /dev/block/sdc: 2048 sectors, 8.0 MiB
Sector size (logical/physical): 4096/4096 bytes
Disk identifier (GUID): F0179B06-DF74-8244-33FA-4766C3717289
Partition table holds up to 3 entries
Main partition table begins at sector 2 and ends at sector 2
First usable sector is 6, last usable sector is 2042
Partitions will be aligned on 32-sector boundaries
Total free space is 693 sectors (2.7 MiB)
Number Start (sector) End (sector) Size Code Name
1 32 1311 5.0 MiB A012 xbl_b
2 1312 1375 256.0 KiB FFFF xbl_config_b
3 1376 2042 2.6 MiB FFFF last_parti3
LUN 3 - /dev/bloc/by-name/sdd
Spoiler
Code:
:/ # sgdisk --print /dev/block/sdd
Disk /dev/block/sdd: 241664 sectors, 944.0 MiB
Sector size (logical/physical): 4096/4096 bytes
Disk identifier (GUID): D63153E7-E4F9-BE40-6F55-F0BF0FB7AE54
Partition table holds up to 23 entries
Main partition table begins at sector 2 and ends at sector 2
First usable sector is 6, last usable sector is 241658
Partitions will be aligned on 4-sector boundaries
Total free space is 100545 sectors (392.8 MiB)
Number Start (sector) End (sector) Size Code Name
1 32 1055 4.0 MiB A016 tz_a
2 1056 1183 512.0 KiB A018 rpm_a
3 1184 1311 512.0 KiB A017 hyp_a
4 1312 1439 512.0 KiB FFFF cmnlib_a
5 1440 1567 512.0 KiB FFFF cmnlib64_a
6 1568 1695 512.0 KiB FFFF keymaster_a
7 1696 1759 256.0 KiB FFFF prov_a
8 1760 2015 1024.0 KiB FFFF abl_a
9 2016 2527 2.0 MiB FFFF uefisecapp_a
10 2528 2559 128.0 KiB FFFF devcfg_a
11 2560 2579 80.0 KiB FFFF qupfw_a
12 2580 2611 128.0 KiB FFFF storsec_a
13 2612 48691 180.0 MiB 0700 modem_a
14 48692 48947 1024.0 KiB FFFF bluetooth_a
15 48948 65331 64.0 MiB FFFF dsp_a
16 65332 89907 96.0 MiB A036 boot_a
17 89908 96051 24.0 MiB FFFF dtbo_a
18 96064 120639 96.0 MiB FFFF vendor_boot_a
19 120640 124735 16.0 MiB FFFF logo_a
20 124736 124751 64.0 KiB FFFF vbmeta_a
21 124752 124767 64.0 KiB FFFF vbmeta_system_a
22 124768 141151 64.0 MiB A02A fsg_a
23 141152 241658 392.6 MiB FFFF last_parti4
LUN 4 - /dev/bloc/by-name/sde
Spoiler
Code:
:/ # sgdisk --print /dev/block/sde
Disk /dev/block/sde: 30746624 sectors, 117.3 GiB
Sector size (logical/physical): 4096/4096 bytes
Disk identifier (GUID): AFB60E86-7175-40A3-5246-E51DDBC51F11
Partition table holds up to 27 entries
Main partition table begins at sector 2 and ends at sector 2
First usable sector is 6, last usable sector is 30746618
Partitions will be aligned on 1-sector boundaries
Total free space is 142 sectors (568.0 KiB)
Number Start (sector) End (sector) Size Code Name
1 32 33 8.0 KiB A02C ssd
2 64 8255 32.0 MiB A026 persist
3 8256 10303 8.0 MiB A026 prodpersist
4 10304 10559 1024.0 KiB A01F misc
5 10560 10687 512.0 KiB FFFF frp
6 10688 10815 512.0 KiB FFFF utags
7 10816 10943 512.0 KiB FFFF utagsBackup
8 10944 10975 128.0 KiB FFFF cid
9 10976 15071 16.0 MiB FFFF metadata
10 15072 17119 8.0 MiB FFFF kpan
11 17120 19167 8.0 MiB FFFF sp
12 19168 23263 16.0 MiB FFFF carrier
13 23264 23903 2.5 MiB A027 modemst1
14 23904 24543 2.5 MiB A028 modemst2
15 24544 24575 128.0 KiB A029 fsc
16 24576 24583 32.0 KiB FFFF dhob
17 24608 24671 256.0 KiB A023 msadp
18 24672 24672 4.0 KiB A021 devinfo
19 24673 26720 8.0 MiB FFFF logfs
20 26721 26784 256.0 KiB A022 apdp
21 26816 28863 8.0 MiB FFFF spunvm
22 28864 28864 4.0 KiB A040 limits
23 28865 28992 512.0 KiB FFFF uefivarstore
24 29024 29055 128.0 KiB FFFF pad3
25 29056 1880447 7.1 GiB FFFF super
26 1880448 1880575 512.0 KiB FFFF pad4
27 1880576 30746618 110.1 GiB A03A userdata
LUN 5 - /dev/bloc/by-name/sdf
Spoiler
Code:
:/ # sgdisk --print /dev/block/sdf
Disk /dev/block/sdf: 241664 sectors, 944.0 MiB
Sector size (logical/physical): 4096/4096 bytes
Disk identifier (GUID): C440EC50-E0CD-DA85-FFB5-BC7D26D3D860
Partition table holds up to 23 entries
Main partition table begins at sector 2 and ends at sector 2
First usable sector is 6, last usable sector is 241658
Partitions will be aligned on 4-sector boundaries
Total free space is 100545 sectors (392.8 MiB)
Number Start (sector) End (sector) Size Code Name
1 32 1055 4.0 MiB FFFF tz_b
2 1056 1183 512.0 KiB FFFF rpm_b
3 1184 1311 512.0 KiB FFFF hyp_b
4 1312 1439 512.0 KiB FFFF cmnlib_b
5 1440 1567 512.0 KiB FFFF cmnlib64_b
6 1568 1695 512.0 KiB FFFF keymaster_b
7 1696 1759 256.0 KiB FFFF prov_b
8 1760 2015 1024.0 KiB FFFF abl_b
9 2016 2527 2.0 MiB FFFF uefisecapp_b
10 2528 2559 128.0 KiB FFFF devcfg_b
11 2560 2579 80.0 KiB FFFF qupfw_b
12 2580 2611 128.0 KiB FFFF storsec_b
13 2612 48691 180.0 MiB FFFF modem_b
14 48692 48947 1024.0 KiB FFFF bluetooth_b
15 48948 65331 64.0 MiB FFFF dsp_b
16 65332 89907 96.0 MiB FFFF boot_b
17 89908 96051 24.0 MiB FFFF dtbo_b
18 96064 120639 96.0 MiB FFFF vendor_boot_b
19 120640 124735 16.0 MiB FFFF logo_b
20 124736 124751 64.0 KiB FFFF vbmeta_b
21 124752 124767 64.0 KiB FFFF vbmeta_system_b
22 124768 141151 64.0 MiB FFFF fsg_b
23 141152 241658 392.6 MiB FFFF last_parti5
We can use sgdisk --info=<part_num> disk command get partition information
Spoiler
Code:
:/ # sgdisk --info=1 /dev/block/sda
Partition GUID code: B2D77EC0-8957-11E5-AF63-FEFF819CDC9F (Unknown)
Partition unique GUID: 6025B0D2-2210-068C-B204-B5C0B7B3789E
First sector: 32 (at 128.0 KiB)
Last sector: 2079 (at 8.1 MiB)
Partition size: 2048 sectors (8.0 MiB)
Attribute flags: 1000000000000020
Partition name: 'hw'
Since this is a Virtual A/B device, here is the Super partition scheme
Spoiler
Before Update or When we flash stock ROM manually from fastboot
Code:
:/ # lpdump -a
Current slot: _a
Slot 0:
Metadata version: 10.2
Metadata size: 1000 bytes
Metadata max size: 65536 bytes
Metadata slot count: 3
Header flags: virtual_ab_device
Partition table:
------------------------
Name: product_a
Group: mot_dp_group_a
Attributes: readonly
Extents:
0 .. 5895927 linear super 2048
------------------------
Name: product_b
Group: mot_dp_group_b
Attributes: readonly
Extents:
------------------------
Name: system_a
Group: mot_dp_group_a
Attributes: readonly
Extents:
0 .. 1746159 linear super 5898240
------------------------
Name: system_b
Group: mot_dp_group_b
Attributes: readonly
Extents:
0 .. 76175 linear super 7645184
------------------------
Name: system_ext_a
Group: mot_dp_group_a
Attributes: readonly
Extents:
0 .. 1858519 linear super 7723008
------------------------
Name: system_ext_b
Group: mot_dp_group_b
Attributes: readonly
Extents:
------------------------
Name: vendor_a
Group: mot_dp_group_a
Attributes: readonly
Extents:
0 .. 1513143 linear super 9582592
------------------------
Name: vendor_b
Group: mot_dp_group_b
Attributes: readonly
Extents:
------------------------
Super partition layout:
------------------------
super: 2048 .. 5897976: product_a (5895928 sectors)
super: 5898240 .. 7644400: system_a (1746160 sectors)
super: 7645184 .. 7721360: system_b (76176 sectors)
super: 7723008 .. 9581528: system_ext_a (1858520 sectors)
super: 9582592 .. 11095736: vendor_a (1513144 sectors)
------------------------
Block device table:
------------------------
Partition name: super
First sector: 2048
Size: 7583301632 bytes
Flags: none
------------------------
Group table:
------------------------
Name: default
Maximum size: 0 bytes
Flags: none
------------------------
Name: mot_dp_group_a
Maximum size: 7579107328 bytes
Flags: none
------------------------
Name: mot_dp_group_b
Maximum size: 7579107328 bytes
Flags: none
------------------------
Slot 1:
Metadata version: 10.2
Metadata size: 1000 bytes
Metadata max size: 65536 bytes
Metadata slot count: 3
Header flags: virtual_ab_device
Partition table:
------------------------
Name: product_a
Group: mot_dp_group_a
Attributes: readonly
Extents:
0 .. 5895927 linear super 2048
------------------------
Name: product_b
Group: mot_dp_group_b
Attributes: readonly
Extents:
------------------------
Name: system_a
Group: mot_dp_group_a
Attributes: readonly
Extents:
0 .. 1746159 linear super 5898240
------------------------
Name: system_b
Group: mot_dp_group_b
Attributes: readonly
Extents:
0 .. 76175 linear super 7645184
------------------------
Name: system_ext_a
Group: mot_dp_group_a
Attributes: readonly
Extents:
0 .. 1858519 linear super 7723008
------------------------
Name: system_ext_b
Group: mot_dp_group_b
Attributes: readonly
Extents:
------------------------
Name: vendor_a
Group: mot_dp_group_a
Attributes: readonly
Extents:
0 .. 1513143 linear super 9582592
------------------------
Name: vendor_b
Group: mot_dp_group_b
Attributes: readonly
Extents:
------------------------
Super partition layout:
------------------------
super: 2048 .. 5897976: product_a (5895928 sectors)
super: 5898240 .. 7644400: system_a (1746160 sectors)
super: 7645184 .. 7721360: system_b (76176 sectors)
super: 7723008 .. 9581528: system_ext_a (1858520 sectors)
super: 9582592 .. 11095736: vendor_a (1513144 sectors)
------------------------
Block device table:
------------------------
Partition name: super
First sector: 2048
Size: 7583301632 bytes
Flags: none
------------------------
Group table:
------------------------
Name: default
Maximum size: 0 bytes
Flags: none
------------------------
Name: mot_dp_group_a
Maximum size: 7579107328 bytes
Flags: none
------------------------
Name: mot_dp_group_b
Maximum size: 7579107328 bytes
Flags: none
------------------------
:/ #
After update
Code:
:/ # lpdump -a
Current slot: _b
Slot 0:
Metadata version: 10.2
Metadata size: 1000 bytes
Metadata max size: 65536 bytes
Metadata slot count: 3
Header flags: virtual_ab_device
Partition table:
------------------------
Name: product_a
Group: mot_dp_group_a
Attributes: readonly
Extents:
0 .. 5895991 linear super 2048
------------------------
Name: product_b
Group: mot_dp_group_b
Attributes: readonly
Extents:
------------------------
Name: system_a
Group: mot_dp_group_a
Attributes: readonly
Extents:
0 .. 1746231 linear super 5898240
------------------------
Name: system_b
Group: mot_dp_group_b
Attributes: readonly
Extents:
0 .. 76199 linear super 7645184
------------------------
Name: system_ext_a
Group: mot_dp_group_a
Attributes: readonly
Extents:
0 .. 1853231 linear super 7723008
------------------------
Name: system_ext_b
Group: mot_dp_group_b
Attributes: readonly
Extents:
------------------------
Name: vendor_a
Group: mot_dp_group_a
Attributes: readonly
Extents:
0 .. 1513143 linear super 9576448
------------------------
Name: vendor_b
Group: mot_dp_group_b
Attributes: readonly
Extents:
------------------------
Super partition layout:
------------------------
super: 2048 .. 5898040: product_a (5895992 sectors)
super: 5898240 .. 7644472: system_a (1746232 sectors)
super: 7645184 .. 7721384: system_b (76200 sectors)
super: 7723008 .. 9576240: system_ext_a (1853232 sectors)
super: 9576448 .. 11089592: vendor_a (1513144 sectors)
------------------------
Block device table:
------------------------
Partition name: super
First sector: 2048
Size: 7583301632 bytes
Flags: none
------------------------
Group table:
------------------------
Name: default
Maximum size: 0 bytes
Flags: none
------------------------
Name: mot_dp_group_a
Maximum size: 7579107328 bytes
Flags: none
------------------------
Name: mot_dp_group_b
Maximum size: 7579107328 bytes
Flags: none
------------------------
Slot 1:
Metadata version: 10.2
Metadata size: 1096 bytes
Metadata max size: 65536 bytes
Metadata slot count: 3
Header flags: virtual_ab_device
Partition table:
------------------------
Name: product_b
Group: mot_dp_group_b
Attributes: readonly,updated
Extents:
0 .. 5895991 linear super 2048
------------------------
Name: system_b
Group: mot_dp_group_b
Attributes: readonly,updated
Extents:
0 .. 1746607 linear super 5898240
------------------------
Name: system_ext_b
Group: mot_dp_group_b
Attributes: readonly,updated
Extents:
0 .. 1853311 linear super 7723008
------------------------
Name: vendor_b
Group: mot_dp_group_b
Attributes: readonly,updated
Extents:
0 .. 1513055 linear super 9576448
------------------------
Name: product_b-cow
Group: cow
Attributes: none
Extents:
0 .. 77823 linear super 7645184
77824 .. 122783 linear super 11089920
------------------------
Name: system_b-cow
Group: cow
Attributes: none
Extents:
0 .. 1474551 linear super 11134976
------------------------
Name: system_ext_b-cow
Group: cow
Attributes: none
Extents:
0 .. 586103 linear super 12609536
------------------------
Name: vendor_b-cow
Group: cow
Attributes: none
Extents:
0 .. 1296951 linear super 13196288
------------------------
Super partition layout:
------------------------
super: 2048 .. 5898040: product_b (5895992 sectors)
super: 5898240 .. 7644848: system_b (1746608 sectors)
super: 7645184 .. 7723008: product_b-cow (77824 sectors)
super: 7723008 .. 9576320: system_ext_b (1853312 sectors)
super: 9576448 .. 11089504: vendor_b (1513056 sectors)
super: 11089920 .. 11134880: product_b-cow (44960 sectors)
super: 11134976 .. 12609528: system_b-cow (1474552 sectors)
super: 12609536 .. 13195640: system_ext_b-cow (586104 sectors)
super: 13196288 .. 14493240: vendor_b-cow (1296952 sectors)
------------------------
Block device table:
------------------------
Partition name: super
First sector: 2048
Size: 7583301632 bytes
Flags: none
------------------------
Group table:
------------------------
Name: default
Maximum size: 0 bytes
Flags: none
------------------------
Name: mot_dp_group_b
Maximum size: 7579107328 bytes
Flags: none
------------------------
Name: cow
Maximum size: 0 bytes
Flags: none
------------------------
:/ #
Ref:-
- https://forum.xda-developers.com/t/motorola-moto-g-partitions-explained.3418644/
- https://forum.xda-developers.com/t/...ails-about-luns-and-partition-scheme.4123335/
I am working on making TWRP for Moto G52, for now ROM Flashing is not tested Since Custom ROMs are not available as of this writing.
Present Uses of this TWRP
- Grab logs if GSI fails to boot
- Flash recovery only flashable zips like GApps(used for vanilla GSIs)
I tested flashing NikGApps core for Android 13(from here) when I am on phh AOSP Android 13(from here). Magisk.apk flashing also working.
TWRP Tree at https://github.com/HemanthJabalpuri/twrp_motorola_rhode
Download at https://github.com/HemanthJabalpuri/twrp_motorola_rhode/releases/
I am using prebuilt kernel but here are kernel sources https://github.com/MotorolaMobilityLLC/kernel-msm/releases/tag/MMI-S1SR32.38-87-2
Version infos:- Screenshots attached
Build NumberSecurity PatchS1SR32.38-14-21st March 2022S1SR32.38-251st March 2022S1SR32.38-40-21st April 2022S1SR32.38-87-21st June 2022S1SR32.38-1121st July 2022S1SR32.38-124-31st August 2022S1SR32.38-1321st September 2022S1SRS32.38-132-31st November 2022S1SRS32.38-132-51st January 2023S1SRS32.38-132-81st March 2023S1SRS32.38-132-111st May 2023
OTA Updating with Keeping Root(Magisk)
Put stock boot.img of present installed stock rom version in Internal Storage and flash it using Termux
Code:
su
dd if=/sdcard/boot.img of=/dev/block/by-name/boot$(getprop ro.boot.slot_suffix)
Let OTA download and install but Don't reboot after completion
Go to Magisk -> Install -> Install to Inactive Slot (After OTA) -> OK -> LET'S GO
Now you can reboot and Magisk will be there in updated Android
If you updated without following above procedure and if full stock ROM zip is not available, then you can dump boot partition using adb pull /dev/block/by-name/boot_(current-slot) when in TWRP and patch that boot.img using Magisk and flash
Ref:- this
Was looking for info about this device, thanks!
Hey, thanks for your work. Did you flash the aosp with twrp? Can you give brief instructions here?
dellwit said:
Hey, thanks for your work. Did you flash the aosp with twrp? Can you give brief instructions here?
Click to expand...
Click to collapse
I tried phhusson's Android 13 AOSP GSI and it worked fine. We don't need TWRP to flash any GSI.
Instructions to flash GSI in our device are available at https://github.com/phhusson/treble_experimentations/wiki/Moto-G52
Thanks
HemanthJabalpuri
HemanthJabalpuri said:
Version infos:- Screenshots attached
Build NumberSecurity PatchS1SR32.38-14-21st March 2022S1SR32.38-251st March 2022S1SR32.38-40-21st April 2022S1SR32.38-87-21st June 2022S1SR32.38-1121st July 2022S1SR32.38-124-31st August 2022S1SR32.38-1321st September 2022S1SRS32.38-132-31st November 2022S1SRS32.38-132-51st January 2023
Click to expand...
Click to collapse
On my Moto G52, I don't see the Google Play System update details under Security (OS is on Jan'23 security patch). Under About device, Google Play System shows as being on March 2022 update, which is a year old.
Any ideas why? I haven't logged into my Google account on the device, if that makes any difference.
GCam improves the quality of selfies remarkably well. Selfies look like they have been shot using some premium phone.
Do you have configuration files for GCam for Moto G52? There is a slight reddish tint with Google AWB ON and greenish tint with Google AWB OFF. The tint increases in intensity under sunlight.
TheMystic said:
On my Moto G52, I don't see the Google Play System update details under Security (OS is on Jan'23 security patch). Under About device, Google Play System shows as being on March 2022 update, which is a year old.
Any ideas why? I haven't logged into my Google account on the device, if that makes any difference.
Click to expand...
Click to collapse
Maybe that's the issue(you are not logged in)
GCam improves the quality of selfies remarkably well. Selfies look like they have been shot using some premium phone.
Do you have configuration files for GCam for Moto G52? There is a slight reddish tint with Google AWB ON and greenish tint with Google AWB OFF. The tint increases in intensity under sunlight.
Click to expand...
Click to collapse
Sorry, I use stock one only. In Telegram(Search 'Moto G52') there are some configs available. Since I don't use any of them, I can't post them here.
Thanks
HemanthJabalpuri
HemanthJabalpuri said:
Maybe that's the issue(you are not logged in)
Click to expand...
Click to collapse
That's quite strange. What has my logging in got to do with the security update.
HemanthJabalpuri said:
Sorry, I use stock one only. In Telegram(Search 'Moto G52') there are some configs available. Since I don't use any of them, I can't post them here.
Click to expand...
Click to collapse
You should try GCam from BSG. You'll see a huge improvement with it (mainly on selfies) over the stock camera app.
@TheMystic
seems like there are GCam configs available at our community guide in rentry.
Guides by G52 Community
http://rentry.co/g52g_m or http://rentry.org/g52g_m
HemanthJabalpuri said:
I tried phhusson's Android 13 AOSP GSI and it worked fine. We don't need TWRP to flash any GSI.
Instructions to flash GSI in our device are available at https://github.com/phhusson/treble_experimentations/wiki/Moto-G52
Thanks
HemanthJabalpuri
Click to expand...
Click to collapse
hello i hope you will respond, so i want to know if gsi version is at least stable like stock version on moto g52, i want to switch on gsi and i want to use the phone as daily driver and if its worth it.
IgorFTW said:
hello i hope you will respond, so i want to know if gsi version is at least stable like stock version on moto g52, i want to switch on gsi and i want to use the phone as daily driver and if its worth it.
Click to expand...
Click to collapse
Hello, I am a Stock ROM user. Currently using rooted S1SRS32.38-132-3(Nov SPL) (just for Call Recording, nothing else).
I tested only few things in GSI. Like calling, fingerprint, internet connection etc., that too for 1 or 2 days only. I don't play games or use apps that has heavy impact on RAM usage and performance.
So, I can't tell you if you can use a GSI for daily usage purpose. My purpose of testing that GSI is just to tell other Moto G52 users that we can able to "use" custom stuff in the form of GSI.
Thanks
HemanthJabalpuri
HemanthJabalpuri said:
Hello, I am a Stock ROM user. Currently using rooted S1SRS32.38-132-3(Nov SPL) (just for Call Recording, nothing else).
I tested only few things in GSI. Like calling, fingerprint, internet connection etc., that too for 1 or 2 days only. I don't play games or use apps that has heavy impact on RAM usage and performance.
So, I can't tell you if you can use a GSI for daily usage purpose. My purpose of testing that GSI is just to tell other Moto G52 users that we can able to "use" custom stuff in the form of GSI.
Thanks
HemanthJabalpuri
Click to expand...
Click to collapse
but i can install gsi directly from dsu loader and then relock the bootloader? im asking this because i use google pay and its a deal breaker for me.
IgorFTW said:
but i can install gsi directly from dsu loader and then relock the bootloader? im asking this because i use google pay and its a deal breaker for me.
Click to expand...
Click to collapse
You already unlocked bootloader?
Either case, carefully read the warnings of locking the bootloader in 1st post of this thread.
I don't know about DSU, but GPay(in India) is working fine with unlocked bootloader and rooted with Magisk. But many UPI applications(like BHIM and YONO SBI) are not working. So it's better to stay away from these things if your device bootloader is locked.
Thanks
HemanthJabalpuri
HemanthJabalpuri said:
You already unlocked bootloader?
Either case, carefully read the warnings of locking the bootloader in 1st post of this thread.
I don't know about DSU, but GPay(in India) is working fine with unlocked bootloader and rooted with Magisk. But many UPI applications(like BHIM and YONO SBI) are not working. So it's better to stay away from these things if your device bootloader is locked.
Thanks
HemanthJabalpuri
Click to expand...
Click to collapse
no i didnt unlocked the bootloader, im just doing research now, i want a pure google experience without motorola forks . i want to install it without unlocking bootloader, it can be done?
IgorFTW said:
no i didnt unlocked the bootloader, im just doing research now, i want a pure google experience without motorola forks . i want to install it without unlocking bootloader, it can be done?
Click to expand...
Click to collapse
Sorry, I don't about DSU. Without unlocking bootloader, you have to live with Moto Stock ROM.
HemanthJabalpuri said:
Sorry, I don't about DSU. Without unlocking bootloader, you have to live with Moto Stock ROM.
Click to expand...
Click to collapse
but i can relock it back without damages? in europe gpay didnt work with unlocked bootloader
sorry for that repetitive questions...

Categories

Resources