Skip to content
Snippets Groups Projects

Draft: temp/u-boot-pinephone: drop u-boot in favor of Tow-Boot

Closed Imported Administrator requested to merge drop-pp-u-boot into master

We've moved the PPP to Tow-Boot, let's do the same with the OG PP! This allows us to drop our custom u-boot package and boot with both extlinux and UEFI, and it standardizes booting over both the PinePhone's.

Eventually I'd like us to move to UEFI booting but we have to figure out how to do that properly without breaking existing installations, thus we'll stay on extlinux for now.

UEFI support is added as a separate commit, not sure if it will break existing installations.

Blockers that have to be figured out before this get merged as to not break some custom setups:

  • #1531: load pmOS_root / pmOS_boot partitions by UUID instead of label (-> also fixes #1485 (closed))
  • !2665 (merged)
    • Does Tow-Boot work as is with the Vccq hardware mod? I can't test this myself
  • https://gitlab.postmarketos.org/postmarketos/pmaports/-/merge_requests/1998
    • Can we still provide the option to choose the RAM hz when using Tow-Boot? Again, I can't test this myself
    • We'll just drop this feature and use 528 MHz, there was not enough gain from this, see comment below.
  • should make everything work with on-device installer: make sure everything works with installing to SD, installing to eMMC, adjust if needed. (after #1531)
Edited by Administrator

Merge request reports

Checking pipeline status.

Approval is optional

Closed by AdministratorAdministrator 1 year ago (Mar 5, 2024 12:47am UTC)

Merge details

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
    • Author Owner

      Does Tow-Boot work as is with the Vccq hardware mod? I can't test this myself

      CC: @symmetrist

      Can we still provide the option to choose the RAM hz when using Tow-Boot? Again, I can't test this myself

      CC: @BobbyTheBuilder

      By Oliver Smith on 2022-04-10T19:20:56

      Edited by Ghost User
    • Author Owner

      Yes, Tow-Boot works fine with the Vccq hardware mod!

      I installed Tow-Boot on the eMMC boot partition as explained here.

      Both my existing eMMC installation on and a fresh eMMC installation from the drop-pp-u-boot branch worked fine.

      Tow-Boot loads the boot.scr U-Boot script from /boot the same way as the current U-Boot fork.
      If the device-pine64-pinephone-vccq-mod package is installed, boot.scr loads user.scr that applies the DTB overlay for the Vccq mod.

      Bonus: The volume-up shortcut at boot exposes the eMMC as USB storage.
      This storage drive can be used to install pmOS even with Vccq mod!
      Jumpdrive is not compatible with Vccq mod, so before I had to export the image and boot from microSD to flash the eMMC.

      By Federico Amedeo Izzo on 2022-04-11T12:01:09

      Edited by Administrator
    • Author Owner

      Awesome, glad it works out of the box! Note that the longer term plan (no ETA yet) is to move to UEFI booting which will require changes to keep this working. It might be good to start figuring this out already and document it, I guess we'll use GRUB again like we do on the PPP now. Same for the RAM hz options.

      By Bart Ribbers on 2022-04-11T12:10:53

    • Author Owner

      Hi,

      I could definitively send the patch upstream but modifying the nix build logic to create 3 different image doesn't look straight forward to me. I'd have to learn nix language, install nixOS, etc...

      Unless someone really wants to handle the build part, I don't think it's worth the time to keep that feature.

      I'd also add these personal arguments in favor dropping the feature:

      • I've run my fair share of benchmark on different PP and there's little to no speed gain between 624 and 528.

      • I've had devices running fine on 552 for a few months then, right after a kernel upgrade, they started freezing. I had to revert to the 528 clock

      • Most (all but one) of my devices are now running on 528 and are perfectly stable.

      By Bobby The Builder on 2022-04-14T08:00:11

      Edited by Ghost User
    • Please register or sign in to reply
  • Administrator changed the description · Imported

    changed the description

    By Oliver Smith on 2022-04-11T06:51:37

  • marked the checklist item https://gitlab.postmarketos.org/postmarketos/pmaports/-/merge_requests/1998 as completed

    By Oliver Smith on 2022-04-14T08:01:34

  • Administrator added 1 deleted label · Imported

    added 1 deleted label

  • Author Owner

    Sorry to bother you @PureTryOut,

    but we've detected that this merge request hasn't seen any recent activity. If you need help or want to discuss your approach with developers you can ping @postmarketOS. You can also ask on matrix in #devel:postmarketos.org or #postmarketos-devel on OFTC. If no further activity occurs in this MR, postmarketOS developers may close it in the future.

    Thanks for your contribution.

    By * postmarketOS Bot on 2022-05-14T09:00:01

  • Administrator changed the description · Imported

    changed the description

    By Oliver Smith on 2022-06-15T12:02:36

  • Administrator added 284 commits · Imported

    added 284 commits

    Compare with previous version

    By Bart Ribbers on 2022-07-18T10:43:08

  • Administrator removed 1 deleted label · Imported

    removed 1 deleted label

  • Administrator added 1 deleted label · Imported

    added 1 deleted label

  • Author Owner

    Sorry to bother you @PureTryOut,

    but we've detected that this merge request hasn't seen any recent activity. If you need help or want to discuss your approach with developers you can ping @postmarketOS. You can also ask on matrix in #devel:postmarketos.org or #postmarketos-devel on OFTC. If no further activity occurs in this MR, postmarketOS developers may close it in the future.

    Thanks for your contribution.

    By * postmarketOS Bot on 2022-09-04T09:00:03

  • Administrator added 125 commits · Imported

    added 125 commits

    Compare with previous version

    By Dylan Van Assche on 2022-09-04T18:51:08

  • Administrator removed 1 deleted label · Imported

    removed 1 deleted label

  • Administrator added 1 commit · Imported

    added 1 commit

    • 8a4ff25f - linux-postmarketos-allwinner: enable EFI

    Compare with previous version

    By Dylan Van Assche on 2022-09-04T19:04:26

  • Administrator added 22 commits · Imported

    added 22 commits

    Compare with previous version

    By Bart Ribbers on 2022-09-11T15:42:07

  • Administrator added 1 commit · Imported

    added 1 commit

    • f9084f7b - main/device-pine64-pinephone: switch to UEFI booting

    Compare with previous version

    By Dylan Van Assche on 2022-09-11T17:42:26

  • Administrator changed the description · Imported

    changed the description

    By Dylan Van Assche on 2022-09-11T17:43:39

  • Administrator added 1 commit · Imported

    added 1 commit

    • ed66cfed - main/device-pine64-pinephone: switch to UEFI booting

    Compare with previous version

    By Dylan Van Assche on 2022-09-11T17:55:31

  • Administrator added 1 commit · Imported

    added 1 commit

    • 50f78961 - main/device-pine64-pinephone: switch to UEFI booting

    Compare with previous version

    By Dylan Van Assche on 2022-09-11T17:57:06

  • Author Owner

    While switching to Tow-Boot, I added support for UEFI as well. This is useful for moving towards Tow-Boot with fwupd updates since fwupd will identify PinePhone differently when running in UEFI mode since the SMBIOS properties are available which have sane values for generating HW ids in fwupd.

    By Dylan Van Assche on 2022-09-11T20:19:25

    Edited by Ghost User
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
Please register or sign in to reply
Loading