google-asurada: new device (MR 4806)

This commit is contained in:
Anton Bambura 2024-01-10 20:24:24 +02:00
parent 124fc54823
commit c79b58d23c
No known key found for this signature in database
GPG key ID: 1441EAFE8D7F4C2D
3 changed files with 83 additions and 0 deletions

View file

@ -0,0 +1,41 @@
# Reference: <https://postmarketos.org/devicepkg>
# Maintainer: Jenneron <jenneron@protonmail.com>
pkgname=device-google-asurada
pkgdesc="Google Asurada Chromebooks"
pkgver=1
pkgrel=0
url="https://postmarketos.org"
license="MIT"
arch="aarch64"
options="!check !archcheck"
depends="
alsa-ucm-conf
depthcharge-tools
linux-postmarketos-mediatek-mt81xx
postmarketos-base
postmarketos-cros-common
postmarketos-update-depthcharge-kernel
soc-mediatek-mt8183
"
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="WiFi/BT firmware"
depends="linux-firmware-mediatek linux-firmware-rtw88"
mkdir "$subpkgdir"
}
sha512sums="
437463ff6a5ac6be8b07693aa8c4eb09aa1fb8f17a8764e53e573c25ce3384e0897038ec4131d3e11c374b08eaa7a004b75bef8e453ec8dcf2f27db3d1d0414c deviceinfo
d90b91bd2bb409941878ebadf8d28ef66406edb64cbcac99443c3e0c072801ba94ec9fa3b551f59b8a27a33c7a34f511604bd30328195fc261f927d87138801d modules-initfs
"

View file

@ -0,0 +1,34 @@
# Reference: <https://postmarketos.org/deviceinfo>
# Please use double quotes only. You can source this file in shell
# scripts.
deviceinfo_format_version="0"
deviceinfo_name="Google Asurada Chromebook"
deviceinfo_manufacturer="Google"
deviceinfo_codename="google-asurada"
deviceinfo_year="2021"
deviceinfo_dtb="mediatek/mt8192-asurada*"
deviceinfo_arch="aarch64"
# Device related
deviceinfo_chassis="laptop"
deviceinfo_keyboard="true"
deviceinfo_external_storage="true"
deviceinfo_gpu_accelerated="true"
# Bootloader related
deviceinfo_kernel_cmdline="console=null"
deviceinfo_flash_method="none"
deviceinfo_cgpt_kpart="/boot/vmlinuz.kpart"
deviceinfo_cgpt_kpart_start="8192"
# 128M kernel partition
deviceinfo_cgpt_kpart_size="262144"
# We are supposed to use "asurada" board here, but asurada dts does
# not include asurada compatible which results in loading a wrong
# dtb. "mt8192" board may result in including dtbs that are for
# mt8192 but not related to Chrome OS devices which would increase
# image size. This doesn't happen for us because we provide only
# dtbs from deviceinfo_dtb variable and nothing more, so use "mt8192"
# board here.
deviceinfo_depthcharge_board="mt8192"
deviceinfo_generate_depthcharge_image="true"

View file

@ -0,0 +1,8 @@
anx7625
panel-edp
hid-generic
hid-multitouch
i2c-hid-of
elan-i2c
elants-i2c
cros-ec-keyb