Forum
egalax touchscreen not working - Printable Version

+- Forum (http://forum.xbian.org)
+-- Forum: Hardware (/forum-7.html)
+--- Forum: Peripherals (/forum-27.html)
+--- Thread: egalax touchscreen not working (/thread-3071.html)



egalax touchscreen not working - james85 - 7th Aug, 2015 04:48 AM

Hey guys, I'm an amateur at all of this so I apologize in advance if I'm leaving out info or if I'm using the wrong terminology needed to troubleshoot this. Anyway, I'm trying to get my 7" egalax touchscreen to work with xbian on my raspberry pi 2.

I installed the driver and did the calibration process. After this xbian restarts automatically but there seems to be no change. There's no cursor and touching the screen doesn't do anything.

The touchscreen works with raspian, so I know everything is good at least on the hardware end. Any help will be greatly appreciated.


RE: egalax touchscreen not working - deHakkelaar - 8th Aug, 2015 02:59 AM

Whats the output from the "evtest" command ?
(might need to install evtest by running "sudo apt-get install evtest")


RE: egalax touchscreen not working - james85 - 9th Aug, 2015 04:31 AM

Thanks for your reply. Frankly 'a lot of stuff' pops up after running the command but the word output is not there. Not exactly sure how to take a screen shot so I used the old fashioned method. Should be easier than my clumsy explanation:
IMAG0420_BURST004 by James Shimp, on Flickr
Kinda odd it lists my keyboard twice?

Oh and not sure if it helps but some additional info:
I downloaded xbian and set up the wireless. I didn't update, download anything or change any settings. I just did the install, configured the wireless and installed the driver by typing "wget https://github.com/brantje/xbian-touch/raw/master/install.sh" then after that downloaded i typed "sudo sh install.sh"

It then asked for the event number (which was listed egalax 2) so i pressed 2, did the calibration, it auto restarted and then like I said it just operated as if nothing happened.


RE: egalax touchscreen not working - deHakkelaar - 11th Aug, 2015 01:09 AM

Keyboard being mentioned twice is probably because its got mouse or touch pad as well (seen as an extra input device).
If tinkering with Pi's, its better to connect from your PC to the Pi's BASH command prompt via an SSH client over network as this makes copying and pasting text possible (no need for clumsy pictures of your screen).

That script you mention "https://github.com/brantje/xbian-touch/raw/master/install.sh",
is suppose to do everything for you:
1) Install its own TSlib version (Touch Screen Libraries);
2) Calibrate;
3) Setup "uimapper" that will create another dummy input device with translated coordinates (touch area usually being much larger than the screen resolution so you need something to translate x-y coordinates).

Looks like something went wrong with the script as after running that script, an extra input device should be displayed besides the eGalax one and keyboards when running "evtest" afterwards.
Now "evtest" says "This device is grabbed by another process".
What does "evtest" say when you stop Kodi/XBMC and uimapper ?

Terminal
sudo stop xbmc
sudo stop uimapper
evtest



RE: egalax touchscreen not working - james85 - 11th Aug, 2015 11:31 PM

OK bit of an update. I worked on this a lot yesterday and learned a lot. There's quite a bit of info so I'll try and make it as concise as possible. First off to answer your last question, stopping xbmc and unimapper doesn't seem to work. (I did this via SSH which works great but I can't seem to copy w/o entering a command. Anyway,)

xbian@xbian ~ $ sudo stop xbmc
stop: Unknown instance:

xbian@xbian ~ $ sudo stop unimapper
stop: Unknown job: unimapper

----------------------------

Evtest seems to be working to some extent for whatever reason? This boggles my mind why it seems to work now but didn't before. The only thing is it reaches the 'interrupt to exit' point but seemingly locks up. Here it is via the SSH:

xbian@xbian ~ $ evtest
No device specified, trying to scan all of /dev/input/event*
Not running as root, no devices may be available.
Available devices:
/dev/input/event0: DELL Dell USB Wired Multimedia Keyboard
/dev/input/event1: DELL Dell USB Wired Multimedia Keyboard
/dev/input/event2: eGalax Inc. USB TouchController
Select the device event number [0-2]: 2
Input driver version is 1.0.1
Input device ID: bus 0x3 vendor 0xeef product 0x1 version 0x100
Input device name: "eGalax Inc. USB TouchController"
Supported events:
Event type 0 (EV_SYN)
Event type 1 (EV_KEY)
Event code 330 (BTN_TOUCH)
Event type 3 (EV_ABS)
Event code 0 (ABS_X)
Value 324
Min 0
Max 2047
Event code 1 (ABS_Y)
Value 755
Min 0
Max 2047
Properties:
Testing ... (interrupt to exit)
/boot/cmdline.txt/boot/cmdline.txtInput driver version is 1.0.1
Input device ID: bus 0x3 vendor 0xeef product 0x1 version 0x100
Input device name: "eGalax Inc. USB TouchController"
Supported events:
Event type 0 (EV_SYN)
Event type 1 (EV_KEY)
Event code 330 (BTN_TOUCH)
Event type 3 (EV_ABS)
Event code 0 (ABS_X)
Value 324
Min 0
Max 2047
Event code 1 (ABS_Y)
Value 755
Min 0
Max 2047
Properties:
Testing ... (interrupt to exit)

