device-xiaomi-begonia: new aport
Based on the linux-postmarketos-mediatek-mt6785 kernel. Signed-off-by: Dinolek <git@dinolek.me> Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/6975>
This commit is contained in:
@@ -0,0 +1,41 @@
|
||||
# Reference: <https://postmarketos.org/devicepkg>
|
||||
# Maintainer: Dinolek <git@dinolek.me>
|
||||
pkgname=device-xiaomi-begonia
|
||||
pkgdesc="Xiaomi Redmi Note 8 Pro"
|
||||
pkgver=3
|
||||
pkgrel=0
|
||||
url="https://postmarketos.org"
|
||||
license="MIT"
|
||||
arch="aarch64"
|
||||
options="!check !archcheck"
|
||||
depends="
|
||||
firmware-xiaomi-begonia-touchscreen
|
||||
linux-postmarketos-mediatek-mt6785
|
||||
mesa-vulkan-panfrost
|
||||
mkbootimg
|
||||
postmarketos-base
|
||||
"
|
||||
makedepends="android-tools devicepkg-dev dtc"
|
||||
source="deviceinfo modules-initfs"
|
||||
|
||||
build() {
|
||||
devicepkg_build $startdir $pkgname
|
||||
|
||||
# begonia bootloader needs empty dtbo, build it and add as recovery_dtbo to final image
|
||||
mkdir "$builddir"
|
||||
echo '/dts-v1/;/{};' | dtc -I dts -O dtb -o "$builddir/empty.dtb"
|
||||
mkdtboimg create "$builddir/empty.dtbo" "$builddir/empty.dtb"
|
||||
}
|
||||
|
||||
package() {
|
||||
devicepkg_package $startdir $pkgname
|
||||
|
||||
mkdir -p "$pkgdir/boot"
|
||||
install -Dm644 "$builddir/empty.dtbo" \
|
||||
"$pkgdir/boot/"
|
||||
}
|
||||
|
||||
sha512sums="
|
||||
4e1c81f48da94310d0ac2e6f8b3b8852f8e5a1726efcf1f5870883d73f22081347c0de02a7b1576efa915903cbbb015a30847a2ee7d4ba6ebed36c82ec218a02 deviceinfo
|
||||
fb17475e434aa5c1c7ee3103ef3dc5bd1d663184764d770f5c4944a2ea1901fc5351296ca5dc8e3dc3bf74aac1718f49b932f8be0b39add770c5851c708482b8 modules-initfs
|
||||
"
|
||||
@@ -0,0 +1,38 @@
|
||||
# Reference: <https://postmarketos.org/deviceinfo>
|
||||
# Please use double quotes only. You can source this file in shell
|
||||
# scripts.
|
||||
|
||||
deviceinfo_format_version="0"
|
||||
deviceinfo_name="Xiaomi Redmi Note 8 Pro"
|
||||
deviceinfo_manufacturer="Xiaomi"
|
||||
deviceinfo_codename="xiaomi-begonia"
|
||||
deviceinfo_year="2019"
|
||||
deviceinfo_arch="aarch64"
|
||||
|
||||
# Device related
|
||||
deviceinfo_chassis="handset"
|
||||
deviceinfo_drm="true"
|
||||
deviceinfo_external_storage="true"
|
||||
deviceinfo_keyboard="false"
|
||||
|
||||
# Bootimg related
|
||||
deviceinfo_bootimg_custom_args="--header_version 2 --dtb /boot/dtbs/mediatek/mt6785-xiaomi-begonia.dtb --recovery_dtbo /boot/empty.dtbo"
|
||||
deviceinfo_bootimg_dtb_second="false"
|
||||
deviceinfo_bootimg_qcdt="false"
|
||||
deviceinfo_generate_bootimg="true"
|
||||
deviceinfo_kernel_cmdline="bootopt=64S3,32N2,64N2"
|
||||
|
||||
# Flashing related
|
||||
deviceinfo_flash_kernel_on_update="true"
|
||||
deviceinfo_flash_method="fastboot"
|
||||
deviceinfo_flash_offset_base="0x40078000"
|
||||
deviceinfo_flash_offset_dtb="0x0bc08000"
|
||||
deviceinfo_flash_offset_kernel="0x00008000"
|
||||
deviceinfo_flash_offset_ramdisk="0x07c08000"
|
||||
deviceinfo_flash_offset_second="0xbff88000"
|
||||
deviceinfo_flash_offset_tags="0x0bc08000"
|
||||
deviceinfo_flash_pagesize="2048"
|
||||
deviceinfo_flash_sparse="true"
|
||||
|
||||
# Required for devices using UFS as storage (instead of e.g. eMMC)
|
||||
deviceinfo_rootfs_image_sector_size="4096"
|
||||
@@ -0,0 +1,5 @@
|
||||
lm36274_bl
|
||||
lm363x-regulator
|
||||
novatek-nvt-ts-spi
|
||||
panel-novatek-nt36672a
|
||||
ti-lmu
|
||||
Reference in New Issue
Block a user