asus-z00l: new device (Asus Zenfone 2 Laser 720p) (MR 1633)
Runs mainline linux kernel. All features except GPS, Camera, USB OTG and Notification LED is working fine.
This commit is contained in:
parent
437d1d8ebb
commit
7ae5c5fb03
3 changed files with 133 additions and 0 deletions
54
device/testing/device-asus-z00l/APKBUILD
Normal file
54
device/testing/device-asus-z00l/APKBUILD
Normal file
|
@ -0,0 +1,54 @@
|
|||
# Reference: <https://postmarketos.org/devicepkg>
|
||||
# Maintainer: Antony J.R. <antonyjr@pm.me>
|
||||
pkgname=device-asus-z00l
|
||||
pkgdesc="ASUS Zenfone 2 Laser (720p)"
|
||||
pkgver=1
|
||||
pkgrel=0
|
||||
url="https://postmarketos.org"
|
||||
license="MIT"
|
||||
arch="aarch64"
|
||||
options="!check !archcheck"
|
||||
depends="postmarketos-base mkbootimg soc-qcom-msm8916"
|
||||
makedepends="devicepkg-dev"
|
||||
source="deviceinfo"
|
||||
subpackages="
|
||||
$pkgname-kernel-mainline:kernel_mainline
|
||||
$pkgname-kernel-mainline-modem:kernel_mainline_modem
|
||||
$pkgname-nonfree-firmware:nonfree_firmware
|
||||
$pkgname-nonfree-firmware-modem:nonfree_firmware_modem
|
||||
"
|
||||
|
||||
build() {
|
||||
devicepkg_build $startdir $pkgname
|
||||
}
|
||||
|
||||
package() {
|
||||
devicepkg_package $startdir $pkgname
|
||||
}
|
||||
|
||||
kernel_mainline() {
|
||||
pkgdesc="Close to mainline kernel (no charging, no modem, audio routed directly)"
|
||||
depends="linux-postmarketos-qcom-msm8916"
|
||||
devicepkg_subpackage_kernel $startdir $pkgname $subpkgname
|
||||
}
|
||||
|
||||
kernel_mainline_modem() {
|
||||
pkgdesc="Close to mainline kernel (no charging, non-free modem, audio routed through ADSP)"
|
||||
depends="linux-postmarketos-qcom-msm8916 soc-qcom-msm8916-modem"
|
||||
devicepkg_subpackage_kernel $startdir $pkgname $subpkgname
|
||||
}
|
||||
|
||||
nonfree_firmware() {
|
||||
pkgdesc="GPU/WiFi/BT/Video(/Modem) firmware"
|
||||
depends="linux-firmware-qcom firmware-asus-z00l-venus firmware-asus-z00l-wcnss"
|
||||
mkdir "$subpkgdir"
|
||||
}
|
||||
|
||||
nonfree_firmware_modem() {
|
||||
pkgdesc="Modem firmware"
|
||||
depends="firmware-asus-z00l-modem"
|
||||
install_if="$pkgname-nonfree-firmware $pkgname-kernel-mainline-modem"
|
||||
mkdir "$subpkgdir"
|
||||
}
|
||||
|
||||
sha512sums="2d92c308f212fdd8d45528290795604f1eef42b85cf5ecb149118ff0ee9777d8f76b26386b5aaf707ced28f7f90d7d1572c34ea1cff2157a6b8f0525daf79098 deviceinfo"
|
33
device/testing/device-asus-z00l/deviceinfo
Normal file
33
device/testing/device-asus-z00l/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="ASUS Zenfone 2 Laser (720p)"
|
||||
deviceinfo_manufacturer="ASUS"
|
||||
deviceinfo_codename="asus-z00l"
|
||||
deviceinfo_year="2015"
|
||||
deviceinfo_dtb_mainline="qcom/msm8916-asus-z00l"
|
||||
deviceinfo_dtb_mainline_modem="qcom/msm8916-asus-z00l-modem"
|
||||
deviceinfo_append_dtb="true"
|
||||
deviceinfo_modules_initfs="panel-asus-z00l-otm1284a edt-ft5x06 msm"
|
||||
deviceinfo_arch="aarch64"
|
||||
|
||||
# Device related
|
||||
deviceinfo_chassis="handset"
|
||||
deviceinfo_keyboard="false"
|
||||
deviceinfo_external_storage="true"
|
||||
deviceinfo_screen_width="720"
|
||||
deviceinfo_screen_height="1280"
|
||||
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="0x00080000"
|
||||
deviceinfo_flash_offset_ramdisk="0x02000000"
|
||||
deviceinfo_flash_offset_second="0x00f00000"
|
||||
deviceinfo_flash_offset_tags="0x01e00000"
|
||||
deviceinfo_flash_pagesize="2048"
|
||||
deviceinfo_flash_sparse="true"
|
46
device/testing/firmware-asus-z00l/APKBUILD
Normal file
46
device/testing/firmware-asus-z00l/APKBUILD
Normal file
|
@ -0,0 +1,46 @@
|
|||
pkgname=firmware-asus-z00l
|
||||
pkgver=1
|
||||
pkgrel=0
|
||||
pkgdesc="Firmware for ASUS Zenfone 2 Laser (720p) (ZE550KL)"
|
||||
url="https://github.com/antony-jr/firmware-asus-z00l-raw"
|
||||
subpackages="$pkgname-modem $pkgname-venus $pkgname-wcnss"
|
||||
arch="aarch64"
|
||||
license="proprietary"
|
||||
options="!check !strip !archcheck"
|
||||
_commit="d78364b2127e8187f79e271e94dde03f0f722432"
|
||||
_repo="firmware-asus-z00l-raw"
|
||||
_fwdir="/lib/firmware/postmarketos"
|
||||
builddir="$srcdir/$_repo-$_commit"
|
||||
|
||||
source="
|
||||
$pkgname-$_commit.tar.gz::https://github.com/antony-jr/$_repo/archive/$_commit.tar.gz
|
||||
"
|
||||
|
||||
package() {
|
||||
# parent package is empty
|
||||
mkdir -p "$pkgdir"
|
||||
}
|
||||
|
||||
modem() {
|
||||
pkgdesc="ASUS Zenfone 2 Laser modem firmware"
|
||||
cd "$builddir"
|
||||
install -Dm644 firmware/image/mba.mbn -t "$subpkgdir/$_fwdir"
|
||||
install -Dm644 firmware/image/modem.* -t "$subpkgdir/$_fwdir"
|
||||
}
|
||||
|
||||
venus() {
|
||||
pkgdesc="ASUS Zenfone 2 Laser video firmware"
|
||||
cd "$builddir"
|
||||
install -Dm644 firmware/image/venus.* \
|
||||
-t "$subpkgdir/$_fwdir"/qcom/venus-1.8
|
||||
}
|
||||
|
||||
wcnss() {
|
||||
pkgdesc="ASUS Zenfone 2 Laser WiFi/BT firmware"
|
||||
cd "$builddir"
|
||||
install -Dm644 firmware/image/wcnss.* -t "$subpkgdir/$_fwdir"
|
||||
install -Dm644 etc-firmware/wlan/prima/WCNSS_qcom_wlan_nv_ze550kl.bin \
|
||||
"$subpkgdir/$_fwdir"/wlan/prima/WCNSS_qcom_wlan_nv.bin
|
||||
}
|
||||
|
||||
sha512sums="176da0aa399eddb6b9ab582b12bc698af369397a19c28556c39a656b573a5d4b02effe11a97d2f4c81568df03bc7859d999eb5d196a842dde4940cee192b96b3 firmware-asus-z00l-d78364b2127e8187f79e271e94dde03f0f722432.tar.gz"
|
Loading…
Reference in a new issue