xiaomi-markw: new device (MR 3906)

This commit is contained in:
vipaol 2023-02-25 14:18:24 +04:00 committed by Newbyte
parent b8aca2b914
commit f07d122b67
No known key found for this signature in database
GPG key ID: 990600ED1DB95E02
5 changed files with 313 additions and 0 deletions

View file

@ -0,0 +1,30 @@
# Reference: <https://postmarketos.org/devicepkg>
pkgname=device-xiaomi-markw
pkgdesc="Xiaomi Redmi 4 Prime"
pkgver=1.0
pkgrel=0
url="https://postmarketos.org"
license="MIT"
arch="aarch64"
options="!check !archcheck"
depends="postmarketos-base mkbootimg linux-postmarketos-qcom-msm8953"
makedepends="devicepkg-dev"
source="deviceinfo"
subpackages="$pkgname-nonfree-firmware:nonfree_firmware"
build() {
devicepkg_build $startdir $pkgname
}
package() {
devicepkg_package $startdir $pkgname
}
nonfree_firmware() {
pkgdesc="WiFi, Bluetooth, Modem, Display and GPU Firmware"
depends="firmware-xiaomi-markw"
mkdir "$subpkgdir"
}
sha512sums="
282bda182bc7439bafbb5e85da15797b7d96c34945fd312ef45f369581767a25d9c6d0a768abdf6a4562deff096e732f39b5e9efe2533e6d75b1b065a63efc93 deviceinfo
"

View file

@ -0,0 +1,37 @@
# 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 4 Prime"
deviceinfo_manufacturer="Xiaomi"
deviceinfo_codename="xiaomi-markw"
deviceinfo_year="2016"
deviceinfo_dtb="qcom/msm8953-xiaomi-markw"
deviceinfo_append_dtb="true"
deviceinfo_arch="aarch64"
# Device related
deviceinfo_gpu_accelerated="true"
deviceinfo_chassis="handset"
deviceinfo_keyboard="false"
deviceinfo_external_storage="true"
deviceinfo_screen_width="1080"
deviceinfo_screen_height="1920"
deviceinfo_getty="ttyMSM0;115200"
# Bootloader related
deviceinfo_flash_method="fastboot"
deviceinfo_kernel_cmdline="earlycon console=ttyMSM0,115200 PMOS_NO_OUTPUT_REDIRECT"
deviceinfo_generate_bootimg="true"
deviceinfo_flash_offset_base="0x80000000"
deviceinfo_flash_offset_kernel="0x00008000"
deviceinfo_flash_offset_ramdisk="0x01000000"
deviceinfo_flash_offset_second="0x00f00000"
deviceinfo_flash_offset_tags="0x00000100"
deviceinfo_flash_pagesize="2048"
deviceinfo_flash_sparse="true"
# osk-sdl
deviceinfo_modules_initfs="msm panel_mdss_nt35596_ebbg panel_mdss_r63350 atmel_mxt_ts edt_ft5x06"
deviceinfo_mesa_driver="msm"

View file

@ -0,0 +1,6 @@
/lib/firmware/postmarketos/a506_zap.b00
/lib/firmware/postmarketos/a506_zap.b01
/lib/firmware/postmarketos/a506_zap.b02
/lib/firmware/postmarketos/a506_zap.mdt
/lib/firmware/postmarketos/a530_pfp.fw
/lib/firmware/postmarketos/a530_pm4.fw

View file

