msm8916-mainline / lk2nd

Custom bootloader for Qualcomm MSM8916/MSM8226/MSM8974/... devices
Other
345 stars 307 forks source link

Keys are working backwards #367

Open applestr1x opened 2 weeks ago

applestr1x commented 2 weeks ago

Hello. I boot the image from fastboot mode, there is no problem, but after booting, I cannot start the process. I'm stuck on the start screen. When I press the volume up button it changes options. When I press the power button, it changes the option, but when I press the volume down button, it does not respond at all. Normally it should start when I press the power button. Can you fix the problem? Phone with MSM8939 chipset. Its brand is Vestel Venus v3 5570.

TravMurav commented 2 weeks ago

Hi! This device probably have non-standard keys pins and it was never added to lk2nd, so lk2nd doesn't know how to handle it. You will need to add a node for your device with the keys correctly defined, similar to this: https://github.com/msm8916-mainline/lk2nd/blob/f64f709c3263b8935fed430ae326b7de3373e67a/lk2nd/device/dts/msm8916/msm8916-lg.dts#L11-L29

Note that gpio number values are device-specific, you may need to check downstream devicetree to find the correct ones.

You can find lk2nd specific dts documentation here: https://github.com/msm8916-mainline/lk2nd/blob/main/Documentation/dt-bindings.md

wonderfulShrineMaidenOfParadise commented 2 weeks ago

Consider joining #msm8916-mainline:matrix.org for helps with porting.