xiaomi-tulip: new device (Xiaomi Redmi Note 6 Pro) (MR 3668)

Signed-off-by: Gianluca Boiano <morf3089@gmail.com>
This commit is contained in:
M0Rf30 2022-11-28 12:01:17 +01:00 committed by Oliver Smith
parent b7fd6c90b0
commit eb2dd0b952
No known key found for this signature in database
GPG key ID: 5AE7F5513E0885CB
5 changed files with 210 additions and 0 deletions

View file

@ -0,0 +1,50 @@
# Maintainer: m0rf30 <morf3089@gmail.com>
# Reference: <https://postmarketos.org/devicepkg>
pkgname=device-xiaomi-tulip
pkgdesc="Xiaomi Redmi Note 6 Pro"
pkgver=1
pkgrel=0
url="https://postmarketos.org"
license="MIT"
arch="aarch64"
options="!check !archcheck"
depends="postmarketos-base mkbootimg"
makedepends="devicepkg-dev"
subpackages="
$pkgname-nonfree-firmware:nonfree_firmware
$pkgname-kernel-mainline:kernel_mainline
$pkgname-modem
"
source="
deviceinfo
"
build() {
devicepkg_build $startdir $pkgname
}
package() {
devicepkg_package $startdir $pkgname
}
nonfree_firmware() {
pkgdesc="Wi-Fi, ADSP Firmware"
depends="firmware-xiaomi-tulip"
mkdir "$subpkgdir"
}
kernel_mainline() {
pkgdesc="Close to mainline; for kernel development only (most features aren't working)"
depends="linux-postmarketos-qcom-sdm660"
devicepkg_subpackage_kernel $startdir $pkgname $subpkgname
}
modem() {
depends="rmtfs rmtfs-openrc msm-modem-uim-selection"
install_if="$pkgname=$pkgver-r$pkgrel $pkgname-nonfree-firmware"
mkdir "$subpkgdir"
}
sha512sums="
5c9802a4d55f92e06c9222397973ca2612bb495182da17493765f66f06ed815163848c76729b91d99a5b96c2eeae8d140939388669adacfe65f88436940810c1 deviceinfo
"

View file

@ -0,0 +1,36 @@
# 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 6 Pro"
deviceinfo_manufacturer="Xiaomi"
deviceinfo_codename="xiaomi-tulip"
deviceinfo_year="2018"
deviceinfo_dtb_mainline="qcom/sdm636-xiaomi-tulip"
deviceinfo_append_dtb_mainline="true"
deviceinfo_modules_initfs="msm qcom_fg qcom_pmi8998_charger"
deviceinfo_arch="aarch64"
# Device related
deviceinfo_chassis="handset"
deviceinfo_keyboard="false"
deviceinfo_external_storage="true"
deviceinfo_screen_width="1080"
deviceinfo_screen_height="2280"
# Bootloader related
deviceinfo_flash_method="fastboot"
deviceinfo_kernel_cmdline_mainline="console=ttyMSM0,115200"
deviceinfo_generate_bootimg="true"
deviceinfo_bootimg_qcdt="false"
deviceinfo_bootimg_dtb_second="false"
deviceinfo_flash_offset_base="0x00000000"
deviceinfo_flash_offset_kernel="0x00008000"
deviceinfo_flash_offset_ramdisk="0x01000000"
deviceinfo_flash_offset_second="0x00000000"
deviceinfo_flash_offset_tags="0x00000100"
deviceinfo_flash_pagesize="4096"
deviceinfo_header_version="0"
deviceinfo_flash_sparse="true"

View file

@ -0,0 +1,7 @@
/lib/firmware/qcom/a530_pfp.fw
/lib/firmware/qcom/a530_pm4.fw
/lib/firmware/qcom/a512_zap.b00
/lib/firmware/qcom/a512_zap.b01
/lib/firmware/qcom/a512_zap.b02
/lib/firmware/qcom/a512_zap.elf
/lib/firmware/qcom/a512_zap.mdt

