samsung-hlte: new device (MR 2709)
[ci:skip-build] already built successfully in CI
This commit is contained in:
parent
8df6c1c0f7
commit
bc7dbe4288
4 changed files with 141 additions and 0 deletions
53
device/testing/device-samsung-hlte/APKBUILD
Normal file
53
device/testing/device-samsung-hlte/APKBUILD
Normal file
|
@ -0,0 +1,53 @@
|
|||
# Reference: <https://postmarketos.org/devicepkg>
|
||||
pkgname=device-samsung-hlte
|
||||
pkgdesc="Samsung Galaxy Note 3"
|
||||
pkgver=1
|
||||
pkgrel=0
|
||||
url="https://postmarketos.org"
|
||||
license="MIT"
|
||||
arch="armv7"
|
||||
options="!check !archcheck"
|
||||
depends="
|
||||
linux-postmarketos-qcom-msm8974
|
||||
mesa-dri-gallium
|
||||
mkbootimg
|
||||
postmarketos-base
|
||||
swclock-offset
|
||||
"
|
||||
makedepends="devicepkg-dev"
|
||||
subpackages="
|
||||
$pkgname-nonfree-firmware:nonfree_firmware
|
||||
"
|
||||
source="
|
||||
bt-module-deps.conf
|
||||
deviceinfo
|
||||
"
|
||||
|
||||
build() {
|
||||
devicepkg_build $startdir $pkgname
|
||||
}
|
||||
|
||||
package() {
|
||||
devicepkg_package $startdir $pkgname
|
||||
}
|
||||
|
||||
nonfree_firmware() {
|
||||
pkgdesc="GPU, Wi-Fi, Bluetooth firmware"
|
||||
depends="
|
||||
firmware-qcom-adreno-a330
|
||||
firmware-samsung-hlte-bt
|
||||
firmware-samsung-hlte-wifi
|
||||
msm-firmware-loader
|
||||
msm-modem
|
||||
"
|
||||
|
||||
mkdir "$subpkgdir"
|
||||
# This config makes sense only if non-free firmware is installed
|
||||
install -Dm644 "$srcdir"/bt-module-deps.conf \
|
||||
"$subpkgdir"/etc/modprobe.d/bt-module-deps.conf
|
||||
}
|
||||
|
||||
sha512sums="
|
||||
6cef5f8ae1785ac16e6fe84bfc861ac50cdfb94db35d764f44a25c960e123cb82f6e56f45362a5340c62a3d5ac225f2689afd4f6964cb88305a0892ba44214f0 bt-module-deps.conf
|
||||
f3c297e0f1a521c45e4dccbad443f5f6c53b028848e81475a2c5d398b17d3a8534d267108359389640d49449476f6c5c48370ff9fbc8eb81a7e7236af9a09dd9 deviceinfo
|
||||
"
|
3
device/testing/device-samsung-hlte/bt-module-deps.conf
Normal file
3
device/testing/device-samsung-hlte/bt-module-deps.conf
Normal file
|
@ -0,0 +1,3 @@
|
|||
softdep hci_uart pre: brcmfmac
|
||||
softdep btbcm pre: brcmfmac
|
||||
softdep bluetooth pre: brcmfmac
|
39
device/testing/device-samsung-hlte/deviceinfo
Normal file
39
device/testing/device-samsung-hlte/deviceinfo
Normal file
|
@ -0,0 +1,39 @@
|
|||
# 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 Note 3"
|
||||
deviceinfo_manufacturer="Samsung"
|
||||
deviceinfo_codename="samsung-hlte"
|
||||
deviceinfo_year="2013"
|
||||
deviceinfo_dtb="qcom-msm8974-samsung-hlte"
|
||||
deviceinfo_append_dtb="true"
|
||||
deviceinfo_modules_initfs="pm8941_pwrkey rmi_core rmi_i2c panel-samsung-s6e3fa2-full"
|
||||
deviceinfo_arch="armv7"
|
||||
|
||||
# Device related
|
||||
deviceinfo_chassis="handset"
|
||||
deviceinfo_keyboard="false"
|
||||
deviceinfo_external_storage="true"
|
||||
deviceinfo_screen_width="1080"
|
||||
deviceinfo_screen_height="1920"
|
||||
deviceinfo_getty="ttyMSM0;115200"
|
||||
deviceinfo_gpu_accelerated="true"
|
||||
|
||||
# Bootloader related
|
||||
deviceinfo_flash_method="heimdall-bootimg"
|
||||
deviceinfo_kernel_cmdline="console=ttyMSM0,115200,n8 msm.vram=192m msm.allow_vram_carveout=1 PMOS_NO_OUTPUT_REDIRECT"
|
||||
deviceinfo_generate_bootimg="true"
|
||||
deviceinfo_bootimg_qcdt="false"
|
||||
deviceinfo_bootimg_append_seandroidenforce="true"
|
||||
deviceinfo_flash_offset_base="0x00000000"
|
||||
deviceinfo_flash_offset_kernel="0x00008000"
|
||||
deviceinfo_flash_offset_ramdisk="0x02900000"
|
||||
deviceinfo_flash_offset_second="0x00f00000"
|
||||
deviceinfo_flash_offset_tags="0x02700000"
|
||||
deviceinfo_flash_pagesize="2048"
|
||||
deviceinfo_flash_heimdall_partition_kernel="BOOT"
|
||||
|
||||
# USB related
|
||||
deviceinfo_usb_idVendor="0x04e8" # Samsung Electronics Co., Ltd
|
||||
deviceinfo_usb_idProduct="0x6860" # Galaxy (MTP)
|
46
device/testing/firmware-samsung-hlte/APKBUILD
Normal file
46
device/testing/firmware-samsung-hlte/APKBUILD
Normal file
|
@ -0,0 +1,46 @@
|
|||
pkgname=firmware-samsung-hlte
|
||||
pkgver=1
|
||||
pkgrel=0
|
||||
pkgdesc="Samsung Galaxy Note 3 Firmware"
|
||||
url="https://github.com/TheMuppets/proprietary_vendor_samsung"
|
||||
arch="armv7"
|
||||
license="proprietary"
|
||||
options="!check !strip !archcheck !spdx !tracedeps pmb:cross-native"
|
||||
subpackages="
|
||||
$pkgname-wifi:wifi
|
||||
$pkgname-bt:bt
|
||||
"
|
||||
_commit="63715ce31aedd827bd1f8bac5e5c42cc47f28f85"
|
||||
|
||||
source="
|
||||
$pkgname-$_commit-bcmdhd_sta.bin::https://github.com/TheMuppets/proprietary_vendor_samsung/raw/$_commit/hlte-common/proprietary/etc/wifi/bcmdhd_sta.bin
|
||||
$pkgname-$_commit-nvram_net.txt::https://raw.githubusercontent.com/TheMuppets/proprietary_vendor_samsung/$_commit/hlte-common/proprietary/etc/wifi/nvram_net.txt
|
||||
$pkgname-$_commit-bcm4335_V0111.0559.hcd::https://github.com/TheMuppets/proprietary_vendor_samsung/raw/$_commit/hlte-common/proprietary/vendor/firmware/bcm4335_V0111.0559.hcd
|
||||
"
|
||||
|
||||
package() {
|
||||
# parent package is empty
|
||||
mkdir -p "$pkgdir"
|
||||
}
|
||||
|
||||
wifi() {
|
||||
pkgdesc="Samsung Galaxy Note 3 Wi-Fi firmware"
|
||||
mkdir "$subpkgdir"
|
||||
install -Dm644 "$srcdir/$pkgname-$_commit-bcmdhd_sta.bin" \
|
||||
"$subpkgdir/lib/firmware/postmarketos/brcm/brcmfmac4354-sdio.bin"
|
||||
install -Dm644 "$srcdir/$pkgname-$_commit-nvram_net.txt" \
|
||||
"$subpkgdir/lib/firmware/postmarketos/brcm/brcmfmac4354-sdio.samsung,hlte.txt"
|
||||
}
|
||||
|
||||
bt() {
|
||||
pkgdesc="Samsung Galaxy Note 3 Bluetooth firmware"
|
||||
mkdir "$subpkgdir"
|
||||
install -Dm644 "$srcdir/$pkgname-$_commit-bcm4335_V0111.0559.hcd" \
|
||||
"$subpkgdir/lib/firmware/postmarketos/brcm/BCM4354.hcd"
|
||||
}
|
||||
|
||||
sha512sums="
|
||||
b9344478874f94af33052e76116f2c24b577c4c8178a3c7fc8eb9bb6a1d8c3f497443a88cf1b94256ef3e17806541d7271784505ac16de2b322ccb5ddcec54d3 firmware-samsung-hlte-63715ce31aedd827bd1f8bac5e5c42cc47f28f85-bcmdhd_sta.bin
|
||||
5c4d01630e96b7b35241116d4e46442b706d53a1691ef329b94fcba2e4d3673983535e6416ac53fb086e9d25b8619151f8618d8b744c685ea7d293cb9fdb2499 firmware-samsung-hlte-63715ce31aedd827bd1f8bac5e5c42cc47f28f85-nvram_net.txt
|
||||
54933cd01cdd8ea1d87eb0c6db1a20ca995f76420bfe06a73d002ac3d8c6bbb14d04bd596edef9155fc4105e41bff6a1432ab71c348987369dc1bc9cc5df5214 firmware-samsung-hlte-63715ce31aedd827bd1f8bac5e5c42cc47f28f85-bcm4335_V0111.0559.hcd
|
||||
"
|
Loading…
Reference in a new issue