2008-02-15 09:49:55     touchscreen w/microwin

Document created by Aaronwu Employee on Aug 5, 2013
Version 1Show Document
  • View in full screen mode

2008-02-15 09:49:55     touchscreen w/microwin

Bill Fassler (UNITED STATES)

Message: 51108    I believe I have nano-x configured properly and all my environment variables set and I have confirmed that the touchscreen is working using the event test, but I get a failure while attempting to initialize the touchscreen within nano-X:

 

Can anybody think of something I may have forgotten to do?

 

root:/dev/input> ln -s ts0 ts

root:/dev/input> ls -la

drw-r--r--    2 root     root            0 Jan  1 00:03 .

drwxr-xr-x    5 root     root            0 Jan  1 00:00 ..

crw-rw-r--    1 root     root      13,  64 Jan  1 00:00 event0

crw-rw-r--    1 root     root      13,  65 Jan  1 00:00 event1

crw-rw-r--    1 root     root      13,  66 Jan  1 00:00 event2

crw-rw-r--    1 root     root      13,  63 Jan  1 00:00 mice

lrwxrwxrwx    1 root     root            3 Jan  1 00:03 ts -> ts0

crw-rw-r--    1 root     root      13, 128 Jan  1 00:00 ts0

root:/dev/input> env

TSLIB_FBDEVICE=/dev/fb0

TSLIB_CONSOLEDEVICE=none

TSLIB_CONFFILE=/etc/ts.conf

TSLIB_CALIBFILE=/etc/pointercl

TSLIB_TSDEVICE=/dev/input/event0

HOME=/

SHELL=/bin/sh

PATH=/bin:/usr/bin:/etc:/sbin:/usr/sbin

TERM=linux

root:/dev/input> nano-X &

208

root:/dev/input>

########  OPEN - bf561_lq043 ###########

Errmunmap of non-mmaped memory by process 208 (nano-X)

 

Cannot initialise mouse

usb 1-1: USB disconnect, address 2

 

root:/dev/input> nano-X &

219

root:/dev/input>

########  OPEN - bf561_lq043 ###########

Errmunmap of non-mmaped memory by process 219 (nano-X)

 

Cannot initialise mouse

 

root:/dev/input> nano-X &

220

root:/dev/input>

########  OPEN - bf561_lq043 ###########

Errmunmap of non-mmaped memory by process 220 (nano-X)

 

Cannot initialise mouse

QuoteReplyEditDelete

 

 

2008-02-15 12:50:39     Re: touchscreen w/microwin

Bill Fassler (UNITED STATES)

Message: 51114    Where and how do I get my /etc directory to get populated with pointercl?

I have ts.conf and I saw pointercl in there at first, but after a make clean it seems to have disappeared and I haven't been able to get it back.

 

Bill

QuoteReplyEditDelete

 

 

2008-02-15 18:03:51     Re: touchscreen w/microwin

Mike Frysinger (UNITED STATES)

Message: 51130    the file is created by the user or automatically created when you run the test calibration utility

QuoteReplyEditDelete

 

 

2008-02-18 13:04:47     Re: touchscreen w/microwin

Bill Fassler (UNITED STATES)

Message: 51213    My touchscreen works with the event_test.  I now have nano-X launching without complaining that it cannot initialize the mouse.  But it doesn't work.  Then after I kill nano-X and retry the event test it doesn't work either. (although it did before the launch of nano-X).  Perhaps these issues will go away when I update my source code to 2008R1.

 

I am using a custom BF561 board with LQ043. Does anyone have any idea why the touchscreen would work with the event test and yet not with microwindows and trying to use it with microwindows destroys something so it won't even work with the event test a second time.

 

VOCAL> bootm 0x2000000

## Booting image at 02000000 ...

   Image Name:   Linux-2.6.22.14-ADI-2007R2-pre-s

   Image Type:   Blackfin Linux Kernel Image (gzip compressed)

   Data Size:    13108229 Bytes = 12.5 MB

   Load Address: 00100000

   Entry Point:  002c8000

   Verifying Checksum ... OK

   Uncompressing Kernel Image ... OK

