diff options
author | NeilBrown <neilb@suse.de> | 2012-07-23 10:42:58 +1000 |
---|---|---|
committer | NeilBrown <neilb@suse.de> | 2012-11-30 11:38:04 +1100 |
commit | 236168c649dacfe2ff93df4677bb986c6e016a5b (patch) | |
tree | 3107571d8da28f5a79ffb05004f261ee52dd0e0b | |
parent | 3e14e8721ffca3bcd95cc6d4239b9c46eec20c5e (diff) | |
download | kernel_goldelico_gta04-236168c649dacfe2ff93df4677bb986c6e016a5b.zip kernel_goldelico_gta04-236168c649dacfe2ff93df4677bb986c6e016a5b.tar.gz kernel_goldelico_gta04-236168c649dacfe2ff93df4677bb986c6e016a5b.tar.bz2 |
GTA04: Add 'GTA04' directory for useful stuff.
Currently:
README: explaining other files and how to compile
udev-rules/: config files to ensure stable device names.
Signed-off-by: NeilBrown <neilb@suse.de>
-rw-r--r-- | GTA04/README | 26 | ||||
-rw-r--r-- | GTA04/udev-rules/hso.rules | 1 | ||||
-rw-r--r-- | GTA04/udev-rules/input.rules | 5 |
3 files changed, 32 insertions, 0 deletions
diff --git a/GTA04/README b/GTA04/README new file mode 100644 index 0000000..f70870f --- /dev/null +++ b/GTA04/README @@ -0,0 +1,26 @@ + +- The files in udev-rules should be copies to + /etc/udev/rules.d + this will ensure stable names in /dev for input devices and + the ttys that talk to the 3G modem. + +- Kernel can be compiled using a cross compiler. I use + angstrom-2011.03-x86_64-linux-armv7a-linux-gnueabi-toolchain.tar.bz2 + from http://www.angstrom-distribution.org/toolchains/ + + This goes in /usr/local/angstom. + I then compile with + + export PATH=$PATH:/usr/local/angstrom/arm/bin + export CROSS_COMPILE=/usr/local/angstrom/arm/bin/arm-angstrom-linux-gnueabi- + mkdir O + make O=O gta04_defconfig + make O=O -j8 uImage + rm -r M; mkdir M + cp O/arch/arm/book/uImage M + make O=O INSTALL_MOD_STRIP=1 INSTALL_MOD_PATH=`pwd`/M modules_install + + + then the uImage and modules are in 'M' ready to be copied + + diff --git a/GTA04/udev-rules/hso.rules b/GTA04/udev-rules/hso.rules new file mode 100644 index 0000000..a0b0597 --- /dev/null +++ b/GTA04/udev-rules/hso.rules @@ -0,0 +1 @@ +SUBSYSTEM=="tty", KERNEL=="ttyHS*", ATTR{hsotype}=="?*", ATTRS{busnum}=="?*", SYMLINK+="ttyHS_$attr{hsotype}", OPTIONS+="string_escape=replace" diff --git a/GTA04/udev-rules/input.rules b/GTA04/udev-rules/input.rules new file mode 100644 index 0000000..acb5c17 --- /dev/null +++ b/GTA04/udev-rules/input.rules @@ -0,0 +1,5 @@ +SUBSYSTEM=="input", KERNEL=="event[0-9]*", ATTRS{modalias}=="input:*-e0,15,*f50,51*", SYMLINK="input/rumble" +SUBSYSTEM=="input", KERNEL=="event[0-9]*", ATTRS{modalias}=="input:*-e0*,3,*a0,1,*18,*", SYMLINK+="input/touchscreen" +SUBSYSTEM=="input", KERNEL=="event[0-9]*", ATTRS{modalias}=="input:*-e0,3,*a0,1,2,*", SYMLINK+="input/accel" +SUBSYSTEM=="input", KERNEL=="event[0-9]*", ATTRS{modalias}=="input:*-e0,1,*k74,*", SYMLINK+="input/power" +SUBSYSTEM=="input", KERNEL=="event[0-9]*", ATTRS{modalias}=="input:*-e0,1,*kA9,*", SYMLINK+="input/aux" |