samsung-a2corelte: new device (MR 4981)

This commit is contained in:
methanal 2024-03-30 21:46:31 +00:00
parent e187df7809
commit 440638512e
No known key found for this signature in database
GPG key ID: 30C0D50BEF63BF54
3 changed files with 105 additions and 0 deletions

View file

@ -0,0 +1,37 @@
# Reference: <https://postmarketos.org/devicepkg>
pkgname=device-samsung-a2corelte
pkgdesc="Samsung Galaxy A2 Core"
pkgver=1
pkgrel=0
url="https://postmarketos.org"
license="MIT"
arch="aarch64"
options="!check !archcheck"
depends="
dtbtool-exynos
linux-postmarketos-exynos7870
mesa-dri-simpledrm
mkbootimg
postmarketos-base
"
makedepends="devicepkg-dev"
source="deviceinfo"
subpackages="$pkgname-nonfree-firmware:nonfree_firmware"
build() {
devicepkg_build $startdir $pkgname
}
package() {
devicepkg_package $startdir $pkgname
}
nonfree_firmware() {
pkgdesc="Proprietary firmware blobs for $pkgdesc"
depends="firmware-samsung-a2corelte"
mkdir "$subpkgdir"
}
sha512sums="
ba75ed1b002e28dee895183e91cb66d86886b04f2e9c07bd15d196fbd8435f284a05bd10385a1c50b79e8b76b99128da9b4b87622f64b146b9885460b083f355 deviceinfo
"

View file

@ -0,0 +1,38 @@
# 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 A2 Core"
deviceinfo_manufacturer="Samsung"
deviceinfo_codename="samsung-a2corelte"
deviceinfo_year="2019"
deviceinfo_arch="aarch64"
# Device related
deviceinfo_chassis="handset"
deviceinfo_keyboard="false"
deviceinfo_external_storage="true"
deviceinfo_screen_width="540"
deviceinfo_screen_height="960"
deviceinfo_gpu_accelerated="true"
# Bootloader related
deviceinfo_flash_method="heimdall-bootimg"
deviceinfo_generate_bootimg="true"
deviceinfo_bootimg_qcdt="true"
deviceinfo_bootimg_qcdt_type="exynos"
deviceinfo_bootimg_mtk_mkimage="false"
deviceinfo_bootimg_dtb_second="false"
deviceinfo_flash_sparse="true"
deviceinfo_flash_pagesize="2048"
deviceinfo_flash_offset_base="0x10000000"
deviceinfo_flash_offset_kernel="0x00008000"
deviceinfo_flash_offset_ramdisk="0x01000000"
deviceinfo_flash_offset_second="0x00f00000"
deviceinfo_flash_offset_tags="0x00000100"
deviceinfo_flash_heimdall_partition_kernel="BOOT"
deviceinfo_flash_heimdall_partition_system="USERDATA"
# Kernel related
deviceinfo_dtb="exynos/exynos7870-a2corelte"

View file

@ -0,0 +1,30 @@
pkgname=firmware-samsung-a2corelte
pkgver=1
pkgrel=0
pkgdesc="Proprietary firmware blobs for Samsung Galaxy A2 Core"
url="https://gitlab.com/exynos7870-mainline/firmware"
arch="aarch64"
license="proprietary"
options="!check !strip !archcheck !spdx !tracedeps pmb:cross-native"
_device="a2corelte"
_commit="b89cec942fe297ff8623dd87e92f1a2380ed68f8"
source="$url/-/archive/$_commit/firmware-$_commit.tar.gz"
package() {
# Bluetooth firmware (Broadcom BCM43430B0)
install -Dm644 "$srcdir/firmware-$_commit/$_device/bluetooth_bcm.hcd" \
"$pkgdir"/lib/firmware/postmarketos/brcm/"BCM43430B0.hcd"
# Wi-Fi SDIO firmware (Broadcom BCM43430B0)
install -Dm644 "$srcdir/firmware-$_commit/$_device/wlansdio_bcm.bin" \
"$pkgdir"/lib/firmware/postmarketos/brcm/"brcmfmac43430b0-sdio.bin"
install -Dm644 "$srcdir/firmware-$_commit/$_device/wlansdio_bcm.clm_blob" \
"$pkgdir"/lib/firmware/postmarketos/brcm/"brcmfmac43430b0-sdio.clm_blob"
install -Dm644 "$srcdir/firmware-$_commit/$_device/wlansdio_bcm.txt" \
"$pkgdir"/lib/firmware/postmarketos/brcm/"brcmfmac43430b0-sdio.txt"
}
sha512sums="
ea9b18d5f1a7020fe59878191f30dcdeda17e9853066b94247443c55fc15801fc818a1bc0d909bebe007940c70e3d1bd4b7fb0b5725a1d424aedaabbccd44f36 firmware-b89cec942fe297ff8623dd87e92f1a2380ed68f8.tar.gz
"