Skip to content

Commit

Permalink
added replacement files for the first successful build 3
Browse files Browse the repository at this point in the history
  • Loading branch information
theintel committed Mar 9, 2022
1 parent 92df4b2 commit 12d94f2
Show file tree
Hide file tree
Showing 22 changed files with 102 additions and 2 deletions.
20 changes: 19 additions & 1 deletion build/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,4 +76,22 @@ The touch enabled but size mismatched kernel was superseded with the stock kerne

RESULT

Recovery booted up in twrp successfully and no data decryption issue was encountered. But the touch sensor was disabled and locking twrp screen with power button was the only way of interaction with twrp.
Recovery booted up in twrp successfully and no data decryption issue was encountered. But the touch sensor was disabled and locking twrp screen with power button was the only way of interaction with twrp.



**Build 3**
Installed magisk module "cross compiled binaries" by zackptg5 and installed original gzip v1.10 via terminal command "ccbins". After two reboots, command "gzip -h" demonstrated the flag "-n or --no--name". Recompression of the recovery.img-zImage_hexfix kernel file with command "gzip -n -k -9" resulted in compressed gzip kernel of size 6993326 which is 1 byte less than size of hexnotfix_errorfree gzip kernel. This nuanced size mismatch was fixed by appending 10 lines of eight "00" bytes or 80 bytes at the end of recovery.img-zImage_hexfix kernel which increased the file size from 22040576 to 22040656. This time the recompression created a gzip size of 6993327 bytes matching exactly with hexnotfix_errorfree gzip kernel.
After appending header and footer data the final recovery.img-zImage kernel file reached a size of 7077184 that matched with the stock kernel which had disabled touch.

RESULT
Supplantation of stock kernel by the new touch sensor hex fixed kernel and repacking before flashing the recovery successfully booted up in twrp with touch sensor enabled.
cache/recovery/last_kmsg last stock kernel log:

[ 1.735551] -(0)[194:kworker/u8:3][<c0288c78>] (enable_irq) from [<c092f428>] (gt1x_irq_enable+0x38/0x50)
[ 1.735606] -(0)[194:kworker/u8:3] r6:c1404948 r5:60000113 r4:c17f9ba0
[ 1.735660] -(0)[194:kworker/u8:3][<c092f3f0>] (gt1x_irq_enable) from [<c092fb48>] (tpd_i2c_probe+0x1e0/0x2f4)
[ 1.735714] -(0)[194:kworker/u8:3] r5:00000000 r4:c17f9ba0
[ 1.735756] -(0)[194:kworker/u8:3][<c092f968>] (tpd_i2c_probe) from [<c0939870>] (i2c_device_probe+0x1d8/0x20c)
[ 1.735811] -(0)[194:kworker/u8:3] r8:c092f968 r7:cf748a04 r6:cf748a20 r5:cf748a00
[ 1.735877] -(0)[194:kworker/u8:3][<c0939698>] (i2c_device_probe) from [<c053cedc>] (driver_probe_device+0x318/0x470)
5 changes: 4 additions & 1 deletion final/ramdisk/etc/recovery.fstab
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@



/dev/block/platform/bootdevice/by-name/userdata /data ext4 noatime,nosuid,nodev,noauto_da_alloc,errors=panic wait,check,quota,formattable,resize,forceencrypt=/dev/block/platform/bootdevice/by-name/metadata,
/dev/block/platform/bootdevice/by-name/userdata /data ext4 noatime,nosuid,nodev,noauto_da_alloc,errors=panic wait,check,quota,formattable,resize,encryptable=/dev/block/platform/bootdevice/by-name/metadata,


/dev/block/platform/bootdevice/by-name/cache /cache ext4 noatime,nosuid,nodev,noauto_da_alloc,discard wait,check
Expand Down Expand Up @@ -74,3 +74,6 @@

/dev/block/platform/bootdevice/by-name/loader_ext1 /loader_ext1 emmc defaults defaults
/dev/block/platform/bootdevice/by-name/loader_ext2 /loader_ext2 emmc defaults defaults

/dev/block/mmcblk1* /external_sd auto flags=display="External SDcard";storage;wipeingui;removable;backup=0
/dev/block/sda* /usbotg auto flags=display="USB-OTG";storage;removable;backup=0
Binary file modified final/split_img/recovery.img-kernel
Binary file not shown.
79 changes: 79 additions & 0 deletions work/ramdisk/etc/recovery123.fstab
Original file line number Diff line number Diff line change
@@ -0,0 +1,79 @@
# 1 "vendor/mediatek/proprietary/hardware/fstab/mt6739/fstab.in"
# 1 "<built-in>"
# 1 "<command-line>"
# 1 "/usr/include/stdc-predef.h" 1 3 4
# 1 "<command-line>" 2
# 1 "vendor/mediatek/proprietary/hardware/fstab/mt6739/fstab.in"
# 107 "vendor/mediatek/proprietary/hardware/fstab/mt6739/fstab.in"
/dev/block/platform/bootdevice/by-name/system /system ext4 ro wait,verify,recoveryonly

