qcom-msm8909: new device (MR 5222)

With the new changes in lk2nd that allow us to support extlinux.conf,
we can now generate image that would be generic to these devices.

[ci:skip-build]: already built successfully in CI
This commit is contained in:
Raymond Hackley 2024-06-10 12:52:31 +00:00 committed by Pablo Correa Gómez
parent 7bcaabdb1a
commit 74f52382b6
No known key found for this signature in database
GPG key ID: 7A342565FF635F79
4 changed files with 93 additions and 0 deletions

View file

@ -73,6 +73,7 @@ device/*/device-odroid-xu4/ @Grimler
device/*/device-oneplus-enchilada/ @calebccff device/*/device-oneplus-enchilada/ @calebccff
device/*/device-oneplus-fajita/ @calebccff device/*/device-oneplus-fajita/ @calebccff
device/*/device-postmarketos-trailblazer/ @calebccff device/*/device-postmarketos-trailblazer/ @calebccff
device/*/device-qcom-msm8909/ @wonderfulShrineMaidenOfParadise
device/*/device-qemu-aarch64/ @Minecrell @ollieparanoid device/*/device-qemu-aarch64/ @Minecrell @ollieparanoid
device/*/device-qemu-amd64/ @Minecrell @ollieparanoid device/*/device-qemu-amd64/ @Minecrell @ollieparanoid
device/*/device-qemu-riscv64/ @Minecrell @z3ntu device/*/device-qemu-riscv64/ @Minecrell @z3ntu

View file

@ -0,0 +1,48 @@
# Reference: <https://postmarketos.org/devicepkg>
# Maintainer: Raymond Hackley <raymondhackley@protonmail.com>
pkgname=device-qcom-msm8909
pkgdesc="Generic device package for various Qualcomm MSM8905/MSM8909/MSM8916-based devices"
pkgver=1
pkgrel=0
url="https://postmarketos.org"
license="MIT"
arch="armv7"
options="!check !archcheck"
depends="
linux-postmarketos-qcom-msm8916
postmarketos-base
soc-qcom-msm8909
"
makedepends="devicepkg-dev"
source="
deviceinfo
modules-initfs
"
subpackages="$pkgname-nonfree-firmware:nonfree_firmware"
build() {
devicepkg_build $startdir $pkgname
}
package() {
devicepkg_package $startdir $pkgname
}
nonfree_firmware() {
pkgdesc="WiFi/BT/Modem/Video firmware"
depends="msm-firmware-loader firmware-qcom-adreno-a300 firmware-qcom-db410c-wcnss-nv"
mkdir "$subpkgdir"
# HACK: For devices that don't have a nv file in persist we
# temporarily link the db410c file to the expected location.
# It will be overriden if the file is in persist or when user
# installs the device-specific firmware packages.
mkdir -p "$subpkgdir"/lib/firmware/wlan/prima/
ln -s /lib/firmware/qcom/apq8016/WCNSS_qcom_wlan_nv_sbc.bin \
"$subpkgdir"/lib/firmware/wlan/prima/WCNSS_qcom_wlan_nv.bin
}
sha512sums="
d77082a92edd4b2f8de2f8a3eaa395a020014c829c73e4008fbe7a2c1dfa7d8a258b10e52b288c2cfa7afc85156a6ab667561f0f4c20c32856ec6bf71b66398c deviceinfo
3c4ae8aad562270a6094add613912955bafed994e0df2f8842575fb4e38db0f21a57dc61fb772af418d1423512811e7f9f533c2e9b3f8edb657ed20f12ca2fc9 modules-initfs
"

View file

@ -0,0 +1,24 @@
# Reference: <https://postmarketos.org/deviceinfo>
# Please use double quotes only. You can source this file in shell
# scripts.
deviceinfo_format_version="0"
deviceinfo_name="Qualcomm msm8905/msm8909/msm8916-based device"
deviceinfo_manufacturer="Qualcomm"
deviceinfo_codename="qcom-msm8909"
deviceinfo_year="2015"
deviceinfo_arch="armv7"
# Device related
deviceinfo_chassis="embedded"
deviceinfo_external_storage="true"
deviceinfo_getty="ttyMSM0;115200"
deviceinfo_gpu_accelerated="true"
deviceinfo_keyboard="false"
# Bootloader related
deviceinfo_boot_filesystem="ext2"
deviceinfo_dtb="qcom-msm8*05-* qcom-msm8*09-* qcom-msm8*16-*"
deviceinfo_flash_method="fastboot"
deviceinfo_generate_extlinux_config="true"
deviceinfo_kernel_cmdline="earlycon console=ttyMSM0,115200"

View file

@ -0,0 +1,20 @@
panel-mipi-dbi
panel-samsung-ea8061-ams549bu19
panel-samsung-ea8061v-ams497ee01
panel-samsung-hx8389c-gh9607501a
panel-samsung-s6288a0
panel-samsung-s6d2aa0x62-lpm053a250a
panel-samsung-s6e88a0-ams427ap24
pm8916-bms-vm
pm8916-lbc
rt5033
rt5033-charger
goodix
imagis
matrix_keypad
matrix_keymap
mms114
msg2638
stmfts
zinitix
msm