Starting Kernel at = 2c8000

Linux version 2.6.22.14-ADI-2007R2-pre-svn3937 (vocal@Grumpy) (gcc version 4.1.2

(ADI svn)) #466 Mon Feb 18 11:45:14 EST 2008

early printk enabled on early_BFuart0

Board Memory: 128MB

Kernel Managed Memory: 128MB

Memory map:

  text      = 0x00100000-0x00241510

  rodata    = 0x00242000-0x002b1594

  data      = 0x002b2000-0x002c8000

    stack   = 0x002b2000-0x002b4000

  init      = 0x002c8000-0x01a23000

  bss       = 0x01a23000-0x01a33470

  available = 0x01a33470-0x07dff000

  DMA Zone  = 0x07e00000-0x08000000

Hardware Trace Active and Enabled

Blackfin support (C) 2004-2007 Analog Devices, Inc.

Compiled for ADSP-BF561 Rev 0.5

Blackfin Linux support by http://blackfin.uclinux.org/

Processor Speed: 589 MHz core clock and 117 MHz System Clock

HARRRII: memory_start=0x1a34000, memory_end=0x7dff000, bootmap_size=0xfc0

VIDEO_CAP: reserved 0x600000 memory bank at 0x4600000

VIDEO_CAP: reserved  0x600000 memory bank at 0x6600000

LCD: reserved 0x284000 memory bank at 0x200000

LCD: reserved  0x284000 memory bank at 0x3300000

TIIMM: reserved 0x400000 memory bank at 0xB80000

TIIMM: reserved 0x400000 memory bank at 0x2000000

Instruction Cache Enabled

Data Cache Enabled (write-back)

Built 1 zonelists.  Total pages: 32004

Kernel command line: root=/dev/mtdblock0 rw earlyprintk=serial,uart0,57600 ip=10

.1.1.170:10.1.1.137:10.1.1.1:255.255.0.0:BF561-VPHONE:eth0:off

Configuring Blackfin Priority Driven Interrupts

PID hash table entries: 512 (order: 9, 2048 bytes)

console handover: boot [early_BFuart0] -> real [ttyBF0]

Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)

Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)

Physical pages: 7dff

Memory available: 81932k/130048k RAM, (23916k init code, 1285k kernel code, 65k

data, 2048k dma)

Blackfin Scratchpad data SRAM: 4 KB

Blackfin Data A SRAM: 16 KB (7 KB free)

Blackfin Data B SRAM: 16 KB (16 KB free)

Blackfin Instruction SRAM: 16 KB (8 KB free)

Security Framework v1.0.0 initialized

Mount-cache hash table entries: 512

NET: Registered protocol family 16

Blackfin GPIO Controller

Blackfin DMA Controller

vphone_init(): registering device resources

Generic PHY: Registered new driver

SCSI subsystem initialized

usbcore: registered new interface driver usbfs

usbcore: registered new interface driver hub

usbcore: registered new device driver usb

NET: Registered protocol family 2

IP route cache hash table entries: 1024 (order: 0, 4096 bytes)

TCP established hash table entries: 4096 (order: 3, 32768 bytes)

TCP bind hash table entries: 4096 (order: 2, 16384 bytes)

TCP: Hash tables configured (established 4096 bind 4096)

TCP reno registered

BF561 Core B driver v0.1 initialized.

HARI: Request core0 supplement int 0 !!!

HARI: Request core0 supplement int 1 !!!

io scheduler noop registered

io scheduler anticipatory registered (default)

io scheduler cfq registered

bf561-lq043: FrameBuffer initializing...

dma_alloc_init: dma_page @ 0x04d26000 - 512 pages at 0x07e00000

bfin-wdt: initialized: timeout=20 sec (nowayout=0)

Serial: Blackfin serial driver

bfin-uart.1: ttyBF0 at MMIO 0xffc00400 (irq = 35) is a BFIN-UART

RAMDISK driver initialized: 16 RAM disks of 4096K size 1024 blocksize

SMSC LAN83C185: Registered new driver

Linux video capture interface: v2.00

VS6524: i2c driver ready

