vernee-k506: new device (MR 1439)

This commit is contained in:
Dahrkael 2020-07-22 21:53:29 +02:00 committed by Bart Ribbers
parent 8a3f6a5a46
commit 33ab18c54b
No known key found for this signature in database
GPG key ID: 699D16185DAFAE61
6 changed files with 8445 additions and 0 deletions

View file

@ -0,0 +1,23 @@
# Reference: <https://postmarketos.org/devicepkg>
pkgname=device-vernee-k506
pkgdesc="Vernee Thor"
pkgver=0.1
pkgrel=0
url="https://postmarketos.org"
license="MIT"
arch="aarch64"
options="!check !archcheck"
depends="postmarketos-base linux-vernee-k506 mkbootimg mesa-dri-gallium"
makedepends="devicepkg-dev"
source="deviceinfo initfs-hook.sh"
build() {
devicepkg_build $startdir $pkgname
}
package() {
devicepkg_package $startdir $pkgname
}
sha512sums="d690398cea697cf28d7974c9d5f9a20f2851375c0c2f6ea8a27c66c3f593b46e58463dd4f9ff79f97eca7edbd0913ade1ff53bb15b28ad51af030e613749eb58 deviceinfo
50d6784e6af1dce2e6ba18993f5c50ba88fc8a6521bfe15667dd5beddb4c948f59bb800e18b977fb86c93c37105010ce6c20f88405e73a03449ee3226aa14466 initfs-hook.sh"

View 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="Vernee Thor"
deviceinfo_manufacturer="Vernee"
deviceinfo_codename="vernee-k506"
deviceinfo_year="2016"
deviceinfo_dtb=""
deviceinfo_modules_initfs=""
deviceinfo_arch="aarch64"
# Device related
deviceinfo_chassis="handset"
deviceinfo_keyboard="false"
deviceinfo_external_storage="true"
deviceinfo_screen_width="720"
deviceinfo_screen_height="1280"
# Bootloader relate
deviceinfo_flash_method="fastboot"
deviceinfo_kernel_cmdline="bootopt=64S3,32N2,64N2"
deviceinfo_generate_bootimg="true"
deviceinfo_bootimg_qcdt="false"
deviceinfo_bootimg_dtb_second="false"
deviceinfo_flash_offset_base="0x40078000"
deviceinfo_flash_offset_kernel="0x00008000"
deviceinfo_flash_offset_ramdisk="0x03f88000"
deviceinfo_flash_offset_second="0x00f00000"
deviceinfo_flash_offset_tags="0x0df88000"
deviceinfo_flash_pagesize="2048"

View file

@ -0,0 +1,7 @@
#!/bin/sh
# set framebuffer virtual size and panning
echo 736,2560 > /sys/class/graphics/fb0/virtual_size
echo 0,1280 > /sys/class/graphics/fb0/pan
echo 162 > /sys/class/leds/lcd-backlight/brightness

View file

@ -0,0 +1,52 @@
# Reference: <https://postmarketos.org/vendorkernel>
# Kernel config based on: arch/arm64/configs/k06td_a_defconfig
pkgname=linux-vernee-k506
pkgver=3.18.99
pkgrel=0
pkgdesc="Vernee Thor kernel fork"
arch="aarch64"
_carch="arm64"
_flavor="vernee-k506"
url="https://kernel.org"
license="GPL-2.0-only"
options="!strip !check !tracedeps pmb:cross-native"
makedepends="bash bc bison devicepkg-dev flex openssl-dev perl python3 gcc6"
# Compiler: GCC 6 (doesn't boot when compiled with newer versions)
if [ "${CC:0:5}" != "gcc6-" ]; then
CC="gcc6-$CC"
HOSTCC="gcc6-gcc"
CROSS_COMPILE="gcc6-$CROSS_COMPILE"
fi
# Source
_repository="android_kernel_vernee_thor_k506"
_commit="6162531eeb91a5291c00eceff7cb707561143471"
_config="config-$_flavor.$arch"
source="
$pkgname-$_commit.tar.gz::https://github.com/MediatekAndroidDevelopers/$_repository/archive/$_commit.tar.gz
$_config
python3dct.patch
"
builddir="$srcdir/$_repository-$_commit"
_outdir="out"
prepare() {
default_prepare
. downstreamkernel_prepare
}
build() {
unset LDFLAGS
make O="$_outdir" ARCH="$_carch" CC="${CC:-gcc}" \
KBUILD_BUILD_VERSION="$((pkgrel + 1 ))-postmarketOS"
}
package() {
downstreamkernel_package "$builddir" "$pkgdir" "$_carch" "$_flavor" "$_outdir"
}
sha512sums="5d51b5ceb3968c37e0653f40dcbc334388f401a086d6232600a05c47ec40deb712fc23cbfca6a59e2e3e5a108c46429e4fe1550608f1fbd687f14c8d17376b6d linux-vernee-k506-6162531eeb91a5291c00eceff7cb707561143471.tar.gz
38df769d1752cd137bf2a5a41f627d52d5017e915edef5e0ba35b7f2b67b44310ca125ac104958fe9f2572d16de37d12aa5bc78beebc25cb7680f2a9c15a8dd5 config-vernee-k506.aarch64
a2990a27436d3ffe40f1fd1e388486727042cc5fa5be23b19dad623a18731c94c07ac4a89be1e59e6214593d2b03d38702b60a7475807e8cda0811c4e5d50a9b python3dct.patch"

File diff suppressed because it is too large Load diff

File diff suppressed because it is too large Load diff