aboutsummaryrefslogtreecommitdiffstats
path: root/GTA04
diff options
context:
space:
mode:
authorNeilBrown <neilb@suse.de>2012-07-23 10:42:58 +1000
committerNeilBrown <neilb@suse.de>2013-05-17 17:48:20 +1000
commit85da24db2af1e2ef1bfd9bb96a901f1a25c324ff (patch)
treebc34fe3878a471a95d93f6feaa5c974f7072a8e1 /GTA04
parentafc9d596ddf633da6831191319368d0bc7f6945a (diff)
downloadkernel_goldelico_gta04-85da24db2af1e2ef1bfd9bb96a901f1a25c324ff.zip
kernel_goldelico_gta04-85da24db2af1e2ef1bfd9bb96a901f1a25c324ff.tar.gz
kernel_goldelico_gta04-85da24db2af1e2ef1bfd9bb96a901f1a25c324ff.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>
Diffstat (limited to 'GTA04')
-rw-r--r--GTA04/README26
-rw-r--r--GTA04/udev-rules/hso.rules1
-rw-r--r--GTA04/udev-rules/input.rules5
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"