samsung-j3ltetw: new device (MR 3029)

This commit is contained in:
Raymond Hackley 2022-03-04 01:09:34 +09:00 committed by Luca Weiss
parent 56183bcae3
commit ca34c8f202
No known key found for this signature in database
GPG key ID: 72D843B89D4DD756
3 changed files with 103 additions and 0 deletions

View file

@ -0,0 +1,38 @@
# Reference: <https://postmarketos.org/devicepkg>
pkgname=device-samsung-j3ltetw
pkgdesc="Samsung Galaxy J3 (2016)"
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
soc-qcom-msm8916-rproc
"
makedepends="devicepkg-dev"
source="deviceinfo"
subpackages="$pkgname-nonfree-firmware:nonfree_firmware"
_pmb_select="soc-qcom-msm8916-rproc"
build() {
devicepkg_build $startdir $pkgname
}
package() {
devicepkg_package $startdir $pkgname
}
nonfree_firmware() {
pkgdesc="GPU/WiFi/BT/Video(/Modem) firmware"
depends="firmware-qcom-adreno-a300 msm-firmware-loader firmware-samsung-j3ltetw-wcnss-nv"
mkdir "$subpkgdir"
}
sha512sums="
43366bdbbb8ce1437c3f204c384c68f197f4f67e125e005e313301ec13455c40955674fbd6731cc5a060de8bf319c7d5c3cc03a0dc6a3935c55f59d99ff5eab4 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 J3 2016"
deviceinfo_manufacturer="Samsung"
deviceinfo_codename="samsung-j3ltetw"
deviceinfo_year="2016"
deviceinfo_dtb="qcom/msm8916-samsung-j3ltetw"
deviceinfo_append_dtb="true"
deviceinfo_modules_initfs="panel-simple msm"
deviceinfo_arch="aarch64"
# Device related
deviceinfo_gpu_accelerated="true"
deviceinfo_chassis="handset"
deviceinfo_keyboard="false"
deviceinfo_external_storage="true"
deviceinfo_screen_width="720"
deviceinfo_screen_height="1280"
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_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,32 @@
pkgname=firmware-samsung-j3ltetw
pkgver=1
pkgrel=0
_name="Samsung Galaxy J3 (2016)"
pkgdesc="Firmware for $_name"
url="https://postmarketos.org"
subpackages="$pkgname-wcnss-nv:wcnss_nv"
arch="aarch64"
license="proprietary"
options="!check !strip !archcheck !tracedeps pmb:cross-native"
source="$pkgname-WCNSS_qcom_wlan_nv.bin.base64::https://pastebin.com/raw/fRk3jmJE"
_fwdir="/lib/firmware/postmarketos"
unpack() {
default_unpack
base64 -d $pkgname-WCNSS_qcom_wlan_nv.bin.base64 > WCNSS_qcom_wlan_nv.bin
}
package() {
# parent package is empty
mkdir -p "$pkgdir"
}
wcnss_nv() {
pkgdesc="$_name WiFi/BT firmware configuration"
install -Dm644 "$srcdir"/WCNSS_qcom_wlan_nv.bin -t "$subpkgdir/$_fwdir"/wlan/prima
}
sha512sums="
5ef881795fbcd5defc0c3a040638a2d3dc1a4cc850b19f49744ea67dfd2b6bf5000cfc1987840d9a646767cfc4276cd229681c06d60ca00aeb193c2c519e7419 firmware-samsung-j3ltetw-WCNSS_qcom_wlan_nv.bin.base64
"