Skip to content

Commit

Permalink
Remove wifi kernel module (#435)
Browse files Browse the repository at this point in the history
* remove wifi kernel module

* bump kernel
  • Loading branch information
adeebshihadeh authored Jan 24, 2025
1 parent d6b496d commit 5d83b2b
Show file tree
Hide file tree
Showing 7 changed files with 4 additions and 14 deletions.
2 changes: 1 addition & 1 deletion agnos-kernel-sdm845
1 change: 0 additions & 1 deletion build_kernel.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 0 additions & 1 deletion build_system.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 0 additions & 1 deletion load_kernel.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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/*
Expand Down
9 changes: 0 additions & 9 deletions userspace/files/wifi.service

This file was deleted.

1 change: 0 additions & 1 deletion userspace/services.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 3 additions & 0 deletions userspace/usr/comma/init.qcom.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 5d83b2b

Please sign in to comment.