samsung-a5ulte: new device (Samsung Galaxy A5 (SM-A500FU)) (!582)
This commit is contained in:
parent
e80aabe73f
commit
780adc8cec
3 changed files with 96 additions and 0 deletions
29
device/device-samsung-a5ulte/APKBUILD
Normal file
29
device/device-samsung-a5ulte/APKBUILD
Normal file
|
@ -0,0 +1,29 @@
|
|||
# Reference: <https://postmarketos.org/devicepkg>
|
||||
pkgname="device-samsung-a5ulte"
|
||||
pkgdesc="Samsung Galaxy A5 (SM-A500FU)"
|
||||
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-a5ulte-venus firmware-samsung-a5ulte-wcnss"
|
||||
mkdir "$subpkgdir"
|
||||
}
|
||||
|
||||
sha512sums="a7e8cad02d17431965a8c5a0969af3ac4427d7338f662c0bcf1a68274d17ec0306588e741a55f630df82b3347b8d3e914f364e6b7424aaf1bc0b882d34333133 deviceinfo"
|
36
device/device-samsung-a5ulte/deviceinfo
Normal file
36
device/device-samsung-a5ulte/deviceinfo
Normal 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 A5 (SM-A500FU)"
|
||||
deviceinfo_manufacturer="Samsung"
|
||||
deviceinfo_codename="samsung-a5ulte"
|
||||
deviceinfo_date=""
|
||||
deviceinfo_dtb="qcom/msm8916-samsung-a5u-eur"
|
||||
deviceinfo_append_dtb="true"
|
||||
deviceinfo_modules_initfs=""
|
||||
deviceinfo_arch="aarch64"
|
||||
|
||||
# Device related
|
||||
deviceinfo_keyboard="false"
|
||||
deviceinfo_external_storage="true"
|
||||
deviceinfo_screen_width="720"
|
||||
deviceinfo_screen_height="1280"
|
||||
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"
|
31
firmware/firmware-samsung-a5ulte/APKBUILD
Normal file
31
firmware/firmware-samsung-a5ulte/APKBUILD
Normal file
|
@ -0,0 +1,31 @@
|
|||
pkgname=firmware-samsung-a5ulte
|
||||
pkgver=1
|
||||
pkgrel=0
|
||||
pkgdesc="Firmware for Samsung Galaxy A5 (SM-A500FU)"
|
||||
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-A500FU.tar.xz"
|
||||
|
||||
_fwdir="/lib/firmware/postmarketos"
|
||||
|
||||
package() {
|
||||
# parent package is empty
|
||||
mkdir -p "$pkgdir"
|
||||
}
|
||||
|
||||
venus() {
|
||||
pkgdesc="Samsung Galaxy A5 (SM-A500FU) video firmware"
|
||||
install -Dm644 "$srcdir"/venus.* -t "$subpkgdir/$_fwdir"/qcom/venus-1.8
|
||||
}
|
||||
|
||||
wcnss() {
|
||||
pkgdesc="Samsung Galaxy A5 (SM-A500FU) WiFi/BT firmware"
|
||||
cd "$srcdir"
|
||||
install -Dm644 wcnss.* -t "$subpkgdir/$_fwdir"
|
||||
install -Dm644 WCNSS_* -t "$subpkgdir/$_fwdir"/wlan/prima
|
||||
}
|
||||
|
||||
sha512sums="de63dc9075c559248666afbd76b4f1bd29b235f7bc1c83f68fef65fa9532ce042e42074a9b3bf498a9038d5204f780708e9de750b83b51a6afa519bc358216b0 SM-A500FU.tar.xz"
|
Loading…
Reference in a new issue