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
61 lines
1.8 KiB
Bash
61 lines
1.8 KiB
Bash
# Reference: <https://postmarketos.org/devicepkg>
|
|
pkgname=device-nokia-argon
|
|
pkgdesc="Nokia 8110 4G"
|
|
pkgver=5
|
|
pkgrel=0
|
|
url="https://postmarketos.org"
|
|
license="GPL-2.0-only"
|
|
arch="armv7"
|
|
options="!check !archcheck"
|
|
depends="
|
|
linux-postmarketos-qcom-msm8916
|
|
mkbootimg
|
|
postmarketos-base
|
|
soc-qcom-msm8909
|
|
soc-qcom-msm8916-rproc
|
|
"
|
|
_pmb_select="soc-qcom-msm8916-rproc"
|
|
subpackages="$pkgname-nonfree-firmware:nonfree_firmware"
|
|
makedepends="devicepkg-dev mipi-dbi-cmd"
|
|
_panel="nokia,argon-gc9305-v2-panel"
|
|
source="
|
|
00-nokia-argon-display.files
|
|
deviceinfo
|
|
modules-initfs
|
|
$_panel.txt
|
|
"
|
|
|
|
build() {
|
|
devicepkg_build $startdir $pkgname
|
|
mkdir -p "$builddir"
|
|
mipi-dbi-cmd "$builddir"/"$_panel".bin \
|
|
"$srcdir"/"$_panel".txt
|
|
}
|
|
|
|
package() {
|
|
devicepkg_package $startdir $pkgname
|
|
# Package display init sequence
|
|
install -Dm644 "$builddir"/"$_panel".bin -t \
|
|
"$pkgdir"/lib/firmware/
|
|
install -Dm644 "$srcdir"/00-nokia-argon-display.files -t \
|
|
"$pkgdir"/usr/share/mkinitfs/files/
|
|
}
|
|
|
|
nonfree_firmware() {
|
|
pkgdesc="GPU/WiFi/BT/Modem/Video firmware"
|
|
depends="
|
|
firmware-qcom-adreno-a300
|
|
msm-firmware-loader
|
|
firmware-nokia-argon-venus
|
|
firmware-nokia-argon-wcnss-nv
|
|
"
|
|
mkdir "$subpkgdir"
|
|
}
|
|
|
|
sha512sums="
|
|
66302bb5d83c4ba155ff62405fb9a374ab76e1912411310b1ad75e00c216b6868da4e2b6f3987c97146389aa44b2b2c26f0ca0819566be45c9d0d2dd1d3b72f1 00-nokia-argon-display.files
|
|
aa3e62d0a13b71208566a9b847036779aecaf8427a72ad9b987db0bfdf8f28e66cc1694cb60b18ce749870af8757725efaabab671029251f189deebd734eabeb deviceinfo
|
|
749fa5911f53f65c1a18a8768d374d1ea39ef47ed61146a5f79d669250788501434a059cfff65b83cb54eb7273841686b4a3a04f20aaec6ec7f742e14623c8bc modules-initfs
|
|
dd82fd4732694a24c91339b5c5fbb0bf485b3b2da3c17c11b72a02e90e9827c367504c99894556dd8273f927408cdb187325e5f3b9ea9e4a82e3cb3798cb2816 nokia,argon-gc9305-v2-panel.txt
|
|
"
|