I let it sit like this for around 40min before I tried to copy this (ctrl c) and this interrupted the testing. Right clicking doesn't work either (it enters previous commands)

--------------------------------

The other thing to note is my original assessment as to the touchscreen failing to work all together was wrong. There is indeed a cursor but it typically starts somewhere (way) off screen. If you play with it a bit you can get it to show up, it's just that the calibration is way way off and the x/y axis' are inverted.

So that's where I'm at so far. I noticed in the evtest it says 'not running as root' so I figure I'll run the evtest as root and see what happens.


RE: egalax touchscreen not working - deHakkelaar - 12th Aug, 2015 02:59 AM

You made a typo with the bit I am most interested at:

Terminal
sudo stop uimapper

I suspect uimapper is not running because brantje script failed somehow.

Quote:(touch area usually being much larger than the screen resolution so you need something to translate x-y coordinates)

Cant test as dont have working touch setup at the mo.

Ps. when running evtest on device "eGalax Inc. USB TouchController", and its not grabbed by other process, you can touch the four corners of you screen to determine touch area resolution (mine is 4000 X 4000 I believe).


RE: egalax touchscreen not working - james85 - 12th Aug, 2015 03:24 AM

xbian@xbian ~ $ sudo stop uimapper
stop: Unknown instance:


RE: egalax touchscreen not working - deHakkelaar - 12th Aug, 2015 06:57 AM

Try start here up:

Terminal
sudo start uimapper

Run evtest again to see if another input device has appeared:

Terminal
evtest

If so, boot up Kodi/XBMC:

Terminal
sudo start xbmc



RE: egalax touchscreen not working - james85 - 12th Aug, 2015 08:02 AM

xbian@xbian ~ $ sudo start uimapper
uimapper start/running, process 2791
xbian@xbian ~ $ evtest
No device specified, trying to scan all of /dev/input/event*
Not running as root, no devices may be available.
Available devices:
/dev/input/event2: eGalax Inc. USB TouchController
Select the device event number [0-0]: 2
USAGE:
Grab mode:
evtest /dev/input/eventX

Query mode: (check exit code)
evtest --query /dev/input/eventX <type> <value>

<type> is one of: EV_KEY, EV_SW, EV_LED, EV_SND
<value> can either be a numerical value, or the textual name of the
key/switch/LED/sound being queried (e.g. SW_DOCK).
xbian@xbian ~ $ ^C
xbian@xbian ~ $ sudo start xbmc
xbmc start/running, process 2853

After this it loaded kodi. It then apparently automatically updated 'stuff' as I was typing this in. Didn't look back at the screen in time to see what updated. That being said there doesn't seem to be any changes. And again I seriously appreciate your replies.


RE: egalax touchscreen not working - deHakkelaar - 15th Aug, 2015 02:14 AM

Little explanation + it helps if you try to read that script that you tried to install:

https://raw.githubusercontent.com/brantje/xbian-touch/master/install.sh

As you already noticed, x-y coordinates coming from "/dev/input/event2" are way of with Kodi because screen resolution differs from touch resolution.
Solution is the "uimapper" Python script that runs in background, grabbing "/dev/input/event2" and creating a new input device for example "/dev/input/event3".
This "event3" device will have the translated coordinates derived from the "/etc/pointercal" file, that was created with the "ts_calibrate" tool, and coordinates coming from the "event2" device.
As the "event2" device is grabbed already by "uimapper", the only device still available for Kodi will be that "event3" device with translated coordinates.

For you to check:

1) whats your current exports:

Terminal
export

2) With what parameters is uimapper started:

Terminal
cat /etc/init/uimapper.conf

And please try to use the forums [code] or [term] tags when posting screen results or code!


RE: egalax touchscreen not working - james85 - 19th Aug, 2015 01:05 AM

