From 85da24db2af1e2ef1bfd9bb96a901f1a25c324ff Mon Sep 17 00:00:00 2001 From: NeilBrown Date: Mon, 23 Jul 2012 10:42:58 +1000 Subject: 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 --- GTA04/README | 26 ++++++++++++++++++++++++++ GTA04/udev-rules/hso.rules | 1 + GTA04/udev-rules/input.rules | 5 +++++ 3 files changed, 32 insertions(+) create mode 100644 GTA04/README create mode 100644 GTA04/udev-rules/hso.rules create mode 100644 GTA04/udev-rules/input.rules (limited to 'GTA04') 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" -- cgit v1.1