Kernel Config Flags

odroidxu4_defconfig: Build Exynos RTC internal

23. Oktober 2016 Kernel Config Flags No comments

Build Exynos RTC internal

  • If s5p RTC is not built into the kernel the time can’t be set from RTC upon booting. If built as a module initial time set from RTC to system will fail.

View 2 arch/arm/configs/odroidxu4_defconfig @@ -3611,7 +3611,7 @@ CONFIG_RTC_INTF_DEV=y # CONFIG_RTC_DRV_RX8025 is not set # CONFIG_RTC_DRV_EM3027 is not set # CONFIG_RTC_DRV_RV8803 is not set -CONFIG_RTC_DRV_S5M=m +CONFIG_RTC_DRV_S5M=y # # SPI RTC drivers

odroidxu4_defconfig: Add needed thermal option

21. Oktober 2016 Kernel Config Flags No comments

Add needed thermal option

  • This feature enables user writeable thermal trip points. This allows tunable fan control:
echo 65000 > /sys/devices/virtual/thermal/thermal_zone0/trip_point_0_temp
echo 75000 > /sys/devices/virtual/thermal/thermal_zone0/trip_point_1_temp
echo 82000 > /sys/devices/virtual/thermal/thermal_zone0/trip_point_2_temp
  • Changes odroidxu4_defconfig:
View
2 arch/arm/configs/odroidxu4_defconfig
@@ -2259,7 +2259,7 @@ CONFIG_SENSORS_INA2XX=m
CONFIG_THERMAL=y
CONFIG_THERMAL_HWMON=y
CONFIG_THERMAL_OF=y
-# CONFIG_THERMAL_WRITABLE_TRIPS is not set
+CONFIG_THERMAL_WRITABLE_TRIPS=y
CONFIG_THERMAL_DEFAULT_GOV_STEP_WISE=y
# CONFIG_THERMAL_DEFAULT_GOV_FAIR_SHARE is not set
# CONFIG_THERMAL_DEFAULT_GOV_USER_SPACE is not set
  • GitHub commit and author
  • Read temperature:

root@hiperborea ~ # ls -l /sys/devices/virtual/thermal total 0 drwxr-xr-x 3 root root 0 Okt 23 12:21 cooling_device0 drwxr-xr-x 3 root root 0 Okt 23 12:21 cooling_device1 drwxr-xr-x 3 root root 0 Okt 23 12:21 cooling_device2 drwxr-xr-x 3 root root 0 Okt 23 12:21 thermal_zone0 drwxr-xr-x 3 root root 0 Okt 23 12:21 thermal_zone1 drwxr-xr-x 3 root root 0 Okt 23 12:21 thermal_zone2 drwxr-xr-x 3 root root 0 Okt 23 12:21 thermal_zone3 drwxr-xr-x 3 root root 0 Okt 23 12:21 thermal_zone4 root@hiperborea ~ # cat /sys/devices/virtual/thermal/thermal_zone*/temp 46000 44000 48000 46000 26000