samsung-gt58lte: New device Samsung Galaxy Tab A LTE 8.0 (2015) (MR 2218)

This commit is contained in:
Siddharth Manthan 2021-06-03 21:03:45 +05:30 committed by Bart Ribbers
parent ac7a1d92ce
commit 0d0ce2f3ef
No known key found for this signature in database
GPG key ID: 0BF4C1B5988C50D8
4 changed files with 141 additions and 0 deletions

View file

@ -0,0 +1,63 @@
# Reference: <https://postmarketos.org/devicepkg>
pkgname=device-samsung-gt58lte
pkgdesc="Samsung Galaxy Tab A 8.0 2015 (SM-T355Y)"
pkgver=1
pkgrel=0
url="https://postmarketos.org"
license="MIT"
arch="aarch64"
options="!check !archcheck"
depends="postmarketos-base mkbootimg soc-qcom-msm8916"
makedepends="devicepkg-dev dtbtool"
source="deviceinfo rootston.ini"
subpackages="
$pkgname-kernel-mainline:kernel_mainline
$pkgname-kernel-mainline-modem:kernel_mainline_modem
$pkgname-nonfree-firmware:nonfree_firmware
$pkgname-nonfree-firmware-modem:nonfree_firmware_modem
$pkgname-phosh
"
build() {
devicepkg_build $startdir $pkgname
}
package() {
devicepkg_package $startdir $pkgname
}
kernel_mainline() {
pkgdesc="Close to mainline kernel (no modem, audio routed directly)"
depends="linux-postmarketos-qcom-msm8916"
devicepkg_subpackage_kernel $startdir $pkgname $subpkgname
}
kernel_mainline_modem() {
pkgdesc="Close to mainline kernel (non-free modem, audio routed through ADSP)"
depends="linux-postmarketos-qcom-msm8916 soc-qcom-msm8916-modem"
devicepkg_subpackage_kernel $startdir $pkgname $subpkgname
}
nonfree_firmware() {
pkgdesc="GPU/WiFi/BT/Video(/Modem) firmware"
depends="linux-firmware-qcom firmware-samsung-gt58lte-venus firmware-samsung-gt58lte-wcnss"
mkdir "$subpkgdir"
}
nonfree_firmware_modem() {
pkgdesc="Modem firmware"
depends="firmware-samsung-gt58lte-modem"
install_if="$pkgname-nonfree-firmware $pkgname-kernel-mainline-modem"
mkdir "$subpkgdir"
}
phosh() {
install_if="$pkgname postmarketos-ui-phosh"
install -Dm644 "$srcdir"/rootston.ini \
"$subpkgdir"/etc/phosh/rootston.ini
}
sha512sums="
5ae8a75de908de406d4c35d1f844714636ae8aa8da29c124371540a0fae6f67da3ba670dd87ab115d84895577eb75783365f19b3fada1de69ae898d1869043be deviceinfo
3017f500a9cc6d424efd2d1498709e9319cefd6c87eaeaa4b6db6862c0df9f327ebb18b09b73c2a173aaaecc95cf465d978e08f9eaebd4f300317c433b575606 rootston.ini
"

View file

@ -0,0 +1,36 @@
# Reference: <https://postmarketos.org/deviceinfo>
# Please use double quotes only. You can source this file in shell scripts.
deviceinfo_format_version="0"
deviceinfo_name="Samsung Galaxy Tab A 8.0 2015 (SM-T355Y)"
deviceinfo_manufacturer="Samsung"
deviceinfo_codename="samsung-gt58lte"
deviceinfo_year="2015"
deviceinfo_dtb_mainline="qcom/msm8916-samsung-gt58"
deviceinfo_dtb_mainline_modem="qcom/msm8916-samsung-gt58lte-modem"
deviceinfo_append_dtb="true"
deviceinfo_modules_initfs="panel-samsung-s6d7aa0-lsl080al03 msm zinitix"
deviceinfo_arch="aarch64"
# Device related
deviceinfo_gpu_accelerated="true"
deviceinfo_chassis="tablet"
deviceinfo_keyboard="false"
deviceinfo_external_storage="true"
deviceinfo_screen_width="768"
deviceinfo_screen_height="1024"
deviceinfo_getty="ttyMSM0;115200"
# Bootloader related
deviceinfo_flash_method="fastboot"
deviceinfo_kernel_cmdline="earlycon console=ttyMSM0,115200 PMOS_NO_OUTPUT_REDIRECT"
deviceinfo_generate_bootimg="true"
deviceinfo_bootimg_mtk_mkimage="false"
deviceinfo_bootimg_dtb_second="false"
deviceinfo_flash_offset_base="0x80000000"
deviceinfo_flash_offset_kernel="0x00080000"
deviceinfo_flash_offset_ramdisk="0x02000000"
deviceinfo_flash_offset_second="0x00f00000"
deviceinfo_flash_offset_tags="0x01e00000"
deviceinfo_flash_pagesize="2048"
deviceinfo_flash_sparse=true

View file

@ -0,0 +1,5 @@
[cursor:seat0]
map-to-output:DSI-1
[output:DSI-1]
scale = 1

View file

@ -0,0 +1,37 @@
pkgname=firmware-samsung-gt58lte
pkgver=1
pkgrel=0
pkgdesc="Firmware for Samsung Galaxy Tab A 8.0 2015 (SM-T355Y)"
url="http://hello-world-321.github.io/pmos-firmware/"
subpackages="$pkgname-modem $pkgname-venus $pkgname-wcnss"
arch="aarch64"
license="proprietary"
options="!check !strip !archcheck"
source="http://hello-world-321.github.io/pmos-firmware/SM-T355Y.tar.xz"
_fwdir="/lib/firmware/postmarketos"
package() {
# parent package is empty
mkdir -p "$pkgdir"
}
modem() {
pkgdesc="Samsung Galaxy Tab A 8.0 2015 (SM-T355Y) modem firmware"
install -Dm644 "$srcdir"/mba.mbn -t "$subpkgdir/$_fwdir"
install -Dm644 "$srcdir"/modem.* -t "$subpkgdir/$_fwdir"
}
venus() {
pkgdesc="Samsung Galaxy Tab A 8.0 2015 (SM-T355Y) video firmware"
install -Dm644 "$srcdir"/venus.* -t "$subpkgdir/$_fwdir"/qcom/venus-1.8
}
wcnss() {
pkgdesc="Samsung Galaxy Tab A 8.0 2015 (SM-T355Y) WiFi/BT firmware"
cd "$srcdir"
install -Dm644 wcnss.* -t "$subpkgdir/$_fwdir"
install -Dm644 WCNSS_* -t "$subpkgdir/$_fwdir"/wlan/prima
}
sha512sums="c826317e7aec6fc713e91aa398399818b699b8059b52fec0931f1af4952282331977ba677e90f531ca031be7272542f0cb181b1a1e7243da694f8caaecea66f8 SM-T355Y.tar.xz"