lenovo-a6000: new device (MR 1898)
This commit is contained in:
parent
be2f27a342
commit
407911ab1a
3 changed files with 118 additions and 0 deletions
52
device/testing/device-lenovo-a6000/APKBUILD
Normal file
52
device/testing/device-lenovo-a6000/APKBUILD
Normal file
|
@ -0,0 +1,52 @@
|
|||
pkgname=device-lenovo-a6000
|
||||
pkgdesc="Lenovo A6000"
|
||||
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 modem, audio routed directly)"
|
||||
depends="linux-postmarketos-qcom-msm8916"
|
||||
devicepkg_subpackage_kernel $startdir $pkgname $subpkgname
|
||||
}
|
||||
|
||||
kernel_mainline_modem() {
|
||||
pkgdesc="Close to mainline kernel (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-qcom-msm8916-wcnss firmware-lenovo-a6000-wcnss-nv"
|
||||
mkdir "$subpkgdir"
|
||||
}
|
||||
|
||||
nonfree_firmware_modem() {
|
||||
pkgdesc="Modem firmware"
|
||||
depends="firmware-lenovo-a6000-modem"
|
||||
install_if="$pkgname-nonfree-firmware $pkgname-kernel-mainline-modem"
|
||||
mkdir "$subpkgdir"
|
||||
}
|
||||
|
||||
sha512sums="9aee049ade2747166ad56e73261f4a8a52ca43e27b0de972bbb35024475613461ef14a5a8020438351bf1c78e62181cf47b77b4f6bc36e6990df5d92bbd4445d deviceinfo"
|
33
device/testing/device-lenovo-a6000/deviceinfo
Normal file
33
device/testing/device-lenovo-a6000/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="Lenovo A6000"
|
||||
deviceinfo_manufacturer="Lenovo"
|
||||
deviceinfo_codename="lenovo-a6000"
|
||||
deviceinfo_year="2015"
|
||||
deviceinfo_dtb_mainline="qcom/msm8916-wingtech-wt86518"
|
||||
deviceinfo_dtb_mainline_modem="qcom/msm8916-wingtech-wt86518-modem"
|
||||
deviceinfo_append_dtb="true"
|
||||
deviceinfo_modules_initfs="pm8916-lbc pm8916-bms-vm panel-wingtech-yassy-ili9881 panel-wingtech-tianma-hx8394d msm edt-ft5x06"
|
||||
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"
|
33
device/testing/firmware-lenovo-a6000/APKBUILD
Normal file
33
device/testing/firmware-lenovo-a6000/APKBUILD
Normal file
|
@ -0,0 +1,33 @@
|
|||
pkgname=firmware-lenovo-a6000
|
||||
pkgver=1
|
||||
pkgrel=0
|
||||
pkgdesc="Firmware for Lenovo A6000"
|
||||
url="https://github.com/jenneron/vendor_lenovo_a6000"
|
||||
subpackages="$pkgname-modem $pkgname-wcnss-nv:wcnss_nv"
|
||||
arch="aarch64"
|
||||
license="proprietary"
|
||||
options="!check !strip !archcheck !tracedeps pmb:cross-native"
|
||||
|
||||
_commit="ea5312f4fbfec01883f2b2413f637691823820c2"
|
||||
source="$pkgname-$_commit.tar.gz::$url/archive/$_commit.tar.gz"
|
||||
|
||||
_fwdir="/lib/firmware/postmarketos"
|
||||
|
||||
package() {
|
||||
mkdir -p "$pkgdir"
|
||||
}
|
||||
|
||||
modem() {
|
||||
pkgdesc="Lenovo a6000 modem firmware"
|
||||
cd "$srcdir/vendor_lenovo_a6000-$_commit"
|
||||
install -Dm644 mba.mbn -t "$subpkgdir/$_fwdir"
|
||||
install -Dm644 modem.* -t "$subpkgdir/$_fwdir"
|
||||
}
|
||||
|
||||
wcnss_nv() {
|
||||
pkgdesc="Lenovo a6000 WiFi/BT firmware configuration"
|
||||
cd "$srcdir/vendor_lenovo_a6000-$_commit"
|
||||
install -Dm644 WCNSS_qcom_wlan_nv.bin -t "$subpkgdir/$_fwdir"/wlan/prima
|
||||
}
|
||||
|
||||
sha512sums="f1b3b1e62cd44b2df0f3c6ecfefdd27636346324c88f7912887937770db401648e1b5ec61c5b689fa1816f2edb18781109e2e7c9d60998958229db5740b50fcf firmware-lenovo-a6000-ea5312f4fbfec01883f2b2413f637691823820c2.tar.gz"
|
Loading…
Reference in a new issue