How do I flash a custom kernel on Pixel 7
1
vote
2
answers
2248
views
I built a custom kernel for my Pixel 7, to include the *NFS* kernel module. I'm struggling to flash this to my phone and get it loading.
After I flash this to my phone, the
Google
text appears, but not the G
animation that follows. It dies with the following message:
> **Android Recovery**
>
> google/panther/panther
>
> 13/TQ1A.221205.011/9244662
>
> user/release-keys
>
> Use volume up/down and power.
>
> Cannot load Android system. Your data may be corrupt. If you continue to get this message, you may need to perform a factory data reset and erase all user data stored on the device.
>
> - [x] Try again
> - [ ] Factory data reset
To recover from this I flashed the stock panther-tq1a.221205.011.zip/image-panther-tq1a.221205.011/boot.img
back.
The only thing I could find is where the boot log /sys/fs/pstore/console-ramoops-0
has the message:
[ 11.517099] [E] [DPM] check header failed
[ 11.517105] [E] [LNXDBG] vendor combined_checksum must be 0x62352e30 but 0x620d2e30
I thought this was related to *Android Verified Boot 2.0*. To test this out, I tried to flash the stock image and stock vbmeta.img
, with AVBv2 disabled:
$ fastboot flash --disable-verification vbmeta vbmeta.img
This also surprisingly results in the above boot loop. To recover I have to flash vbmeta.img
without this flag:
$ fastboot flash vbmeta vbmeta.img
I tried to patch vbmeta.img
flags at offset 0x7B to be 3 (aka AVB_VBMETA_IMAGE_FLAGS_HASHTREE_DISABLED | AVB_VBMETA_IMAGE_FLAGS_VERIFICATION_DISABLED
). I flashed this, and the same boot loop occured.
My phone is rooted with *Magisk*.
Asked by simonzack
(111 rep)
Feb 6, 2023, 02:38 AM
Last activity: Nov 3, 2023, 09:28 PM
Last activity: Nov 3, 2023, 09:28 PM