55 | | The fan runs at specific setpoints. |
56 | | Note also the processor will throttle down if the fan isn't able to achieve proper cooling. |
| 55 | The LED will present a green heartbeat pattern is shown once the board is booted into Linux. |
| 56 | |
| 57 | To disable the heartbeat LED: |
| 58 | {{{ |
| 59 | root@jammy-malibu:~# echo none > /sys/class/leds/green\:heartbeat/trigger #disable default green heartbeat |
| 60 | root@jammy-malibu:~# echo 255 > /sys/class/leds/red\:status/brightness #set LED to solid RED |
| 61 | }}} |
| 62 | |
| 63 | To see more Linux LED examples, see here: [wiki:linux/led] |
| 64 | |
| 65 | == Thermal & Cooling Fan |
| 66 | |
| 67 | The fan runs at specific set points. |
| 68 | The trip points are set at 50C, 60C and 80C (as shown in the device tree [https://github.com/Gateworks/linux-malibu/blob/v6.1-malibu/arch/arm64/boot/dts/marvell/cn9130-malibu-gw8901.dts#L413 here]) |
| 69 | |
| 70 | Note also the processor will throttle down if the fan isn't able to achieve proper cooling with the fan. |
| 71 | |
| 72 | The GW8901 uses standard Linux cooling-maps, thermal-zones and the pwm-fan driver. |
| 73 | |
| 74 | There are several temperature sensors on the board, identified as 'thermal_zones'. |
| 75 | These are shown in Linux under /sys/class/thermal: |
| 76 | {{{ |
| 77 | root@jammy-malibu:~# ls -la /sys/class/thermal/ |
| 78 | total 0 |
| 79 | drwxr-xr-x 2 root root 0 Jun 27 18:28 . |
| 80 | drwxr-xr-x 62 root root 0 Jun 27 18:28 .. |
| 81 | lrwxrwxrwx 1 root root 0 Jun 27 18:28 cooling_device0 -> ../../devices/virtual/thermal/cooling_device0 |
| 82 | lrwxrwxrwx 1 root root 0 Jun 27 18:28 cooling_device1 -> ../../devices/virtual/thermal/cooling_device1 |
| 83 | lrwxrwxrwx 1 root root 0 Jun 27 18:31 cooling_device2 -> ../../devices/virtual/thermal/cooling_device2 |
| 84 | lrwxrwxrwx 1 root root 0 Jun 27 18:28 thermal_zone0 -> ../../devices/virtual/thermal/thermal_zone0 |
| 85 | lrwxrwxrwx 1 root root 0 Jun 27 18:28 thermal_zone1 -> ../../devices/virtual/thermal/thermal_zone1 |
| 86 | lrwxrwxrwx 1 root root 0 Jun 27 18:28 thermal_zone2 -> ../../devices/virtual/thermal/thermal_zone2 |
| 87 | lrwxrwxrwx 1 root root 0 Jun 27 18:28 thermal_zone3 -> ../../devices/virtual/thermal/thermal_zone3 |
| 88 | lrwxrwxrwx 1 root root 0 Jun 27 18:28 thermal_zone4 -> ../../devices/virtual/thermal/thermal_zone4 |
| 89 | lrwxrwxrwx 1 root root 0 Jun 27 18:28 thermal_zone5 -> ../../devices/virtual/thermal/thermal_zone5 |
| 90 | |
| 91 | }}} |
| 92 | |
| 93 | An example temperature for thermal_zone0 would be 60738, or 60738/1000=60.738 degrees Celsius: |
| 94 | {{{ |
| 95 | root@jammy-malibu:~# cat /sys/class/thermal/thermal_zone0/temp |
| 96 | 60738 |
| 97 | }}} |
| 98 | |
| 99 | The zones are labeled below. The AP stands for application processor, or the main CPU, with a sensor for each core of the quad core CPU. The CP0 stands for 'co-processor'. |
| 100 | {{{ |
| 101 | root@jammy-malibu:~# cat /sys/class/thermal/thermal_zone*/type |
| 102 | ap-thermal-ic |
| 103 | ap-thermal-cpu0 |
| 104 | ap-thermal-cpu1 |
| 105 | ap-thermal-cpu2 |
| 106 | ap-thermal-cpu3 |
| 107 | cp0-thermal-ic |
| 108 | |
| 109 | }}} |
| 110 | |
| 111 | |