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
49 lines
1.5 KiB
Bash
49 lines
1.5 KiB
Bash
# Reference: <https://postmarketos.org/devicepkg>
|
|
# Maintainer: Raymond Hackley <raymondhackley@protonmail.com>
|
|
pkgname=device-qcom-msm8909
|
|
pkgdesc="Generic device package for various Qualcomm MSM8905/MSM8909/MSM8916-based devices"
|
|
pkgver=2
|
|
pkgrel=0
|
|
url="https://postmarketos.org"
|
|
license="MIT"
|
|
arch="armv7"
|
|
options="!check !archcheck"
|
|
depends="
|
|
linux-postmarketos-qcom-msm8916
|
|
postmarketos-base
|
|
soc-qcom-msm8909
|
|
"
|
|
makedepends="devicepkg-dev"
|
|
source="
|
|
deviceinfo
|
|
modules-initfs
|
|
"
|
|
subpackages="$pkgname-nonfree-firmware:nonfree_firmware"
|
|
|
|
build() {
|
|
devicepkg_build $startdir $pkgname
|
|
}
|
|
|
|
package() {
|
|
devicepkg_package $startdir $pkgname
|
|
}
|
|
|
|
nonfree_firmware() {
|
|
pkgdesc="WiFi/BT/Modem/Video firmware"
|
|
depends="msm-firmware-loader firmware-qcom-adreno-a300 firmware-qcom-db410c-wcnss-nv"
|
|
mkdir "$subpkgdir"
|
|
|
|
# HACK: For devices that don't have a nv file in persist we
|
|
# temporarily link the db410c file to the expected location.
|
|
# It will be overriden if the file is in persist or when user
|
|
# installs the device-specific firmware packages.
|
|
mkdir -p "$subpkgdir"/lib/firmware/wlan/prima/
|
|
ln -s /lib/firmware/qcom/apq8016/WCNSS_qcom_wlan_nv_sbc.bin \
|
|
"$subpkgdir"/lib/firmware/wlan/prima/WCNSS_qcom_wlan_nv.bin
|
|
}
|
|
|
|
sha512sums="
|
|
93cbd664d37f63ac142e03ab9168bc94a8cde1880d88b12d17b94fb9318a330434df427878be3af4d96c0bb156beaeb41741a9cf42f557c5a160837a62f1233c deviceinfo
|
|
3c4ae8aad562270a6094add613912955bafed994e0df2f8842575fb4e38db0f21a57dc61fb772af418d1423512811e7f9f533c2e9b3f8edb657ed20f12ca2fc9 modules-initfs
|
|
"
|