samsung-on7: new device (MR 3030)

This commit is contained in:
Jasper Korten 2022-02-17 21:56:15 +01:00 committed by Alexey Min
parent f28294c93b
commit 8021b27169
No known key found for this signature in database
GPG key ID: 0B19D2A65870B448
3 changed files with 109 additions and 0 deletions

View file

@ -0,0 +1,41 @@
# Reference: <https://postmarketos.org/devicepkg>
pkgname=device-samsung-on7
pkgdesc="Samsung Galaxy On7 (2015)"
pkgver=0.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/Modem/Video firmware"
depends="firmware-qcom-adreno-a300 msm-firmware-loader firmware-samsung-on7lte-wcnss-nv"
mkdir "$subpkgdir"
}
sha512sums="
475790b09d19ba2b033e2cd7b3e31ab4f02893973f7ec249b65260adc8065c46bf27d37cb991201d3aad145071e5dbd7e4a77588210c794f83d2dfd985adf3bc deviceinfo
"

View file

@ -0,0 +1,36 @@
# 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 On7 (2015)"
deviceinfo_manufacturer="Samsung"
deviceinfo_codename="samsung-on7"
deviceinfo_year="2015"
deviceinfo_dtb="qcom/msm8916-samsung-on7"
deviceinfo_modules_initfs="panel-samsung-s6d7aa0x62-bv050hdm msm"
deviceinfo_append_dtb="true"
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"
# Bootloader related
deviceinfo_flash_method="fastboot"
deviceinfo_kernel_cmdline="earlycon console=ttyMSM0,115200 PMOS_NO_OUTPUT_REDIRECT"
deviceinfo_generate_bootimg="true"
deviceinfo_bootimg_qcdt="false"
deviceinfo_bootimg_mtk_mkimage="false"
deviceinfo_bootimg_dtb_second="false"
deviceinfo_flash_pagesize="2048"
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_sparse="true"

View file

@ -0,0 +1,32 @@
pkgname=firmware-samsung-on7
pkgver=1
pkgrel=0
_name="Samsung Galaxy On7 (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="$pkgname-WCNSS_qcom_wlan_nv.bin.base64::https://pastebin.com/raw/4c9b2b94"
_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="
804aeab6ba94c6a0bf44f2b9681b6ed3609df529f3f2a2b645dfd543c152997a2527044028c743e2767671819300ee7779ffa9eed7e17e359889e1af0a030987 firmware-samsung-on7-WCNSS_qcom_wlan_nv.bin.base64
"