View file

@ -0,0 +1,42 @@
# Maintainer: m0rf30 <morf3089@gmail.com>
pkgname=firmware-xiaomi-tulip
pkgver=1
pkgrel=0
pkgdesc="Firmware files for Xiaomi Redmi Note 6 Pro"
url="https://github.com/M0Rf30/postmarketos-vendor-xiaomi-tulip"
arch="aarch64"
license="proprietary"
options="!strip !check !archcheck !tracedeps pmb:cross-native"
_commit="c8f750d4cdd8c5353c4aaa423f81774c63f87d27"
source="
$pkgname-$_commit.tar.gz::$url/archive/$_commit.tar.gz
30-gpu-firmware.files
firmware.files"
subpackages="$pkgname-initramfs:firmware_initramfs"
builddir="$srcdir/postmarketos-vendor-xiaomi-tulip-$_commit"
package() {
while IFS="" read -r fw; do
install -Dm644 "$fw" "$pkgdir/lib/firmware/$fw"
done < "$srcdir"/firmware.files
}
firmware_initramfs() {
pkgdesc="Files to be included in the initramfs to support osk-sdl"
depends="$pkgname mesa-egl mesa-gbm"
install_if="$pkgname"
install -Dm644 "$srcdir"/30-gpu-firmware.files \
"$subpkgdir"/etc/postmarketos-mkinitfs/files/30-gpu-firmware.files
}
sha512sums="
fd36819cabb028973015587e4193642e7c36b2321181a1c3dc7631fcfe51e7e736f4679665d4e4ad2eef8ddd4fe541a8a15e93189822702e23463a43023fe549 firmware-xiaomi-tulip-c8f750d4cdd8c5353c4aaa423f81774c63f87d27.tar.gz
f4a81bc3b5fbcac001c6583f78a26b0e11787c3e2d423a72b6db1fbfab69a37f095ed303dfbcf0d6050864dbec9fcd977b9c827e4ba79e86c45491d238ea6c36 30-gpu-firmware.files
4197803672f89fb8d8a6e87ed348544dd645025fc8bbc998296e9a214fb5095edc9e1c5c5a843b06855ccec40f4ea56526c3e08a79f9220776de34593d4b12a1 firmware.files
"

View file

@ -0,0 +1,75 @@
ath10k/WCN3990/hw1.0/board-2.bin
ath10k/WCN3990/hw1.0/firmware-5.bin
qca/crbtfw21.tlv
qca/crnv21.bin
qcom/a512_zap.b00
qcom/a512_zap.b01
qcom/a512_zap.b02
qcom/a512_zap.elf
qcom/a512_zap.mdt
qcom/a530_pfp.fw
qcom/a530_pm4.fw
qcom/a540_gpmu.fw2
qcom/venus-4.4/venus.b00
qcom/venus-4.4/venus.b01
qcom/venus-4.4/venus.b02
qcom/venus-4.4/venus.b03
qcom/venus-4.4/venus.b04
qcom/venus-4.4/venus.mdt
adsp.b00
adsp.b01
adsp.b02
adsp.b03
adsp.b04
adsp.b05
adsp.b06
adsp.b07
adsp.b08
adsp.b09
adsp.b10
adsp.b11
adsp.b12
adsp.b13
adsp.b14
adsp.b15
adsp.b16
adsp.b17
adsp.b18
adsp.b19
adsp.b20
adsp.b21
adsp.b22
adsp.b23
adsp.mdt
mba.mbn
modem.b00
modem.b01
modem.b02
modem.b03
modem.b04
modem.b05
modem.b06
modem.b07
modem.b08
modem.b09
modem.b10
modem.b11
modem.b12
modem.b13
modem.b14
modem.b16
modem.b17
modem.b18
modem.b20
modem.b21
modem.b22
modem.b23
modem.b24
modem.b25
modem.b26
modem.b27
modem.b28
modem.mdt
modemr.jsn
modemuw.jsn
wlanmdsp.mbn