samsung-e7: new device (MR 2813)
This commit is contained in:
parent
ed90e5dafe
commit
7381adb19b
3 changed files with 107 additions and 0 deletions
42
device/testing/device-samsung-e7/APKBUILD
Normal file
42
device/testing/device-samsung-e7/APKBUILD
Normal file
|
@ -0,0 +1,42 @@
|
|||
# Reference: <https://postmarketos.org/devicepkg>
|
||||
pkgname=device-samsung-e7
|
||||
pkgdesc="Samsung Galaxy E7"
|
||||
pkgver=1
|
||||
pkgrel=0
|
||||
url="https://postmarketos.org"
|
||||
license="MIT"
|
||||
arch="armv7"
|
||||
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-e7-wcnss-nv"
|
||||
mkdir "$subpkgdir"
|
||||
}
|
||||
|
||||
sha512sums="
|
||||
75fb5dda5b4b0444ec06c6ac86b946428932935f321b3e5ed18b5b053639923b2aadf95d5c2319778d1afc6b2ce107fc8abdce854050ce121625cc93211c6e96 deviceinfo
|
||||
"
|
33
device/testing/device-samsung-e7/deviceinfo
Normal file
33
device/testing/device-samsung-e7/deviceinfo
Normal 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 E7"
|
||||
deviceinfo_manufacturer="Samsung"
|
||||
deviceinfo_codename="samsung-e7"
|
||||
deviceinfo_year="2015"
|
||||
deviceinfo_dtb="qcom-msm8916-samsung-e7"
|
||||
deviceinfo_append_dtb="true"
|
||||
deviceinfo_modules_initfs="panel-samsung-ea8061-ams549bu19-id400418 msm stmfts"
|
||||
deviceinfo_arch="armv7"
|
||||
|
||||
# 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="0x00008000"
|
||||
deviceinfo_flash_offset_ramdisk="0x02000000"
|
||||
deviceinfo_flash_offset_second="0x00f00000"
|
||||
deviceinfo_flash_offset_tags="0x01e00000"
|
||||
deviceinfo_flash_pagesize="2048"
|
||||
deviceinfo_flash_sparse="true"
|
32
device/testing/firmware-samsung-e7/APKBUILD
Normal file
32
device/testing/firmware-samsung-e7/APKBUILD
Normal file
|
@ -0,0 +1,32 @@
|
|||
pkgname=firmware-samsung-e7
|
||||
pkgver=1
|
||||
pkgrel=0
|
||||
_name="Samsung Galaxy E7 (2015)"
|
||||
pkgdesc="Firmware for $_name"
|
||||
url="https://postmarketos.org"
|
||||
subpackages="$pkgname-wcnss-nv:wcnss_nv"
|
||||
arch="armv7"
|
||||
license="proprietary"
|
||||
options="!check !strip !archcheck !tracedeps pmb:cross-native"
|
||||
source="$pkgname-WCNSS_qcom_wlan_nv.bin.base64::https://pastebin.com/raw/qF2Y0k5R"
|
||||
|
||||
_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="
|
||||
0eeb72701a60dc202467c27fd44d4961dd3771e435426415df7e43f8e71af0e5f1af1ed824402794a8eb927e8bfb85a6ff942e347d3bb0e0fca41ef5967bf570 firmware-samsung-e7-WCNSS_qcom_wlan_nv.bin.base64
|
||||
"
|
Loading…
Reference in a new issue