samsung-matissevewifi: new device (Samsing Galaxy Tab 4 10.1 WiFi (SM-T533)) (!1030)

Adds samsung-matissevewifi support using msm8916-mainline/linux kernel.

- Device can boot.
- USB network is working.
- Can connect to device using SSH.
This commit is contained in:
Gaëtan André 2020-03-06 08:18:01 +01:00 committed by Minecrell
parent b566e05cf9
commit af2dc4cb94
No known key found for this signature in database
GPG key ID: B77CE638A6C2E562
3 changed files with 101 additions and 0 deletions

View file

@ -0,0 +1,30 @@
# Reference: <https://postmarketos.org/devicepkg>
pkgname="device-samsung-matissevewifi"
pkgdesc="Samsung Galaxy Tab 4 10.1 WiFi (SM-T533)"
pkgver=1
pkgrel=0
url="https://postmarketos.org"
license="MIT"
arch="aarch64"
options="!check !archcheck"
depends="postmarketos-base mkbootimg linux-postmarketos-qcom-msm8916 soc-qcom-msm8916"
makedepends="devicepkg-dev"
source="deviceinfo"
subpackages="$pkgname-nonfree-firmware:nonfree_firmware"
build() {
devicepkg_build $startdir $pkgname
}
package() {
devicepkg_package $startdir $pkgname
}
nonfree_firmware() {
pkgdesc="GPU/WiFi/BT/Video firmware"
depends="linux-firmware-qcom firmware-samsung-matissevewifi-venus firmware-samsung-matissevewifi-wcnss"
mkdir "$subpkgdir"
}
sha512sums="e463a2334f78abfe4791ecabb539a267b23fb923f470db6cc5fb18bf7ee201ac9638460aff2b2b5cf6b000e953dd0971dd7108836adbb0e9336daf2d28598774 deviceinfo"

View file

@ -0,0 +1,33 @@
# 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 4 10.1 WiFi (SM-T533)"
deviceinfo_manufacturer="Samsung"
deviceinfo_codename="samsung-matissevewifi"
deviceinfo_year="2015"
deviceinfo_dtb="qcom/apq8016-samsung-matissevewifi"
deviceinfo_append_dtb="true"
deviceinfo_modules_initfs=""
deviceinfo_arch="aarch64"
# Device related
deviceinfo_keyboard="false"
deviceinfo_external_storage="true"
deviceinfo_screen_width="1280"
deviceinfo_screen_height="800"
# MSM DRM cannot take over the framebuffer from the bootloader at the moment
deviceinfo_no_framebuffer="true"
# Bootloader related
deviceinfo_flash_method="fastboot"
deviceinfo_kernel_cmdline="earlycon=msm_serial_dm,0x78b0000 console=ttyMSM0,115200,n8 PMOS_NO_OUTPUT_REDIRECT"
deviceinfo_generate_bootimg="true"
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,38 @@
pkgname=firmware-samsung-matissevewifi
pkgver=1
pkgrel=0
pkgdesc="Firmware for Samsung Galaxy Tab 4 10.1 WiFi (SM-T533)"
url="https://github.com/rvlander/glowing-journey"
subpackages="$pkgname-modem $pkgname-venus $pkgname-wcnss"
arch="aarch64"
license="proprietary"
options="!check !strip !archcheck"
source="https://github.com/rvlander/glowing-journey/files/4313897/stm533-blobs.tar.gz"
_fwdir="/lib/firmware/postmarketos"
package() {
# parent package is empty
mkdir -p "$pkgdir"
}
modem() {
pkgdesc="Samsung Galaxy Tab 4 10.1 (SM-T533) modem firmware"
install -Dm644 "$srcdir"/blobs/mba.mbn -t "$subpkgdir/$_fwdir"
install -Dm644 "$srcdir"/blobs/modem.* -t "$subpkgdir/$_fwdir"
}
venus() {
pkgdesc="Samsung Galaxy Tab 4 10.1 (SM-T533) video firmware"
install -Dm644 "$srcdir"/blobs/venus.* -t "$subpkgdir/$_fwdir"/qcom/venus-1.8
}
wcnss() {
pkgdesc="Samsung Galaxy Tab 4 10.1 WiFi (SM-T533) WiFi/BT firmware"
cd "$srcdir/blobs"
install -Dm644 wcnss.* -t "$subpkgdir/$_fwdir"
install -Dm644 WCNSS_* -t "$subpkgdir/$_fwdir"/wlan/prima
}
sha512sums="9ab5c22904adfad8032c4f9c3abefdfc34ccbd8f26d9fa1d69c57bf76dcb0c054eb82f110cbc5f4431e2fb1d002312cc6ec3a15991f526c13d0edc85dc598e14 stm533-blobs.tar.gz"