[Development] How to root the Teclast M40
[Development] How to root the Teclast M40
python avbtool make_vbmeta_image --key rsa4096_vbmeta.pem --algorithm SHA256_RSA4096 --flag 0 --chain_partition boot:1:keys/your-key.bin --chain_partition dtbo:5:keys/dtbo_key.bin --chain_partition recovery:2:keys/your-key.bin --chain_partition socko:6:keys/socko_key.bin --chain_partition odmko:7:keys/odmko_key.bin --chain_partition vbmeta_system:3:keys/vbmeta_system_key.bin --chain_partition vbmeta_vendor:4:keys/vbmeta_vendor_key.bin --chain_partition l_modem:8:keys/l_modem_key.bin --chain_partition l_ldsp:9:keys/l_ldsp_key.bin --chain_partition l_gdsp:10:keys/l_gdsp_key.bin --chain_partition pm_sys:11:keys/pmsys_key.bin --chain_partition l_agdsp:12:keys/l_agdsp_key.bin --chain_partition l_cdsp:13:keys/l_cdsp_key.bin --padding_size 20480 --output vbmeta-sign-custom.img
fastboot --disable-verification flash vbmeta vbmeta.img
python avbtool add_hash_footer --image boot_magisk_patched_repack.img --partition_name boot --partition_size 36700160 --key your-key.pem --algorithm SHA256_RSA4096
fastboot flash:raw boot boot.img
usage: avbtool add_hash_footer [-h] [--image IMAGE]
[--partition_size PARTITION_SIZE]
[--partition_name PARTITION_NAME]
[--hash_algorithm HASH_ALGORITHM] [--salt SALT]
[--calc_max_image_size]
[--output_vbmeta_image OUTPUT_VBMETA_IMAGE]
[--do_not_append_vbmeta_image]
[--algorithm ALGORITHM] [--key KEY]
[--signing_helper APP]
[--signing_helper_with_files APP]
[--public_key_metadata KEY_METADATA]
[--rollback_index ROLLBACK_INDEX]
[--append_to_release_string STR]
[--prop KEY:VALUE] [--prop_from_file KEY:PATH]
[--kernel_cmdline CMDLINE]
[--setup_rootfs_from_kernel IMAGE]
[--include_descriptors_from_image IMAGE]
[--print_required_libavb_version]
[--chain_partition PART_NAME:ROLLBACK_SLOT:KEY_PATH]
[--flags FLAGS] [--set_hashtree_disabled_flag]
[--use_persistent_digest] [--do_not_use_ab]
avbtool add_hash_footer: error: argument --image: invalid FileType('rab+') value: 'boot.img'
(26-12-2020, 10:26 PM)hovatek ...
(09-03-2021, 02:19 PM)mikrotik1000 Any youtube video with clear instruction on how to reduce the boot.img size for this sole purpose?
Its so beautiful to reference such complicated tut with an existing video that was done by Hovatek or X3non.
(27-05-2021, 09:23 AM)rwk When I run the command (from above):
...
P.S. I am targeting a Teclast M40 with standard keys.