From 0eba2b1bf52d90f35474b7f59921b9819b500e10 Mon Sep 17 00:00:00 2001 From: Liam Hurwitz <lgh@e.email> Date: Mon, 10 Mar 2025 15:12:31 +0100 Subject: [PATCH 1/2] device-postmarketos-trailblazer: add initfs hook which starts adsp. Required for dp-alt --- .../testing/device-postmarketos-trailblazer/APKBUILD | 5 ++++- .../device-postmarketos-trailblazer/initfs-hook.sh | 10 ++++++++++ 2 files changed, 14 insertions(+), 1 deletion(-) create mode 100644 device/testing/device-postmarketos-trailblazer/initfs-hook.sh diff --git a/device/testing/device-postmarketos-trailblazer/APKBUILD b/device/testing/device-postmarketos-trailblazer/APKBUILD index e93a3a528d8..38c22dc4ddc 100644 --- a/device/testing/device-postmarketos-trailblazer/APKBUILD +++ b/device/testing/device-postmarketos-trailblazer/APKBUILD @@ -18,6 +18,7 @@ depends=" linux-firmware-ath12k linux-firmware-qca linux-firmware-rtw88 + linux-firmware-rtl_nic rmtfs pd-mapper tqftpserv @@ -39,6 +40,7 @@ subpackages=" source=" deviceinfo modules-initfs + initfs-hook.sh " build() { @@ -81,5 +83,6 @@ kernel_postmarketos_amlogic() { sha512sums=" 12e7c1af63b24a37198a73e77d45cc5cbcb3ce34bbdb32d913cb3e427896ddcf2266269f8fe0c73c15c751a34ad738bd7fc958629ad066cd3c0a9faaaae7d67f deviceinfo -7642e07eb1d0d24c8b1d754371394ff5a5b532fb699be5cac75431b58755adb6f550bf4cf8cddde27ef4e7f20ea90a5368298b0e44f9d145f1f6d7a4026a550e modules-initfs +2c22b6a385c4094f6850728cf36d74ade0aa97adf16a4aee6662b9fd4bbb2ea0372e4869960e329d53cd0c84727163bd160e2c66f1eadd637ae3277d14141b29 modules-initfs +05e8d72b1ee1c61aea7663c497d9f103c460a7f285aa28a2274101bd63ea9e1ed27c54c2855752647867b586dd8674b56fa54161d3ebe53e59f7041c938bc34f initfs-hook.sh " diff --git a/device/testing/device-postmarketos-trailblazer/initfs-hook.sh b/device/testing/device-postmarketos-trailblazer/initfs-hook.sh new file mode 100644 index 00000000000..41a0fc88a40 --- /dev/null +++ b/device/testing/device-postmarketos-trailblazer/initfs-hook.sh @@ -0,0 +1,10 @@ +#!/bin/sh + +# enable adsp for dp-alt, +# this requires remoteproc[0,1] to be started (qcadsp8380.mbn) +if [ -d /sys/class/remoteproc/remoteproc0 ]; then + echo "start" | tee /sys/class/remoteproc/remoteproc0/state +fi +if [ -d /sys/class/remoteproc/remoteproc1 ]; then + echo "start" | tee /sys/class/remoteproc/remoteproc1/state +fi -- GitLab From ffc460f6f6433267253d27ebcab8cbf66bcf923e Mon Sep 17 00:00:00 2001 From: Liam Hurwitz <lgh@e.email> Date: Fri, 7 Mar 2025 12:06:32 +0100 Subject: [PATCH 2/2] device-postmarketos-trailblazer: add modules required for the t14s --- .../device-postmarketos-trailblazer/APKBUILD | 6 +- .../modules-initfs | 161 ++++++++++++++++-- 2 files changed, 151 insertions(+), 16 deletions(-) diff --git a/device/testing/device-postmarketos-trailblazer/APKBUILD b/device/testing/device-postmarketos-trailblazer/APKBUILD index 38c22dc4ddc..242ac226ab5 100644 --- a/device/testing/device-postmarketos-trailblazer/APKBUILD +++ b/device/testing/device-postmarketos-trailblazer/APKBUILD @@ -3,8 +3,8 @@ # Reference: <https://postmarketos.org/devicepkg> pkgname=device-postmarketos-trailblazer pkgdesc="postmarketOS Trailblazer generic ARM64" -pkgver=12 -pkgrel=1 +pkgver=13 +pkgrel=0 url="https://postmarketos.org" license="MIT" arch="aarch64" @@ -83,6 +83,6 @@ kernel_postmarketos_amlogic() { sha512sums=" 12e7c1af63b24a37198a73e77d45cc5cbcb3ce34bbdb32d913cb3e427896ddcf2266269f8fe0c73c15c751a34ad738bd7fc958629ad066cd3c0a9faaaae7d67f deviceinfo -2c22b6a385c4094f6850728cf36d74ade0aa97adf16a4aee6662b9fd4bbb2ea0372e4869960e329d53cd0c84727163bd160e2c66f1eadd637ae3277d14141b29 modules-initfs +0a1f4b78c52d1b3906a2b1b6ae07d041662577eb4f4f017e970602009473d228ffd9ac966a40f56ac29aa5ce2306971fbe4fc5811d5c32a52999c07ec32cdb3d modules-initfs 05e8d72b1ee1c61aea7663c497d9f103c460a7f285aa28a2274101bd63ea9e1ed27c54c2855752647867b586dd8674b56fa54161d3ebe53e59f7041c938bc34f initfs-hook.sh " diff --git a/device/testing/device-postmarketos-trailblazer/modules-initfs b/device/testing/device-postmarketos-trailblazer/modules-initfs index 38018fcdd5f..aae9683315b 100644 --- a/device/testing/device-postmarketos-trailblazer/modules-initfs +++ b/device/testing/device-postmarketos-trailblazer/modules-initfs @@ -1,42 +1,99 @@ +ac97_bus +aes_ce_blk +aes_ce_ccm +aes_ce_cipher +af_alg +algif_hash +algif_skcipher +apr +arm_smccc_trng +ath12k atmel_mxt_ts +authenc +autofs4 aux-hpd-bridge backlight +binfmt_misc +blake2b_generic +bluetooth +bnep bq25890_charger +bridge +btbcm +btintel +btqca +btrfs +btrtl +cdc_ether +cfg80211 clk-smd-rpm +dispcc_x1e80100 display_connector -dispcc-x1e80100 +dmi_sysfs +drm_exec dwc3 dwc3-qcom edt-ft5x06 +efi_pstore +fastrpc +fixed gcc-sm6115 +ghash_ce goodix gpi +gpio_keys gpio_sbu_mux gpio_vibra -gpucc-x1e80100 -i2c-hid -i2c-hid-of +gpu_sched +gpucc_x1e80100 +hci_uart +hid +hid_generic +hid_multitouch i2c-hid-of-elan -i2c-qcom-geni -icc-bwmon +i2c_hid +i2c_hid_of +i2c_qcom_geni icc-osm-l3 icc-smd-rpm +icc_bwmon +industrialio +input_leds +ip_set +ip_tables +iris +joydev led_bl +libarc4 libcomposite +libdes +llc lmh +lpasscc_sc8280xp +mac80211 +mc +mdt_loader meson_drm meson_dw_hdmi +mhi +michael_mic msm nvme +nvme_auth +nvme_core +nvmem_qcom_spmi_sdam nvmem_qfprom +ocmem onboard-usb-dev -panel_edp -panel_samsung_atna33xc20 +overlay panel-samsung-s6d7aa0 panel-samsung-sofef00 -panel_sitronix_st7703 panel-visionox-rm69299 -phy_qcom_edp +panel_edp +panel_samsung_atna33xc20 +panel_sitronix_st7703 +pci_pwrctrl_core +pci_pwrctrl_pwrseq phy-qcom-eusb2-repeater phy-qcom-qmp-combo phy-qcom-qmp-pcie @@ -45,30 +102,85 @@ phy-qcom-qmp-usb phy-qcom-qmp-usbc phy-qcom-qusb2 phy-qcom-snps-eusb2 +phy_nxp_ptn3222 +phy_qcom_edp phy_sun6i_mipi_dphy pinctrl-sm6115 +pinctrl_lpass_lpi +pinctrl_sm8550_lpass_lpi +pm8941_pwrkey pmic-glink pmic-glink-altmode +polyval_ce +polyval_generic +ps883x pwm_bl pwm_sun4i +pwrseq_core +pwrseq_qcom_wcn +q6apm_dai +q6apm_lpass_dais +q6prm +q6prm_clocks qcom-apcs-ipc-mailbox +qcom_battmgr +qcom_common +qcom_cpucp_mbox +qcom_edac +qcom_geni_serial qcom_glink qcom_glink_rpm +qcom_glink_smem qcom_hwspinlock +qcom_pd_mapper +qcom_pil_info qcom_pmic_tcpm +qcom_pon +qcom_q6v5 +qcom_q6v5_pas qcom_smd qcom_smd-regulator -qcom-spmi-pmic +qcom_spmi_pmic +qcom_spmi_temp_alarm +qcom_stats +qcom_sysmon qcom_usb_vbus-regulator +qcrypto qnoc-qcm2290 qnoc-sm6115 +qrtr +qrtr_mhi +qrtr_smd +r8152 +r8153_ecm +raid6_pq +reboot_mode +regmap_sdw +reset_gpio +rfcomm rmi_core rmi_i2c -rpmpd rpm-proc +rpmpd rpmsg_core +rpmsg_ctrl +rtc_pm8xxx +sch_fq_codel +sha1_ce +sha256_arm64 +sha2_ce +sha3_ce +slimbus +sm3 +sm3_ce +sm4 +sm4_ce +sm4_ce_ccm +sm4_ce_cipher +sm4_ce_gcm smd-rpm smem +socinfo sun4i_drm sun4i_i2s sun4i_tcon @@ -77,11 +189,34 @@ sun6i_mipi_dsi sun8i_mixer sun8i_tcon_top tcpm -tcsrcc-x1e80100 +tcsrcc_x1e80100 typec +typec_ucsi +ucsi_glink udc-core ufs-qcom +uhid +uio +uio_pdrv_genirq ulpi usb-storage +usbhid +usbnet +v4l2_mem2mem +videobuf2_common +videobuf2_dma_contig +videobuf2_memops +videobuf2_v4l2 +videocc_sm8550 +videodev +x_tables +xfrm_algo +xfrm_user xhci-plat-hcd +xor +xor_neon +xt_MASQUERADE +xt_addrtype +xt_conntrack +xt_set zinitix -- GitLab