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

Towboot PinePhone compatibility #399

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

ArenM
Copy link
Contributor

@ArenM ArenM commented May 30, 2022

The u-boot boot script thinks it's booting from emmc even if it's booting an sd card when using tow-boot. It seems to be possible to resolve this by replacing mmc_bootdev with devnum.

This also makes it possible to remove the uboot-pinephone package when using tow-boot.

I'm suspicious of the code duplication this causes, and wonder if it would be better to use something like Debian's u-boot-menu script, Unfortunately that doesn't support device tree overlays yet, so that might be a project for a later time.

@ArenM ArenM marked this pull request as ready for review June 12, 2022 15:25
@ArenM
Copy link
Contributor Author

ArenM commented Jun 12, 2022

Marking as ready since #398 got fixed

Move the u-boot configuration to the device meta-package, and change
mmc_bootdev to devnum for compatibility with tow-boot.

When booting from tow-boot mmc_bootdev points at the emmc, even if arch
is installed to the sd card, devnum gets set to be the correct device
though.
@Danct12 Danct12 added enhancement New feature or request device: pinephone PINE64 PinePhone labels Mar 2, 2023
@ArenM
Copy link
Contributor Author

ArenM commented Mar 30, 2023

I've tested this to make sure it boots with both the uboot-pinephone and tow-boot when booting from the sd card and emmc.

And since it seemed like there might be a little confusion, this doesn't replace uboot-pinephone with tow-boot by default, it just makes it so tow-boot can boot arch from the sd card.

Move the u-boot configuration to the device meta-package, and change
mmc_bootdev to devnum for compatibility with tow-boot.

When booting from tow-boot mmc_bootdev points at the emmc, even if arch
is installed to the sd card, devnum gets set to be the correct device
though.
These files are now installed in the device meta-packages
@ArenM
Copy link
Contributor Author

ArenM commented Apr 13, 2024

bump, is there anything blocking this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
device: pinephone PINE64 PinePhone enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants