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

linux crashing when attempting to boot on iPhone #12

Open
satwa1298 opened this issue Dec 15, 2022 · 7 comments
Open

linux crashing when attempting to boot on iPhone #12

satwa1298 opened this issue Dec 15, 2022 · 7 comments

Comments

@satwa1298
Copy link

Following HOWTO.md, I compiled pongo on a macbook (intel macbook pro running macOS 11.6.5) and booted into pongoOS using checkra1n 0.12.4, on an iPhone 6 running iOS 12.5.6. Here's the output from checkra1n:

[12/15/22 10:56:34] <Info>: Waiting for DFU devices
[12/15/22 10:56:47] <Verbose>: DFU mode device found
[12/15/22 10:56:47] <Info>: Exploiting
[12/15/22 10:56:47] <Verbose>: Attempting to perform checkm8 on 7000 11...
[12/15/22 10:56:47] <Info>: Checking if device is ready
[12/15/22 10:56:47] <Verbose>: == Checkm8 Preparation stage ==
[12/15/22 10:56:47] <Verbose>: DFU device disconnected
[12/15/22 10:56:47] <Verbose>: DFU mode device found
[12/15/22 10:56:47] <Info>: Setting up the exploit (this is the heap spray)
[12/15/22 10:56:47] <Verbose>: == Checkm8 Setup stage ==
[12/15/22 10:56:47] <Info>: Right before trigger (this is the real bug setup)
[12/15/22 10:56:47] <Verbose>: Entered initial checkm8 state after 0 steps, issuing DFU abort..
[12/15/22 10:56:47] <Verbose>: DFU device disconnected
[12/15/22 10:56:47] <Verbose>: DFU mode device found
[12/15/22 10:56:47] <Verbose>: == Checkm8 Trigger stage ==
[12/15/22 10:56:47] <Verbose>: Checkmate!
[12/15/22 10:56:48] <Verbose>: DFU device disconnected
[12/15/22 10:56:48] <Verbose>: DFU mode device found
[12/15/22 10:56:48] <Verbose>: == Checkm8 Trying to run payload... ==
[12/15/22 10:56:48] <Verbose>: If everything went correctly, you should now have code execution.
[12/15/22 10:56:48] <Verbose>: DFU device disconnected
[12/15/22 10:56:48] <Info>: Entered download mode
[12/15/22 10:56:48] <Verbose>: Download mode device found
[12/15/22 10:56:48] <Info>: Booting...
[12/15/22 10:56:48] <Verbose>: Setting bootargs to: rootdev=md0 -v
[12/15/22 10:56:50] <Verbose>: Download mode device disconnected
[12/15/22 10:58:18] <Error>: Timed out waiting for bootstrap upload (error code: -20)

And here's what the iPhone screen looks like after this step:
pongo

Again following the guide I compiled the kernel, this time on a vm running Ubuntu 22.04.1 LTS. following the rest of the steps and running load_linux.py, it seems to be a success and i get the following output:
Waiting for device...
Loading initial ramdisk...
Initial ramdisk loaded successfully.
Loading device tree...
Device tree loaded successfully.
Loading kernel...
Kernel loaded successfully.
Booting...
Success.

However here's what shows up on the iPhone screen:
error

After maybe 5 seconds, the iPhone just restarts and iOS comes up as normal. I'm not sure where to begin troubleshooting so any help would be appreciated

@TssT16
Copy link

TssT16 commented Jan 3, 2023

I have the same issue with my iPhone 5s.
Can I activate a verbose mode to see where it's stuck?

@BigBoiMan123
Copy link

Same issue on an iPhone 6, tried both the included ramdisk and one from armbian.

@satwa1298
Copy link
Author

satwa1298 commented Feb 13, 2023

My iPhone 6 is on iOS 12.5.6 as well. I tried it on an iPhone 5s also running 12.5.6 and I got the same result

@BigBoiMan123
Copy link

iPhone 6 on 12.4.8

@jrote1
Copy link

jrote1 commented Mar 15, 2023

This PR should fix at least this issue for you :) https://github.com/konradybcio/pongoOS/pull/4/files

@mheese
Copy link

mheese commented Mar 26, 2023

@jrote1 that definitely did the trick for me on an Apple TV Gen 4 👍

@HODAKdev
Copy link

My iPhone 6 is on iOS 12.5.6 as well. I tried it on an iPhone 5s also running 12.5.6 and I got the same result
Hi, how did you get there? #17

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

No branches or pull requests

7 participants
@mheese @jrote1 @TssT16 @satwa1298 @HODAKdev @BigBoiMan123 and others