Configured TIMER3 for Radio Clock (33Khz)

 

########## Sys_clck = 117964800  r_period = 3601

bfin-spi bfin-spi.0: Blackfin BF5xx on-chip SPI Contoller Driver, Version 1.0, r

egs_base@ffc00500, dma channel@16

sl811: driver sl811-hcd, 19 May 2005

sl811-hcd sl811-hcd.0: SL811HS v1.5

sl811-hcd sl811-hcd.0: new USB bus registered, assigned bus number 1

sl811-hcd sl811-hcd.0: irq 81, io mem 0x28000000

usb usb1: Product: SL811HS v1.5

usb usb1: Manufacturer: Linux 2.6.22.14-ADI-2007R2-pre-svn3937 sl811-hcd

usb usb1: SerialNumber: sl811-hcd.0

usb usb1: configuration #1 chosen from 1 choice

hub 1-0:1.0: USB hub found

hub 1-0:1.0: 1 port detected

Initializing USB Mass Storage driver...

usbcore: registered new interface driver usb-storage

USB Mass Storage support registered.

usbcore: registered new interface driver libusual

mice: PS/2 mouse device common for all mice

ad7877 spi0.7: touchscreen, irq 86

input: AD7877 Touchscreen as /class/input/input0

i2c /dev entries driver

usbcore: registered new interface driver usbhid

drivers/hid/usbhid/hid-core.c: v2.6:USB HID core driver

Advanced Linux Sound Architecture Driver Version 1.0.12rc1 (Thu Jun 22 13:55:50

2006 UTC).

ASoC version 0.13.1

bfin-wm8750: bf5xx_wm8750_init

bfin-wm8750: bf5xx_probe

WM8750: WM8750 Audio Codec 0.12

wm8750: adding i2c driver  for address = 0x1a !!!!

wm8750_i2c_attach invoked !!

wm8750: successfully attached to codec at addr = 0x1a

asoc: WM8750 <-> bf5xx-i2s-0 mapping ok

bfin-wm8750: bf5xx_wm8750_init_dev

ALSA device list:

  #0: bf5xx-wm8750 (WM8750)

TCP cubic registered

NET: Registered protocol family 1

NET: Registered protocol family 17

eth0: SMSC911x/921x identified at 0x2c000000, IRQ: 84

eth0: SMSC911x MAC Address: 9a:d2:04:b7:5a:50

SMSC_WARNING: smsc911x_phy_initialise_external: No external PHY detected.

SMSC_WARNING: smsc911x_phy_initialise_external: Using internal PHY instead.

eth0: link down

IP-Config: Complete:

      device=eth0, addr=10.1.1.170, mask=255.255.0.0, gw=10.1.1.1,

     host=BF561-VPHONE, domain=, nis-domain=(none),

     bootserver=10.1.1.137, rootserver=10.1.1.137, rootpath=

Freeing unused kernel memory: 23916k freed

                           _____________________________________

        a8888b.           / Welcome to the uClinux distribution \

       d888888b.         /       _     _                         \

       8P"YP"Y88        /       | |   |_|            __  __ (TM)  |

       8|o||o|88  _____/        | |    _ ____  _   _ \ \/ /       |

       8'    .88       \        | |   | |  _ \| | | | \  /        |

       8`._.' Y8.       \       | |__ | | | | | |_| | /  \        |

      d/      `8b.       \      \____||_|_| |_|\____|/_/\_\       |

     dP   .    Y8b.       \   For embedded processors including   |

    d8:'  "  `::88b        \    the Analog Devices Blackfin      /

   d8"         'Y88b        \___________________________________/

  :8P    '      :888

   8a.   :     _a88P         For further information, check out:

._/"Yaa_:   .| 88P|            - http://blackfin.uclinux.org/

\    YP"    `| 8P  `.          - http://docs.blackfin.uclinux.org/

/     \.___.d|    .'           - http://www.uclinux.org/

`--..__)8888P`._.'  jgs/a:f    - http://www.analog.com/blackfin

 

Have a lot of fun...

init: Missing TERMTYPE field in inittabinit: Missing TERMTYPE field in inittabin

