samsung-a3ulte: new device (Samsung Galaxy A3 (SM-A300FU)) (!582)

This commit is contained in:
Mis012 2019-06-23 22:22:26 +02:00 committed by Oliver Smith
parent 780adc8cec
commit 59088ec5b8
No known key found for this signature in database
GPG key ID: 5AE7F5513E0885CB
3 changed files with 96 additions and 0 deletions

View file

@ -0,0 +1,29 @@
# Reference: <https://postmarketos.org/devicepkg>
pkgname="device-samsung-a3ulte"
pkgdesc="Samsung Galaxy A3 (SM-A300FU)"
pkgver=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"
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-a3ulte-venus firmware-samsung-a3ulte-wcnss"
mkdir "$subpkgdir"
}
sha512sums="c689991681a36d16151eb86faf31df1138c161fac0bd5f68112bba5031ffee2b1c9e5aff46b50acb125d4364d4287f224509aaf2c89bdfc3d7bd39204163b580 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 A3 (SM-A300FU)"
deviceinfo_manufacturer="Samsung"
deviceinfo_codename="samsung-a3ulte"
deviceinfo_date=""
deviceinfo_dtb="qcom/msm8916-samsung-a3u-eur"
deviceinfo_append_dtb="true"
deviceinfo_modules_initfs=""
deviceinfo_arch="aarch64"
# Device related
deviceinfo_keyboard="false"
deviceinfo_external_storage="true"
deviceinfo_screen_width="540"
deviceinfo_screen_height="960"
deviceinfo_dev_touchscreen="/dev/input/by-path/platform-78b9000.i2c-event"
deviceinfo_dev_touchscreen_calibration=""
deviceinfo_dev_keyboard=""
# 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=msm_serial_dm,0x78b0000 console=ttyMSM0,115200,n8 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,31 @@
pkgname=firmware-samsung-a3ulte
pkgver=1
pkgrel=0
pkgdesc="Firmware for Samsung Galaxy A3 (SM-A300FU)"
url="https://rizzotherat.gitlab.io/firmware/"
subpackages="$pkgname-venus $pkgname-wcnss"
arch="aarch64"
license="proprietary"
options="!check !strip !archcheck"
source="https://rizzotherat.gitlab.io/firmware/SM-A300FU.tar.xz"
_fwdir="/lib/firmware/postmarketos"
package() {
# parent package is empty
mkdir -p "$pkgdir"
}
venus() {
pkgdesc="Samsung Galaxy A3 (SM-A300FU) video firmware"
install -Dm644 "$srcdir"/venus.* -t "$subpkgdir/$_fwdir"/qcom/venus-1.8
}
wcnss() {
pkgdesc="Samsung Galaxy A3 (SM-A300FU) WiFi/BT firmware"
cd "$srcdir"
install -Dm644 wcnss.* -t "$subpkgdir/$_fwdir"
install -Dm644 WCNSS_* -t "$subpkgdir/$_fwdir"/wlan/prima
}
sha512sums="911907209993639aaf19d09dc946edc96c86e660f936c58b4c0deeddbe1ac5d8a5404db4db78cbae9c619a3e93515460bb420a8487e0ded9efcd12da01689a08 SM-A300FU.tar.xz"