Skip to content
Snippets Groups Projects

Draft: starqltechn: automate dualbooting with u-boot

Closed Imported Administrator requested to merge starqltechn_dualboot_automation into master

Dual boot PostmarketOS and Android with u-boot! It works by placing an additional u-boot FIT image, and a script into overridden initramfs. Mentioned script is used to find and select image to boot. User should enable dual-boot explicitly by enabling commented deviceinfo options, and placing vendor boot image into device /boot directory, running 'pmbootstrap init' and specifying vendor boot image location, if building locally.

deviceinfo_bootimg_override_initramfs:

  • add android_boot_image.itb - u-boot FIT image assembled, using extracted kernel and ramdisk from vendor image.
  • add find_image_and_boot.itb - u-boot FIT image with a script to find and boot needed image.

Set couple new options:

  • deviceinfo_bootimg_override_header_info_using_vendor_image="true" This overrides boot image header values, written in deviceinfo, by extracted values from vendor image. This mainly needed to trick trustzone.

  • deviceinfo_bootimg_vendor_android_boot_image="vendor_boot.img" We're counting on vendor image to be on device's /boot directory in a file with that name.

  • deviceinfo_bootimg_vendor_device_tree_identifiers="qcom,msm-id\s*=\s*<0x141\s0x20001>; qcom,board-id\s=\s*<0x08\s*0x0e>;" Identifiers to find a dtb, used by stock bootloader in vendor's boot image file.

See also related MRs: mkinitifs boot-deploy

Merge request reports

Approval is optional

Closed by AdministratorAdministrator 10 months ago (Apr 30, 2024 7:15pm UTC)

Merge details

  • The changes were not merged into master.

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
  • Administrator
  • Administrator
  • Administrator added 3 commits · Imported

    added 3 commits

    Compare with previous version

    By Dzmitry on 2022-11-29T19:03:20

  • Administrator added 26 commits · Imported

    added 26 commits

    Compare with previous version

    By Dzmitry on 2022-11-30T15:20:37

  • Administrator resolved all threads · Imported

    resolved all threads

    By Dzmitry on 2022-11-30T15:33:46

  • Administrator added 1 commit · Imported

    added 1 commit

    • 34a8cb99 - starqltechn: automate dualbooting with u-boot

    Compare with previous version

    By Dzmitry on 2022-11-30T15:36:31

  • Administrator
  • Administrator added 2 commits · Imported

    added 2 commits

    Compare with previous version

    By Dzmitry on 2022-12-19T16:17:04

  • Administrator
    • Author Owner
      Resolved by Administrator

      thanks for the patches!

      In addition to the feedback above: CI needs to be passing, and please clean up / squash commits. Let us know if you need help doing that!

      By clayton craft on 2023-01-14T05:53:19

  • Administrator added 159 commits · Imported

    added 159 commits

    Compare with previous version

    By Dzmitry on 2023-01-14T19:49:18

  • Administrator added 1 commit · Imported

    added 1 commit

    • acd6c83f - starqltechn: automate dualbooting with u-boot

    Compare with previous version

    By Dzmitry on 2023-01-14T20:08:31

  • Administrator resolved all threads · Imported

    resolved all threads

    By Dzmitry on 2023-01-14T20:15:12

  • Administrator added 1 commit · Imported

    added 1 commit

    • 962046ad - starqltechn: automate dualbooting with u-boot

    Compare with previous version

    By Dzmitry on 2023-02-05T18:36:56

  • Administrator added status::mr-stale label · Imported

    added status::mr-stale label

  • Author Owner

    Sorry to bother you @dsankouski,

    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 2023-03-07T19:00:02

  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Please register or sign in to reply
    Loading