/dev/block/platform/bootdevice/by-name/vendor /vendor ext4 ro wait,verify,recoveryonly





/dev/block/platform/bootdevice/by-name/userdata /data ext4 noatime,nosuid,nodev,noauto_da_alloc,errors=panic wait,check,quota,formattable,resize,encryptable=/dev/block/platform/bootdevice/by-name/metadata,


/dev/block/platform/bootdevice/by-name/cache /cache ext4 noatime,nosuid,nodev,noauto_da_alloc,discard wait,check


/dev/block/platform/bootdevice/by-name/protect1 /vendor/protect_f ext4 noatime,nosuid,nodev,noauto_da_alloc,commit=1,nodelalloc wait,check,formattable
/dev/block/platform/bootdevice/by-name/protect2 /vendor/protect_s ext4 noatime,nosuid,nodev,noauto_da_alloc,commit=1,nodelalloc wait,check,formattable
/dev/block/platform/bootdevice/by-name/nvdata /vendor/nvdata ext4 noatime,nosuid,nodev,noauto_da_alloc,discard wait,check,formattable
/dev/block/platform/bootdevice/by-name/nvcfg /vendor/nvcfg ext4 noatime,nosuid,nodev,noauto_da_alloc,commit=1,nodelalloc wait,check,formattable





/devices/bootdevice* auto vfat defaults voldmanaged=sdcard0:auto
/devices/platform/externdevice* auto auto defaults voldmanaged=sdcard1:auto,encryptable=userdata
/devices/platform/mt_usb* auto vfat defaults voldmanaged=usbotg:auto

/dev/block/platform/bootdevice/by-name/frp /persistent emmc defaults defaults

/dev/block/platform/bootdevice/by-name/nvram /nvram emmc defaults defaults
/dev/block/platform/bootdevice/by-name/proinfo /proinfo emmc defaults defaults
/dev/block/platform/bootdevice/by-name/lk /bootloader emmc defaults defaults
/dev/block/platform/bootdevice/by-name/lk2 /bootloader2 emmc defaults defaults
/dev/block/platform/bootdevice/by-name/para /misc emmc defaults defaults
/dev/block/platform/bootdevice/by-name/boot /boot emmc defaults defaults
/dev/block/platform/bootdevice/by-name/recovery /recovery emmc defaults defaults
/dev/block/platform/bootdevice/by-name/logo /logo emmc defaults defaults
/dev/block/platform/bootdevice/by-name/expdb /expdb emmc defaults defaults
/dev/block/platform/bootdevice/by-name/seccfg /seccfg emmc defaults defaults

/dev/block/platform/bootdevice/by-name/tee1 /tee1 emmc defaults defaults
/dev/block/platform/bootdevice/by-name/tee2 /tee2 emmc defaults defaults
# 161 "vendor/mediatek/proprietary/hardware/fstab/mt6739/fstab.in"
/dev/block/platform/bootdevice/by-name/md1img /md1img emmc defaults defaults
/dev/block/platform/bootdevice/by-name/md1dsp /md1dsp emmc defaults defaults
/dev/block/platform/bootdevice/by-name/md1arm7 /md1arm7 emmc defaults defaults
/dev/block/platform/bootdevice/by-name/md3img /md3img emmc defaults defaults





/dev/block/platform/bootdevice/by-name/gz1 /gz1 emmc defaults defaults
/dev/block/platform/bootdevice/by-name/gz2 /gz2 emmc defaults defaults

/dev/block/platform/bootdevice/by-name/spmfw /spmfw emmc defaults defaults


/dev/block/platform/bootdevice/by-name/mcupmfw /mcupmfw emmc defaults defaults

/dev/block/platform/bootdevice/by-name/boot_para /boot_para emmc defaults defaults

/dev/block/platform/bootdevice/by-name/odmdtbo /odmdtbo emmc defaults defaults




/dev/block/platform/bootdevice/by-name/loader_ext1 /loader_ext1 emmc defaults defaults
/dev/block/platform/bootdevice/by-name/loader_ext2 /loader_ext2 emmc defaults defaults

/dev/block/mmcblk1* /external_sd auto flags=display="External SDcard";storage;wipeingui;removable;backup=0
/dev/block/sda* /usbotg auto flags=display="USB-OTG";storage;removable;backup=0
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Binary file added work/split_img/recovery3.img-kernel
Binary file not shown.

0 comments on commit 12d94f2

Please sign in to comment.