samsung-j5nlte: new device (Samsung Galaxy J5 2015) (MR 1196)

This commit is contained in:
j.r 2020-04-24 17:47:56 +02:00 committed by Minecrell
parent 1b2b5a6b97
commit f094aaddb7
No known key found for this signature in database
GPG key ID: B77CE638A6C2E562
3 changed files with 100 additions and 0 deletions

View file

@ -0,0 +1,29 @@
# Reference: <https://postmarketos.org/devicepkg>
pkgname=device-samsung-j5nlte
pkgdesc="Samsung Galaxy J5 2015 (SM-J500FN)"
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-j5nlte-venus firmware-samsung-j5nlte-wcnss"
mkdir "$subpkgdir"
}
sha512sums="44eaf8e8fc7b542716f3b609d0e9f76d20e4c6da716296d360ad506ca609554dbc881315851acf38a771e27558dae9451a95d943c771a25d41808ee48a105697 deviceinfo"

View file

@ -0,0 +1,34 @@
# 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 J5 2015 (SM-J500FN)"
deviceinfo_manufacturer="Samsung"
deviceinfo_codename="samsung-j5nlte"
deviceinfo_year="2015"
deviceinfo_dtb="qcom/msm8916-samsung-j5nlte"
deviceinfo_append_dtb="true"
deviceinfo_modules_initfs=""
deviceinfo_arch="aarch64"
# Device related
deviceinfo_keyboard="false"
deviceinfo_external_storage="true"
deviceinfo_screen_width="720"
deviceinfo_screen_height="1280"
deviceinfo_getty="ttyMSM0;115200"
# 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 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,37 @@
pkgname=firmware-samsung-j5nlte
pkgver=1
pkgrel=0
pkgdesc="Firmware for Samsung Galaxy J5 2015 (SM-J500FN)"
url="https://pepethekingprawn.gitlab.io/firmware/"
subpackages="$pkgname-modem $pkgname-venus $pkgname-wcnss"
arch="aarch64"
license="proprietary"
options="!check !strip !archcheck"
source="https://pepethekingprawn.gitlab.io/firmware/SM-J500FN.tar.xz"
_fwdir="/lib/firmware/postmarketos"
package() {
# parent package is empty
mkdir -p "$pkgdir"
}
modem() {
pkgdesc="Samsung Galaxy J5 2015 (SM-J500FN) modem firmware"
install -Dm644 "$srcdir"/mba.mbn -t "$subpkgdir/$_fwdir"
install -Dm644 "$srcdir"/modem.* -t "$subpkgdir/$_fwdir"
}
venus() {
pkgdesc="Samsung Gelaxy J5 2015 (SM-J500FN) video firmware"
install -Dm644 "$srcdir"/venus.* -t "$subpkgdir/$_fwdir"/qcom/venus-1.8
}
wcnss() {
pkgdesc="Samsung Galaxy J5 2015 (SM-J500FN) WiFi/BT firmware"
cd "$srcdir"
install -Dm644 wcnss.* -t "$subpkgdir/$_fwdir"
install -Dm644 WCNSS_* -t "$subpkgdir/$_fwdir"/wlan/prima
}
sha512sums="9f332156ca2a72ebf2ffdc741f55dfa3788c51e356e6ad3cc524b2b337f51fa3b24cd0cbbe84118cb0df8916dedb6b0520ee3d2f103e1b8f97c5be1fb2c463a4 SM-J500FN.tar.xz"