From 6b7c6a73d43744d18e669045f20abd7fde67ab85 Mon Sep 17 00:00:00 2001 From: Stefan Hansson Date: Tue, 10 Oct 2023 12:42:42 +0200 Subject: [PATCH] librecomputer-solitude: new device (MR 4467) Tested on the V0.2 variant of the hardware which comes with some U-Boot build preinstalled. I don't know if this will be the case for the final version that will be shipped to customers, but the announecment would imply so given that it says the device "incorporates a advanced [sic] BIOS compatible with UEFI". [ci:skip-build]: already built successfully in CI --- .../device-librecomputer-solitude/APKBUILD | 40 +++++++++++++++++++ .../device-librecomputer-solitude/deviceinfo | 22 ++++++++++ .../modules-initfs | 3 ++ 3 files changed, 65 insertions(+) create mode 100644 device/testing/device-librecomputer-solitude/APKBUILD create mode 100644 device/testing/device-librecomputer-solitude/deviceinfo create mode 100644 device/testing/device-librecomputer-solitude/modules-initfs diff --git a/device/testing/device-librecomputer-solitude/APKBUILD b/device/testing/device-librecomputer-solitude/APKBUILD new file mode 100644 index 000000000..57d656cec --- /dev/null +++ b/device/testing/device-librecomputer-solitude/APKBUILD @@ -0,0 +1,40 @@ +# Reference: +# Maintainer: Newbyte +pkgname=device-librecomputer-solitude +pkgdesc="Libre Computer AML-S905D3-CC" +pkgver=0.1 +pkgrel=0 +url="https://postmarketos.org" +license="MIT" +arch="aarch64" +options="!check !archcheck" +depends=" + linux-postmarketos-amlogic + postmarketos-base + soc-amlogic-s905 +" +makedepends="devicepkg-dev" +source=" + deviceinfo + modules-initfs + " +subpackages="$pkgname-nonfree-firmware:nonfree_firmware" + +build() { + devicepkg_build $startdir $pkgname +} + +package() { + devicepkg_package $startdir $pkgname +} + +nonfree_firmware() { + pkgdesc="vdec firmware" + depends="linux-firmware-meson" + mkdir "$subpkgdir" +} + +sha512sums=" +8349aa8a457c8effe4606e6e5030f910319436b3a99b024bb73c10c1de8a453348fd3b1859082850132348e30f9f33001d102b85ded2ea7afc23cea0e983d9a5 deviceinfo +52948c2884a6f6384e12b7a598f70878526d0d3293c214425170145231144ec7de805c038641741a4a5d75b50e554f6a3fa3769784a674217ed032f9b6a233c8 modules-initfs +" diff --git a/device/testing/device-librecomputer-solitude/deviceinfo b/device/testing/device-librecomputer-solitude/deviceinfo new file mode 100644 index 000000000..5dde111f7 --- /dev/null +++ b/device/testing/device-librecomputer-solitude/deviceinfo @@ -0,0 +1,22 @@ +# Reference: +# Please use double quotes only. You can source this file in shell +# scripts. + +deviceinfo_format_version="0" +deviceinfo_name="Libre Computer AML-S905D3-CC" +deviceinfo_manufacturer="Libre Computer" +deviceinfo_codename="librecomputer-solitude" +deviceinfo_year="2023" +deviceinfo_dtb="amlogic/meson-sm1-s905d3-libretech-cc" +deviceinfo_arch="aarch64" + +# Device related +deviceinfo_chassis="embedded" +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="console=null" diff --git a/device/testing/device-librecomputer-solitude/modules-initfs b/device/testing/device-librecomputer-solitude/modules-initfs new file mode 100644 index 000000000..da28a74ff --- /dev/null +++ b/device/testing/device-librecomputer-solitude/modules-initfs @@ -0,0 +1,3 @@ +meson_drm +meson_dw_hdmi +display_connector