it: Missing TERMTYPE field in inittabinit: Missing TERMTYPE field in inittabinit

: Missing TERMTYPE field in inittab

 

BusyBox v1.4.1 (2008-02-18 10:50:25 EST) Built-in shell (msh)

Enter 'help' for a list of built-in commands.

 

root:~> eth0: link up, 10Mbps, half-duplex, lpa 0x0020

 

root:~> event_test /dev/input/event0

Input driver version is 1.0.0

Input device ID: bus 0x0 vendor 0x0 product 0x0 version 0x0

Input device name: "AD7877 Touchscreen"

Supported events:

  Event type 0 (Reset)

    Event code 0 (Reset)

    Event code 3 (Absolute)

  Event type 3 (Absolute)

    Event code 0 (X)

      Value      0

      Min        0

      Max     4095

    Event code 1 (Y)

      Value      0

      Min        0

      Max     4095

    Event code 24 (Pressure)

      Value      0

      Min        0

      Max     1000

Testing ... (interrupt to exit)

Event: time 1167609622.645085, type 3 (Absolute), code 0 (X), value 2589

Event: time 1167609622.645091, type 3 (Absolute), code 24 (Pressure), value 238

Event: time 1167609622.645094, type 0 (Reset), code 0 (Reset), value 0

Event: time 1167609622.688398, type 3 (Absolute), code 0 (X), value 3907

Event: time 1167609622.688402, type 3 (Absolute), code 1 (Y), value 1965

Event: time 1167609622.688405, type 3 (Absolute), code 24 (Pressure), value 233

Event: time 1167609622.688407, type 0 (Reset), code 0 (Reset), value 0

 

 

root:/dev> ln -s /dev/input/ts0 ts0

root:/dev> ls -la

drwxr-xr-x    5 root     root            0 Jan  1 00:01 .

drwxr-xr-x   14 root     root            0 Jan  1 00:00 ..

crw-rw----    1 root     root      14,   4 Jan  1 00:00 audio

crwxr-xr-x    1 root     root       5,   1 Jan  1 00:01 console

crw-rw----    1 root     root      10, 229 Jan  1 00:00 coreb

crw-rw----    1 root     root      14,   3 Jan  1 00:00 dsp

crw-rw----    1 root     root      29,   0 Jan  1 00:00 fb0

crw-rw----    1 root     root       1,   7 Jan  1 00:00 full

crw-rw----    1 root     root      89,   0 Jan  1 00:00 i2c-0

drw-r--r--    2 root     root            0 Jan  1 00:00 input

crw-rw----    1 root     root       1,   2 Jan  1 00:00 kmem

crw-rw----    1 root     root       1,  11 Jan  1 00:00 kmsg

srw-rw-rw-    1 root     root            0 Jan  1 00:00 log

crw-rw----    1 root     root       1,   1 Jan  1 00:00 mem

crw-rw----    1 root     root      14,   0 Jan  1 00:00 mixer

crw-r-----    1 root     root       1,   3 Jan  1 00:00 null

crw-rw----    1 root     root      10,   1 Jan  1 00:00 psaux

crw-rw----    1 root     root       5,   2 Jan  1 00:00 ptmx

drwxr-xr-x    2 root     root            0 Jan  1 00:00 pts

brw-rw----    1 root     root       1,   0 Jan  1 00:00 ram0

brw-rw----    1 root     root       1,   1 Jan  1 00:00 ram1

brw-rw----    1 root     root       1,  10 Jan  1 00:00 ram10

brw-rw----    1 root     root       1,  11 Jan  1 00:00 ram11

brw-rw----    1 root     root       1,  12 Jan  1 00:00 ram12

brw-rw----    1 root     root       1,  13 Jan  1 00:00 ram13

brw-rw----    1 root     root       1,  14 Jan  1 00:00 ram14

brw-rw----    1 root     root       1,  15 Jan  1 00:00 ram15

brw-rw----    1 root     root       1,   2 Jan  1 00:00 ram2

brw-rw----    1 root     root       1,   3 Jan  1 00:00 ram3

brw-rw----    1 root     root       1,   4 Jan  1 00:00 ram4

