xiaomi-ysl: new device (MR 4199)
This commit is contained in:
parent
97c5995c7c
commit
ab3bcfe071
5 changed files with 175 additions and 0 deletions
38
device/testing/device-xiaomi-ysl/APKBUILD
Normal file
38
device/testing/device-xiaomi-ysl/APKBUILD
Normal file
|
@ -0,0 +1,38 @@
|
|||
# Maintainer: Barnabas Czeman <trabarni@gmail.com>
|
||||
# Reference: <https://postmarketos.org/devicepkg>
|
||||
pkgname=device-xiaomi-ysl
|
||||
pkgdesc="Xiaomi Redmi S2/Y2"
|
||||
pkgver=1
|
||||
pkgrel=0
|
||||
url="https://postmarketos.org"
|
||||
license="MIT"
|
||||
arch="aarch64"
|
||||
options="!check !archcheck"
|
||||
depends="postmarketos-base mkbootimg soc-qcom-msm8916 linux-postmarketos-qcom-msm8953"
|
||||
makedepends="devicepkg-dev"
|
||||
source="deviceinfo"
|
||||
subpackages="$pkgname-nonfree-firmware:nonfree_firmware $pkgname-modem"
|
||||
|
||||
build() {
|
||||
devicepkg_build $startdir $pkgname
|
||||
}
|
||||
|
||||
package() {
|
||||
devicepkg_package $startdir $pkgname
|
||||
}
|
||||
|
||||
nonfree_firmware() {
|
||||
pkgdesc="Modem, WiFi, BT, ADSP, Venus and GPU Firmware, also needed for osk-sdl"
|
||||
depends="linux-firmware-qcom firmware-xiaomi-ysl"
|
||||
mkdir "$subpkgdir"
|
||||
}
|
||||
|
||||
modem() {
|
||||
depends="qrtr rmtfs rmtfs-openrc msm-modem-uim-selection"
|
||||
install_if="$pkgname=$pkgver-r$pkgrel $pkgname-nonfree-firmware"
|
||||
mkdir "$subpkgdir"
|
||||
}
|
||||
|
||||
sha512sums="
|
||||
76d782638cb6dbad57a1d54884ae1436d78f30ef46589ad2a22c5861a5c827ec2376bbbb7b8d5049690bbb168e1bbec25a32604c936dba27561ddb8fce401bf9 deviceinfo
|
||||
"
|
35
device/testing/device-xiaomi-ysl/deviceinfo
Normal file
35
device/testing/device-xiaomi-ysl/deviceinfo
Normal file
|
@ -0,0 +1,35 @@
|
|||
# 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 S2/Y2"
|
||||
deviceinfo_manufacturer="Xiaomi"
|
||||
deviceinfo_codename="xiaomi-ysl"
|
||||
deviceinfo_year="2018"
|
||||
deviceinfo_dtb="qcom/msm8953-xiaomi-ysl"
|
||||
deviceinfo_append_dtb="true"
|
||||
deviceinfo_modules_initfs="msm edt-ft5x06 panel-xiaomi-ysl-hx8394f panel-xiaomi-ysl-ili7807d panel-xiaomi-ysl-ili9881c"
|
||||
deviceinfo_arch="aarch64"
|
||||
|
||||
# Device related
|
||||
deviceinfo_gpu_accelerated="true"
|
||||
deviceinfo_chassis="handset"
|
||||
deviceinfo_keyboard="false"
|
||||
deviceinfo_external_storage="true"
|
||||
deviceinfo_screen_width="720"
|
||||
deviceinfo_screen_height="1440"
|
||||
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_bootimg_qcdt="false"
|
||||
deviceinfo_bootimg_dtb_second="false"
|
||||
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"
|
6
device/testing/firmware-xiaomi-ysl/30-gpu-firmware.files
Normal file
6
device/testing/firmware-xiaomi-ysl/30-gpu-firmware.files
Normal 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
|
36
device/testing/firmware-xiaomi-ysl/APKBUILD
Normal file
36
device/testing/firmware-xiaomi-ysl/APKBUILD
Normal file
|
@ -0,0 +1,36 @@
|
|||
pkgname=firmware-xiaomi-ysl
|
||||
pkgver=1
|
||||
pkgrel=0
|
||||
pkgdesc="Firmware files for Xiaomi Redmi S2/Y2"
|
||||
url="https://gitlab.com/trabarni/$pkgname"
|
||||
arch="aarch64"
|
||||
depends="linux-firmware-qcom firmware-xiaomi-ysl-initramfs"
|
||||
license="proprietary"
|
||||
options="!strip !check !archcheck !spdx !tracedeps pmb:cross-native"
|
||||
|
||||
_commit="bb62cf818d4224850cd033d085e29aa1b3defc59"
|
||||
|
||||
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="
|
||||
92c761f63307b7c53ff2d98843cf6d3b3f13e89c2b87b61a4d53b8a0b6e96031d35ebc34d913f2ae96a3736a6bae65a2667e4caa36a98087e86f57270e9f7c8c firmware-xiaomi-ysl.tar.gz
|
||||
d43fae933bb12e3879588e96f604be0534be5455bb9edbea3c9cf96bcffbce44abae27de3f40a118536254ca85faeb0fecf390f8f6ae60ca9d06887ac32a7462 firmware.files
|
||||
302c0bec754bb79ef561c1a8d4ff34ba52b904c853bce6a15a79ba7b5b7a3d02c1c75bbe86d59be7b608a6dc744dd3e3c638eaa4539c53d20fa55fa5ea397d74 30-gpu-firmware.files
|
||||
"
|
60
device/testing/firmware-xiaomi-ysl/firmware.files
Normal file
60
device/testing/firmware-xiaomi-ysl/firmware.files
Normal file
|
@ -0,0 +1,60 @@
|
|||
./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
|
||||
./lib/firmware/postmarketos/adsp.b00
|
||||
./lib/firmware/postmarketos/adsp.b01
|
||||
./lib/firmware/postmarketos/adsp.b02
|
||||
./lib/firmware/postmarketos/adsp.b03
|
||||
./lib/firmware/postmarketos/adsp.b04
|
||||
./lib/firmware/postmarketos/adsp.b05
|
||||
./lib/firmware/postmarketos/adsp.b06
|
||||
./lib/firmware/postmarketos/adsp.b07
|
||||
./lib/firmware/postmarketos/adsp.b08
|
||||
./lib/firmware/postmarketos/adsp.b09
|
||||
./lib/firmware/postmarketos/adsp.b10
|
||||
./lib/firmware/postmarketos/adsp.b11
|
||||
./lib/firmware/postmarketos/adsp.b12
|
||||
./lib/firmware/postmarketos/adsp.b13
|
||||
./lib/firmware/postmarketos/adsp.b14
|
||||
./lib/firmware/postmarketos/adsp.mdt
|
||||
./lib/firmware/postmarketos/mba.mbn
|
||||
./lib/firmware/postmarketos/modem.b00
|
||||
./lib/firmware/postmarketos/modem.b01
|
||||
./lib/firmware/postmarketos/modem.b02
|
||||
./lib/firmware/postmarketos/modem.b04
|
||||
./lib/firmware/postmarketos/modem.b05
|
||||
./lib/firmware/postmarketos/modem.b06
|
||||
./lib/firmware/postmarketos/modem.b07
|
||||
./lib/firmware/postmarketos/modem.b08
|
||||
./lib/firmware/postmarketos/modem.b09
|
||||
./lib/firmware/postmarketos/modem.b10
|
||||
./lib/firmware/postmarketos/modem.b11
|
||||
./lib/firmware/postmarketos/modem.b12
|
||||
./lib/firmware/postmarketos/modem.b13
|
||||
./lib/firmware/postmarketos/modem.b16
|
||||
./lib/firmware/postmarketos/modem.b17
|
||||
./lib/firmware/postmarketos/modem.b18
|
||||
./lib/firmware/postmarketos/modem.b19
|
||||
./lib/firmware/postmarketos/modem.b20
|
||||
./lib/firmware/postmarketos/modem.mdt
|
||||
./lib/firmware/postmarketos/qdsp6m.qdb
|
||||
./lib/firmware/postmarketos/venus.b00
|
||||
./lib/firmware/postmarketos/venus.b01
|
||||
./lib/firmware/postmarketos/venus.b02
|
||||
./lib/firmware/postmarketos/venus.b03
|
||||
./lib/firmware/postmarketos/venus.b04
|
||||
./lib/firmware/postmarketos/venus.mdt
|
||||
./lib/firmware/postmarketos/wcnss.b00
|
||||
./lib/firmware/postmarketos/wcnss.b01
|
||||
./lib/firmware/postmarketos/wcnss.b02
|
||||
./lib/firmware/postmarketos/wcnss.b04
|
||||
./lib/firmware/postmarketos/wcnss.b06
|
||||
./lib/firmware/postmarketos/wcnss.b09
|
||||
./lib/firmware/postmarketos/wcnss.b10
|
||||
./lib/firmware/postmarketos/wcnss.b11
|
||||
./lib/firmware/postmarketos/wcnss.b12
|
||||
./lib/firmware/postmarketos/wcnss.mdt
|
||||
./lib/firmware/postmarketos/wlan/prima/WCNSS_qcom_wlan_nv.bin
|
Loading…
Reference in a new issue