Compare commits

...
Author SHA1 Message Date
Icenowy Zheng 40f8285f06 pine64-pinetab-v: new device
The kernel source supports Star64 SBC too, so the kernel package is
named as pine64-star64 now.

Signed-off-by: Icenowy Zheng <uwu@icenowy.me>
2024-08-22 01:02:43 +08:00
6 changed files with 8924 additions and 0 deletions

No files matched your search

@@ -0,0 +1,7 @@
Section "OutputClass"
Identifier "Starfive JH7110"
MatchDriver "starfive"
Driver "modesetting"
Option "AccelMethod" "none"
EndSection
@@ -0,0 +1,37 @@
# Reference: <https://postmarketos.org/devicepkg>
pkgname=device-pine64-pinetab-v
pkgdesc="Pine64 PineTab-v"
pkgver=1
pkgrel=1
url="https://postmarketos.org"
license="MIT"
arch="riscv64"
options="!check !archcheck"
depends="
linux-pine64-star64
postmarketos-base
"
makedepends="devicepkg-dev"
source="
deviceinfo
vf2_uEnv.txt
50-disable-glamor.conf
"
build() {
devicepkg_build $startdir $pkgname
}
package() {
devicepkg_package $startdir $pkgname
install -Dm644 "$srcdir"/vf2_uEnv.txt \
"$pkgdir"/boot/vf2_uEnv.txt
install -Dm644 "$srcdir"/50-disable-glamor.conf \
"$pkgdir"/usr/share/X11/xorg.conf.d/50-disable-glamor.conf
}
sha512sums="
8044fca83f2538b8da28506b9ade7dd7a3f09889e931d773688c19ee5e5585992dc2e8a456ca665c8bdd56b02c14069bc9f5d3a0f62dec7a7c3ac3252675bc61 deviceinfo
15b5f514435c223a5bff0c60ba5cbda9ce36df6ad9036753bb5503e357e067adda4f5b9252feb6b7ad1be7af44a3c1d511442c9ab4e69353f8c41d500c415c6e vf2_uEnv.txt
0c51c0f3a78dc55f99f14c5802a50498bc98eec3511671d3fde4d110cbc1ffac348d6daa3ef3dc25c11f20d357ed8a837574c04dd1018580e8306ad04f193c4c 50-disable-glamor.conf
"
@@ -0,0 +1,24 @@
# 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-V"
deviceinfo_manufacturer="Pine64"
deviceinfo_codename="pine64-pinetab-v"
deviceinfo_year="2023"
deviceinfo_arch="riscv64"
deviceinfo_dtb="starfive/jh7110-pinetab-v.dtb"
# Device related
deviceinfo_chassis="convertible"
deviceinfo_keyboard="true"
deviceinfo_external_storage="true"
deviceinfo_screen_width="800"
deviceinfo_screen_height="1280"
deviceinfo_getty="ttyS0;115200"
# Bootloader related
deviceinfo_flash_method="none"
deviceinfo_partition_type="gpt"
deviceinfo_boot_filesystem="fat32"
@@ -0,0 +1,2 @@
bootargs=init=/init.sh rw console=tty0 console=ttyS0,115200 loglevel=1 PMOS_FORCE_PARTITION_RESIZE
distro_bootcmd=load mmc ${bootpart} ${fdt_addr_r} dtbs/starfive/jh7110-pinetab-v.dtb; load mmc ${bootpart} ${kernel_addr_r} vmlinuz;load mmc ${bootpart} ${ramdisk_addr_r} initramfs; booti ${kernel_addr_r} ${ramdisk_addr_r}:${loadsize} ${fdt_addr_r}
@@ -0,0 +1,52 @@
pkgname=linux-pine64-star64
pkgver=6.6.20_git20240821
pkgrel=1
pkgdesc="Kernel for Pine64 JH7110 devices"
arch="riscv64"
_flavor="${pkgname#linux-}"
url="https://kernel.org"
license="GPL-2.0-only"
options="!strip !check !tracedeps
pmb:cross-native"
makedepends="bash bison findutils flex openssl-dev perl postmarketos-installkernel"
# Source
_commit="a9cffbf5372b2d46ca2f07cae79cb9a2202e0596"
_carch="riscv"
_config="config-$_flavor.$arch"
source="
$pkgname-$_commit.tar.gz::https://github.com/Icenowy/linux/archive/$_commit.tar.gz
$_config
"
builddir="$srcdir/linux-$_commit"
prepare() {
default_prepare
cp "$srcdir/$_config" .config
}
build() {
unset LDFLAGS
make ARCH="$_carch" CC="${CC:-gcc}" \
KBUILD_BUILD_VERSION="$((pkgrel + 1 ))"
}
package() {
mkdir -p "$pkgdir"/boot
make install modules_install dtbs_install \
ARCH="$_carch" \
INSTALL_MOD_PATH="$pkgdir" \
INSTALL_MOD_STRIP=1 \
INSTALL_PATH="$pkgdir"/boot \
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="
5c59475dfa85551a6216c5601e51c74133af5bb724ccccc4de1d8f6dc65234598c0b6523b368b864c7b16ff976ff7d81d9d0bcda68f3d81c07cfe3a68ebc5b18 linux-pine64-star64-a9cffbf5372b2d46ca2f07cae79cb9a2202e0596.tar.gz
21a1456300689a18ed518052f61c57f986127633bcdf0f525956f03b4a77576806e23db6aef7f046ccbe780b1d9af3f267d8692ef582fc1d26bae6f03e689a51 config-pine64-star64.riscv64
"
File diff suppressed because it is too large. Load diff