Gaming Cape software update

All interested in http://campaign.circuithub.com/beaglebone-gamingcape,

I'm trying to make sure the kernel and software image are suitable for
giving the green light to CircuitHub to start shipping the Gaming
Capes. I wanted to give people a chance to give some feedback on what
ideally should be done, save off some notes on my current
progress---and enable you to try it out if you happen to have built
one of these capes.

I've been starting by patching up the 3.8 kernel
(firmware/capes/BEAGLEBOY-0013.dts):

http://builds.beagleboard.org/builders/build-kernel/builds/45

On-going work on the install instructions are at:

https://github.com/jadonk/gamingcape/blob/master/software/install.sh

If the EEPROM isn't programmed, you'll need to short the WP line to
ground and run:

https://github.com/jadonk/gamingcape/blob/master/software/write_eeprom.sh

What I haven't yet worked out, but am looking at resolving are:

* adding a joystick driver for the joystick (not just analog values)
   --- my current thoughts are either using /dev/uinput and a
userspace application or
   --- modifying the input/joystick/analog.c driver to use device tree
and ADC converters
* get the mouse working under X11 using the joystick and buttons
   --- I've hacked on xorg.conf files to get xserver-xorg-input-evdev
drivers loaded, but I don't seem to be seeing the the "mouse" clicks
(/var/log/Xorg.0.log - http://paste.debian.net/198458/)
* update the emulator for updated input
* fix the magnetometer driver and second accelerometer driver (first
accelerometer and gyro are working)
* bundling into the final image

After rebooting, you'll see a 'dmesg' log something like
(http://paste.debian.net/198392/):

[ 0.000000] Booting Linux on physical CPU 0x0
[ 0.000000] Initializing cgroup subsys cpu
[ 0.000000] Linux version
3.8.13-git81e3a418466a53b3c9649cafc5b555e361a9846d
(buildbot@ip-10-228-35-177) (gcc version 4.9.3 20141031 (prerelease)
(Linaro GCC 2014.11) ) #76 SMP Wed Jun 3 17:56:33 UTC 2015
[ 0.000000] CPU: ARMv7 Processor [413fc082] revision 2 (ARMv7), cr=50c5387d
[ 0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing
instruction cache
[ 0.000000] Machine: Generic AM33XX (Flattened Device Tree), model:
TI AM335x BeagleBone
[ 0.000000] Memory policy: ECC disabled, Data cache writeback
[ 0.000000] On node 0 totalpages: 130816
[ 0.000000] free_area_init_node: node 0, pgdat c08cb6c0,
node_mem_map c0948000
[ 0.000000] Normal zone: 1024 pages used for memmap
[ 0.000000] Normal zone: 0 pages reserved
[ 0.000000] Normal zone: 129792 pages, LIFO batch:31
[ 0.000000] AM335X ES2.0 (l2cache sgx neon )
[ 0.000000] PERCPU: Embedded 9 pages/cpu @c0d58000 s14080 r8192 d14592 u36864
[ 0.000000] pcpu-alloc: s14080 r8192 d14592 u36864 alloc=9*4096
[ 0.000000] pcpu-alloc: [0] 0
[ 0.000000] Built 1 zonelists in Zone order, mobility grouping on.
Total pages: 129792
[ 0.000000] Kernel command line: console=tty0
console=ttyO0,115200n8 root=/dev/mmcblk0p2 rootfstype=ext4 rootwait
fixrtc quiet init=/lib/systemd/systemd
[ 0.000000] PID hash table entries: 2048 (order: 1, 8192 bytes)
[ 0.000000] Dentry cache hash table entries: 65536 (order: 6, 262144 bytes)
[ 0.000000] Inode-cache hash table entries: 32768 (order: 5, 131072 bytes)
[ 0.000000] __ex_table already sorted, skipping sort
[ 0.000000] allocated 1048576 bytes of page_cgroup
[ 0.000000] please try 'cgroup_disable=memory' option if you don't
want memory cgroups
[ 0.000000] Memory: 511MB = 511MB total
[ 0.000000] Memory: 505276k/505276k available, 19012k reserved, 0K highmem
[ 0.000000] Virtual kernel memory layout:
[ 0.000000] vector : 0xffff0000 - 0xffff1000 ( 4 kB)
[ 0.000000] fixmap : 0xfff00000 - 0xfffe0000 ( 896 kB)
[ 0.000000] vmalloc : 0xe0800000 - 0xff000000 ( 488 MB)
[ 0.000000] lowmem : 0xc0000000 - 0xe0000000 ( 512 MB)
[ 0.000000] pkmap : 0xbfe00000 - 0xc0000000 ( 2 MB)
[ 0.000000] modules : 0xbf800000 - 0xbfe00000 ( 6 MB)
[ 0.000000] .text : 0xc0008000 - 0xc08045e4 (8178 kB)
[ 0.000000] .init : 0xc0805000 - 0xc0845700 ( 258 kB)
[ 0.000000] .data : 0xc0846000 - 0xc08ce680 ( 546 kB)
[ 0.000000] .bss : 0xc08ce680 - 0xc0947e00 ( 486 kB)
[ 0.000000] Hierarchical RCU implementation.
[ 0.000000] RCU restricting CPUs from NR_CPUS=4 to nr_cpu_ids=1.
[ 0.000000] NR_IRQS:0 nr_irqs:0 0
[ 0.000000] IRQ: Found an INTC at 0xfa200000 (revision 5.0) with
128 interrupts
[ 0.000000] Total of 128 interrupts on 1 active controller
[ 0.000000] OMAP clockevent source: GPTIMER1 at 24000000 Hz
[ 0.000000] sched_clock: 32 bits at 24MHz, resolution 41ns, wraps
every 178956ms
[ 0.000000] OMAP clocksource: GPTIMER2 at 24000000 Hz
[ 0.000000] Console: colour dummy device 80x30
[ 0.000000] console [tty0] enabled
[ 0.000364] Calibrating delay loop... 993.47 BogoMIPS (lpj=969728)
[ 0.029186] pid_max: default: 32768 minimum: 301
[ 0.029318] Security Framework initialized
[ 0.029373] Mount-cache hash table entries: 512
[ 0.035220] Initializing cgroup subsys cpuacct
[ 0.035241] Initializing cgroup subsys memory
[ 0.035277] Initializing cgroup subsys blkio
[ 0.035364] CPU: Testing write buffer coherency: ok
[ 0.035733] CPU0: thread -1, cpu 0, socket -1, mpidr 0
[ 0.035787] Setting up static identity map for 0x804d9da8 - 0x804d9df4
[ 0.036692] Brought up 1 CPUs
[ 0.036708] SMP: Total of 1 processors activated (993.47 BogoMIPS).
[ 0.037491] devtmpfs: initialized
[ 0.045874] omap_hwmod: wd_timer2: _wait_target_disable failed
[ 0.097984] pinctrl core: initialized pinctrl subsystem
[ 0.098118] rstctl core: initialized rstctl subsystem
[ 0.098398] regulator-dummy: no parameters
[ 0.098700] NET: Registered protocol family 16
[ 0.099237] DMA: preallocated 256 KiB pool for atomic coherent allocations
[ 0.104836] pinctrl-single 44e10800.pinmux: 142 pins at pa f9e10800 size 568
[ 0.105433] platform 49000000.edma: alias fck already exists
[ 0.105451] platform 49000000.edma: alias fck already exists
[ 0.105464] platform 49000000.edma: alias fck already exists
[ 0.106055] gpiochip_add: registered GPIOs 0 to 31 on device: gpio
[ 0.106151] OMAP GPIO hardware version 0.1
[ 0.106919] gpiochip_add: registered GPIOs 32 to 63 on device: gpio
[ 0.107604] gpiochip_add: registered GPIOs 64 to 95 on device: gpio
[ 0.108262] gpiochip_add: registered GPIOs 96 to 127 on device: gpio
[ 0.108512] of_get_named_gpio_flags exited with status 52
[ 0.108530] gpio-rctrl rstctl.4: loaded OK
[ 0.111852] No ATAGs?
[ 0.111867] hw-breakpoint: debug architecture 0x4 unsupported.
[ 0.113099] cpsw.0: No hwaddr in dt. Using c8:a0:30:ba:ed:ca from efuse
[ 0.113117] cpsw.1: No hwaddr in dt. Using c8:a0:30:ba:ed:cc from efuse
[ 0.121257] bio: create slab <bio-0> at 0
[ 0.127383] edma-dma-engine edma-dma-engine.0: TI EDMA DMA engine driver
[ 0.127535] of_get_named_gpio_flags: can't parse gpios property
[ 0.127658] vmmcsd_fixed: 3300 mV
[ 0.129216] SCSI subsystem initialized
[ 0.129447] usbcore: registered new interface driver usbfs
[ 0.129520] usbcore: registered new interface driver hub
[ 0.129714] usbcore: registered new device driver usb
[ 0.130950] omap_i2c 44e0b000.i2c: bus 0 rev0.11 at 400 kHz
[ 0.131872] input: tps65217_pwr_but as
/devices/ocp.3/44e0b000.i2c/i2c-0/0-0024/input/input0
[ 0.133110] DCDC1: at 1500 mV
[ 0.133939] vdd_mpu: 925 <--> 1325 mV at 1325 mV
[ 0.134756] vdd_core: 925 <--> 1150 mV at 1125 mV
[ 0.135550] LDO1: at 1800 mV
[ 0.136336] LDO2: at 3300 mV
[ 0.137864] LDO3: 1800 mV
[ 0.138670] LDO4: at 3300 mV
[ 0.139387] tps65217 0-0024: TPS65217 ID 0xe version 1.2
[ 0.139835] omap_i2c 44e0b000.i2c: unable to select pin group
[ 0.140279] omap_i2c 4819c000.i2c: bus 1 rev0.11 at 100 kHz
[ 0.141657] omap_i2c 4819c000.i2c: unable to select pin group
[ 0.141805] media: Linux media interface: v0.10
[ 0.141871] Linux video capture interface: v2.00
[ 0.141941] pps_core: LinuxPPS API ver. 1 registered
[ 0.141950] pps_core: Software ver. 5.3.6 - Copyright 2005-2007
Rodolfo Giometti <giometti@linux.it>
[ 0.141975] PTP clock support registered
[ 0.142375] Advanced Linux Sound Architecture Driver Initialized.
[ 0.143016] NetLabel: Initializing
[ 0.143028] NetLabel: domain hash size = 128
[ 0.143034] NetLabel: protocols = UNLABELED CIPSOv4
[ 0.143097] NetLabel: unlabeled traffic allowed by default
[ 0.143289] Switching to clocksource gp_timer
[ 0.173979] NET: Registered protocol family 2
[ 0.174642] TCP established hash table entries: 4096 (order: 3, 32768 bytes)
[ 0.174723] TCP bind hash table entries: 4096 (order: 4, 81920 bytes)
[ 0.174822] TCP: Hash tables configured (established 4096 bind 4096)
[ 0.174889] TCP: reno registered
[ 0.174904] UDP hash table entries: 256 (order: 1, 12288 bytes)
[ 0.174930] UDP-Lite hash table entries: 256 (order: 1, 12288 bytes)
[ 0.175157] NET: Registered protocol family 1
[ 0.175548] RPC: Registered named UNIX socket transport module.
[ 0.175559] RPC: Registered udp transport module.
[ 0.175566] RPC: Registered tcp transport module.
[ 0.175572] RPC: Registered tcp NFSv4.1 backchannel transport module.
[ 0.175790] Trying to unpack rootfs image as initramfs...
[ 0.369821] Freeing initrd memory: 2828K
[ 0.370166] hw perfevents: enabled with ARMv7 Cortex-A8 PMU driver,
5 counters available
[ 0.370428] CPU PMU: attempt to register multiple PMU devices!
[ 0.370450] arm-pmu: probe of arm-pmu failed with error -28
[ 0.370754] omap2_mbox_probe: platform not supported
[ 0.524475] VFS: Disk quotas dquot_6.5.2
[ 0.524602] Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[ 0.525289] NFS: Registering the id_resolver key type
[ 0.525355] Key type id_resolver registered
[ 0.525363] Key type id_legacy registered
[ 0.525630] fuse init (API version 7.20)
[ 0.526018] Btrfs loaded
[ 0.526125] msgmni has been set to 992
[ 0.527759] Block layer SCSI generic (bsg) driver version 0.4
loaded (major 248)
[ 0.527775] io scheduler noop registered
[ 0.527783] io scheduler deadline registered
[ 0.527805] io scheduler cfq registered (default)
[ 0.529018] tps65217-bl tps65217-bl: no platform data provided
[ 0.529058] tps65217-bl: probe of tps65217-bl failed with error -22
[ 0.529578] Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled
[ 0.530928] omap_uart 44e09000.serial: did not get pins for uart0 error: -19
[ 0.531199] 44e09000.serial: ttyO0 at MMIO 0x44e09000 (irq = 72) is
a OMAP UART0
[ 0.543055] console [ttyO0] enabled
[ 0.543696] [drm] Initialized drm 1.1.0 20060810
[ 0.550844] brd: module loaded
[ 0.554414] loop: module loaded
[ 0.554499] at24 0-0050: 32768 byte 24c256 EEPROM, writable, 1 bytes/write
[ 0.554543] at24 1-0054: 32768 byte 24c256 EEPROM, writable, 1 bytes/write
[ 0.554579] at24 1-0055: 32768 byte 24c256 EEPROM, writable, 1 bytes/write
[ 0.554614] at24 1-0056: 32768 byte 24c256 EEPROM, writable, 1 bytes/write
[ 0.554649] at24 1-0057: 32768 byte 24c256 EEPROM, writable, 1 bytes/write
[ 0.561372] bone-capemgr bone_capemgr.9: Baseboard:
'A335BNLT,0A5B,2113BBBK1743'
[ 0.561396] bone-capemgr bone_capemgr.9:
compatible-baseboard=ti,beaglebone-black
[ 0.585480] bone-capemgr bone_capemgr.9: slot #0: 'BeagleBone
Gaming Cape,0013,CircuitHub,BEAGLEBOY'
[ 0.616018] bone-capemgr bone_capemgr.9: slot #1: No cape found
[ 0.653127] bone-capemgr bone_capemgr.9: slot #2: No cape found
[ 0.690235] bone-capemgr bone_capemgr.9: slot #3: No cape found
[ 0.696449] bone-capemgr bone_capemgr.9: slot #4: specific override
[ 0.696472] bone-capemgr bone_capemgr.9: bone: Using override
eeprom data at slot 4
[ 0.696486] bone-capemgr bone_capemgr.9: slot #4:
'Bone-LT-eMMC-2G,00A0,Texas Instrument,BB-BONE-EMMC-2G'
[ 0.696568] bone-capemgr bone_capemgr.9: slot #5: specific override
[ 0.696588] bone-capemgr bone_capemgr.9: bone: Using override
eeprom data at slot 5
[ 0.696602] bone-capemgr bone_capemgr.9: slot #5:
'Bone-Black-HDMI,00A0,Texas Instrument,BB-BONELT-HDMI'
[ 0.696680] bone-capemgr bone_capemgr.9: slot #6: specific override
[ 0.696698] bone-capemgr bone_capemgr.9: bone: Using override
eeprom data at slot 6
[ 0.696712] bone-capemgr bone_capemgr.9: slot #6:
'Bone-Black-HDMIN,00A0,Texas Instrument,BB-BONELT-HDMIN'
[ 0.697027] bone-capemgr bone_capemgr.9: loader: before slot-0
BEAGLEBOY:0013 (prio 0)
[ 0.697042] bone-capemgr bone_capemgr.9: loader: check slot-0
BEAGLEBOY:0013 (prio 0)
[ 0.697118] bone-capemgr bone_capemgr.9: loader: before slot-4
BB-BONE-EMMC-2G:00A0 (prio 1)
[ 0.697130] bone-capemgr bone_capemgr.9: loader: check slot-4
BB-BONE-EMMC-2G:00A0 (prio 1)
[ 0.697199] bone-capemgr bone_capemgr.9: loader: before slot-5
BB-BONELT-HDMI:00A0 (prio 1)
[ 0.697211] bone-capemgr bone_capemgr.9: loader: check slot-5
BB-BONELT-HDMI:00A0 (prio 1)
[ 0.697243] bone-capemgr bone_capemgr.9: initialized OK.
[ 0.697713] bone-capemgr bone_capemgr.9: loader: after slot-0
BEAGLEBOY:0013 (prio 0)
[ 0.697730] bone-capemgr bone_capemgr.9: slot #0: Requesting part
number/version based 'BEAGLEBOY-0013.dtbo
[ 0.697745] bone-capemgr bone_capemgr.9: slot #0: Requesting
firmware 'BEAGLEBOY-0013.dtbo' for board-name 'BeagleBone Gaming
Cape', version '0013'
[ 0.697979] bone-capemgr bone_capemgr.9: slot #0: dtbo
'BEAGLEBOY-0013.dtbo' loaded; converting to live tree
[ 0.698653] bone-capemgr bone_capemgr.9: slot #0: #7 overlays
[ 0.699691] ehrpwm 48302200.ehrpwm: unable to select pin group
[ 0.700174] bone-capemgr bone_capemgr.9: loader: check slot-4
BB-BONE-EMMC-2G:00A0 (prio 1)
[ 0.701200] OneNAND driver initializing
[ 0.702062] bone-capemgr bone_capemgr.9: loader: check slot-5
BB-BONELT-HDMI:00A0 (prio 1)
[ 0.702189] usbcore: registered new interface driver cdc_ether
[ 0.702238] usbcore: registered new interface driver rndis_host
[ 0.702345] usbcore: registered new interface driver cdc_ncm
[ 0.704146] usbcore: registered new interface driver cdc_acm
[ 0.704157] cdc_acm: USB Abstract Control Model driver for USB
modems and ISDN adapters
[ 0.704165] Initializing USB Mass Storage driver...
[ 0.704250] usbcore: registered new interface driver usb-storage
[ 0.704257] USB Mass Storage support registered.
[ 0.704402] musb-hdrc: version 6.0, ?dma?, otg (peripheral+host)
[ 0.704613] musb-hdrc musb-hdrc.0.auto: pdev->id = 0
[ 0.704628] musb-hdrc musb-hdrc.0.auto:
drivers/usb/musb/musb_dsps.c:480 dsps_musb_init: OK
[ 0.704653] musb-hdrc: ConfigData=0xde (UTMI-8, dyn FIFOs, bulk
combine, bulk split, HB-ISO Rx, HB-ISO Tx, SoftConn)
[ 0.704664] musb-hdrc: MHDRC RTL version 2.0
[ 0.704672] musb-hdrc: setup fifo_mode 4
[ 0.704689] musb-hdrc: 28/31 max ep, 16384/16384 memory
[ 0.704767] musb-hdrc musb-hdrc.0.auto: *** mode=3
[ 0.704777] musb-hdrc musb-hdrc.0.auto: *** power=250
[ 0.705158] bone-capemgr bone_capemgr.9: loader: before slot-6
BB-BONELT-HDMIN:00A0 (prio 2)
[ 0.705173] bone-capemgr bone_capemgr.9: loader: check slot-6
BB-BONELT-HDMIN:00A0 (prio 2)
[ 0.705187] bone-capemgr bone_capemgr.9: loader: check slot-6
BB-BONELT-HDMIN:00A0 (prio 2)
[ 0.706417] bone-iio-helper helper.12: Could not get AIN0 analog input
[ 0.713374] musb-hdrc musb-hdrc.1.auto: pdev->id = 1
[ 0.713389] musb-hdrc musb-hdrc.1.auto:
drivers/usb/musb/musb_dsps.c:480 dsps_musb_init: OK
[ 0.713414] musb-hdrc: ConfigData=0xde (UTMI-8, dyn FIFOs, bulk
combine, bulk split, HB-ISO Rx, HB-ISO Tx, SoftConn)
[ 0.713423] musb-hdrc: MHDRC RTL version 2.0
[ 0.713431] musb-hdrc: setup fifo_mode 4
[ 0.713444] musb-hdrc: 28/31 max ep, 16384/16384 memory
[ 0.713514] musb-hdrc musb-hdrc.1.auto: *** mode=1
[ 0.713525] musb-hdrc musb-hdrc.1.auto: *** power=250
[ 0.713535] musb-hdrc musb-hdrc.1.auto: MUSB HDRC host driver
[ 0.713816] musb-hdrc musb-hdrc.1.auto: new USB bus registered,
assigned bus number 1
[ 0.713841] musb-hdrc musb-hdrc.1.auto: supports USB remote wakeup
[ 0.713908] usb usb1: default language 0x0409
[ 0.713942] usb usb1: udev 1, busnum 1, minor = 0
[ 0.713953] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[ 0.713964] usb usb1: New USB device strings: Mfr=3, Product=2,
SerialNumber=1
[ 0.713974] usb usb1: Product: MUSB HDRC host driver
[ 0.713984] usb usb1: Manufacturer: Linux
3.8.13-git81e3a418466a53b3c9649cafc5b555e361a9846d musb-hcd
[ 0.713993] usb usb1: SerialNumber: musb-hdrc.1.auto
[ 0.714387] usb usb1: usb_probe_device
[ 0.714403] usb usb1: configuration #1 chosen from 1 choice
[ 0.714443] usb usb1: adding 1-0:1.0 (config #1, interface 0)
[ 0.714550] hub 1-0:1.0: usb_probe_interface
[ 0.714563] hub 1-0:1.0: usb_probe_interface - got id
[ 0.714580] hub 1-0:1.0: USB hub found
[ 0.714602] hub 1-0:1.0: 1 port detected
[ 0.714612] hub 1-0:1.0: standalone hub
[ 0.714621] hub 1-0:1.0: individual port power switching
[ 0.714630] hub 1-0:1.0: no over-current protection
[ 0.714639] hub 1-0:1.0: Single TT
[ 0.714649] hub 1-0:1.0: TT requires at most 8 FS bit times (666 ns)
[ 0.714659] hub 1-0:1.0: power on to power good time: 10ms
[ 0.714680] hub 1-0:1.0: local power source is good
[ 0.714736] hub 1-0:1.0: enabling power on all ports
[ 0.715347] mousedev: PS/2 mouse device common for all mice
[ 0.716406] lsm303dlhc_acc accelerometer driver: init
[ 0.716452] i2c-core: driver [lsm303dlhc_acc] using legacy suspend method
[ 0.716460] i2c-core: driver [lsm303dlhc_acc] using legacy resume method
[ 0.716473] lsm303dlhc_mag driver: init
[ 0.716514] lsm330_acc accelerometer driver: init
[ 0.716566] i2c-core: driver [lsm330_acc] using legacy suspend method
[ 0.716573] i2c-core: driver [lsm330_acc] using legacy resume method
[ 0.716585] lsm330_gyr: gyroscope sysfs driver init
[ 0.717112] omap_rtc 44e3e000.rtc: rtc core: registered 44e3e000.rtc as rtc0
[ 0.717152] 44e3e000.rtc: already running
[ 0.717320] i2c /dev entries driver
[ 0.718382] pps_ldisc: PPS line discipline registered
[ 0.718475] Driver for 1-wire Dallas network protocol.
[ 0.719661] omap_wdt: OMAP Watchdog Timer Rev 0x01: initial timeout 60 sec
[ 0.720076] device-mapper: ioctl: 4.23.1-ioctl (2012-12-18)
initialised: dm-devel@redhat.com
[ 0.720113] cpuidle: using governor ladder
[ 0.720121] cpuidle: using governor menu
[ 0.720366] of_get_named_gpio_flags exited with status 6
[ 0.720378] of_get_named_gpio_flags: can't parse gpios property
[ 0.720385] of_get_named_gpio_flags: can't parse gpios property
[ 0.720406] omap_hsmmc mmc.5: of_parse_phandle_with_args of 'reset' failed
[ 0.727649] omap_hsmmc mmc.5: Failed to get rstctl; not using any
[ 0.728272] platform 4830e000.fb: alias fck already exists
[ 0.731728] edma-dma-engine edma-dma-engine.0: allocated channel for 0:25
[ 0.731783] edma-dma-engine edma-dma-engine.0: allocated channel for 0:24
[ 0.731970] mmc.5 supply vmmc_aux not found, using dummy regulator
[ 0.733460] omap_hsmmc mmc.5: pins are not configured from the driver
[ 0.743220] lsm303dlhc_acc 1-0019: probe start.
[ 0.743245] lsm303dlhc_acc 1-0019: using default plaform_data
[ 0.743256] lsm303dlhc_acc: hw init start
[ 0.747153] lsm303dlhc_acc: hw init done
[ 0.748495] input: lsm303dlhc_acc as
/devices/ocp.3/4819c000.i2c/i2c-1/1-0019/input/input1
[ 0.749315] lsm303dlhc_acc 1-0019: lsm303dlhc_acc: probed
[ 0.755380] lsm303dlhc_mag 1-001e: probe start.
[ 0.755405] lsm303dlhc_mag 1-001e: using default plaform_data
[ 0.756872] input: lsm303dlhc_mag as
/devices/ocp.3/4819c000.i2c/i2c-1/1-001e/input/input2
[ 0.757621] lsm303dlhc_mag 1-001e: lsm303dlh_mag probed
[ 0.761141] pinctrl-single 44e10800.pinmux: pin 44e10854 already
requested by 44e10800.pinmux; cannot claim for gpio-leds.8
[ 0.772839] pinctrl-single 44e10800.pinmux: pin-21 (gpio-leds.8) status -22
[ 0.780117] pinctrl-single 44e10800.pinmux: could not request pin
21 on device pinctrl-single
[ 0.792492] lsm330_acc: probe start.
[ 0.792510] using default platform_data for accelerometer
[ 0.792520] lsm330_acc: hw init start
[ 0.792629] leds-gpio gpio-leds.8: pins are not configured from the driver
[ 0.792666] of_get_named_gpio_flags exited with status 53
[ 0.792678] of_get_named_gpio_flags exited with status 54
[ 0.792688] of_get_named_gpio_flags exited with status 55
[ 0.792698] of_get_named_gpio_flags exited with status 56
[ 0.792711] of_get_named_gpio_flags exited with status 53
[ 0.792951] of_get_named_gpio_flags exited with status 54
[ 0.793060] lsm330_acc 1-0018: device unknown. Expected: 0x40, Replies: 0x33
[ 0.800497] lsm330_acc 1-0018: hw init error 0x33,0x0: -1
[ 0.806271] of_get_named_gpio_flags exited with status 55
[ 0.806401] of_get_named_gpio_flags exited with status 56
[ 0.806809] ledtrig-cpu: registered to indicate activity on CPUs
[ 0.807107] edma-dma-engine edma-dma-engine.0: allocated channel for 0:36
[ 0.807163] omap-sham 53100000.sham: hw accel on OMAP rev 4.3
[ 0.808533] lsm330_acc 1-0018: power on failed: -1
[ 0.813617] lsm330_acc: Driver Init failed
[ 0.818040] hub 1-0:1.0: state 7 ports 1 chg 0000 evt 0000
[ 0.818083] hub 1-0:1.0: hub_suspend
[ 0.818110] usb usb1: bus auto-suspend, wakeup 1
[ 0.818431] omap-aes 53500000.aes: OMAP AES hw accel rev: 3.2
[ 0.818521] edma-dma-engine edma-dma-engine.0: allocated channel for 0:5
[ 0.818567] edma-dma-engine edma-dma-engine.0: allocated channel for 0:6
[ 0.818858] lsm330_acc: probe of 1-0018 failed with error -1
[ 0.821904] usbcore: registered new interface driver usbhid
[ 0.821917] usbhid: USB HID core driver
[ 0.822908] ashmem: initialized
[ 0.823265] logger: created 256K log 'log_main'
[ 0.823467] logger: created 256K log 'log_events'
[ 0.823638] logger: created 256K log 'log_radio'
[ 0.823853] logger: created 256K log 'log_system'
[ 0.825504] of_get_named_gpio_flags: can't parse gpios property
[ 0.826186] TCP: cubic registered
[ 0.826257] NET: Registered protocol family 10
[ 0.829122] NET: Registered protocol family 17
[ 0.829441] Key type dns_resolver registered
[ 0.829617] VFP support v0.3: implementor 41 architecture 3 part 30
variant c rev 3
[ 0.829642] ThumbEE CPU extension supported.
[ 0.829674] Registering SWP/SWPB emulation handler
[ 0.831300] registered taskstats version 1
[ 0.831884] of_get_named_gpio_flags: can't parse gpios property
[ 0.831903] panel panel.13: panel: No power control GPIO
[ 0.835424] of_get_named_gpio_flags: can't parse gpios property
[ 0.835447] tilcdc 4830e000.fb: No power control GPIO
[ 0.835724] [drm] Supports vblank timestamp caching Rev 1 (10.10.2010).
[ 0.835734] [drm] No driver support for vblank timestamp query.
[ 0.838210] lsm330_gyr 1-006a: probe start.
[ 0.838222] lsm330_gyr 1-006a: using default plaform_data
[ 0.838228] lsm330_gyr 1-006a: hw init
[ 0.840648] input: lsm330_gyr as
/devices/ocp.3/4819c000.i2c/i2c-1/1-006a/input/input3
[ 0.841041] lsm330_gyr 1-006a: power off
[ 0.841381] lsm330_gyr 1-006a: lsm330_gyr probed: device created successfully
[ 0.843108] 1-001b supply IOVDD not found, using dummy regulator
[ 0.843162] 1-001b supply DVDD not found, using dummy regulator
[ 0.843214] 1-001b supply AVDD not found, using dummy regulator
[ 0.843258] 1-001b supply DRVDD not found, using dummy regulator
[ 0.845849] Console: switching to colour frame buffer device 80x40
[ 0.846806] tilcdc 4830e000.fb: fb0: frame buffer device
[ 0.846816] tilcdc 4830e000.fb: registered panic notifier
[ 0.847756] [drm] Initialized tilcdc 1.0.0 20121205 on minor 0
[ 0.848716] davinci_evm sound.15: tlv320aic3x-hifi <->
48038000.mcasp mapping ok
[ 0.866440] bone-capemgr bone_capemgr.9: slot #0: Applied #7 overlays.
[ 0.866462] bone-capemgr bone_capemgr.9: loader: done slot-0
BEAGLEBOY:0013 (prio 0)
[ 0.866504] bone-capemgr bone_capemgr.9: loader: check slot-6
BB-BONELT-HDMIN:00A0 (prio 2)
[ 0.866529] bone-capemgr bone_capemgr.9: loader: check slot-5
BB-BONELT-HDMI:00A0 (prio 1)
[ 0.866557] bone-capemgr bone_capemgr.9: loader: after slot-5
BB-BONELT-HDMI:00A0 (prio 1)
[ 0.866580] bone-capemgr bone_capemgr.9: slot #5: Requesting
firmware 'cape-boneblack-hdmi-00A0.dtbo' for board-name
'Bone-Black-HDMI', version '00A0'
[ 0.866625] bone-capemgr bone_capemgr.9: slot #5: dtbo
'cape-boneblack-hdmi-00A0.dtbo' loaded; converting to live tree
[ 0.867003] bone-capemgr bone_capemgr.9: slot #5: BB-BONELT-HDMI
conflict P9.25 (#0:BEAGLEBOY)
[ 0.876122] bone-capemgr bone_capemgr.9: slot #5: Failed verification
[ 0.882895] bone-capemgr bone_capemgr.9: loader: failed to load
slot-5 BB-BONELT-HDMI:00A0 (prio 1)
[ 0.892408] bone-capemgr bone_capemgr.9: loader: check slot-4
BB-BONE-EMMC-2G:00A0 (prio 1)
[ 0.892424] bone-capemgr bone_capemgr.9: loader: after slot-4
BB-BONE-EMMC-2G:00A0 (prio 1)
[ 0.892441] bone-capemgr bone_capemgr.9: slot #4: Requesting
firmware 'cape-bone-2g-emmc1.dtbo' for board-name 'Bone-LT-eMMC-2G',
version '00A0'
[ 0.892455] bone-capemgr bone_capemgr.9: slot #4: dtbo
'cape-bone-2g-emmc1.dtbo' loaded; converting to live tree
[ 0.893105] bone-capemgr bone_capemgr.9: slot #4: #2 overlays
[ 0.893777] of_get_named_gpio_flags: can't parse gpios property
[ 0.893791] of_get_named_gpio_flags: can't parse gpios property
[ 0.893799] of_get_named_gpio_flags: can't parse gpios property
[ 0.893833] gpio-rctrl rstctl.4: gpio_rctrl_request eMMC_RSTn
[ 0.893875] omap_hsmmc mmc.16: Got rstctl (gpio:#0 name eMMC_RSTn)
label:eMMC_RSTn
[ 0.893886] gpio-rctrl rstctl.4: gpio_rctrl_deassert eMMC_RSTn
[ 0.894138] edma-dma-engine edma-dma-engine.0: allocated channel for 0:3
[ 0.894187] edma-dma-engine edma-dma-engine.0: allocated channel for 0:2
[ 0.894481] bone-capemgr bone_capemgr.9: loader: check slot-6
BB-BONELT-HDMIN:00A0 (prio 2)
[ 0.894646] mmc.16 supply vmmc_aux not found, using dummy regulator
[ 0.894720] omap_hsmmc mmc.16: pins are not configured from the driver
[ 0.896780] mmc0: host does not support reading read-only switch.
assuming write-enable.
[ 0.898739] mmc0: new high speed SDHC card at address 1234
[ 0.899259] mmcblk0: mmc0:1234 SA04G 3.63 GiB
[ 0.901118] mmcblk0: p1 p2
[ 0.920797] bone-capemgr bone_capemgr.9: slot #4: Applied #2 overlays.
[ 0.920814] bone-capemgr bone_capemgr.9: loader: done slot-4
BB-BONE-EMMC-2G:00A0 (prio 1)
[ 0.920908] bone-capemgr bone_capemgr.9: loader: check slot-6
BB-BONELT-HDMIN:00A0 (prio 2)
[ 0.920925] bone-capemgr bone_capemgr.9: loader: after slot-6
BB-BONELT-HDMIN:00A0 (prio 2)
[ 0.920951] bone-capemgr bone_capemgr.9: slot #6: Requesting
firmware 'cape-boneblack-hdmin-00A0.dtbo' for board-name
'Bone-Black-HDMIN', version '00A0'
[ 0.920979] bone-capemgr bone_capemgr.9: slot #6: dtbo
'cape-boneblack-hdmin-00A0.dtbo' loaded; converting to live tree
[ 0.921218] bone-capemgr bone_capemgr.9: slot #6: BB-BONELT-HDMIN
conflict P8.45 (#0:BEAGLEBOY)
[ 0.930436] bone-capemgr bone_capemgr.9: slot #6: Failed verification
[ 0.937207] bone-capemgr bone_capemgr.9: loader: failed to load
slot-6 BB-BONELT-HDMIN:00A0 (prio 2)
[ 0.947426] davinci_mdio 4a101000.mdio: davinci mdio revision 1.6
[ 0.947438] davinci_mdio 4a101000.mdio: detected phy mask fffffffe
[ 0.954669] libphy: 4a101000.mdio: probed
[ 0.954697] davinci_mdio 4a101000.mdio: phy[0]: device
4a101000.mdio:00, driver SMSC LAN8710/LAN8720
[ 0.954908] Detected MACID = c8:a0:30:ba:ed:ca
[ 0.955014] cpsw 4a100000.ethernet: NAPI disabled
[ 0.956548] of_get_named_gpio_flags exited with status 49
[ 0.956573] of_get_named_gpio_flags exited with status 61
[ 0.957036] input: gaming_cape_keys.14 as
/devices/ocp.3/gaming_cape_keys.14/input/input4
[ 0.957437] omap_rtc 44e3e000.rtc: setting system clock to
2015-03-02 16:12:02 UTC (1425312722)
[ 0.962651] ALSA device list:
[ 0.962671] #0: DA830 EVM
[ 0.963391] Freeing init memory: 256K
[ 1.002495] mmc1: BKOPS_EN bit is not set
[ 1.005720] mmc1: new high speed MMC card at address 0001
[ 1.008784] mmcblk1: mmc1:0001 MMC02G 1.78 GiB
[ 1.010380] mmcblk1boot0: mmc1:0001 MMC02G partition 1 1.00 MiB
[ 1.010736] mmcblk1boot1: mmc1:0001 MMC02G partition 2 1.00 MiB
[ 1.012771] mmcblk1: p1 p2
[ 1.014698] mmcblk1boot1: unknown partition table
[ 1.017334] mmcblk1boot0: unknown partition table
[ 1.040971] udevd[108]: starting version 175
[ 2.393821] EXT4-fs (mmcblk0p2): mounted filesystem with ordered
data mode. Opts: (null)
[ 3.717932] udevd[245]: starting version 175
[ 4.594231] EXT4-fs (mmcblk0p2): re-mounted. Opts: errors=remount-ro
[ 6.501785] omap_rng 48310000.rng: base address of priv is -97452032
[ 6.508995] omap_rng 48310000.rng: OMAP Random Number Generator ver. 20
[ 6.978019] lsm303dlhc_acc: hw init start
[ 6.983650] lsm303dlhc_acc: hw init done
[ 6.987608] lsm330_gyr 1-006a: hw init
[ 6.995501] lsm330_gyr 1-006a: power off
[ 10.848544] tilcdc 4830e000.fb: timeout waiting for framedone
[ 11.177801] gadget: using random self ethernet address
[ 11.201609] usb0: MAC c6:f3:71:f2:f3:21
[ 11.201650] usb0: HOST MAC c8:a0:30:ba:ed:cc
[ 11.227835] gadget: Mass Storage Function, version: 2009/09/11
[ 11.227884] gadget: Number of LUNs=1
[ 11.227938] lun0: LUN: removable file: /dev/mmcblk0p1
[ 11.228978] gadget: Multifunction Composite Gadget
[ 11.229049] gadget: g_multi ready
[ 11.229132] musb-hdrc musb-hdrc.0.auto: MUSB HDRC host driver
[ 11.247411] musb-hdrc musb-hdrc.0.auto: new USB bus registered,
assigned bus number 2
[ 11.247498] musb-hdrc musb-hdrc.0.auto: supports USB remote wakeup
[ 11.247659] usb usb2: default language 0x0409
[ 11.247760] usb usb2: udev 1, busnum 2, minor = 128
[ 11.247797] usb usb2: New USB device found, idVendor=1d6b, idProduct=0002
[ 11.247833] usb usb2: New USB device strings: Mfr=3, Product=2,
SerialNumber=1
[ 11.247865] usb usb2: Product: MUSB HDRC host driver
[ 11.247897] usb usb2: Manufacturer: Linux
3.8.13-git81e3a418466a53b3c9649cafc5b555e361a9846d musb-hcd
[ 11.247928] usb usb2: SerialNumber: musb-hdrc.0.auto
[ 11.264846] usb usb2: usb_probe_device
[ 11.264905] usb usb2: configuration #1 chosen from 1 choice
[ 11.265042] usb usb2: adding 2-0:1.0 (config #1, interface 0)
[ 11.265449] hub 2-0:1.0: usb_probe_interface
[ 11.265487] hub 2-0:1.0: usb_probe_interface - got id
[ 11.265540] hub 2-0:1.0: USB hub found
[ 11.265606] hub 2-0:1.0: 1 port detected
[ 11.265638] hub 2-0:1.0: standalone hub
[ 11.265666] hub 2-0:1.0: individual port power switching
[ 11.265695] hub 2-0:1.0: no over-current protection
[ 11.265721] hub 2-0:1.0: Single TT
[ 11.265753] hub 2-0:1.0: TT requires at most 8 FS bit times (666 ns)
[ 11.265784] hub 2-0:1.0: power on to power good time: 10ms
[ 11.265848] hub 2-0:1.0: local power source is good
[ 11.266027] hub 2-0:1.0: enabling power on all ports
[ 11.366371] hub 2-0:1.0: state 7 ports 1 chg 0000 evt 0000
[ 11.366508] hub 2-0:1.0: hub_suspend
[ 11.366575] usb usb2: bus auto-suspend, wakeup 1
[ 13.083758] gpio_request: gpio-61 (sysfs) status -16
[ 13.083776] export_store: status -16
[ 13.083878] gpio_request: gpio-49 (sysfs) status -16
[ 13.083886] export_store: status -16
[ 15.528238] IPv6: ADDRCONF(NETDEV_UP): usb0: link is not ready
[ 22.071250] tilcdc 4830e000.fb: timeout waiting for framedone
[ 23.414604] lsm303dlhc_acc: hw init start
[ 23.422997] lsm303dlhc_acc: hw init done
[ 23.876445] lsm330_gyr 1-006a: hw init
[ 34.131772] net eth0: initializing cpsw version 1.12 (0)
[ 34.139818] net eth0: phy found : id is : 0x7c0f1
[ 34.139855] libphy: PHY 4a101000.mdio:01 not found
[ 34.144920] net eth0: phy 4a101000.mdio:01 not found on slave 1
[ 34.163488] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[ 37.216216] libphy: 4a101000.mdio:00 - Link is Up - 100/Full
[ 37.216296] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[ 66.365849] net eth0: initializing cpsw version 1.12 (0)
[ 66.368493] net eth0: phy found : id is : 0x7c0f1
[ 66.368519] libphy: PHY 4a101000.mdio:01 not found
[ 66.373597] net eth0: phy 4a101000.mdio:01 not found on slave 1
[ 66.383681] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[ 68.376583] libphy: 4a101000.mdio:00 - Link is Up - 100/Full
[ 68.376705] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[ 141.926740] net eth0: initializing cpsw version 1.12 (0)
[ 141.929436] net eth0: phy found : id is : 0x7c0f1
[ 141.929464] libphy: PHY 4a101000.mdio:01 not found
[ 141.934543] net eth0: phy 4a101000.mdio:01 not found on slave 1
[ 141.961629] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[ 143.935182] libphy: 4a101000.mdio:00 - Link is Up - 100/Full
[ 143.935304] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready

To test the sensors, you can do:

root@beagleboy:~# echo 1 > /sys/bus/i2c/devices/1-001e/enable_device
root@beagleboy:~# evtest
No device specified, trying to scan all of /dev/input/event*
Available devices:
/dev/input/event0: tps65217_pwr_but
/dev/input/event1: lsm303dlhc_acc
/dev/input/event2: lsm303dlhc_mag
/dev/input/event3: lsm330_gyr
/dev/input/event4: gaming_cape_keys.14
Select the device event number [0-4]: 2
Input driver version is 1.0.1
Input device ID: bus 0x18 vendor 0x0 product 0x0 version 0x0
Input device name: "lsm303dlhc_mag"
Supported events:
  Event type 0 (EV_SYN)
  Event type 3 (EV_ABS)
    Event code 0 (ABS_X)
      Value 242
      Min -8100
      Max 8100
    Event code 1 (ABS_Y)
      Value 72
      Min -8100
      Max 8100
    Event code 2 (ABS_Z)
      Value 548
      Min -8100
      Max 8100
Properties:
Testing ... (interrupt to exit)
Event: time 1433372299.680185, type 3 (EV_ABS), code 0 (ABS_X), value 244
Event: time 1433372299.680185, type 3 (EV_ABS), code 2 (ABS_Z), value 547
Event: time 1433372299.680185, -------------- SYN_REPORT ------------
Event: time 1433372299.781755, type 3 (EV_ABS), code 0 (ABS_X), value 246
Event: time 1433372299.781755, type 3 (EV_ABS), code 1 (ABS_Y), value 71
Event: time 1433372299.781755, type 3 (EV_ABS), code 2 (ABS_Z), value 550
Event: time 1433372299.781755, -------------- SYN_REPORT ------------
Event: time 1433372299.883285, type 3 (EV_ABS), code 1 (ABS_Y), value 70
Event: time 1433372299.883285, type 3 (EV_ABS), code 2 (ABS_Z), value 547
Event: time 1433372299.883285, -------------- SYN_REPORT ------------
^C
root@beagleboy:~# evtest
No device specified, trying to scan all of /dev/input/event*
Available devices:
/dev/input/event0: tps65217_pwr_but
/dev/input/event1: lsm303dlhc_acc
/dev/input/event2: lsm303dlhc_mag
/dev/input/event3: lsm330_gyr
/dev/input/event4: gaming_cape_keys.14
Select the device event number [0-4]: 1
Input driver version is 1.0.1
Input device ID: bus 0x18 vendor 0x0 product 0x0 version 0x0
Input device name: "lsm303dlhc_acc"
Supported events:
  Event type 0 (EV_SYN)
  Event type 3 (EV_ABS)
    Event code 0 (ABS_X)
      Value -39
      Min -16000
      Max 16000
    Event code 1 (ABS_Y)
      Value -5
      Min -16000
      Max 16000
    Event code 2 (ABS_Z)
      Value -969
      Min -16000
      Max 16000
    Event code 8 (ABS_WHEEL)
      Value 0
      Min -2147483648
      Max 2147483647
    Event code 40 (ABS_MISC)
      Value 0
      Min -2147483648
      Max 2147483647
Properties:
Testing ... (interrupt to exit)
Event: time 1433372320.781777, type 3 (EV_ABS), code 1 (ABS_Y), value -8
Event: time 1433372320.781777, type 3 (EV_ABS), code 2 (ABS_Z), value -967
Event: time 1433372320.781777, -------------- SYN_REPORT ------------
Event: time 1433372320.883313, type 3 (EV_ABS), code 0 (ABS_X), value -38
Event: time 1433372320.883313, type 3 (EV_ABS), code 1 (ABS_Y), value -9
Event: time 1433372320.883313, type 3 (EV_ABS), code 2 (ABS_Z), value -968
Event: time 1433372320.883313, -------------- SYN_REPORT ------------
Event: time 1433372320.984877, type 3 (EV_ABS), code 0 (ABS_X), value -40
Event: time 1433372320.984877, type 3 (EV_ABS), code 1 (ABS_Y), value -8
Event: time 1433372320.984877, -------------- SYN_REPORT ------------
^C
root@beagleboy:~# evtest
No device specified, trying to scan all of /dev/input/event*
Available devices:
/dev/input/event0: tps65217_pwr_but
/dev/input/event1: lsm303dlhc_acc
/dev/input/event2: lsm303dlhc_mag
/dev/input/event3: lsm330_gyr
/dev/input/event4: gaming_cape_keys.14
Select the device event number [0-4]: 3
Input driver version is 1.0.1
Input device ID: bus 0x18 vendor 0x0 product 0x0 version 0x0
Input device name: "lsm330_gyr"
Supported events:
  Event type 0 (EV_SYN)
  Event type 3 (EV_ABS)
    Event code 0 (ABS_X)
      Value 59
      Min -32769
      Max 32768
    Event code 1 (ABS_Y)
      Value 329
      Min -32769
      Max 32768
    Event code 2 (ABS_Z)
      Value -102
      Min -32769
      Max 32768
Properties:
Testing ... (interrupt to exit)
Event: time 1433372329.881340, type 3 (EV_ABS), code 0 (ABS_X), value 40
Event: time 1433372329.881340, type 3 (EV_ABS), code 1 (ABS_Y), value 317
Event: time 1433372329.881340, type 3 (EV_ABS), code 2 (ABS_Z), value -115
Event: time 1433372329.881340, -------------- SYN_REPORT ------------
Event: time 1433372329.982927, type 3 (EV_ABS), code 0 (ABS_X), value 76
Event: time 1433372329.982927, type 3 (EV_ABS), code 1 (ABS_Y), value 348
Event: time 1433372329.982927, type 3 (EV_ABS), code 2 (ABS_Z), value -98
Event: time 1433372329.982927, -------------- SYN_REPORT ------------
Event: time 1433372330.084488, type 3 (EV_ABS), code 0 (ABS_X), value 64
Event: time 1433372330.084488, type 3 (EV_ABS), code 1 (ABS_Y), value 354
Event: time 1433372330.084488, type 3 (EV_ABS), code 2 (ABS_Z), value -74
Event: time 1433372330.084488, -------------- SYN_REPORT ------------
Event: time 1433372330.186066, type 3 (EV_ABS), code 0 (ABS_X), value 51
Event: time 1433372330.186066, type 3 (EV_ABS), code 1 (ABS_Y), value 314
Event: time 1433372330.186066, type 3 (EV_ABS), code 2 (ABS_Z), value -114
Event: time 1433372330.186066, -------------- SYN_REPORT ------------
Event: time 1433372330.287606, type 3 (EV_ABS), code 0 (ABS_X), value 85
Event: time 1433372330.287606, type 3 (EV_ABS), code 1 (ABS_Y), value 378
Event: time 1433372330.287606, type 3 (EV_ABS), code 2 (ABS_Z), value -82
Event: time 1433372330.287606, -------------- SYN_REPORT ------------
^C
root@beagleboy:~# evtest
No device specified, trying to scan all of /dev/input/event*
Available devices:
/dev/input/event0: tps65217_pwr_but
/dev/input/event1: lsm303dlhc_acc
/dev/input/event2: lsm303dlhc_mag
/dev/input/event3: lsm330_gyr
/dev/input/event4: gaming_cape_keys.14
Select the device event number [0-4]: 4
Input driver version is 1.0.1
Input device ID: bus 0x19 vendor 0x1 product 0x1 version 0x100
Input device name: "gaming_cape_keys.14"
Supported events:
  Event type 0 (EV_SYN)
  Event type 1 (EV_KEY)
    Event code 272 (BTN_LEFT)
    Event code 273 (BTN_RIGHT)
Properties:
Testing ... (interrupt to exit)
Event: time 1433372338.115459, type 1 (EV_KEY), code 272 (BTN_LEFT), value 1
Event: time 1433372338.115459, -------------- SYN_REPORT ------------
Event: time 1433372338.250726, type 1 (EV_KEY), code 272 (BTN_LEFT), value 0
Event: time 1433372338.250726, -------------- SYN_REPORT ------------
Event: time 1433372338.622770, type 1 (EV_KEY), code 273 (BTN_RIGHT), value 1
Event: time 1433372338.622770, -------------- SYN_REPORT ------------
Event: time 1433372338.772393, type 1 (EV_KEY), code 273 (BTN_RIGHT), value 0
Event: time 1433372338.772393, -------------- SYN_REPORT ------------
^C
root@beagleboy:~#

Regards,
Jason

xserver-xorg-input-joystick should be able to handle this..

It allows a bunch of customization:

http://www.x.org/releases/X11R7.7/doc/man/man4/joystick.4.xhtml

Regards,

All interested in http://campaign.circuithub.com/beaglebone-gamingcape,

I'm trying to make sure the kernel and software image are suitable for
giving the green light to CircuitHub to start shipping the Gaming
Capes. I wanted to give people a chance to give some feedback on what
ideally should be done, save off some notes on my current
progress---and enable you to try it out if you happen to have built
one of these capes.

I've been starting by patching up the 3.8 kernel
(firmware/capes/BEAGLEBOY-0013.dts):

http://builds.beagleboard.org/builders/build-kernel/builds/45

On-going work on the install instructions are at:

gamingcape/software/install.sh at master · jadonk/gamingcape · GitHub

If the EEPROM isn't programmed, you'll need to short the WP line to
ground and run:

gamingcape/software/write_eeprom.sh at master · jadonk/gamingcape · GitHub

What I haven't yet worked out, but am looking at resolving are:

* adding a joystick driver for the joystick (not just analog values)
   --- my current thoughts are either using /dev/uinput and a
userspace application or
   --- modifying the input/joystick/analog.c driver to use device tree
and ADC converters
* get the mouse working under X11 using the joystick and buttons
   --- I've hacked on xorg.conf files to get xserver-xorg-input-evdev
drivers loaded, but I don't seem to be seeing the the "mouse" clicks
(/var/log/Xorg.0.log - Debian paste error)

xserver-xorg-input-joystick should be able to handle this..

It allows a bunch of customization:

joystick

Hunyue created a /dev/uinput driver for me (software/adcjs.c) and
helped me get a reasonable config for xserver-xorg-input-*
(software/99-gamingcape.conf).

I think I just need to modify an example emulator to use it and clean
up a release image.

I'm still having problems with the lsm330_acc driver.

http://paste.debian.net/201168/