brw-rw----    1 root     root       1,   5 Jan  1 00:00 ram5

brw-rw----    1 root     root       1,   6 Jan  1 00:00 ram6

brw-rw----    1 root     root       1,   7 Jan  1 00:00 ram7

brw-rw----    1 root     root       1,   8 Jan  1 00:00 ram8

brw-rw----    1 root     root       1,   9 Jan  1 00:00 ram9

crw-rw----    1 root     root       1,   8 Jan  1 00:00 random

drw-r--r--    2 root     root            0 Jan  1 00:00 snd

lrwxrwxrwx    1 root     root           14 Jan  1 00:01 ts0 -> /dev/input/ts0

crw-rw----    1 root     root       5,   0 Jan  1 00:00 tty

crw-rw----    1 root     root     204,  64 Jan  1 00:00 ttyBF0

crw-rw----    1 root     root       1,   9 Jan  1 00:00 urandom

crw-rw----    1 root     root     254,   0 Jan  1 00:00 usbdev1.1_ep00

crw-rw----    1 root     root     254,   1 Jan  1 00:00 usbdev1.1_ep81

crw-rw----    1 root     root      10, 130 Jan  1 00:00 watchdog

crw-r-----    1 root     root       1,   5 Jan  1 00:00 zero

 

root:/dev> nano-X &

150

root:/dev>

########  OPEN - bf561_lq043 ###########

