Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Shellcode and Config For Xiaomi Pad 6 (Pipa) #3

Closed
wants to merge 9 commits into from

Conversation

pipa-pussy
Copy link
Contributor

@pipa-pussy pipa-pussy commented Jan 3, 2025

No description provided.

https://github.com/pipa-mainline/linux/blob/adomerle/aw88261-wip/drivers/pinctrl/qcom/pinctrl-sm8250.c

Target Device: Xiaomi Pad 6 (pipa), using Snapdragon 870 (SM8250)

Goal: Detect Hall sensor state during boot and redirect to UEFI if activated.

Hall Sensor GPIO: GPIO 110 on the TLMM controller, active low.

TLMM Controller Base Address: 0xf900000 (North tile)

GPIO 110 Status Register Offset: 0xB0004 (calculated as: 0x1000 * 110 + 0x4)

Relevant Bit: Bit 0 of the status register represents the input status.

Logic:

Load the GPIO status register into a register.

Mask the register using a logical AND to isolate the hall sensor input bit.

Conditional branch based on that bit: If the bit is zero(not activated), jump to the UEFI. Otherwise, continue to the Linux kernel.

Shellcode Structure: Uses DummyHead.S for padding and basic jump; uses CommonTail.S to provide UEFI/Linux branches.
@Daniel224455
Copy link

learn to use git.

@pipa-pussy
Copy link
Contributor Author

learn to use git.

Sorry this is my first time, will learn slowly

@gus33000
Copy link

gus33000 commented Jan 3, 2025

learn to use git.

@Daniel224455 Learn to respect others. That was rude for no reason. We can always fix the number of commit by doing a squash on merge as shown below if thats what was bothering you:

image


@pipa-pussy thanks for the contribution; I will wait for others to review it like @sunflower2333 just to be sure everything is fine too.

@pipa-pussy
Copy link
Contributor Author

learn to use git.

@Daniel224455 Learn to respect others. That was rude for no reason. We can always fix the number of commit by doing a squash on merge as shown below if thats what was bothering you:

image

@pipa-pussy thanks for the contribution; I will wait for others to review it like @sunflower2333 just to be sure everything is fine too.

Thanks for your words

@NikkaGames
Copy link

@gus33000 this is 2nd time seeing Daniel get "scolded".

@sunflower2333
Copy link
Member

What's the trigger/switch bro, cover or gravity or something else?

@pipa-pussy
Copy link
Contributor Author

What's the trigger/switch bro, cover or gravity or something else?

Magnetic Case closed= Android
Magnetic Case Open= UEFI

Previously, i attached a recording as a proof then i removed it. I thought this is not how things are done. If you need any other info feel free to ask

@pipa-pussy pipa-pussy closed this Jan 4, 2025
@sunflower2333
Copy link
Member

Okay I see. I was just curious so nothing else needed. And why you close the pr lmao.

@pipa-pussy
Copy link
Contributor Author

pipa-pussy commented Jan 4, 2025

Okay I see. I was just curious so nothing else needed. And why you close the pr lmao.

Am very sorry, i don't know myself when this happened. I will create pull Request again

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants