device-nvidia-tegra-armv7: introduce common armv7 Tegra device package (MR 4606)

This device port uses U-Boot as a basic bootloader. Users should install
U-Boot and reinstall pmOS to the U-Boot version of port (this one).
Thus an upgrade from old installations that depend on old vendor bootloader
is not implemented.

Instruction how to install U-Boot can be found on dedicated page of
pmOS wiki.

Signed-off-by: Svyatoslav Ryhel <clamor95@gmail.com>
This commit is contained in:
Svyatoslav Ryhel 2023-09-10 19:29:49 +03:00 committed by Pablo Correa Gómez
parent 87f372cb1f
commit 58664e65f0
No known key found for this signature in database
GPG key ID: 7A342565FF635F79
3 changed files with 102 additions and 0 deletions

View file

@ -0,0 +1,51 @@
# Reference: <https://postmarketos.org/devicepkg>
# Maintainer: Svyatoslav Ryhel <clamor95@gmail.com>
# Co-Maintainer: David Heidelberg <david@ixit.cz>
# Co-Maintainer: Maxim Schwalm <maxim.schwalm@gmail.com>
# Co-Maintainer: Raffaele Tranquillini <raffaele.tranquillini@gmail.com>
pkgname=device-nvidia-tegra-armv7
pkgdesc="NVIDIA Tegra ARMv7"
pkgver=1
pkgrel=0
url="https://postmarketos.org"
license="MIT"
arch="armv7"
options="!check !archcheck"
depends="
alsa-ucm-conf
libvdpau-tegra
linux-postmarketos-grate
postmarketos-base
"
makedepends="devicepkg-dev"
source="deviceinfo modules-initfs"
subpackages="
$pkgname-nonfree-firmware:nonfree_firmware
$pkgname-x11
"
build() {
devicepkg_build $startdir $pkgname
}
package() {
devicepkg_package $startdir $pkgname
}
nonfree_firmware() {
pkgdesc="Firmware files for Tegra devices supported by GRATE project"
depends="firmware-nvidia-tegra-armv7"
mkdir "$subpkgdir"
}
x11() {
install_if="$pkgname=$pkgver-r$pkgrel xorg-server"
depends="xf86-video-opentegra"
mkdir "$subpkgdir"
}
sha512sums="
c10ccac99172735315dff76f098a37d7f96d505480c3afd0e4299a9dd131eefdcddade60c6bb0db9c2519e5d860ff9e389733a6e648b19c2198c26c3377d011e deviceinfo
8ea2030fb0c1ae181778b86dc36ed71a904dd51e1fb08114c2a124a693fc7b464cfbb14efa8422db716fb9a647afa367df094abcc14f1ccc51af8b9063de8847 modules-initfs
"

View file

@ -0,0 +1,23 @@
# Reference: <https://postmarketos.org/deviceinfo>
# Please use double quotes only. You can source this file in shell
# scripts.
deviceinfo_format_version="0"
deviceinfo_name="NVIDIA Tegra ARMv7"
deviceinfo_manufacturer="NVIDIA"
deviceinfo_codename="nvidia-tegra-armv7"
deviceinfo_year="2011"
deviceinfo_dtb="nvidia/*"
deviceinfo_arch="armv7"
# Device related
# Tablet should fit most of devices
deviceinfo_chassis="tablet"
deviceinfo_external_storage="true"
# Bootloader related
deviceinfo_flash_method="fastboot-bootpart"
deviceinfo_flash_fastboot_partition_kernel="system"
deviceinfo_flash_fastboot_partition_system="userdata"
deviceinfo_generate_extlinux_config="true"
deviceinfo_kernel_cmdline="console=ttyS0,115200n8 rw gpt"

View file

@ -0,0 +1,28 @@
acer-a500-battery
acer-ec-a500
asus-dockram
asus-ec
asus-ec-battery
asus-ec-charger
asus-ec-kbc
asus-ec-keys
atkbd
atmel-mxt-ts
bq27xxx-battery
bq27xxx-battery-i2c
chagall-battery
elants-i2c
hid-generic
i2c-hid-of
i2c-hotplug-gpio
lvds-codec
panel-lvds
panel-renesas-r61307
panel-renesas-r69328
panel-simple
rmi_core
rmi_i2c
smb347-charger
ssd2825
surface-rt-ec
tc358768