google-smaug: new device (MR 4007)

[ci:skip-build]: Already built successfully in CI
This commit is contained in:
Jasper Korten 2023-08-09 11:42:05 +03:00 committed by Stefan Hansson
parent 61374468cd
commit 63c6f76327
No known key found for this signature in database
GPG key ID: 990600ED1DB95E02
4 changed files with 75 additions and 0 deletions

View file

@ -0,0 +1 @@
/lib/firmware/nvidia/tegra210/xusb.bin

View file

@ -0,0 +1,45 @@
# Reference: <https://postmarketos.org/devicepkg>
pkgname=device-google-smaug
pkgdesc="Google Pixel C"
pkgver=1
pkgrel=0
url="https://postmarketos.org"
license="MIT"
arch="aarch64"
options="!check !archcheck"
depends="
depthcharge-tools
linux-google-smaug
postmarketos-base
postmarketos-update-depthcharge-kernel
"
subpackages="$pkgname-nonfree-firmware:nonfree_firmware"
makedepends="devicepkg-dev"
source="
30-xusb-firmware.files
deviceinfo
modules-initfs
"
build() {
devicepkg_build $startdir $pkgname
}
package() {
devicepkg_package $startdir $pkgname
}
nonfree_firmware() {
pkgdesc="WiFi/BT, USB and GPU firmware"
depends="linux-firmware-brcm linux-firmware-nvidia firmware-google-smaug"
# Firmware needed to boot from USB
install -Dm644 "$srcdir"/30-xusb-firmware.files \
"$subpkgdir"/usr/share/mkinitfs/files/30-xusb-firmware.files
}
sha512sums="
80d1ff3ae3045cb071d0eb7ac53cebccfe363a9584ef806e7b79309231c58d00f89612423440526a08b14fc80e96162b8f429f453f662d4c438c787fa45ef122 30-xusb-firmware.files
fa68067a6a7c6713856b7ddf44543fb08a0abdc1ff00bbcc69e41ba1604374b93a1d47176c8426c581468e07f67dfeea453c86adbcf99e2eb8090381853aaff3 deviceinfo
d883fa37ea89379aec31e518714adbef76d0c260929deb05c131c5df4c532344f3358a82cc39e81d06da821df81171709cd9dc20837795bee6834c34d4dfa47a modules-initfs
"

View file

@ -0,0 +1,27 @@
# 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 Pixel C"
deviceinfo_manufacturer="Google"
deviceinfo_codename="google-smaug"
deviceinfo_year="2015"
deviceinfo_dtb="nvidia/tegra210-smaug"
deviceinfo_arch="aarch64"
# Device related
deviceinfo_chassis="tablet"
deviceinfo_keyboard="false"
deviceinfo_external_storage="true"
deviceinfo_screen_width="2560"
deviceinfo_screen_height="1800"
# Bootloader related
deviceinfo_flash_method="fastboot"
deviceinfo_kernel_cmdline="console=null"
deviceinfo_cgpt_kpart="/boot/boot.img"
deviceinfo_cgpt_kpart_start="8192"
deviceinfo_cgpt_kpart_size="65536"
deviceinfo_depthcharge_board="smaug"
deviceinfo_generate_depthcharge_image="true"

View file

@ -0,0 +1,2 @@
panel-jdi-lpm102a188a
i2c-hid-of