mirror of
https://gitlab.postmarketos.org/postmarketOS/pmaports.git
synced 2025-07-24 23:35:12 +03:00
pmbootstrap 3.0.0 uses GPT partition table by default, which breaks booting on all the devices using the lk2nd bootloader. The current version of lk2nd supports GPT only for the eMMC, while subpartitions and SD cards must be partitioned with MBR. GPT support was present in the legacy branch of lk2nd, but was dropped at some point because of poor code quality. Fix the regression for now by reverting back to the old msdos (MBR) partition table. We can revert this again later when lk2nd restores support for GPT. Generated with $ for d in $(grep -R linux-postmarketos-qcom-msm8916 | grep -Eo 'device-[^/]+' | sort -u); do \ echo -e '\n# lk2nd does not support GPT for subpartitions/SD cards yet\ndeviceinfo_partition_type="msdos"' \ >> device/*/$d/deviceinfo && pmbootstrap checksum $d && pmbootstrap pkgver_bump $d; done [ci:ignore-count] [ci:skip-build]: bug in CI prevents build testing armv7 and aarch64, so Clayton did the test locally for those archs
33 lines
1,001 B
Text
33 lines
1,001 B
Text
# Reference: <https://postmarketos.org/deviceinfo>
|
|
# Please use double quotes only. You can source this file in shell
|
|
# scripts.
|
|
|
|
deviceinfo_format_version="0"
|
|
deviceinfo_name="Qualcomm msm8916-based device"
|
|
deviceinfo_manufacturer="Qualcomm"
|
|
deviceinfo_codename="qcom-msm8916"
|
|
deviceinfo_year="2015"
|
|
deviceinfo_arch="aarch64"
|
|
|
|
# Device related
|
|
deviceinfo_gpu_accelerated="true"
|
|
deviceinfo_chassis="embedded"
|
|
deviceinfo_external_storage="true"
|
|
deviceinfo_keyboard="false"
|
|
deviceinfo_getty="ttyMSM0;115200"
|
|
|
|
# Bootloader related
|
|
deviceinfo_kernel_cmdline="earlycon console=ttyMSM0,115200"
|
|
deviceinfo_flash_method="fastboot"
|
|
|
|
# extlinux.conf
|
|
deviceinfo_dtb_extlinux="qcom/msm8*16-* qcom/msm8*39-* qcom/apq8016-* apq8039-*"
|
|
deviceinfo_generate_extlinux_config_extlinux="true"
|
|
deviceinfo_boot_filesystem_extlinux="ext2"
|
|
|
|
# EFI
|
|
deviceinfo_generate_systemd_boot_efi="true"
|
|
deviceinfo_boot_filesystem_efi="fat32"
|
|
|
|
# lk2nd does not support GPT for subpartitions/SD cards yet
|
|
deviceinfo_partition_type="msdos"
|