From 1f97f47d755471418181483563c50c68034eaf2f77c74a2b18a133a749d648e8 Mon Sep 17 00:00:00 2001 From: Fabian Vogt Date: Fri, 24 Nov 2023 07:43:35 +0000 Subject: [PATCH] Accepting request 1128357 from home:Guillaume_G:branches:openSUSE:Factory:ARM:Live - Add kernel modules and some qcom firmware for X13s - boo#1217315 OBS-URL: https://build.opensuse.org/request/show/1128357 OBS-URL: https://build.opensuse.org/package/show/Virtualization:Appliances:Images:openSUSE-Tumbleweed/livecd-openSUSE?expand=0&rev=155 --- config.sh | 14 ++++++++++++-- livecd-openSUSE.changes | 5 +++++ 2 files changed, 17 insertions(+), 2 deletions(-) diff --git a/config.sh b/config.sh index c7d9e17..2bc47ac 100644 --- a/config.sh +++ b/config.sh @@ -82,6 +82,13 @@ if [ "$desktop" = "x11" ]; then rm /etc/udev/hwdb.bin fi +# Kernel modules (+ firmware) for X13s +if [ "$(arch)" == "aarch64" ]; then + echo 'add_drivers+=" clk-rpmh dispcc-sc8280xp gcc-sc8280xp gpucc-sc8280xp nvmem_qcom-spmi-sdam qcom_hwspinlock qcom_q6v5 qcom_q6v5_pas qnoc-sc8280xp pmic_glink pmic_glink_altmode smp2p spmi-pmic-arb leds-qcom-lpg "' > /etc/dracut.conf.d/x13s_modules.conf + echo 'add_drivers+=" nvme phy_qcom_qmp_pcie pcie-qcom-ep i2c_hid_of i2c_qcom_geni leds-qcom-lpg pwm_bl qrtr pmic_glink_altmode gpio_sbu_mux phy_qcom_qmp_combo panel-edp msm phy_qcom_edp "' >> /etc/dracut.conf.d/x13s_modules.conf + echo 'install_items+=" /lib/firmware/qcom/sc8280xp/LENOVO/21BX/qcadsp8280.mbn.xz /lib/firmware/qcom/sc8280xp/LENOVO/21BX/qccdsp8280.mbn.xz "' >> /etc/dracut.conf.d/x13s_modules.conf +fi + cd / # Import keys for installation @@ -106,8 +113,11 @@ zypper --non-interactive rm yast2-trans-{uk,sv,ru,ja,da,cs,sr,vi} || : # Some packages really exaggerate here rm -rf /usr/share/doc/packages/* -# Save more than 200 MiB by removing this, not very useful for lives -rm -rf /lib/firmware/{liquidio,netronome,qed,mrvl,mellanox,qcom,cypress,dpaa2,bnx2x,cxgb4} +# Save more than 150 MiB by removing this, not very useful for lives +rm -rf /lib/firmware/{liquidio,netronome,qed,mrvl,mellanox,cypress,dpaa2,bnx2x,cxgb4} +# Keep some qcom firmware for Lenovo X13s and delete others (save ~50MiB) +rm -rf /lib/firmware/qcom/{apq8016,apq8096,qcm2290,qrb4210,sdm845,sm8250,venus*,vpu*} + # The gems are unpackaged already, no need to store them twice rm -rf /usr/lib*/ruby/gems/*/cache/ diff --git a/livecd-openSUSE.changes b/livecd-openSUSE.changes index 429d3c1..c105e20 100644 --- a/livecd-openSUSE.changes +++ b/livecd-openSUSE.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Thu Nov 23 09:22:49 UTC 2023 - Guillaume GARDET + +- Add kernel modules and some qcom firmware for X13s - boo#1217315 + ------------------------------------------------------------------- Tue Nov 7 09:36:40 UTC 2023 - Fabian Vogt