Hi!
I have some problems
And sorry for my english.
I bought a H96 Max X4 Android TV box from Geekbuying. I have factory firmwares for it, so i start to modify the device. It has Android TV 11 version.
The device has root shell on adb, but the device not rooted itself.
The problems are:
I can unpack superimage from stock firmware, and able to do dd backup super from device. But i can not use fastboot flashing because of "FAILED (remote: 0ffff13c)" error.
The number changes depending on which superimage I am trying to write.
This is not real problem, beacuse of i can use dd for flash back the images.
But...
If i try to write back the backuped superimage or what extracted from stock FW, everything is okay. But the unpacked and repacked image causes bootloop.
The lpdump says the device's metadata and the repacked superimage's metadata are the same:
ohm:/ # lpdump
Slot 0:
Metadata version: 10.2
Metadata size: 1104 bytes
Metadata max size: 65536 bytes
Metadata slot count: 3
Header flags: virtual_ab_device
Partition table:
------------------------
Name: system_a
Group: amlogic_dynamic_partitions_a
Attributes: readonly
Extents:
0 .. 1839895 linear super 2048
------------------------
Name: system_b
Group: amlogic_dynamic_partitions_b
Attributes: readonly
Extents:
------------------------
Name: vendor_a
Group: amlogic_dynamic_partitions_a
Attributes: readonly
Extents:
0 .. 357943 linear super 1843200
------------------------
Name: vendor_b
Group: amlogic_dynamic_partitions_b
Attributes: readonly
Extents:
------------------------
Name: product_a
Group: amlogic_dynamic_partitions_a
Attributes: readonly
Extents:
0 .. 854999 linear super 2201600
------------------------
Name: product_b
Group: amlogic_dynamic_partitions_b
Attributes: readonly
Extents:
------------------------
Name: odm_a
Group: amlogic_dynamic_partitions_a
Attributes: readonly
Extents:
0 .. 1559 linear super 3057664
------------------------
Name: odm_b
Group: amlogic_dynamic_partitions_b
Attributes: readonly
Extents:
------------------------
Name: system_ext_a
Group: amlogic_dynamic_partitions_a
Attributes: readonly
Extents:
0 .. 133159 linear super 3059712
------------------------
Name: system_ext_b
Group: amlogic_dynamic_partitions_b
Attributes: readonly
Extents:
------------------------
Super partition layout:
------------------------
super: 2048 .. 1841944: system_a (1839896 sectors)
super: 1843200 .. 2201144: vendor_a (357944 sectors)
super: 2201600 .. 3056600: product_a (855000 sectors)
super: 3057664 .. 3059224: odm_a (1560 sectors)
super: 3059712 .. 3192872: system_ext_a (133160 sectors)
------------------------
Block device table:
------------------------
Partition name: super
First sector: 2048
Size: 2415919104 bytes
Flags: none
------------------------
Group table:
------------------------
Name: default
Maximum size: 0 bytes
Flags: none
------------------------
Name: amlogic_dynamic_partitions_a
Maximum size: 1876951040 bytes
Flags: none
------------------------
Name: amlogic_dynamic_partitions_b
Maximum size: 1876951040 bytes
Flags: none
------------------------
I use this command to repack the superimage:
./lpmake --metadata-size 65536\
--device-size=2415919104\
--metadata-slots=3\
--super-name=super\
--group=amlogic_dynamic_partitions_a:1876951040\
--group=amlogic_dynamic_partitions_b:1876951040\
--partition=system_a:readonly:942026752:amlogic_dynamic_partitions_a\
--partition=system_b:readonly:0:amlogic_dynamic_partitions_b\
--partition=vendor_a:readonly:183267328:amlogic_dynamic_partitions_a\
--partition=vendor_b:readonly:0:amlogic_dynamic_partitions_b\
--partition=product_a:readonly:437760000:amlogic_dynamic_partitions_a\
--partition=product_b:readonly:0:amlogic_dynamic_partitions_b\
--partition=odm_a:readonly:798720:amlogic_dynamic_partitions_a\
--partition=odm_b:readonly:0:amlogic_dynamic_partitions_b\
--partition=system_ext_a:readonly:68177920:amlogic_dynamic_partitions_a\
--partition=system_ext_b:readonly:0:amlogic_dynamic_partitions_b\
--image=system_a=/super/system_a.img\
--image=system_b=/super/system_b.img\
--image=vendor_a=/super/vendor_a.img\
--image=vendor_b=/super/vendor_b.img\
--image=product_a=/super/product_a.img\
--image=product_b=/super/product_b.img\
--image=odm_a=/super/odm_a.img\
--image=odm_b=/super/odm_b.img\
--image=system_ext_a=/super/system_ext_a.img\
--image=system_ext_b=/super/system_ext_b.img\
--virtual-ab\
--output /super/supernew.img
The unpacked modified superimage and the unpacked stock superimage gives the same files.
Any idea for what is the problem?
Thanks!
I have some problems
I bought a H96 Max X4 Android TV box from Geekbuying. I have factory firmwares for it, so i start to modify the device. It has Android TV 11 version.
The device has root shell on adb, but the device not rooted itself.
The problems are:
I can unpack superimage from stock firmware, and able to do dd backup super from device. But i can not use fastboot flashing because of "FAILED (remote: 0ffff13c)" error.
The number changes depending on which superimage I am trying to write.
This is not real problem, beacuse of i can use dd for flash back the images.
But...
If i try to write back the backuped superimage or what extracted from stock FW, everything is okay. But the unpacked and repacked image causes bootloop.
The lpdump says the device's metadata and the repacked superimage's metadata are the same:
ohm:/ # lpdump
Slot 0:
Metadata version: 10.2
Metadata size: 1104 bytes
Metadata max size: 65536 bytes
Metadata slot count: 3
Header flags: virtual_ab_device
Partition table:
------------------------
Name: system_a
Group: amlogic_dynamic_partitions_a
Attributes: readonly
Extents:
0 .. 1839895 linear super 2048
------------------------
Name: system_b
Group: amlogic_dynamic_partitions_b
Attributes: readonly
Extents:
------------------------
Name: vendor_a
Group: amlogic_dynamic_partitions_a
Attributes: readonly
Extents:
0 .. 357943 linear super 1843200
------------------------
Name: vendor_b
Group: amlogic_dynamic_partitions_b
Attributes: readonly
Extents:
------------------------
Name: product_a
Group: amlogic_dynamic_partitions_a
Attributes: readonly
Extents:
0 .. 854999 linear super 2201600
------------------------
Name: product_b
Group: amlogic_dynamic_partitions_b
Attributes: readonly
Extents:
------------------------
Name: odm_a
Group: amlogic_dynamic_partitions_a
Attributes: readonly
Extents:
0 .. 1559 linear super 3057664
------------------------
Name: odm_b
Group: amlogic_dynamic_partitions_b
Attributes: readonly
Extents:
------------------------
Name: system_ext_a
Group: amlogic_dynamic_partitions_a
Attributes: readonly
Extents:
0 .. 133159 linear super 3059712
------------------------
Name: system_ext_b
Group: amlogic_dynamic_partitions_b
Attributes: readonly
Extents:
------------------------
Super partition layout:
------------------------
super: 2048 .. 1841944: system_a (1839896 sectors)
super: 1843200 .. 2201144: vendor_a (357944 sectors)
super: 2201600 .. 3056600: product_a (855000 sectors)
super: 3057664 .. 3059224: odm_a (1560 sectors)
super: 3059712 .. 3192872: system_ext_a (133160 sectors)
------------------------
Block device table:
------------------------
Partition name: super
First sector: 2048
Size: 2415919104 bytes
Flags: none
------------------------
Group table:
------------------------
Name: default
Maximum size: 0 bytes
Flags: none
------------------------
Name: amlogic_dynamic_partitions_a
Maximum size: 1876951040 bytes
Flags: none
------------------------
Name: amlogic_dynamic_partitions_b
Maximum size: 1876951040 bytes
Flags: none
------------------------
I use this command to repack the superimage:
./lpmake --metadata-size 65536\
--device-size=2415919104\
--metadata-slots=3\
--super-name=super\
--group=amlogic_dynamic_partitions_a:1876951040\
--group=amlogic_dynamic_partitions_b:1876951040\
--partition=system_a:readonly:942026752:amlogic_dynamic_partitions_a\
--partition=system_b:readonly:0:amlogic_dynamic_partitions_b\
--partition=vendor_a:readonly:183267328:amlogic_dynamic_partitions_a\
--partition=vendor_b:readonly:0:amlogic_dynamic_partitions_b\
--partition=product_a:readonly:437760000:amlogic_dynamic_partitions_a\
--partition=product_b:readonly:0:amlogic_dynamic_partitions_b\
--partition=odm_a:readonly:798720:amlogic_dynamic_partitions_a\
--partition=odm_b:readonly:0:amlogic_dynamic_partitions_b\
--partition=system_ext_a:readonly:68177920:amlogic_dynamic_partitions_a\
--partition=system_ext_b:readonly:0:amlogic_dynamic_partitions_b\
--image=system_a=/super/system_a.img\
--image=system_b=/super/system_b.img\
--image=vendor_a=/super/vendor_a.img\
--image=vendor_b=/super/vendor_b.img\
--image=product_a=/super/product_a.img\
--image=product_b=/super/product_b.img\
--image=odm_a=/super/odm_a.img\
--image=odm_b=/super/odm_b.img\
--image=system_ext_a=/super/system_ext_a.img\
--image=system_ext_b=/super/system_ext_b.img\
--virtual-ab\
--output /super/supernew.img
The unpacked modified superimage and the unpacked stock superimage gives the same files.
Any idea for what is the problem?
Thanks!