videostrong-kii-pro: new device (MR 3833)

Signed-off-by: Ferass El Hafidi <vitali64pmemail@protonmail.com>
This commit is contained in:
Ferass El Hafidi 2023-03-09 19:05:06 +01:00 committed by Oliver Smith
parent bfa85b0c4d
commit b05904dc22
No known key found for this signature in database
GPG key ID: 5AE7F5513E0885CB
3 changed files with 95 additions and 0 deletions

View file

@ -0,0 +1,40 @@
# Reference: <https://postmarketos.org/devicepkg>
# Maintainer: Ferass El Hafidi <vitali64pmemail@protonmail.com>
pkgname=device-videostrong-kii-pro
pkgdesc="VideoStrong KII Pro"
pkgver=0.1
pkgrel=0
url="https://postmarketos.org"
license="MIT"
arch="aarch64"
options="!check !archcheck"
depends="
postmarketos-base
u-boot-tools
linux-postmarketos-amlogic
soc-amlogic-s905
u-boot-amlogic-s905-tv
"
makedepends="devicepkg-dev"
source="
deviceinfo
"
subpackages="$pkgname-nonfree-firmware:nonfree_firmware"
build() {
devicepkg_build $startdir $pkgname
}
package() {
devicepkg_package $startdir $pkgname
}
nonfree_firmware() {
pkgdesc="Wi-Fi firmware, Bluetooth firmware, vdec firmware"
depends="firmware-videostrong-kii-pro"
mkdir "$subpkgdir"
}
sha512sums="
ae5013b907c047fc756c0b75be1e633a874dcbf9ac3e0bea0a8740998f6c5d5b85f8a02242212112e771ed9aa8da3d162306d403275cc70259796155bc1dccb1 deviceinfo
"

View file

@ -0,0 +1,27 @@
# Maintainer: Ferass El Hafidi
# Reference: <https://postmarketos.org/deviceinfo>
# Please use double quotes only. You can source this file in shell
# scripts.
deviceinfo_format_version="0"
deviceinfo_name="VideoStrong KII Pro"
deviceinfo_manufacturer="VideoStrong"
deviceinfo_codename="videostrong-kii-pro"
deviceinfo_year="2016"
deviceinfo_dtb="amlogic/meson-gxbb-kii-pro"
deviceinfo_modules_initfs="meson_drm meson_dw_hdmi display_connector"
deviceinfo_arch="aarch64"
# Device related
deviceinfo_chassis="desktop"
deviceinfo_keyboard="false"
deviceinfo_external_storage="true"
deviceinfo_screen_width="800"
deviceinfo_screen_height="600"
deviceinfo_gpu_accelerated="true"
# Bootloader related
deviceinfo_flash_method="none"
deviceinfo_boot_filesystem="fat32"
deviceinfo_generate_extlinux_config="true"
deviceinfo_kernel_cmdline="console=null PMOS_NO_OUTPUT_REDIRECT"

View file

@ -0,0 +1,28 @@
# Maintainer: Ferass El Hafidi <vitali64pmemail@protonmail.com>
pkgname=firmware-videostrong-kii-pro
pkgver=1
pkgrel=0
pkgdesc="Nonfree firmware for the VideoStrong KII Pro (Wi-Fi, BT, vdec)"
url="https://github.com/LibreELEC/brcmfmac_sdio-firmware"
arch="aarch64"
license="proprietary"
depends="linux-firmware-meson linux-firmware-brcm"
_commit="c70355f9ec6d015b91a5c3199aa08b433e2f7caf"
source="
$pkgname-$_commit.zip::https://github.com/LibreELEC/brcmfmac_sdio-firmware/archive/$_commit.zip
"
options="!check !strip !archcheck !spdx !tracedeps pmb:cross-native"
builddir="$srcdir/"
package() {
cd "$srcdir/brcmfmac_sdio-firmware-$_commit"
# Wi-Fi
install -Dm644 "brcmfmac4335-sdio.txt" "$pkgdir/lib/firmware/brcm/brcmfmac4335-sdio.txt"
ln -s "$pkgdir/lib/firmware/brcm/brcmfmac4335-sdio.bin" "$pkgdir/lib/firmware/brcm/brcmfmac4335-sdio.videostrong,kii-pro.bin"
ln -s "$pkgdir/lib/firmware/brcm/brcmfmac4335-sdio.txt" "$pkgdir/lib/firmware/brcm/brcmfmac4335-sdio.videostrong,kii-pro.txt"
# Bluetooth
install -Dm644 "BCM4335A0.hcd" "$pkgdir/lib/firmware/brcm/BCM4335A0.hcd"
}
sha512sums="
d5833029c386ca041a1968538d2ed78dbe81014ba97eddb678594444c5a4db8ab77cedc4dbe034852683cac02b2570a5b791ba3f3d263ad80234bdb58110c21d firmware-videostrong-kii-pro-c70355f9ec6d015b91a5c3199aa08b433e2f7caf.zip
"