From the stock LineageOS images: - boot.img carries a raw uncompressed arm64 Image (MZ header), not Image.gz. Install arch/arm64/boot/Image as vmlinuz. - dtbo.img is an 8-entry overlay table; the bootloader applies overlay #7 (androidboot.dtbo_idx=7, 87 fragments) onto the base DTB by phandle. Against our mainline DTB that produces a corrupt merged tree -> instant panic. Ship an empty dtbo (0 entries) to flash to dtbo_b, and set deviceinfo_flash_fastboot_partition_dtbo. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01QF5HebjUsRaxbW4cBX6HJP
42 lines
1.2 KiB
Bash
42 lines
1.2 KiB
Bash
# Reference: <https://postmarketos.org/devicepkg>
|
|
maintainer="snlavaise <snlavaise@gmail.com>"
|
|
pkgname=device-motorola-rtwo
|
|
pkgver=1
|
|
pkgrel=7
|
|
pkgdesc="Motorola Moto Edge 40 Pro"
|
|
url="https://postmarketos.org"
|
|
arch="aarch64"
|
|
license="MIT"
|
|
depends="
|
|
android-tools
|
|
linux-postmarketos-qcom-sm8550
|
|
postmarketos-base
|
|
soc-qcom
|
|
"
|
|
makedepends="devicepkg-dev"
|
|
source="
|
|
deviceinfo
|
|
modules-initfs
|
|
"
|
|
options="!archcheck !check"
|
|
|
|
# TODO (as hardware comes up):
|
|
# - firmware-motorola-rtwo (WiFi/BT/modem/GPU blobs, generate from the
|
|
# stock image with 'pmbootstrap ...' or extract manually)
|
|
# - firmware-qcom-adreno-* for the Adreno 740 (GPU / mesa-vulkan-freedreno)
|
|
# - make-dynpart-mappings once super partitions are mapped
|
|
# - soc-qcom-modem, qbootctl (A/B slot handling) once booting
|
|
|
|
build() {
|
|
devicepkg_build $startdir $pkgname
|
|
}
|
|
|
|
package() {
|
|
devicepkg_package $startdir $pkgname
|
|
}
|
|
|
|
sha512sums="
|
|
e66050dc46b1933b4e3bf7d4918e72ed68218015cc714615b26801030c3f9b481815eba0a01c9795a479353511cb7928d1f1cb0b3dc1b3817ca4c7cd5f1f8301 deviceinfo
|
|
c572e21cb0624b554a22a218b0c4faab9b6412654bed6bfef530f3068d076b21c573bd7f4b3ca65f510f8756f636a861191cce925ef49587db7d68d09558826c modules-initfs
|
|
"
|