Skip to content

Towboot PinePhone compatibility#399

Open
ArenM wants to merge 3 commits intodreemurrs-embedded:masterfrom
ArenM:ogpp-towboot
Open

Towboot PinePhone compatibility#399
ArenM wants to merge 3 commits intodreemurrs-embedded:masterfrom
ArenM:ogpp-towboot

Conversation

@ArenM
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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.

ArenM added 2 commits March 30, 2023 11:39
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
Copy Markdown
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