pine64-pinetab2: new device (MR 4208)

PineTab 2 is a successor to the original PineTab from PINE64 released
in mid-2023.

The tablet came with DanctNIX's fork of Arch Linux ARM, comes with
K Desktop Environment as the UI and available with 64GB eMMC/4GB RAM
or 128GB eMMC/8GB RAM.
This commit is contained in:
Danct12 2023-06-29 08:59:15 +00:00 committed by f_
parent 8721705c4b
commit c0ad00a6ae
5 changed files with 8458 additions and 1 deletions

View file

@ -0,0 +1,45 @@
# Reference: <https://postmarketos.org/devicepkg>
# Maintainer: Danct12 <danct12@disroot.org>
pkgname=device-pine64-pinetab2
pkgdesc="Pine64 PineTab 2"
pkgver=1
pkgrel=0
url="https://postmarketos.org"
license="MIT"
arch="aarch64"
options="!check !archcheck"
depends="
mesa-egl
postmarketos-base
"
makedepends="devicepkg-dev"
_pmb_recommends="firmware-bestechnic-bes2600"
subpackages="
$pkgname-kernel-v0:kernel_v0
$pkgname-kernel-v2:kernel_v2
"
source="deviceinfo"
build() {
devicepkg_build $startdir $pkgname
}
package() {
devicepkg_package $startdir $pkgname
}
kernel_v0() {
pkgdesc="Kernel for PineTab 2 Dev Units"
depends="linux-pine64-pinetab2"
devicepkg_subpackage_kernel $startdir $pkgname $subpkgname
}
kernel_v2() {
pkgdesc="Kernel for PineTab 2 Early Adopter"
depends="linux-pine64-pinetab2"
devicepkg_subpackage_kernel $startdir $pkgname $subpkgname
}
sha512sums="
80ba9d116dfaf3cdc0c3baf6048974160150d3b59d6fcd5188801edb938ca8caa7e0d1581f2fe9340bb0b23635432405fad0ecdd45e94cd82c32adb5eeb8e804 deviceinfo
"

View file

@ -0,0 +1,23 @@
# Reference: <https://postmarketos.org/deviceinfo>
# Please use double quotes only. You can source this file in shell
# scripts.
deviceinfo_format_version="0"
deviceinfo_name="PINE64 PineTab 2"
deviceinfo_manufacturer="PINE64"
deviceinfo_codename="pine64-pinetab2"
deviceinfo_year="2023"
deviceinfo_dtb_v0="rockchip/rk3566-pinetab2-v0.1"
deviceinfo_dtb_v2="rockchip/rk3566-pinetab2-v2.0"
deviceinfo_arch="aarch64"
# Device related
deviceinfo_chassis="tablet"
deviceinfo_keyboard="false"
deviceinfo_external_storage="true"
deviceinfo_gpu_accelerated="true"
# Bootloader related
deviceinfo_flash_method="none"
deviceinfo_generate_extlinux_config="true"
deviceinfo_kernel_cmdline="earlycon=uart8250,mmio32,0xfe660000 PMOS_NO_OUTPUT_REDIRECT PMOS_FORCE_PARTITION_RESIZE"

View file

@ -15,7 +15,7 @@ package() {
mv firmware/bes2600 "$pkgdir"/lib/firmware/postmarketos mv firmware/bes2600 "$pkgdir"/lib/firmware/postmarketos
# This is not needed for initializing WLAN # This is not needed for initializing WLAN
rm "$pkgdir"/lib/firmware/bes2600/bes2600_factory.txt rm "$pkgdir"/lib/firmware/postmarketos/bes2600/bes2600_factory.txt
} }
sha512sums=" sha512sums="
1ba0c4473348711b201d3f78cf2a1d6b6ec88de48cd90e3c6137a1565a46e25925b9330dbaf40add3b47d485c388755262b60b275d97cd078118017df36155fa bes2600-firmware-7a305de61771a84f1264866b204cf172df6d9195.tar.gz 1ba0c4473348711b201d3f78cf2a1d6b6ec88de48cd90e3c6137a1565a46e25925b9330dbaf40add3b47d485c388755262b60b275d97cd078118017df36155fa bes2600-firmware-7a305de61771a84f1264866b204cf172df6d9195.tar.gz

View file

@ -0,0 +1,69 @@
# Reference: <https://postmarketos.org/vendorkernel>
# Kernel config based on: arch/arm64/configs/pinetab2_defconfig
# Maintainer: Danct12 <danct12@disroot.org>
pkgname=linux-pine64-pinetab2
pkgver=6.9.3
pkgrel=0
pkgdesc="Pine64 PineTab 2 mainline"
arch="aarch64"
_carch="arm64"
_flavor="pine64-pinetab2"
url="https://kernel.org"
license="GPL-2.0-only"
options="!strip !check !tracedeps
pmb:cross-native"
depends="kmod"
makedepends="
bash
bison
findutils
flex
linux-headers
postmarketos-installkernel
openssl-dev
perl
xz
zstd
"
# Source
_tags="v6.9.3-danctnix1"
_config="config-$_flavor.$arch"
source="
$pkgname-$_tags.tar.gz::https://github.com/dreemurrs-embedded/linux-pinetab2/archive/$_tags.tar.gz
$_config
"
builddir="$srcdir/linux-pinetab2-${_tags:1}"
_outdir="out"
prepare() {
default_prepare
cp "$srcdir/config-$_flavor.$CARCH" .config
}
build() {
unset LDFLAGS
make ARCH="$_carch" CC="${CC:-gcc}" \
KBUILD_BUILD_VERSION="$((pkgrel + 1 ))-$_flavor"
}
package() {
install -Dm644 "$builddir/arch/$_carch/boot/Image" \
"$pkgdir/boot/vmlinuz"
make modules_install dtbs_install \
ARCH="$_carch" \
INSTALL_PATH="$pkgdir"/boot/ \
INSTALL_MOD_PATH="$pkgdir" \
INSTALL_MOD_STRIP=1 \
INSTALL_DTBS_PATH="$pkgdir"/boot/dtbs
rm -f "$pkgdir"/lib/modules/*/build "$pkgdir"/lib/modules/*/source
install -D "$builddir"/include/config/kernel.release \
"$pkgdir"/usr/share/kernel/$_flavor/kernel.release
}
sha512sums="
53ee3f616430029afe1c3b044821b71829d266a24e71798fc2999e566d661f39856e7c3fd4eba6b48179e041732e5ec59a6d26fc414f63f7d6d9730a6799d36e linux-pine64-pinetab2-v6.9.3-danctnix1.tar.gz
b4070f16912ecce2d5f559aac2e9102ab1f430401bf9230e3844ef4e5f3f516b99a555ea07b1a2bf6d3a432aa51c7daccc6ba6776696f52a205fadadf410aa5f config-pine64-pinetab2.aarch64
"

File diff suppressed because it is too large Load diff