From 5d83b2b8b24cf00068a800606043f675b04d75df Mon Sep 17 00:00:00 2001 From: Adeeb Shihadeh Date: Thu, 23 Jan 2025 20:06:16 -0800 Subject: [PATCH] Remove wifi kernel module (#435) * remove wifi kernel module * bump kernel --- agnos-kernel-sdm845 | 2 +- build_kernel.sh | 1 - build_system.sh | 1 - load_kernel.sh | 1 - userspace/files/wifi.service | 9 --------- userspace/services.sh | 1 - userspace/usr/comma/init.qcom.sh | 3 +++ 7 files changed, 4 insertions(+), 14 deletions(-) delete mode 100644 userspace/files/wifi.service diff --git a/agnos-kernel-sdm845 b/agnos-kernel-sdm845 index 1825660b..bf28cdf3 160000 --- a/agnos-kernel-sdm845 +++ b/agnos-kernel-sdm845 @@ -1 +1 @@ -Subproject commit 1825660b336f38267aceda31328cd88267226658 +Subproject commit bf28cdf3962f5c3b2c8a8ae1cf44cb0483144776 diff --git a/build_kernel.sh b/build_kernel.sh index 254a6b96..49f399ad 100755 --- a/build_kernel.sh +++ b/build_kernel.sh @@ -106,7 +106,6 @@ build_kernel() { mv $BOOT_IMG $OUTPUT_DIR/ cp $DIR/agnos-kernel-sdm845/out/techpack/audio/asoc/snd-soc-sdm845.ko $OUTPUT_DIR/ cp $DIR/agnos-kernel-sdm845/out/techpack/audio/asoc/codecs/snd-soc-wcd9xxx.ko $OUTPUT_DIR/ - cp $DIR/agnos-kernel-sdm845/out/drivers/staging/qcacld-3.0/wlan.ko $OUTPUT_DIR/ } # Run build_kernel in container diff --git a/build_system.sh b/build_system.sh index 8c520afb..6531fdfe 100755 --- a/build_system.sh +++ b/build_system.sh @@ -28,7 +28,6 @@ if ! ls $OUTPUT_DIR/*.ko >/dev/null 2>&1; then echo "Kernel modules missing. Run ./build_kernel.sh first" exit 1 fi -cp $OUTPUT_DIR/wlan.ko $DIR/userspace/usr/comma cp $OUTPUT_DIR/snd*.ko $DIR/userspace/usr/comma/sound/ # Download Ubuntu Base if not done already diff --git a/load_kernel.sh b/load_kernel.sh index 5aaaff94..4c5c653c 100755 --- a/load_kernel.sh +++ b/load_kernel.sh @@ -12,7 +12,6 @@ sudo dd if=/data/tmp/boot.img of=/dev/disk/by-partlabel/boot_b sudo mount -o rw,remount / sudo resize2fs $(findmnt -n -o SOURCE /) -sudo mv /data/tmp/wlan.ko /usr/comma/wlan.ko sudo mv /data/tmp/snd-soc-sdm845.ko /usr/comma/sound/snd-soc-sdm845.ko sudo mv /data/tmp/snd-soc-wcd9xxx.ko /usr/comma/sound/snd-soc-wcd9xxx.ko rm -rf /data/tmp/* diff --git a/userspace/files/wifi.service b/userspace/files/wifi.service deleted file mode 100644 index ad120f46..00000000 --- a/userspace/files/wifi.service +++ /dev/null @@ -1,9 +0,0 @@ -[Unit] -Description=Wifi - -[Service] -Type=oneshot -ExecStart=/sbin/insmod /usr/comma/wlan.ko - -[Install] -WantedBy=multi-user.target diff --git a/userspace/services.sh b/userspace/services.sh index bdf29046..27067f3b 100755 --- a/userspace/services.sh +++ b/userspace/services.sh @@ -15,7 +15,6 @@ systemctl enable lte.service systemctl enable sound.service systemctl enable weston.service systemctl enable weston-ready.service -systemctl enable wifi.service systemctl enable init-qcom.service systemctl enable power_drop_monitor.service systemctl enable brightnessd.service diff --git a/userspace/usr/comma/init.qcom.sh b/userspace/usr/comma/init.qcom.sh index 0adde8a7..b207ac4c 100755 --- a/userspace/usr/comma/init.qcom.sh +++ b/userspace/usr/comma/init.qcom.sh @@ -4,3 +4,6 @@ for i in {0..7}; do echo "related" | sudo tee /sys/bus/msm_subsys/devices/subsys${i}/restart_level done + +# boot wifi +echo 1 | sudo tee /sys/kernel/boot_wlan/boot_wlan