@ -0,0 +1,38 @@
# Maintainer: vipaoL <vipaolmail@gmail.com>
pkgname=firmware-xiaomi-markw
pkgver=1
pkgrel=0
pkgdesc="Firmware files for Xiaomi Redmi 4 Prime (markw)"
url="https://gitlab.com/vipaoL/firmware-xiaomi-markw"
arch="aarch64"
depends="firmware-xiaomi-markw-initramfs"
license="proprietary"
options="!strip !check !archcheck !spdx !tracedeps pmb:cross-native"
_commit="8cc7f7d9e56aa9fa0193403b694115d759eafaf2"
source="$pkgname.tar.gz::$url/-/archive/$_commit/$pkgname-$_commit.tar.gz
firmware.files
30-gpu-firmware.files"
subpackages="$pkgname-initramfs:firmware_initramfs"
package() {
cd "$srcdir/$pkgname-$_commit/"
while IFS="" read -r _i || [ -n "$_i" ]; do
[ ! -d $(dirname $_i) ] && mkdir -p $(dirname $_i)
install -Dm644 $_i "$pkgdir/$_i"
done < "$srcdir/firmware.files"
}
firmware_initramfs() {
mkdir "$subpkgdir"
install -Dm644 "$srcdir"/30-gpu-firmware.files -t \
"$subpkgdir"/usr/share/mkinitfs/files
}
sha512sums="
f57ec60776f0cfd89ccc0f4a561aa261367b299796b4a9121814c560eab7a28b3049a3defcc129942098b88937fad8f6c3bbf2d1ac7d89d4175c8ec4014c1a8a firmware-xiaomi-markw.tar.gz
da36a1dee69c3dd2bbd5557a547b93ab23a2e8993fe1c735ebd25cc6258b54e981daca9d3461c848835e623f7c7694c73bcb05527170ab3ea171049d5352c703 firmware.files
302c0bec754bb79ef561c1a8d4ff34ba52b904c853bce6a15a79ba7b5b7a3d02c1c75bbe86d59be7b608a6dc744dd3e3c638eaa4539c53d20fa55fa5ea397d74 30-gpu-firmware.files
"

View file

