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
pine64-pinephone-braveheart: implementation of Crust #188
Conversation
This comment has been minimized.
This comment has been minimized.
Suspend problem has been isolated :) Some electrical spookyness... The device was waking up immediately due to some spurious interrupts from the modem ring indicator while the modem was powered off. Powering the modem on through the GPIO (https://gitlab.com/postmarketOS/pmaports/-/blob/master/device/community/device-pine64-pinephone/eg25.initd) eliminated the interrupts and I was successfully able to get the device to sleep & wake up. |
Until we have support for the modem, we may want to ensure it's powered off properly? Or would "powered off properly" still cause the same issue? |
Added. |
Oh, neat, outside the OS. The u-boot script changes were verified to fix the suspend issue? This also, I guess, makes the state more correct at boot? |
I verified on my device, yes :) Suspends now work from boot with the addition.
I think so; this way, we know that the modem is powered off at boot & so we can initialize it correctly later in userspace. |
|
2cf8a2d
to
1ddc8e7
Compare
Success! Device can now suspend-to-RAM and resume with the current state of this PR. It looks great! |
This still being worked on? |
The branch builds and works properly in its current state. The only thing left really before being ready for merging is building Crust ourselves (the brach currently uses a prebuilt blob), which is dependent on OpenRISC 1000 support working in NixPkgs. You can see the relevant PR and blockers at NixOS/nixpkgs#93368. |
NixOS/nixpkgs#93368 has landed :) |
Will be looking into finishing this up this weekend! |
a146fff
to
77fdf71
Compare
Crust now packaged & works OK for me. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
AFAICT it just works here too.
Some nitpicks. With those I guess you can also rebase them all into one commit, if it suits you.
Great work, and thanks!
836a3ee
to
f0e09c4
Compare
done! |
f0e09c4
to
0b518ae
Compare
Thanks! |
Closes #183.
A blob of the Crust firmware has been provided for testing purposes; the final PR will build the firmware from source.Blockers:
kernel update to 5.7u-boot update to https://gitlab.com/pine64-org/u-boot/-/tree/crust (makes sense to couple with the kernel update PR)update patches for versioned DTBs (ditto)Issues:
pinephone seems to immediately resume after suspend-to-RAM (not sure why?)screen does not work