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-leo
|
|
pkgdesc="Nokia 6300 4G"
|
|
pkgver=3
|
|
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,leo-gc9305-hlt-24-panel"
|
|
source="
|
|
$_panel.txt
|
|
00-nokia-leo-display.files
|
|
deviceinfo
|
|
modules-initfs
|
|
"
|
|
|
|
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-leo-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-sparkler-venus
|
|
firmware-nokia-sparkler-wcnss-nv
|
|
"
|
|
mkdir "$subpkgdir"
|
|
}
|
|
|
|
sha512sums="
|
|
8583c7d5a97c4efedff3ec554cf682d815fd7b83140c2cab9eec4b6e2e735ce3c012bc3bd97f8bc75adc3483f76ce83a5bf1090d4f3e73a327efc64ca9eca5a7 nokia,leo-gc9305-hlt-24-panel.txt
|
|
c9985232e5e64ddb0906b053e5024c87fa62cc1bcb254260e1ef6afb43d384196e09d41287143bcba61dff616dd6b562a5ca335dbe592fcd8c954642b8085f38 00-nokia-leo-display.files
|
|
9389406802864ac4954057e07cbfe067f4dfab6d319c6bc7765bc74d3b7157d7af3d9ed02d19e89ba022705f8e60049013a41c48d3e6832c5e23d0cf727fac4b deviceinfo
|
|
d5dfe844a45cfc4e0844e43b8fb3e1bbcb155e06430188f8d5059fc5ce3c4100fde7f1580b1b54c5318f40d238736b233463582e55b9dd25654e40539e11ed39 modules-initfs
|
|
"
|