samsung-j53g: new device(Samsung Galaxy J5 2015 3G SM-J500H) (MR 1317)

This commit is contained in:
Mark Hargreaves 2020-06-16 17:20:38 +03:00 committed by Bart Ribbers
parent 1807426f67
commit 710aaefa55
3 changed files with 103 additions and 0 deletions

View file

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

View file

@ -0,0 +1,35 @@
# 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-J500H)"
deviceinfo_manufacturer="Samsung"
deviceinfo_codename="samsung-j53g"
deviceinfo_year="2015"
deviceinfo_dtb="qcom/msm8916-samsung-j5nlte"
deviceinfo_append_dtb="true"
deviceinfo_modules_initfs=""
deviceinfo_arch="aarch64"
# Device related
deviceinfo_chassis="handset"
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,39 @@
pkgname=firmware-samsung-j53g
pkgver=1
pkgrel=0
pkgdesc="Firmware for Samsung Galaxy J5 2015 (SM-J500H)"
url="https://pepethekingprawn.gitlab.io/firmware/"
subpackages="$pkgname-modem $pkgname-venus $pkgname-wcnss"
arch="aarch64"
license="proprietary"
options="!check !strip !archcheck"
_repository="j53g_firmware"
_commit="70035cb2197bfe99f2d728675ee0c4e295b86d07"
source="$pkgname-$_commit.tar.gz::https://github.com/nergzd723/$_repository/archive/$_commit.tar.gz"
_fwdir="/lib/firmware/postmarketos"
builddir="$srcdir/$_repository-$_commit"
package() {
# parent package is empty
mkdir -p "$pkgdir"
}
venus() {
pkgdesc="Samsung Galaxy J5 2015 (SM-J500H) video firmware"
install -Dm644 "$builddir"/venus.* -t "$subpkgdir/$_fwdir"/qcom/venus-1.8
}
wcnss() {
pkgdesc="Samsung Galaxy J5 2015 (SM-J500H) WiFi/BT firmware"
install -Dm644 "$builddir"/wcnss.* -t "$subpkgdir/$_fwdir"
install -Dm644 "$builddir"/WCNSS_* -t "$subpkgdir/$_fwdir"/wlan/prima
}
modem() {
pkgdesc="Samsung Galaxy J5 2015 (SM-J500FN) modem firmware"
install -Dm644 "$builddir"/mba.mbn -t "$subpkgdir/$_fwdir"
install -Dm644 "$builddir"/modem.* -t "$subpkgdir/$_fwdir"
}
sha512sums="96b6da87c5ba67fd053a4c21a2bcc82faa39508d28793f18a9fee2f6b8dd4b0e904b65e98c366dbb76777853c1d936d0cd347bc6cf8c5ca12308a4d6c99b32f3 firmware-samsung-j53g-70035cb2197bfe99f2d728675ee0c4e295b86d07.tar.gz"