From 6973a44d381ddbe291f4996e23197b3394822201 Mon Sep 17 00:00:00 2001 From: tim Date: Thu, 8 Jul 2021 10:34:44 -0500 Subject: [PATCH] device-pine64-rock64: new device (MR 2328) --- device/testing/device-pine64-rock64/APKBUILD | 30 +++++++++++++++++++ .../testing/device-pine64-rock64/deviceinfo | 24 +++++++++++++++ .../device-pine64-rock64/extlinux.conf | 9 ++++++ 3 files changed, 63 insertions(+) create mode 100644 device/testing/device-pine64-rock64/APKBUILD create mode 100644 device/testing/device-pine64-rock64/deviceinfo create mode 100644 device/testing/device-pine64-rock64/extlinux.conf diff --git a/device/testing/device-pine64-rock64/APKBUILD b/device/testing/device-pine64-rock64/APKBUILD new file mode 100644 index 000000000..2748b767c --- /dev/null +++ b/device/testing/device-pine64-rock64/APKBUILD @@ -0,0 +1,30 @@ +# Reference: +# Maintainer: Timothy Valldeperas +pkgname=device-pine64-rock64 +pkgver=1 +pkgrel=0 +pkgdesc="PINE64 ROCK64" +url="https://postmarketos.org" +license="MIT" +arch="aarch64" +options="!check !archcheck" +depends="postmarketos-base linux-postmarketos-rockchip u-boot-rock64 mesa-dri-gallium" +makedepends="devicepkg-dev" +source="deviceinfo + extlinux.conf + " + +build() { + devicepkg_build $startdir $pkgname +} + +package() { + devicepkg_package $startdir $pkgname + install -D -m644 "$srcdir"/extlinux.conf \ + "$pkgdir"/boot/extlinux/extlinux.conf +} + +sha512sums=" +ff1e00dbc17d854ff2f8fbd977f11589d4e0d73d205e94b320d5af48eaec8b8a4be20d1a904a91010cfbb78bf47f9765d2138a0cafdd204d78b636f5ff439494 deviceinfo +0e0f4f44da43f4a64a3e15ec8c796f0d9d71b8ce51b94c7b3b3e850d6c23fc751aa3d22fe8297ee3ceceba9f040fd58e83f67b72f7548e6a49841939fd900d70 extlinux.conf +" diff --git a/device/testing/device-pine64-rock64/deviceinfo b/device/testing/device-pine64-rock64/deviceinfo new file mode 100644 index 000000000..eca229e88 --- /dev/null +++ b/device/testing/device-pine64-rock64/deviceinfo @@ -0,0 +1,24 @@ +# Reference: +# Please use double quotes only. You can source this file in shell scripts. + +deviceinfo_format_version="0" +deviceinfo_name="PINE64 Rock64" +deviceinfo_manufacturer="PINE64" +deviceinfo_codename="pine64-rock64" +deviceinfo_year="2017" +deviceinfo_dtb="" +deviceinfo_modules_initfs="" +deviceinfo_arch="aarch64" + +# Device related +deviceinfo_gpu_accelerated="true" +deviceinfo_chassis="embedded" +deviceinfo_keyboard="true" +deviceinfo_external_storage="true" +deviceinfo_screen_width="1920" +deviceinfo_screen_height="1080" + +# Bootloader related +deviceinfo_flash_method="none" +deviceinfo_sd_embed_firmware="u-boot/pine64-rock64/u-boot-rockchip.bin:32" +deviceinfo_boot_part_start="32768" diff --git a/device/testing/device-pine64-rock64/extlinux.conf b/device/testing/device-pine64-rock64/extlinux.conf new file mode 100644 index 000000000..e3f5b708a --- /dev/null +++ b/device/testing/device-pine64-rock64/extlinux.conf @@ -0,0 +1,9 @@ +timeout 10 +default POSTMARKETOS +menu title boot prev kernel + +label POSTMARKETOS + kernel /vmlinuz-postmarketos-rockchip + fdt /dtbs-postmarketos-rockchip/rockchip/rk3328-rock64.dtb + initrd /initramfs-postmarketos-rockchip + append console=tty0 console=ttyS0,1500000n8 panic=10 coherent_pool=1M video=HDMI-A-1:1920x1080@60 video=eDP-1:1920x1080@60 loglevel=5 PMOS_NO_OUTPUT_REDIRECT