createfont: (heigtsdev (compaq touchscreen emulation) is scheduled for removal.

See Documentation/feature-removal-schedule.txt for details.

 

createfont: (height == 0) found builtin font System (0)

 

root:/dev> nanowm &

151

root:/dev> nxclock &

152

****** clock launches, but the touchscreen can not close it *************************

root:/dev> ps

  PID  Uid        VSZ Stat Command

    1 root        560 S   /init

    2 root            SW< [kthreadd]

    3 root            SWN [ksoftirqd/0]

    4 root            SW< [events/0]

    5 root            SW< [khelper]

   35 root            SW< [kblockd/0]

   39 root            SW< [khubd]

   52 root            SW  [pdflush]

   53 root            SW  [pdflush]

   54 root            SW< [kswapd0]

   55 root            SW< [aio/0]

   89 root            SW< [mtdblockd]

   91 root            SW< [bfin-spi.0]

  140 root        476 S   inetd

  142 root        940 S   -/bin/sh

  143 root        468 S   /bin/watchdogd -f -s

  144 root        840 S   /sbin/syslogd -n

  145 root        840 S   /sbin/klogd -n

  150 root       1087 S   nano-X

  151 root        572 S   nanowm

  152 root        568 S   nxclock

  153 root        844 R   ps

root:/dev> kill -9 152

nano-X: client closed socket: 8

Destroy client 8 resources

  Destroy window 2 eventclient mask 00008002

  Destroy window 2

  Destroy gc 1001

  Destroy gc 1000

  Destroy cursor 1001

Window list:

3(7),1(0),

Pixmap list:

 

GC list:

 

Font list:

 

Region list:

 

Image list:

 

Timer list:

 

152: Killed

root:/dev> ps

  PID  Uid        VSZ Stat Command

    1 root        560 S   /init

    2 root            SW< [kthreadd]

    3 root            SWN [ksoftirqd/0]

    4 root            SW< [events/0]

    5 root            SW< [khelper]

   35 root            SW< [kblockd/0]

   39 root            SW< [khubd]

   52 root            SW  [pdflush]

   53 root            SW  [pdflush]

   54 root            SW< [kswapd0]

   55 root            SW< [aio/0]

   89 root            SW< [mtdblockd]

   91 root            SW< [bfin-spi.0]

  140 root        476 S   inetd

  142 root        940 S   -/bin/sh

  143 root        468 S   /bin/watchdogd -f -s

  144 root        840 S   /sbin/syslogd -n

  145 root        840 S   /sbin/klogd -n

  150 root       1087 S   nano-X

  151 root        572 S   nanowm

  155 root        844 R   ps

root:/dev> launcher /bin/launcher.cnf

nano-X: client closed socket: 8

Destroy client 8 resources

  Destroy window 12 eventclient mask 00000006

  Destroy window 12

  Destroy window 11 eventclient mask 00000006

  Destroy window 11

  Destroy window 10 eventclient mask 00000006

  Destroy window 10

  Destroy window 9 eventclient mask 00000006

  Destroy window 9

  Destroy window 8 eventclient mask 00000006

  Destroy window 8

  Destroy window 7 eventclient mask 00000006

  Destroy window 7

  Destroy window 6 eventclient mask 00000006

  Destroy window 6

  Destroy window 5 eventclient mask 00208000

  Destroy window 5

  Destroy window 1 eventclient mask 00020000

  Destroy pixmap 4

  Destroy gc 1006

  Destroy image 7

  Destroy image 6

  Destroy image 5

  Destroy image 4

  Destroy image 3

  Destroy image 2

  Destroy image 1

Window list:

1(0),

Pixmap list:

 

GC list:

 

Font list:

 

Region list:

 

Image list:

 

Timer list:

 

root:/dev> ps

  PID  Uid        VSZ Stat Command

    1 root        560 S   /init

    2 root            SW< [kthreadd]

    3 root            RWN [ksoftirqd/0]

    4 root            SW< [events/0]

    5 root            SW< [khelper]

   35 root            SW< [kblockd/0]

i   39 root            SW< [khubd]

   52 root            SW  [pdflush]

   53 root            SW  [pdflush]

   54 root            SW< [kswapd0]

   55 root            SW< [aio/0]

   89 root            SW< [mtdblockd]

   91 root            SW< [bfin-spi.0]

  140 root        476 S   inetd

  142 root        940 S   -/bin/sh

  143 root        468 S   /bin/watchdogd -f -s

  144 root        840 S   /sbin/syslogd -n

  145 root        840 S   /sbin/klogd -n

  150 root       1135 S   nano-X

  151 root        572 S   nanowm

  157 root        844 R   ps

root:/dev> t

t: not found

root:/dev>

root:/dev> exit

 

 

BusyBox v1.4.1 (2008-02-18 10:50:25 EST) Built-in shell (msh)

Enter 'help' for a list of built-in commands.

 

root:~> nanomunmap of non-mmaped memory by process 150 (nano-X)

 

Destroy client 7 resources

  Destroy window 1 eventclient mask 00004000

Window list:

1(0),

Pixmap list:

 

GC list:

 

Font list:

 

Region list:

 

Image list:

 

Timer list:

 

\

root:~> ps

  PID  Uid        VSZ Stat Command

    1 root        560 S   /init

    2 root            SW< [kthreadd]

    3 root            SWN [ksoftirqd/0]

    4 root            SW< [events/0]

    5 root            SW< [khelper]

   35 root            SW< [kblockd/0]

   39 root            SW< [khubd]

   52 root            SW  [pdflush]

   53 root            SW  [pdflush]

   54 root            SW< [kswapd0]

   55 root            SW< [aio/0]

   89 root            SW< [mtdblockd]

   91 root            SW< [bfin-spi.0]

  140 root        476 S   inetd

  143 root        468 S   /bin/watchdogd -f -s

  144 root        840 S   /sbin/syslogd -n

  145 root        840 S   /sbin/klogd -n

  159 root        940 S   -/bin/sh

  160 root        844 R   ps

root:~> event_test /dev/input/event0

Input driver version is 1.0.0

Input device ID: bus 0x0 vendor 0x0 product 0x0 version 0x0

Input device name: "AD7877 Touchscreen"

Supported events:

  Event type 0 (Reset)

    Event code 0 (Reset)

    Event code 3 (Absolute)

  Event type 3 (Absolute)

    Event code 0 (X)

      Value   3568

      Min        0

      Max     4095

    Event code 1 (Y)

      Value    243

      Min        0

      Max     4095

    Event code 24 (Pressure)

      Value      0

      Min        0

      Max     1000

Testing ... (interrupt to exit)

*********************** second touchscreen test does not work with event_test *************************

root:~>

 

Bill

Attachments

    Outcomes