Files
pmaports-rtwo/device/testing/device-motorola-rtwo/APKBUILD
T
snlavaiseandClaude Sonnet 5 c9eadef4d5 motorola-rtwo: switch to the device-motorola-dubai boot recipe
device-motorola-dubai (Motorola Edge 30, SM7325) is the closest working
Motorola mainline pmOS port. Match it:
 - header_version 2 + append_dtb=true: one monolithic boot.img with the
   DTB glued to the kernel, flashed to 'boot'. No vendor_boot / init_boot
   / GKI ramdisk layering.
 - 'earlycon' back on the cmdline - dubai's kernel-cmdline.conf says the
   Motorola ABL reboots the phone immediately WITHOUT it. This matches
   our exact <2s symptom; removing it earlier was the wrong call.
 - explicit flash_offset_* (base 0, dtb 0x1f00000, ...) and
   --os_patch_level, as dubai sets them.
 - dtbo.img = 24 MB of zeros (full partition), dubai's trick to make the
   bootloader skip overlay application.
 - kernel: gzip'd Image again (dubai uses gz, not raw).

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01QF5HebjUsRaxbW4cBX6HJP
2026-09-09 00:41:35 -03:00

42 lines
1.2 KiB
Bash

# Reference: <https://postmarketos.org/devicepkg>
maintainer="snlavaise <snlavaise@gmail.com>"
pkgname=device-motorola-rtwo
pkgver=1
pkgrel=12
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="
9ec843d537c386e5de46b345e70d7b68a3d5b175720b8b3c5731e73f68b3691c2b8aedaed8a90047e246117de46265a57737428b5c75caa94618c8ef4ad5865c deviceinfo
c572e21cb0624b554a22a218b0c4faab9b6412654bed6bfef530f3068d076b21c573bd7f4b3ca65f510f8756f636a861191cce925ef49587db7d68d09558826c modules-initfs
"