Code:
xbian@xbian ~ $ export
declare -x HOME="/home/xbian"
declare -x LANG="en_US.UTF-8"
declare -x LC_ALL="en_US.UTF-8"
declare -x LC_CTYPE="C"
declare -x LOGNAME="xbian"
declare -x LS_COLORS="rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:​or=40;31;01:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar​=01;31:*.tgz=01;31:*.arj=01;31:*.taz=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:​*.txz=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.dz=01;31:*.gz=01;31:*.lz=01;31:*.x​z=01;31:*.bz2=01;31:*.bz=01;31:*.tbz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*​.rpm=01;31:*.jar=01;31:*.war=01;31:*.ear=01;31:*.sar=01;31:*.rar=01;31:*.ace=01;​31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.jpg=01;35:*.jpeg=01;35:*.gif​=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*​.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=0​1;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.​webm=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;​35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi​=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.y​uv=01;35:*.cgm=01;35:*.emf=01;35:*.axv=01;35:*.anx=01;35:*.ogv=01;35:*.ogx=01;35​:*.aac=00;36:*.au=00;36:*.flac=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=​00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:*.axa=00;36:*.oga=00;36:*.s​px=00;36:*.xspf=00;36:"
declare -x MAIL="/var/mail/xbian"
declare -x OLDPWD
declare -x PATH="/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games:/opt/vc/bin:/usr/lib/klibc/bin"
declare -x PWD="/home/xbian"
declare -x SHELL="/bin/bash"
declare -x SHLVL="1"
declare -x SSH_CLIENT="192.168.1.69 54419 22"
declare -x SSH_CONNECTION="192.168.1.69 54419 192.168.1.66 22"
declare -x SSH_TTY="/dev/pts/0"
declare -x TERM="xterm"
declare -x USER="xbian"
xbian@xbian ~ $ cat/etc/init/uimapper.conf
-bash: cat/etc/init/uimapper.conf: No such file or directory
xbian@xbian ~ $ cat /etc/init/uimapper.conf
#!upstart
        description "uimapper"


        env UIMAPPER_DEV="/dev/input/event2"
        env UIMAPPER_CONF="configs/touchscreen.py"
        env UIMAPPER_DIR="/scripts/uinput-mapper"

        start on (input-device-added SUBSYSTEM=input)

        stop on input-device-removed

        nice -10

        kill timeout 1

        expect fork

        script
                chdir $UIMAPPER_DIR
                exec ./input-read.py $UIMAPPER_DEV -D | ./input-create.py $UIMAPPER_CONF &
        end script
        respawn

I really need to get a manual and learn the basics of all this.


RE: egalax touchscreen not working - deHakkelaar - 19th Aug, 2015 04:40 AM

Hmmm I tried myself to run that touch install script but noticed my touch
is not detected/no drivers loaded so need to fix first to test.
By the looks, everything looks configured correctly.
Does that pointercal file exist thats created by the "ts_calibrate" tool ?

Terminal
cat /etc/pointercal

You can run "ts_calibrate" from the bash command line if that pointercal
file does not exist but need to activate SSH for the "root" account and set password using the "xbian-config" tool:

Terminal
sudo xbian-config
su -
export LD_LIBRARY_PATH=/usr/local/lib
export TSLIB_CONSOLEDEVICE=none
export TSLIB_FBDEVICE=/dev/fb0
export TSLIB_TSDEVICE=/dev/input/event2
export TSLIB_CALIBFILE=/etc/pointercal
export TSLIB_CONFFILE=/usr/local/etc/ts.conf
export TSLIB_PLUGINDIR=/usr/local/lib/ts
ts_calibrate
exit
cat /etc/pointercal

Are you sure no other input device is created after running:

Terminal
sudo stop xbmc
sudo stop uimapper
sudo start uimapper
evtest

Keep an eye on error/warn messages that might appear when running:

Terminal
dmesg

or

Terminal
dmesg | tail

I'll have a look and test shortly on me own touch when possible.

Ps. Below one looks ok to learn bit of bash etc but still bit heavy:
http://www.tldp.org/LDP/Bash-Beginners-Guide/html/


RE: egalax touchscreen not working - james85 - 22nd Aug, 2015 01:49 AM

Terminal
xbian@xbian ~ $ cat /etc/pointercal
307 -24273 48101768 21271 354 -3832164 65536 720 576 1

Stop xbmc command doesn't seem to work
Terminal
xbian@xbian ~ $ sudo stop xbmc
stop: Unknown instance:

