samsung-j5*: squash to j5, use msm-firmware-loader (MR 2431)

This commit is contained in:
Nikita Travkin 2021-09-23 17:54:00 +05:00 committed by Alexey Minnekhanov
parent 23bfa57c38
commit d819fb93a5
No known key found for this signature in database
GPG key ID: 6FE3B029D9D9FAFF
7 changed files with 36 additions and 151 deletions

View file

@ -1,8 +1,8 @@
# Reference: <https://postmarketos.org/devicepkg> # Reference: <https://postmarketos.org/devicepkg>
pkgname=device-samsung-j53g pkgname=device-samsung-j5
pkgdesc="Samsung Galaxy J5 2015 (SM-J500H)" pkgdesc="Samsung Galaxy J5 (2015)"
pkgver=1 pkgver=2
pkgrel=2 pkgrel=0
url="https://postmarketos.org" url="https://postmarketos.org"
license="MIT" license="MIT"
arch="aarch64" arch="aarch64"
@ -21,11 +21,11 @@ package() {
} }
nonfree_firmware() { nonfree_firmware() {
pkgdesc="GPU/WiFi/BT/Video firmware" pkgdesc="GPU/WiFi/BT/Video(/Modem) firmware"
depends="linux-firmware-qcom firmware-samsung-j53g-venus firmware-samsung-j53g-wcnss" depends="linux-firmware-qcom msm-firmware-loader firmware-samsung-j5-wcnss-nv"
mkdir "$subpkgdir" mkdir "$subpkgdir"
} }
sha512sums=" sha512sums="
d3345a7b6e977d50b19dd10a6cb68a4ed00fed4bbe310572948626f4458cde741508778a9df7dfdb9d4bfd7d3276c25b6a3dea20e7d9c793c901b71bed496325 deviceinfo cb2adfe1b6d23e3e84448cc1c2f67e0320f61fe9edf735b484070400247393e5c0a6984a14fa3349031f7160e23d49ce80f30e785e2bed9398046a38cba9371f deviceinfo
" "

View file

@ -2,9 +2,9 @@
# Please use double quotes only. You can source this file in shell scripts. # Please use double quotes only. You can source this file in shell scripts.
deviceinfo_format_version="0" deviceinfo_format_version="0"
deviceinfo_name="Samsung Galaxy J5 2015 (SM-J500H)" deviceinfo_name="Samsung Galaxy J5 2015"
deviceinfo_manufacturer="Samsung" deviceinfo_manufacturer="Samsung"
deviceinfo_codename="samsung-j53g" deviceinfo_codename="samsung-j5"
deviceinfo_year="2015" deviceinfo_year="2015"
deviceinfo_dtb="qcom/msm8916-samsung-j5nlte" deviceinfo_dtb="qcom/msm8916-samsung-j5nlte"
deviceinfo_append_dtb="true" deviceinfo_append_dtb="true"

View file

@ -1,31 +0,0 @@
# Reference: <https://postmarketos.org/devicepkg>
pkgname=device-samsung-j5nlte
pkgdesc="Samsung Galaxy J5 2015 (SM-J500FN)"
pkgver=1
pkgrel=3
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="
def6e20054a7d4e1872d4ebc71e851b3b2f569a025d96baf1a7710973c0d999cf1d48b41fef3f9dccb85606da023968b1e826c3ab1ddc68cf4dbae798d3ffaa6 deviceinfo
"

View file

@ -1,35 +0,0 @@
# 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_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"
# 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,27 @@
pkgname=firmware-samsung-j5
pkgver=1
pkgrel=0
_name="Samsung Galaxy J5 (2015)"
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="https://github.com/nergzd723/j53g_firmware/raw/master/WCNSS_qcom_wlan_nv.bin"
_fwdir="/lib/firmware/postmarketos"
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="
742ee81d034116cf1ecdfae5f75495e6b10ce5be0c2a999b6c8a2c161b1da8b48d6810d5405edb8c829b96fdf75e45a565c74963c76d1bca4aaedf28572fa91f WCNSS_qcom_wlan_nv.bin
"

View file

@ -1,39 +0,0 @@
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 !tracedeps pmb:cross-native"
_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"

View file

@ -1,37 +0,0 @@
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 !tracedeps pmb:cross-native"
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"