Skip to content
GitLab
    • GitLab: the DevOps platform
    • Explore GitLab
    • Install GitLab
    • How GitLab compares
    • Get started
    • GitLab docs
    • GitLab Learn
  • Pricing
  • Talk to an expert
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
    • Switch to GitLab Next
    Projects Groups Topics Snippets
  • Register
  • Sign in
  • pmbootstrap pmbootstrap
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
    • Locked files
  • Issues 209
    • Issues 209
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
    • Requirements
  • Merge requests 0
    • Merge requests 0
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
    • Test cases
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Code review
    • Insights
    • Issue
    • Repository
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • postmarketOSpostmarketOS
  • pmbootstrappmbootstrap
  • Merge requests
  • !2163

Support ChromeOS partition table and kernel partition

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged ✙ jenneron ✙ requested to merge jenneron/pmbootstrap:chromeos into master Jan 29, 2022
  • Overview 32
  • Commits 2
  • Pipelines 13
  • Changes 6

Stock bootloader on these devices boots kernel (it is intended to boot kernel, but i place secondary bootloader there) from special ChromeOS kernel partition on special GPT which is created with cgpt utility. This MR adds initial support for it introducing new deviceinfo options:

  • cgpt_kpart - path to file to be flashed to ChromeOS partition;
  • cgpt_kpart_start - offset from the start in sectors;
  • cgpt_kpart_size - partition size in sectors.

For example:

deviceinfo_cgpt_kpart="/usr/share/u-boot/google-peach-pit/u-boot-dtb.img.kpart"
deviceinfo_cgpt_kpart_start="8192"
deviceinfo_cgpt_kpart_size="32768"

cgpt requires start and size values of partition, so these values are calculated for each partition.

Reserved size and on-device installer are not yet supported.

pmbootstrap install --sdcard=/dev/something works fine, but when doing pmbootstrap export and then dd it to SD card, root partition is not resized on boot. It should be solved in initfs, not pmbootstrap, so it's not in this MR.

Reference: https://archlinuxarm.org/platforms/armv7/samsung/samsung-chromebook

Edited Jan 29, 2022 by ✙ jenneron ✙
Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: chromeos