Files
pmaports-rtwo/device/testing/device-motorola-rtwo/deviceinfo
T
snlavaiseandClaude Sonnet 5 34600bc55e motorola-rtwo: raw Image + empty dtbo for the Motorola bootloader
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
2026-09-08 21:28:13 -03:00

55 lines
2.3 KiB
Plaintext

# Reference: <https://postmarketos.org/deviceinfo>
# Please use double quotes only. You can source this file in shell
# scripts.
deviceinfo_format_version="0"
deviceinfo_name="Motorola Moto Edge 40 Pro"
deviceinfo_manufacturer="Motorola"
deviceinfo_codename="motorola-rtwo"
deviceinfo_year="2023"
deviceinfo_dtb="qcom/sm8550-motorola-rtwo"
deviceinfo_arch="aarch64"
# Device related
deviceinfo_chassis="handset"
deviceinfo_keyboard="false"
deviceinfo_external_storage="true"
deviceinfo_screen_width="1080"
deviceinfo_screen_height="2400"
deviceinfo_getty="ttyMSM0;115200"
# The DTS ships a simple-framebuffer pointing at the bootloader's continuous
# splash buffer, so there should be an early console on the panel. If the
# screen stays black, set this to "true" (and fix the framebuffer@ node).
# There is no DRM/mdss yet, so no mode setting / backlight control.
deviceinfo_no_framebuffer="true"
# Split the initramfs: a small base archive (fits in init_boot, 8 MB) plus a
# separate initramfs-extra loaded from the rootfs later.
deviceinfo_create_initfs_extra="true"
# Bootloader related
deviceinfo_flash_method="fastboot"
deviceinfo_flash_fastboot_partition_dtbo="dtbo"
deviceinfo_kernel_cmdline="console=tty0 console=ttyMSM0,115200n8 earlycon clk_ignore_unused pd_ignore_unused ignore_loglevel"
deviceinfo_generate_bootimg="true"
# The Motorola bootloader places the DTB / kernel at the addresses in the
# vendor_boot header. mkbootimg defaults to base 0x10000000 (dtb ends up at
# 0x11f00000, outside RAM) - stock uses base 0. Force the stock layout.
deviceinfo_bootimg_custom_args="--base 0x00000000 --kernel_offset 0x00008000 --ramdisk_offset 0x01000000 --tags_offset 0x00000100 --dtb_offset 0x01f00000"
deviceinfo_bootimg_qcdt="false"
deviceinfo_header_version="4"
deviceinfo_flash_pagesize="4096"
deviceinfo_flash_sparse="true"
# UFS storage
deviceinfo_rootfs_image_sector_size="4096"
# A/B device (androidboot.slot_suffix=_a). UFS controller: 1d84000.ufshc.
# Dynamic "super" partition (group "mot_dp_group", ~9.94 GB) holds
# system/system_ext/product/vendor/vendor_dlkm/system_dlkm. Resolve the real
# node from the initramfs debug shell:
# ls -l /dev/disk/by-partlabel/super
# then uncomment (both fields = the super partition, A and B share it here):
# deviceinfo_super_partitions="/dev/disk/by-partlabel/super /dev/disk/by-partlabel/super"