As for dmesg command:
Code:
xbian@xbian ~ $ dmesg
[    0.000000] Booting Linux on physical CPU 0xf00
[    0.000000] Linux version 3.18.8+ (root@vps01) (gcc version 4.7.3 (Ubuntu/Linaro 4.7.3-12ubuntu1) ) #1 SMP PREEMPT Thu Mar 5 03:13:36 CET 2015
[    0.000000] CPU: ARMv7 Processor [410fc075] revision 5 (ARMv7), cr=10c5387d
[    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[    0.000000] Machine: BCM2709
[    0.000000] cma: Reserved 16 MiB at 0x2e000000
[    0.000000] Memory policy: Data cache writealloc
[    0.000000] On node 0 totalpages: 192512
[    0.000000] free_area_init_node: node 0, pgdat 806e0c40, node_mem_map ada0f000
[    0.000000]   Normal zone: 1504 pages used for memmap
[    0.000000]   Normal zone: 0 pages reserved
[    0.000000]   Normal zone: 192512 pages, LIFO batch:31
[    0.000000] [bcm2709_smp_init_cpus] enter (8560->f3003010)
[    0.000000] [bcm2709_smp_init_cpus] ncores=4
[    0.000000] PERCPU: Embedded 9 pages/cpu @ad9e6000 s5504 r8192 d23168 u36864
[    0.000000] pcpu-alloc: s5504 r8192 d23168 u36864 alloc=9*4096
[    0.000000] pcpu-alloc: [0] 0 [0] 1 [0] 2 [0] 3
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 191008
[    0.000000] Kernel command line: selinux=0 usbcore.autosuspend=-1 dma.dmachans=0x7f35 bcm2708_fb.fbwidth=720 bcm2708_fb.fbheight=576 bcm2709.boardrev=0xa21041 bcm2709.serial=0x38497b7a smsc95xx.macaddr=B8:27:EB:49:7B:7A bcm2708_fb.fbswap=1 bcm2709.disk_led_gpio=47 bcm2709.disk_led_active_low=0 sdhci-bcm2708.emmc_clock_freq=250000000 vc_mem.mem_base=0x3dc00000 vc_mem.mem_size=0x3f000000  telnet zswap.enabled=1 zswap.compressor=lz4 sdhci-bcm2708.sync_after_dma=0 dwc_otg.lpm_enable=0 console=tty1 root=/dev/mmcblk0p2 rootflags=subvol=root/@,thread_pool=2,autodefrag,compress=lz4,commit=120 rootfstype=btrfs rootwait smsc95xx.turbo_mode=N logo.nologo quiet noswap loglevel=0 mod_scsi.scan=sync partswap startevent=mountall splash nohdparm --startup-event mountall
[    0.000000] PID hash table entries: 4096 (order: 2, 16384 bytes)
[    0.000000] Dentry cache hash table entries: 131072 (order: 7, 524288 bytes)
[    0.000000] Inode-cache hash table entries: 65536 (order: 6, 262144 bytes)
[    0.000000] Memory: 739344K/770048K available (5125K kernel code, 270K rwdata, 1424K rodata, 192K init, 263K bss, 30704K reserved)
[    0.000000] Virtual kernel memory layout:
[    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
[    0.000000]     fixmap  : 0xffc00000 - 0xffe00000   (2048 kB)
[    0.000000]     vmalloc : 0xaf800000 - 0xff000000   (1272 MB)
[    0.000000]     lowmem  : 0x80000000 - 0xaf000000   ( 752 MB)
[    0.000000]     modules : 0x7f000000 - 0x80000000   (  16 MB)
[    0.000000]       .text : 0x80008000 - 0x8066d764   (6550 kB)
[    0.000000]       .init : 0x8066e000 - 0x8069e000   ( 192 kB)
[    0.000000]       .data : 0x8069e000 - 0x806e1a20   ( 271 kB)
[    0.000000]        .bss : 0x806e1a20 - 0x80723694   ( 264 kB)
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
[    0.000000] Preemptible hierarchical RCU implementation.
[    0.000000] NR_IRQS:480
[    0.000000] Architected cp15 timer(s) running at 19.20MHz (virt).
[    0.000010] sched_clock: 56 bits at 19MHz, resolution 52ns, wraps every 3579139424256ns
[    0.000025] Switching to timer-based delay loop, resolution 52ns
[    0.000219] Console: colour dummy device 80x30
[    0.000348] console [tty1] enabled
[    0.000369] Calibrating delay loop (skipped), value calculated using timer frequency.. 38.00 BogoMIPS (lpj=64000)
[    0.000384] pid_max: default: 32768 minimum: 301
[    0.000525] Mount-cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.000538] Mountpoint-cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.001397] Initializing cgroup subsys memory
[    0.001452] CPU: Testing write buffer coherency: ok
[    0.001798] missing device node for CPU 0
[    0.001807] missing device node for CPU 1
[    0.001813] missing device node for CPU 2
[    0.001819] missing device node for CPU 3
[    0.001832] CPU0: thread -1, cpu 0, socket 15, mpidr 80000f00
[    0.001840] [bcm2709_smp_prepare_cpus] enter
[    0.001917] Setting up static identity map for 0x4de300 - 0x4de334
[    0.016959] [bcm2709_boot_secondary] cpu:1 started (0) 18
[    0.017196] CPU1: Booted secondary processor
[    0.017202] [bcm2709_secondary_init] enter cpu:1
[    0.017234] CPU1: thread -1, cpu 1, socket 15, mpidr 80000f01
[    0.017632] [bcm2709_boot_secondary] cpu:2 started (0) 17
[    0.017796] CPU2: Booted secondary processor
[    0.017799] [bcm2709_secondary_init] enter cpu:2
[    0.017820] CPU2: thread -1, cpu 2, socket 15, mpidr 80000f02
[    0.018110] [bcm2709_boot_secondary] cpu:3 started (0) 17
[    0.018259] CPU3: Booted secondary processor
[    0.018263] [bcm2709_secondary_init] enter cpu:3
[    0.018282] CPU3: thread -1, cpu 3, socket 15, mpidr 80000f03
[    0.018322] Brought up 4 CPUs
[    0.018340] SMP: Total of 4 processors activated (153.00 BogoMIPS).
[    0.018346] CPU: All CPU(s) started in SVC mode.
[    0.018406] LOCALITY CPU 0 to 1: 2
[    0.018413] LOCALITY CPU 0 to 2: 2
[    0.018419] LOCALITY CPU 0 to 3: 2
[    0.018426] LOCALITY CPU 1 to 2: 2
[    0.018432] LOCALITY CPU 1 to 3: 2
[    0.018438] LOCALITY CPU 2 to 3: 2
[    0.018819] devtmpfs: initialized
[    0.032775] VFP support v0.3: implementor 41 architecture 2 part 30 variant 7 rev 5
[    0.033600] xor: measuring software checksum speed
[    0.066847]    arm4regs  :  1249.200 MB/sec
[    0.100220]    8regs     :   792.000 MB/sec
[    0.133594]    32regs    :   729.600 MB/sec
[    0.166970]    neon      :  1162.800 MB/sec
[    0.166978] xor: using function: arm4regs (1249.200 MB/sec)
[    0.167005] pinctrl core: initialized pinctrl subsystem
[    0.167513] NET: Registered protocol family 16
[    0.172372] DMA: preallocated 4096 KiB pool for atomic coherent allocations
[    0.173339] bcm2709.uart_clock = 3000000
[    0.174735] hw-breakpoint: found 5 (+1 reserved) breakpoint and 4 watchpoint registers.
[    0.174745] hw-breakpoint: maximum watchpoint size is 8 bytes.
[    0.174767] mailbox: Broadcom VideoCore Mailbox driver
[    0.174846] bcm2708_vcio: mailbox at f300b880
[    0.175086] bcm_power: Broadcom power driver
[    0.175096] bcm_power_open() -> 0
[    0.175103] bcm_power_request(0, 8)
[    0.675745] bcm_mailbox_read -> 00000080, 0
[    0.675752] bcm_power_request -> 0
[    0.675836] Serial: AMBA PL011 UART driver
[    0.675927] dev:f1: ttyAMA0 at MMIO 0x3f201000 (irq = 83, base_baud = 0) is a PL011 rev3
[    0.767923] raid6: int32x1    134 MB/s
[    0.824870] raid6: int32x2    173 MB/s
[    0.881548] raid6: int32x4    182 MB/s
[    0.938226] raid6: int32x8    179 MB/s
[    0.994813] raid6: neonx1     428 MB/s
[    1.051532] raid6: neonx2     580 MB/s
[    1.108305] raid6: neonx4     704 MB/s
[    1.165037] raid6: neonx8     645 MB/s
[    1.165044] raid6: using algorithm neonx4 (704 MB/s)
[    1.165051] raid6: using intx1 recovery algorithm
[    1.165546] SCSI subsystem initialized
[    1.165697] usbcore: registered new interface driver usbfs
[    1.165758] usbcore: registered new interface driver hub
[    1.165855] usbcore: registered new device driver usb
[    1.167411] Switched to clocksource arch_sys_counter
[    1.174004] NET: Registered protocol family 2
[    1.174816] TCP established hash table entries: 8192 (order: 3, 32768 bytes)
[    1.174900] TCP bind hash table entries: 8192 (order: 4, 65536 bytes)
[    1.175027] TCP: Hash tables configured (established 8192 bind 8192)
[    1.175111] TCP: reno registered
[    1.175124] UDP hash table entries: 512 (order: 2, 16384 bytes)
[    1.175174] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes)
[    1.175407] NET: Registered protocol family 1
[    1.175662] RPC: Registered named UNIX socket transport module.
[    1.175672] RPC: Registered udp transport module.
[    1.175679] RPC: Registered tcp transport module.
[    1.175685] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    1.177327] bcm2708_dma: DMA manager at f3007000
[    1.177464] bcm2708_gpio: bcm2708_gpio_probe 806bf4e8
[    1.177866] vc-mem: phys_addr:0x00000000 mem_base=0x3dc00000 mem_size:0x3f000000(1008 MiB)
[    1.178716] futex hash table entries: 1024 (order: 4, 65536 bytes)
[    1.184841] zpool: loaded
[    1.184856] zbud: loaded
[    1.185406] VFS: Disk quotas dquot_6.5.2
[    1.185578] Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    1.187576] NFS: Registering the id_resolver key type
[    1.187634] Key type id_resolver registered
[    1.187641] Key type id_legacy registered
[    1.187667] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    1.188330] msgmni has been set to 1476
[    1.189463] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 250)
[    1.189482] io scheduler noop registered
[    1.189493] io scheduler deadline registered
[    1.189658] io scheduler cfq registered
[    1.189820] io scheduler bfq registered (default)
[    1.189827] BFQ I/O-scheduler version: v7r7
[    1.191037] BCM2708FB: allocated DMA memory ee400000
[    1.191070] BCM2708FB: allocated DMA channel 0 @ f3007000
[    1.196867] Console: switching to colour frame buffer device 90x36
[    1.200425] bcm2708-dmaengine bcm2708-dmaengine: Load BCM2835 DMA engine driver
[    1.200610] uart-pl011 dev:f1: no DMA platform data
[    1.201727] usbcore: registered new interface driver smsc95xx
[    1.201761] dwc_otg: version 3.00a 10-AUG-2012 (platform bus)
[    1.401904] Core Release: 2.80a
[    1.401916] Setting default values for core params
[    1.401952] Finished setting default values for core params
[    1.602190] Using Buffer DMA mode
[    1.602199] Periodic Transfer Interrupt Enhancement - disabled
[    1.602205] Multiprocessor Interrupt Enhancement - disabled
[    1.602212] OTG VER PARAM: 0, OTG VER FLAG: 0
[    1.602223] Dedicated Tx FIFOs mode
[    1.602445] WARN::dwc_otg_hcd_init:1047: FIQ DMA bounce buffers: virt = 0xae414000 dma = 0xee414000 len=9024
[    1.602474] FIQ FSM acceleration enabled for :
[    1.602474] Non-periodic Split Transactions
[    1.602474] Periodic Split Transactions
[    1.602474] High-Speed Isochronous Endpoints
[    1.602489] dwc_otg: Microframe scheduler enabled
[    1.602524] WARN::hcd_init_fiq:412: FIQ on core 1 at 0x803ad53c
[    1.602535] WARN::hcd_init_fiq:413: FIQ ASM at 0x803ad86c length 36
[    1.602547] WARN::hcd_init_fiq:438: MPHI regs_base at 0xaf812000
[    1.602564] dwc_otg bcm2708_usb: DWC OTG Controller
[    1.602595] dwc_otg bcm2708_usb: new USB bus registered, assigned bus number 1
[    1.602630] dwc_otg bcm2708_usb: irq 32, io mem 0x00000000
[    1.602674] Init: Port Power? op_state=1
[    1.602680] Init: Power Port (0)
[    1.602866] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[    1.602878] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.602889] usb usb1: Product: DWC OTG Controller
[    1.602898] usb usb1: Manufacturer: Linux 3.18.8+ dwc_otg_hcd
[    1.602908] usb usb1: SerialNumber: bcm2708_usb
[    1.603425] hub 1-0:1.0: USB hub found
[    1.603462] hub 1-0:1.0: 1 port detected
[    1.603731] dwc_otg: FIQ enabled
[    1.603739] dwc_otg: NAK holdoff enabled
[    1.603744] dwc_otg: FIQ split-transaction FSM enabled
[    1.603766] Module dwc_common_port init
[    1.603955] usbcore: registered new interface driver usb-storage
[    1.604160] mousedev: PS/2 mouse device common for all mice
[    1.604738] bcm2835-cpufreq: min=600000 max=900000
[    1.604950] sdhci: Secure Digital Host Controller Interface driver
[    1.604957] sdhci: Copyright(c) Pierre Ossman
[    1.605068] DMA channels allocated for the MMC driver
[    1.630756] Load BCM2835 MMC driver
[    1.630866] ledtrig-cpu: registered to indicate activity on CPUs
[    1.630961] hidraw: raw HID events driver (C) Jiri Kosina
[    1.631144] usbcore: registered new interface driver usbhid
[    1.631150] usbhid: USB HID core driver
[    1.632434] NET: Registered protocol family 17
[    1.634622] Key type dns_resolver registered
[    1.635280] Registering SWP/SWPB emulation handler
[    1.635727] zswap: loading zswap
[    1.635736] zpool: creating pool type zbud
[    1.635747] zpool: created zbud pool
[    1.635754] zswap: using zbud pool
[    1.635795] zswap: using lz4 compressor
[    1.637479] Btrfs loaded
[    1.637991] Waiting for root device /dev/mmcblk0p2...
[    1.683255] mmc0: host does not support reading read-only switch, assuming write-enable
[    1.686924] mmc0: new high speed SDHC card at address e624
[    1.687227] mmcblk0: mmc0:e624 SS04G 3.69 GiB
[    1.689027]  mmcblk0: p1 p2 p3
[    1.741868] BTRFS: device label xbian devid 1 transid 1833 /dev/root
[    1.743376] BTRFS info (device mmcblk0p2): enabling auto defrag
[    1.743401] BTRFS info (device mmcblk0p2): disk space caching is enabled
[    1.743408] BTRFS: has skinny extents
[    1.782550] BTRFS: detected SSD devices, enabling SSD mode
[    1.800836] Indeed it is in host mode hprt0 = 00021501
[    1.810798] VFS: Mounted root (btrfs filesystem) on device 0:12.
[    1.812571] devtmpfs: mounted
[    1.812803] Freeing unused kernel memory: 192K (8066e000 - 8069e000)
[    1.812810] BFS CPU scheduler v0.460 by Con Kolivas.
[    1.967510] usb 1-1: new high-speed USB device number 2 using dwc_otg
[    1.967641] Indeed it is in host mode hprt0 = 00001101
[    2.138760] random: init urandom read with 35 bits of entropy available
[    2.147692] usb 1-1: New USB device found, idVendor=0424, idProduct=9514
[    2.147709] usb 1-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[    2.148302] hub 1-1:1.0: USB hub found
[    2.148385] hub 1-1:1.0: 5 ports detected
[    2.427620] usb 1-1.1: new high-speed USB device number 3 using dwc_otg
[    2.521050] usb 1-1.1: New USB device found, idVendor=0424, idProduct=ec00
[    2.521070] usb 1-1.1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[    2.523809] smsc95xx v1.0.4
[    2.566511] smsc95xx 1-1.1:1.0 eth0: register 'smsc95xx' at usb-bcm2708_usb-1.1, smsc95xx USB 2.0 Ethernet, b8:27:eb:49:7b:7a
[    2.644298] usb 1-1.2: new high-speed USB device number 4 using dwc_otg
[    2.754681] usb 1-1.2: New USB device found, idVendor=148f, idProduct=5370
[    2.754700] usb 1-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[    2.754711] usb 1-1.2: Product: 802.11 n WLAN
[    2.754721] usb 1-1.2: Manufacturer: Ralink
[    2.754730] usb 1-1.2: SerialNumber: 1.0
[    2.834180] usb 1-1.3: new low-speed USB device number 5 using dwc_otg
[    2.941563] usb 1-1.3: New USB device found, idVendor=0eef, idProduct=0001
[    2.941582] usb 1-1.3: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[    2.941597] usb 1-1.3: Product: USB TouchController
[    2.941610] usb 1-1.3: Manufacturer: eGalax Inc.
[    3.024174] usb 1-1.4: new low-speed USB device number 6 using dwc_otg
[    3.140343] usb 1-1.4: New USB device found, idVendor=413c, idProduct=2112
[    3.140362] usb 1-1.4: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[    3.140377] usb 1-1.4: Product: Dell USB Wired Multimedia Keyboard
[    3.140391] usb 1-1.4: Manufacturer: DELL
[    3.152493] input: DELL Dell USB Wired Multimedia Keyboard as /devices/platform/bcm2708_usb/usb1/1-1/1-1.4/1-1.4:1.0/0003:413C:2112.0001/input/input0
[    3.152925] hid-generic 0003:413C:2112.0001: input,hidraw0: USB HID v1.10 Keyboard [DELL Dell USB Wired Multimedia Keyboard] on usb-bcm2708_usb-1.4/input0
[    3.174199] input: DELL Dell USB Wired Multimedia Keyboard as /devices/platform/bcm2708_usb/usb1/1-1/1-1.4/1-1.4:1.1/0003:413C:2112.0002/input/input1
[    3.174597] hid-generic 0003:413C:2112.0002: input,hidraw1: USB HID v1.10 Device [DELL Dell USB Wired Multimedia Keyboard] on usb-bcm2708_usb-1.4/input1
[    8.871918] random: nonblocking pool is initialized
[    9.274713] BTRFS info (device mmcblk0p2): disk space caching is enabled
[   10.251711] smsc95xx 1-1.1:1.0 eth0: hardware isn't capable of remote wakeup
[   10.279520] init: xbian-failaccess main process (235) killed by TERM signal
[   10.917802] vchiq: vchiq_init_state: slot_zero = 0xae000000, is_master = 0
[   11.094112] udevd[689]: starting version 175
[   11.309136] bcm2708_spi bcm2708_spi.0: master is unqueued, this is deprecated
[   11.309942] bcm2708_spi bcm2708_spi.0: SPI Controller at 0x3f204000 (irq 80)
[   11.321010] bcm2708_i2c_init_pinmode(1,2)
[   11.321027] bcm2708_i2c_init_pinmode(1,3)
[   11.321619] bcm2708_i2c bcm2708_i2c.1: BSC1 Controller at 0x3f804000 (irq 79) (baudrate 100000)
[   11.376780] input: eGalax Inc. USB TouchController as /devices/platform/bcm2708_usb/usb1/1-1/1-1.3/1-1.3:1.0/input/input2
[   11.377260] usbcore: registered new interface driver usbtouchscreen
[   11.447733] cfg80211: Calling CRDA to update world regulatory domain
[   11.609504] init: failsafe main process (96) killed by TERM signal
[   11.614324] usb 1-1.2: reset high-speed USB device number 4 using dwc_otg
[   11.682812] pcm512x 1-004d: Failed to reset device: -5
[   11.682869] pcm512x: probe of 1-004d failed with error -5
[   11.683149] pcm512x 1-004c: Failed to reset device: -5
[   11.683189] pcm512x: probe of 1-004c failed with error -5
[   11.718483] ieee80211 phy0: rt2x00_set_rt: Info - RT chipset 5390, rev 0502 detected
[   11.753085] ieee80211 phy0: rt2x00_set_rf: Info - RF chipset 5370 detected
[   11.791641] ieee80211 phy0: Selected rate control algorithm 'minstrel_ht'
[   11.793309] usbcore: registered new interface driver rt2800usb
[   12.684173] frandom: Seeded global generator now (used by erandom)
[   12.689659] ieee80211 phy0: rt2x00lib_request_firmware: Info - Loading firmware file 'rt2870.bin'
[   12.695733] ieee80211 phy0: rt2x00lib_request_firmware: Info - Firmware detected - version: 0.29
[   13.328472] smsc95xx 1-1.1:1.0 eth0: hardware isn't capable of remote wakeup
[   14.338351] wlan0: authenticate with 74:9d:dc:67:85:01
[   14.364789] wlan0: send auth to 74:9d:dc:67:85:01 (try 1/3)
[   14.381041] wlan0: authenticated
[   14.381527] rt2800usb 1-1.2:1.0 wlan0: disabling HT as WMM/QoS is not supported by the AP
[   14.381543] rt2800usb 1-1.2:1.0 wlan0: disabling VHT as WMM/QoS is not supported by the AP
[   14.384178] wlan0: associate with 74:9d:dc:67:85:01 (try 1/3)
[   14.395178] wlan0: RX AssocResp from 74:9d:dc:67:85:01 (capab=0x431 status=0 aid=2)
[   14.400758] wlan0: associated
[   14.400884] cfg80211: Calling CRDA to update world regulatory domain
[   17.478756] wlan0: deauthenticated from 74:9d:dc:67:85:01 (Reason: 2=PREV_AUTH_NOT_VALID)
[   17.501990] cfg80211: Calling CRDA for country: US
[   18.787854] wlan0: authenticate with 74:9d:dc:67:85:01
[   18.811095] wlan0: send auth to 74:9d:dc:67:85:01 (try 1/3)
[   18.924090] wlan0: send auth to 74:9d:dc:67:85:01 (try 2/3)
[   18.935664] wlan0: authenticated
[   18.936022] rt2800usb 1-1.2:1.0 wlan0: disabling HT as WMM/QoS is not supported by the AP
[   18.936037] rt2800usb 1-1.2:1.0 wlan0: disabling VHT as WMM/QoS is not supported by the AP
[   18.937432] wlan0: associate with 74:9d:dc:67:85:01 (try 1/3)
[   18.955258] wlan0: RX AssocResp from 74:9d:dc:67:85:01 (capab=0x431 status=0 aid=2)
[   18.960642] wlan0: associated
[   22.960540] init: wait-for-state (xbmcxbmc-loaded) main process (1260) killed by TERM signal
[   30.037035] init: xbmc-failed-start main process (530) killed by TERM signal
[   30.069923] init: wait-for-state (zram-swapxbmc-done) main process (1082) killed by TERM signal
[   30.256124] Adding 251388k swap on /dev/mmcblk0p3.  Priority:0 extents:1 across:251388k SSFS
[   30.400308] init: uimapper main process (949) terminated with status 1
[   30.400472] init: uimapper main process ended, respawning
[   31.923983] init: uimapper main process (1967) terminated with status 1
[   31.924220] init: uimapper main process ended, respawning
[   32.483530] init: uimapper main process (1977) terminated with status 1
[   32.483709] init: uimapper main process ended, respawning
[   32.897101] init: uimapper main process (1987) terminated with status 1
[   32.897269] init: uimapper main process ended, respawning
[   33.317934] init: uimapper main process (1997) terminated with status 1
[   33.318116] init: uimapper main process ended, respawning
[   33.940483] init: uimapper main process (2007) terminated with status 1
[   33.940682] init: uimapper main process ended, respawning
[   34.380159] init: uimapper main process (2017) terminated with status 1
[   34.380318] init: uimapper main process ended, respawning
[   34.976731] init: uimapper main process (2027) terminated with status 1
[   34.976887] init: uimapper main process ended, respawning
[   35.632760] init: uimapper main process (2037) terminated with status 1
[   35.633013] init: uimapper main process ended, respawning
[   36.113351] init: uimapper main process (2140) terminated with status 1
[   36.113503] init: uimapper main process ended, respawning
[   37.245030] init: uimapper main process (2234) terminated with status 1
[   37.245210] init: uimapper main process ended, respawning
[   38.506391] init: uimapper main process (2245) terminated with status 1
[   38.506546] init: uimapper main process ended, respawning
[   39.149869] init: uimapper main process (2255) terminated with status 1
[   39.150019] init: uimapper main process ended, respawning
[   39.543512] init: uimapper main process (2287) terminated with status 1
[   39.543704] init: uimapper main process ended, respawning
[   39.916653] init: uimapper main process (2297) terminated with status 1
[   39.916801] init: uimapper main process ended, respawning
[   40.286596] init: uimapper main process (2307) terminated with status 1
[   40.286749] init: uimapper main process ended, respawning
[   41.007188] init: uimapper main process (2317) terminated with status 1
[   41.007351] init: uimapper main process ended, respawning
[   51.775672] init: wait-for-state (kill-splashxbmc-exits) main process (2468) killed by TERM signal

Hopefully this is useful. I'm not sure what I'm looking at here but I'm going to look more closely to see if I can find some kind of error. And thanks for that link, I've been reading a lot and it's actually a lot more interesting than I thought it would be.