generic-zhihe: add new devices (MSM8916-based LTE dongles, namely zhihe) (MR 3988)
[ci:skip-build]: already built successfully in CI
This commit is contained in:
parent
dc79738ba6
commit
23d7875f10
2 changed files with 97 additions and 0 deletions
64
device/testing/device-generic-zhihe/APKBUILD
Normal file
64
device/testing/device-generic-zhihe/APKBUILD
Normal file
|
@ -0,0 +1,64 @@
|
|||
# Maintainer: Yang Xiwen <forbidden405@outlook.com>
|
||||
# Co-Maintainer: Nikita Travkin <nikita@trvn.ru>
|
||||
|
||||
# Reference: <https://postmarketos.org/devicepkg>
|
||||
pkgname=device-generic-zhihe
|
||||
pkgdesc="A generic device package for various MSM8916-based dongles(namely zhihe)"
|
||||
pkgver=1
|
||||
pkgrel=0
|
||||
url="https://postmarketos.org"
|
||||
license="GPL"
|
||||
arch="aarch64"
|
||||
options="!check !archcheck"
|
||||
depends="
|
||||
mkbootimg
|
||||
postmarketos-base
|
||||
soc-qcom-msm8916
|
||||
soc-qcom-msm8916-rproc
|
||||
"
|
||||
_pmb_select="soc-qcom-msm8916-rproc"
|
||||
makedepends="devicepkg-dev"
|
||||
source="deviceinfo"
|
||||
subpackages="
|
||||
$pkgname-nonfree-firmware:nonfree_firmware
|
||||
$pkgname-kernel-ufi001c:kernel_ufi001c
|
||||
$pkgname-kernel-uf896:kernel_uf896
|
||||
$pkgname-kernel-uz801:kernel_uz801
|
||||
"
|
||||
|
||||
build() {
|
||||
devicepkg_build $startdir $pkgname
|
||||
}
|
||||
|
||||
package() {
|
||||
devicepkg_package $startdir $pkgname
|
||||
}
|
||||
|
||||
nonfree_firmware() {
|
||||
pkgdesc="WiFi/BT/Modem/Video firmware"
|
||||
depends="msm-firmware-loader
|
||||
firmware-qcom-msm8916-venus"
|
||||
mkdir "$subpkgdir"
|
||||
}
|
||||
|
||||
kernel_ufi001c() {
|
||||
pkgdesc="UFI103S / UFI-001C(B) / UFI003"
|
||||
depends="linux-postmarketos-qcom-msm8916"
|
||||
devicepkg_subpackage_kernel $startdir $pkgname $subpkgname
|
||||
}
|
||||
|
||||
kernel_uf896() {
|
||||
pkgdesc="UF896"
|
||||
depends="linux-postmarketos-qcom-msm8916"
|
||||
devicepkg_subpackage_kernel $startdir $pkgname $subpkgname
|
||||
}
|
||||
|
||||
kernel_uz801() {
|
||||
pkgdesc="UZ801 V3.0"
|
||||
depends="linux-postmarketos-qcom-msm8916"
|
||||
devicepkg_subpackage_kernel $startdir $pkgname $subpkgname
|
||||
}
|
||||
|
||||
sha512sums="
|
||||
c468647d505ec65f033cbe81b6608149c2905411a3d94a1129367e1ebca36e4b377b60a7d6759893def5508c1247890cc44e00234f8950a7c51b14f4b3f10c91 deviceinfo
|
||||
"
|
33
device/testing/device-generic-zhihe/deviceinfo
Normal file
33
device/testing/device-generic-zhihe/deviceinfo
Normal file
|
@ -0,0 +1,33 @@
|
|||
# Reference: <https://postmarketos.org/deviceinfo>
|
||||
# Please use double quotes only. You can source this file in shell
|
||||
# scripts.
|
||||
|
||||
deviceinfo_format_version="0"
|
||||
deviceinfo_name="Generic Zhihe series LTE dongles"
|
||||
deviceinfo_manufacturer="Generic"
|
||||
deviceinfo_codename="generic-zhihe"
|
||||
deviceinfo_year="2021"
|
||||
deviceinfo_dtb_uz801="qcom/msm8916-yiming-uz801v3"
|
||||
deviceinfo_dtb_ufi001c="qcom/msm8916-thwc-ufi001c"
|
||||
deviceinfo_dtb_uf896="qcom/msm8916-thwc-uf896"
|
||||
deviceinfo_append_dtb="true"
|
||||
deviceinfo_arch="aarch64"
|
||||
|
||||
# Device related
|
||||
deviceinfo_chassis="embedded"
|
||||
deviceinfo_keyboard="false"
|
||||
deviceinfo_external_storage="false"
|
||||
deviceinfo_no_framebuffer="true"
|
||||
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_pagesize="2048"
|
||||
deviceinfo_flash_offset_base="0x80000000"
|
||||
deviceinfo_flash_offset_kernel="0x00080000"
|
||||
deviceinfo_flash_offset_ramdisk="0x02000000"
|
||||
deviceinfo_flash_offset_second="0x00f00000"
|
||||
deviceinfo_flash_offset_tags="0x01e00000"
|
||||
deviceinfo_flash_sparse="true"
|
Loading…
Reference in a new issue