X735-script: Difference between revisions

Line 340: Line 340:
1.  Check for Missing Files:
1.  Check for Missing Files:
     First, verify that the files are missing:
     First, verify that the files are missing:
    ```bash
     <code>ls /boot/firmware/overlays/ | grep pwm</code>
     <code>ls /boot/firmware/overlays/ | grep pwm</code>
    ```
     *(If no results are shown, the files are missing)*
     *(If no results are shown, the files are missing)*


2.  Download the Required Overlays:
2.  Download the Required Overlays:
     Manually download the necessary `.dtbo` files directly to your overlays directory. You can use `wget` for this:
     Manually download the necessary `.dtbo` files directly to your overlays directory. You can use `wget` for this:
     ```bash
     <code>cd /tmp</code>
    cd /tmp
     <code>wget https://raw.githubusercontent.com/raspberrypi/firmware/master/boot/overlays/pwm-2chan.dtbo</code>
     wget https://raw.githubusercontent.com/raspberrypi/firmware/master/boot/overlays/pwm-2chan.dtbo
     <code>wget https://raw.githubusercontent.com/raspberrypi/firmware/master/boot/overlays/pwm-gpio-fan.dtbo</code>
     wget https://raw.githubusercontent.com/raspberrypi/firmware/master/boot/overlays/pwm-gpio-fan.dtbo
     # ... (Download other pwm*.dtbo files if needed)
     # ... (Download other pwm*.dtbo files if needed)
      
      
     # Move them to the correct directory
     # Move them to the correct directory
     sudo mv pwm*.dtbo /boot/firmware/overlays/
     <code>sudo mv pwm*.dtbo /boot/firmware/overlays/</code>
    ```


3.  Configure and Reboot:
3.  Configure and Reboot:
     Ensure your `/boot/firmware/config.txt` contains the correct overlay line (usually handled by our script), then reboot:
     Ensure your `/boot/firmware/config.txt` contains the correct overlay line (usually handled by our script), then reboot:
     ```bash
     <code>sudo reboot</code>
    sudo reboot
    ```


4.  Verification:
4.  Verification:
     After rebooting, check if the overlay loaded successfully:
     After rebooting, check if the overlay loaded successfully:
     ```bash
     <code>dmesg | grep -i pwm</code>
    dmesg | grep -i pwm
    ```
     You should now see logs indicating the PWM overlay has been loaded, and the fan script should function correctly.
     You should now see logs indicating the PWM overlay has been loaded, and the fan script should function correctly.
</div>
</div>