@ -0,0 +1,202 @@
./lib/firmware/postmarketos/smplap64.mdt
./lib/firmware/postmarketos/modem.b04
./lib/firmware/postmarketos/modem.b07
./lib/firmware/postmarketos/widevine.mdt
./lib/firmware/postmarketos/dhsecapp.b01
./lib/firmware/postmarketos/cmnlib.b04
./lib/firmware/postmarketos/cmnlib.b03
./lib/firmware/postmarketos/qmpsecap.b02
./lib/firmware/postmarketos/secauth.b01
./lib/firmware/postmarketos/mlipay.b01
./lib/firmware/postmarketos/modem.b17
./lib/firmware/postmarketos/wcnss.b00
./lib/firmware/postmarketos/adsp.b02
./lib/firmware/postmarketos/fpcta.b05
./lib/firmware/postmarketos/smplap64.b02
./lib/firmware/postmarketos/qdsp6m.qdb
./lib/firmware/postmarketos/cppf.b05
./lib/firmware/postmarketos/cmnlib.b00
./lib/firmware/postmarketos/cmnlib.b02
./lib/firmware/postmarketos/cmnlib.b05
./lib/firmware/postmarketos/goodixfp.b04
./lib/firmware/postmarketos/smplap64.b04
./lib/firmware/postmarketos/smplap32.b01
./lib/firmware/postmarketos/fpcta.b03
./lib/firmware/postmarketos/modem.mdt
./lib/firmware/postmarketos/cardapp.b05
./lib/firmware/postmarketos/wcnss.b12
./lib/firmware/postmarketos/cardapp.mdt
./lib/firmware/postmarketos/smplap32.b04
./lib/firmware/postmarketos/wcnss.b10
./lib/firmware/postmarketos/vsimapp.b03
./lib/firmware/postmarketos/modem.b16
./lib/firmware/postmarketos/modem.b00
./lib/firmware/postmarketos/fpcta.b01
./lib/firmware/postmarketos/gptest.b06
./lib/firmware/postmarketos/isdbtmm.mdt
./lib/firmware/postmarketos/mlipay.b02
./lib/firmware/postmarketos/venus.b02
./lib/firmware/postmarketos/securemm.b06
./lib/firmware/postmarketos/widevine.b00
./lib/firmware/postmarketos/adsp.b01
./lib/firmware/postmarketos/goodixfp.b01
./lib/firmware/postmarketos/smplap64.b05
./lib/firmware/postmarketos/mdtp.b03
./lib/firmware/postmarketos/secauth.b02
./lib/firmware/postmarketos/modem.b10
./lib/firmware/postmarketos/cppf.b01
./lib/firmware/postmarketos/mlipay.b06
./lib/firmware/postmarketos/qmpsecap.b06
./lib/firmware/postmarketos/smplap32.b02
./lib/firmware/postmarketos/mlipay.b05
./lib/firmware/postmarketos/widevine.b04
./lib/firmware/postmarketos/vsimapp.b06
./lib/firmware/postmarketos/cmnlib.mdt
./lib/firmware/postmarketos/isdbtmm.b01
./lib/firmware/postmarketos/isdbtmm.b03
./lib/firmware/postmarketos/wlan/prima/WCNSS_qcom_wlan_nv.bin
./lib/firmware/postmarketos/cardapp.b02
./lib/firmware/postmarketos/smplap64.b01
./lib/firmware/postmarketos/wcnss.b11
./lib/firmware/postmarketos/dhsecapp.b06
./lib/firmware/postmarketos/secauth.mdt
./lib/firmware/postmarketos/adsp.b09
./lib/firmware/postmarketos/cmnlib64.b00
./lib/firmware/postmarketos/mlipay.b00
./lib/firmware/postmarketos/dhsecapp.b03
./lib/firmware/postmarketos/adsp.b03
./lib/firmware/postmarketos/mba.mbn
./lib/firmware/postmarketos/secauth.b06
./lib/firmware/postmarketos/adsp.b11
./lib/firmware/postmarketos/secauth.b05
./lib/firmware/postmarketos/qmpsecap.mdt
./lib/firmware/postmarketos/goodixfp.b06
./lib/firmware/postmarketos/fpcta.b06
./lib/firmware/postmarketos/gptest.b05
./lib/firmware/postmarketos/mlipay.b04
./lib/firmware/postmarketos/securemm.b00
./lib/firmware/postmarketos/gptest.b00
./lib/firmware/postmarketos/widevine.b05
./lib/firmware/postmarketos/securemm.b01
./lib/firmware/postmarketos/isdbtmm.b05
./lib/firmware/postmarketos/cppf.b03
./lib/firmware/postmarketos/goodixfp.b00
./lib/firmware/postmarketos/adsp.b13
./lib/firmware/postmarketos/goodixfp.mdt
./lib/firmware/postmarketos/wcnss.b04
./lib/firmware/postmarketos/cppf.b02
./lib/firmware/postmarketos/vsimapp.mdt
./lib/firmware/postmarketos/fpcta.mdt
./lib/firmware/postmarketos/goodixfp.b05
./lib/firmware/postmarketos/cardapp.b00
./lib/firmware/postmarketos/widevine.b06
./lib/firmware/postmarketos/goodixfp.b02
./lib/firmware/postmarketos/cppf.b06
./lib/firmware/postmarketos/adsp.mdt
./lib/firmware/postmarketos/wcnss.b09
./lib/firmware/postmarketos/smplap64.b03
./lib/firmware/postmarketos/cmnlib64.b01
./lib/firmware/postmarketos/qmpsecap.b03
./lib/firmware/postmarketos/vsimapp.b02
./lib/firmware/postmarketos/isdbtmm.b06
./lib/firmware/postmarketos/fpcta.b02
./lib/firmware/postmarketos/smplap64.b00
./lib/firmware/postmarketos/mlipay.b03
./lib/firmware/postmarketos/mdtp.b02
./lib/firmware/postmarketos/mdtp.b05
./lib/firmware/postmarketos/cmnlib64.b02
./lib/firmware/postmarketos/dhsecapp.mdt
./lib/firmware/postmarketos/venus.b03
./lib/firmware/postmarketos/cardapp.b06
./lib/firmware/postmarketos/smplap32.b00
./lib/firmware/postmarketos/modem.b09
./lib/firmware/postmarketos/wcnss.mdt
./lib/firmware/postmarketos/venus.b00
./lib/firmware/postmarketos/fpcta.b04
./lib/firmware/postmarketos/adsp.b05
./lib/firmware/postmarketos/mdtp.b00
./lib/firmware/postmarketos/cppf.b04
./lib/firmware/postmarketos/adsp.b00
./lib/firmware/postmarketos/venus.b01
./lib/firmware/postmarketos/gptest.mdt
./lib/firmware/postmarketos/cardapp.b04
./lib/firmware/postmarketos/securemm.b05
./lib/firmware/postmarketos/wcnss.b02
./lib/firmware/postmarketos/mlipay.mdt
./lib/firmware/postmarketos/modem.b06
./lib/firmware/postmarketos/widevine.b02
./lib/firmware/postmarketos/venus.mdt
./lib/firmware/postmarketos/modem.b11
./lib/firmware/postmarketos/dhsecapp.b05
./lib/firmware/postmarketos/secauth.b03
./lib/firmware/postmarketos/vsimapp.b00
./lib/firmware/postmarketos/goodixfp.b03
./lib/firmware/postmarketos/fpcta.b00
./lib/firmware/postmarketos/dhsecapp.b00
./lib/firmware/postmarketos/widevine.b01
./lib/firmware/postmarketos/mdtp.b04
./lib/firmware/postmarketos/smplap32.mdt
./lib/firmware/postmarketos/gptest.b01
./lib/firmware/postmarketos/smplap64.b06
./lib/firmware/postmarketos/adsp.b06
./lib/firmware/postmarketos/modem.b20
./lib/firmware/postmarketos/isdbtmm.b02
./lib/firmware/postmarketos/qmpsecap.b00
./lib/firmware/postmarketos/adsp.b04
./lib/firmware/postmarketos/securemm.b03
./lib/firmware/postmarketos/gptest.b04
./lib/firmware/postmarketos/cmnlib64.b03
./lib/firmware/postmarketos/secauth.b04
./lib/firmware/postmarketos/gptest.b03
./lib/firmware/postmarketos/modem.b01
./lib/firmware/postmarketos/cmnlib64.b04
./lib/firmware/postmarketos/cppf.b00
./lib/firmware/postmarketos/cardapp.b03
./lib/firmware/postmarketos/gptest.b02
./lib/firmware/postmarketos/venus.b04
./lib/firmware/postmarketos/securemm.b02
./lib/firmware/postmarketos/adsp.b08
./lib/firmware/postmarketos/securemm.b04
./lib/firmware/postmarketos/isdbtmm.b00
./lib/firmware/postmarketos/modem.b19
./lib/firmware/postmarketos/qmpsecap.b04
./lib/firmware/postmarketos/vsimapp.b04
./lib/firmware/postmarketos/vsimapp.b01
./lib/firmware/postmarketos/mdtp.b01
./lib/firmware/postmarketos/cmnlib.b01
./lib/firmware/postmarketos/vsimapp.b05
./lib/firmware/postmarketos/isdbtmm.b04
./lib/firmware/postmarketos/wcnss.b01
./lib/firmware/postmarketos/cppf.mdt
./lib/firmware/postmarketos/smplap32.b05
./lib/firmware/postmarketos/mdtp.b06
./lib/firmware/postmarketos/smplap32.b03
./lib/firmware/postmarketos/modem.b02
./lib/firmware/postmarketos/adsp.b12
./lib/firmware/postmarketos/modem.b05
./lib/firmware/postmarketos/qmpsecap.b01
./lib/firmware/postmarketos/adsp.b07
./lib/firmware/postmarketos/qmpsecap.b05
./lib/firmware/postmarketos/modem.b08
./lib/firmware/postmarketos/smplap32.b06
./lib/firmware/postmarketos/dhsecapp.b04
./lib/firmware/postmarketos/mdtp.mdt
./lib/firmware/postmarketos/secauth.b00
./lib/firmware/postmarketos/cmnlib64.b05
./lib/firmware/postmarketos/modem.b18
./lib/firmware/postmarketos/modem.b13
./lib/firmware/postmarketos/cardapp.b01
./lib/firmware/postmarketos/securemm.mdt
./lib/firmware/postmarketos/modem.b12
./lib/firmware/postmarketos/dhsecapp.b02
./lib/firmware/postmarketos/gptauuid.xml
./lib/firmware/postmarketos/wcnss.b06
./lib/firmware/postmarketos/widevine.b03
./lib/firmware/postmarketos/cmnlib64.mdt
./lib/firmware/postmarketos/adsp.b10
./lib/firmware/postmarketos/a506_zap.mdt
./lib/firmware/postmarketos/a506_zap.b01
./lib/firmware/postmarketos/a506_zap.b00
./lib/firmware/postmarketos/a506_zap.b02
./lib/firmware/postmarketos/a530_pfp.fw
./lib/firmware/postmarketos/a530_pm4.fw