diff --git a/README.md b/README.md index e398fd0..d4616b5 100644 --- a/README.md +++ b/README.md @@ -63,6 +63,10 @@ make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- ${extraversion:+EXTRAVERSION=$e cp arch/arm/boot/zImage ../zImage ``` +## Misc files + +`misc-files` contains important files I've customized. + ## LinuxCNC Use LinuxCNC master branch configured for uspace. Everything should be just diff --git a/misc-files/etc/modules b/misc-files/etc/modules new file mode 100644 index 0000000..a0f486e --- /dev/null +++ b/misc-files/etc/modules @@ -0,0 +1,8 @@ +# /etc/modules: kernel modules to load at boot time. +# +# This file contains the names of kernel modules that should be loaded +# at boot time, one per line. Lines beginning with "#" are ignored. +# Parameters can be specified after the module name. + +spidev +spi_s3c64xx diff --git a/misc-files/etc/rc.local b/misc-files/etc/rc.local new file mode 100755 index 0000000..36df6fc --- /dev/null +++ b/misc-files/etc/rc.local @@ -0,0 +1,31 @@ +#!/bin/sh -e +# +# rc.local +# +# This script is executed at the end of each multiuser runlevel. +# Make sure that the script will "exit 0" on success or any other +# value on error. +# +# In order to enable or disable this script just change the execution +# bits. +# +# By default this script does nothing. + +# Tweak the fan -- this makes it start at a silent speed +# (and before fixing the dpms vs sensor problem, it made for +# a silent fan instead of a loud one when the temperature stuck) +echo 48 > /sys/devices/platform/odroidu2-fan/start_duty +echo 44 > /sys/devices/platform/odroidu2-fan/start_temp + +# Kill some powersaving... +# To fix the fan / thermal sensor problem +echo on > /sys/devices/platform/exynos4-hdmi/power/control + +# To improve spi latency +echo on > /sys/devices/platform/exynos4210-spi.1/power/control +echo on > /sys/devices/platform/samsung-idma/power/control + +# Don't blank the console +TERM=linux setterm -blank 0 < /dev/tty0 + +exit 0 diff --git a/misc-files/etc/udev/rules.d/99-spidev.rules b/misc-files/etc/udev/rules.d/99-spidev.rules new file mode 100644 index 0000000..4ef685e --- /dev/null +++ b/misc-files/etc/udev/rules.d/99-spidev.rules @@ -0,0 +1 @@ +KERNEL=="spidev*", SUBSYSTEM=="spidev", OWNER="jepler", MODE="0660"