Other Parts Discussed in Thread: MIDAS, OMAP3530, SYSCONFIG, ADS7846
I try MIDAS v2.0 following web site http://processors.wiki.ti.com/index.php/MIDAS_Ultrasound_v2.0_Demo
I think that I succeeded compile in everything except touch screen.
I try Touchscreen Setup follow web site blow.
Touchscreen SetupMIDAS utilizes the tslib library for touchscreen support on the OMAP3530 EVM. This section will guide you through setting up tslib. 1. Install required packages on host
2. For cross-compiling, define environment variables in ~/.bashrc on host as:
3. Download the source files for tslib from here and save it at ~ 4. Untar the source
5. Configure tslib
6. Comment the line ‘AC_FUNC_MALLOC’ in ~/tslib-1.0/configure.ac 7. Comment ‘#define malloc rpl_malloc’ in ~/tslib-1.0/config.h if it exists 8. Build and install tslib
9. Edit ~/workdir/filesys/etc/ts.conf to use linux layer event interface by uncommenting ‘module_raw input’ 10. Modify the device’s startup script to export the required touchscreen related environment variables. Add these lines to the file ~/development/workdir/filesys/etc/profile:
11. Remember to run ‘ts_calibrate’ on the target the first time you start the board, to calibrate the touch screen. |
I inputed command ts_calibrate and I get some message blow.
|
omap3evm login: root root@omap3evm:~# ts_calibrate root@omap3evm:~# <4>omap-dss: Could not find exact pixel clock. Requested 25188 kHz, got 25187 kHz
|
I'm looking for "Could not find exacpt pixel clock" at google and e2e.ti.com.
I found a TI member as same error message. ( http://e2e.ti.com/support/dsp/omap_applications_processors/f/447/t/94126.aspx )
But I didn't get enough answer.
So I try that as indicated.
First, I input command ls -la /dev/input.
|
root@omap3evm:~# root@omap3evm:~# ls -la /dev/input/ drwxr-xr-x 2 root root 100 Jan 1 1970 . drwxr-xr-x 10 root root 3060 Sep 11 16:17 .. crw-r----- 1 root root 13, 64 Jan 1 1970 event0 crw-r----- 1 root root 13, 65 Jan 1 1970 event1 lrwxrwxrwx 1 root root 6 Jan 1 1970 touchscreen0 -> event1 root@omap3evm:~# root@omap3evm:~# |
Second, I input command cat /proc/bus/input/devices
|
root@omap3evm:~# root@omap3evm:~# cat /proc/bus/input/devices I: Bus=0019 Vendor=0001 Product=0001 Version=0003 N: Name="omap_twl4030keypad" P: Phys=omap_twl4030keypad/input0 S: Sysfs=/class/input/input0 U: Uniq= H: Handlers=kbd event0 B: EV=100003 B: KEY=1680 0 70032 53840000 I: Bus=0000 Vendor=0000 Product=0000 Version=0000 N: Name="ADS784x Touchscreen" P: Phys=spi1.0/input0 S: Sysfs=/class/input/input1 U: Uniq= H: Handlers=event1 B: EV=b B: KEY=400 0 0 0 0 0 0 0 0 0 0 B: ABS=1000003 root@omap3evm:~# |
3th, I input command cat /dev/input/event0 & 1 and touch screen.
root@omap3evm:~# cat /dev/input/event0
There is no response when I touched the screen.
I input command cat /dev/input/event1 & touch screen.
There is something reactions.
|
root@omap3evm:~# cat /dev/input/event1 }z▒JǗ~z▒J▒J~z▒J▒~z▒Jz▒J▒:z▒Jz▒J▒: z▒J▒:z▒J▒z▒Jz▒J▒d ▒J▒dz▒J▒dPuTTYPuTTYPuTTYPuTTYPuTTYPuTTYPuTTYPuTTYPuTTz▒Jz▒J▒▒ z▒J▒▒z▒J▒z▒J] z▒J]z▒Jz▒J>▒z▒J>▒▒ z▒J>▒z▒J>z▒J▒z▒J▒▒ z▒J▒z▒Jz▒J▒9z▒J:▒ z▒Jz▒J▒yz▒J▒yv z▒J▒yz▒J▒z▒J▒▒z▒JΚh z▒JΚz▒Jz▒J▒▒z▒J▒▒> z▒J▒z▒Jz▒J6m z▒J6z▒Jz▒Jgz▒Jz▒Jgz▒Jz▒J▒ z▒J▒ z▒J▒ z▒J▒ z▒J▒▒ z▒J▒▒ z▒J▒▒ z▒J▒▒ z▒J▒ z▒J▒ z▒J/▒ |
4th, I input command ls -la /lib/ts
|
root@omap3evm:~# root@omap3evm:~# ls -la /lib/ts/ drwxr-xr-x 2 1000 1000 4096 Apr 27 2012 . drwxr-xr-x 6 1000 root 4096 Apr 27 2012 .. -rwxr-xr-x 1 1000 1000 944 Apr 27 2012 arctic2.la -rwxr-xr-x 1 1000 1000 5631 Apr 27 2012 arctic2.so -rwxr-xr-x 1 1000 1000 938 Apr 27 2012 collie.la -rwxr-xr-x 1 1000 1000 10498 Apr 27 2012 collie.so -rwxr-xr-x 1 1000 1000 932 Apr 27 2012 corgi.la -rwxr-xr-x 1 1000 1000 5597 Apr 27 2012 corgi.so -rwxr-xr-x 1 1000 1000 950 Apr 27 2012 dejitter.la -rwxr-xr-x 1 1000 1000 6658 Apr 27 2012 dejitter.so -rwxr-xr-x 1 1000 1000 932 Apr 27 2012 h3600.la -rwxr-xr-x 1 1000 1000 5625 Apr 27 2012 h3600.so -rwxr-xr-x 1 1000 1000 932 Apr 27 2012 input.la -rwxr-xr-x 1 1000 1000 7163 Apr 27 2012 input.so -rwxr-xr-x 1 1000 1000 938 Apr 27 2012 linear.la -rwxr-xr-x 1 1000 1000 8810 Apr 27 2012 linear.so -rwxr-xr-x 1 1000 1000 974 Apr 27 2012 linear_h2200.la -rwxr-xr-x 1 1000 1000 6368 Apr 27 2012 linear_h2200.so -rwxr-xr-x 1 1000 1000 932 Apr 27 2012 mk712.la -rwxr-xr-x 1 1000 1000 5629 Apr 27 2012 mk712.so -rwxr-xr-x 1 1000 1000 938 Apr 27 2012 pthres.la -rwxr-xr-x 1 1000 1000 6479 Apr 27 2012 pthres.so -rwxr-xr-x 1 1000 1000 944 Apr 27 2012 ucb1x00.la -rwxr-xr-x 1 1000 1000 5535 Apr 27 2012 ucb1x00.so -rwxr-xr-x 1 1000 1000 950 Apr 27 2012 variance.la -rwxr-xr-x 1 1000 1000 6545 Apr 27 2012 variance.so root@omap3evm:~# |
5th, I input command cat /etc/ts.conf
|
root@omap3evm:~# root@omap3evm:~# cat /etc/ts.conf # Uncomment if you wish to use the linux input layer event interface # module_raw input # Uncomment if you're using a Sharp Zaurus SL-5500/SL-5000d # module_raw collie # Uncomment if you're using a Sharp Zaurus SL-C700/C750/C760/C860 # module_raw corgi # Uncomment if you're using a device with a UCB1200/1300/1400 TS interface # module_raw ucb1x00 # Uncomment if you're using an HP iPaq h3600 or similar # module_raw h3600 # Uncomment if you're using a Hitachi Webpad # module_raw mk712 # Uncomment if you're using an IBM Arctic II # module_raw arctic2 module pthres pmin=1 module variance delta=30 module dejitter delta=100 module linear root@omap3evm:~# |
What is the problem?
Please tell me the solution.
Additional noted items.
|
root@omap3evm:~# dmesg Linux version 2.6.29-rc3-omap1 (won@ubuntu) (gcc version 4.2.3 (Sourcery G++ Lite 2008q1-126)) #6 Thu Apr 26 19:45:05 KST 2012 CPU: ARMv7 Processor [411fc083] revision 3 (ARMv7), cr=10c5387f CPU: VIPT nonaliasing data cache, VIPT nonaliasing instruction cache Machine: OMAP3 EVM Memory policy: ECC disabled, Data cache writeback On node 0 totalpages: 58112 free_area_init_node: node 0, pgdat c0440c24, node_mem_map c0465000 Normal zone: 512 pages used for memmap Normal zone: 0 pages reserved Normal zone: 57600 pages, LIFO batch:15 OMAP3530 ES3.1 (full speed SGX, IVA2) SRAM: Mapped pa 0x40200000 to va 0xd7000000 size: 0x100000 Built 1 zonelists in Zone order, mobility grouping on. Total pages: 57600 Kernel command line: console=ttyS0,115200n8 noinitrd rw ip=dhcp root=/dev/nfs nfsroot=192.168.1.100:/home/won/workdir/filesys,nolock mem=99M@0x80000000 mem=128M@0x88000000 mpurate=600 omapfb.rotate=1 omapfb.rotate_type=1 omap_vout.vid1_static_vrfb_alloc=y Clocking rate (Crystal/DPLL/MPU core): 26.0/332/500 MHz IVA2 clocking rate: 360 MHz Reprogramming SDRC GPMC revision 5.0 IRQ: Found an INTC at 0xd8200000 (revision 4.0) with 96 interrupts Total of 96 interrupts on 1 active controller OMAP34xx GPIO hardware version 2.5 PID hash table entries: 1024 (order: 10, 4096 bytes) OMAP clockevent source: GPTIMER1 at 32768 Hz Console: colour dummy device 80x30 Dentry cache hash table entries: 32768 (order: 5, 131072 bytes) Inode-cache hash table entries: 16384 (order: 4, 65536 bytes) Memory: 99MB 128MB = 227MB total Memory: 225664KB available (3928K code, 370K data, 156K init) Calibrating delay loop... 499.92 BogoMIPS (lpj=1949696) Mount-cache hash table entries: 512 CPU: Testing write buffer coherency: ok net_namespace: 520 bytes NET: Registered protocol family 16 MUX: setup AF26_34XX_GPIO0 (0xd80021e0): 0x011c -> 0x0118 MUX: setup L8_34XX_GPIO63 (0xd80020ce): 0x0118 -> 0x0004 MUX: setup AF9_34XX_GPIO22 (0xd80025ec): 0x0100 -> 0x011c MUX: setup U3_34XX_GPIO61 (0xd80020c8): 0x0118 -> 0x011c MUX: setup AH14_34XX_GPIO21 (0xd80025ea): 0x0100 -> 0x011c MUX: setup AA10_3430_USB2HS_PHY_STP (0xd80025f2): 0x0100 -> 0x0003 MUX: setup AA8_3430_USB2HS_PHY_CLK (0xd80025f0): 0x0100 -> 0x0003 MUX: setup AA9_3430_USB2HS_PHY_DIR (0xd80025f4): 0x0100 -> 0x010b MUX: setup AB11_3430_USB2HS_PHY_NXT (0xd80025f6): 0x0100 -> 0x010b MUX: setup AB10_3430_USB2HS_PHY_D0 (0xd80025f8): 0x0100 -> 0x010b MUX: setup AB9_3430_USB2HS_PHY_D1 (0xd80025fa): 0x0100 -> 0x010b MUX: setup W3_3430_USB2HS_PHY_D2 (0xd80021d4): 0x0108 -> 0x010b MUX: setup T4_3430_USB2HS_PHY_D3 (0xd80021de): 0x0108 -> 0x010b MUX: setup T3_3430_USB2HS_PHY_D4 (0xd80021d8): 0x0100 -> 0x010b MUX: setup R3_3430_USB2HS_PHY_D5 (0xd80021da): 0x0100 -> 0x010b MUX: setup R4_3430_USB2HS_PHY_D6 (0xd80021dc): 0x0108 -> 0x010b MUX: setup T2_3430_USB2HS_PHY_D7 (0xd80021d6): 0x0100 -> 0x010b twl4030: client 1 is not initialized twl4030: client 1 is not initialized MUX: setup AA21_34XX_GPIO157 (0xd800218e): 0x0018 -> 0x011c MUX: setup C23_34XX_GPIO98 (0xd8002114): 0x0004 -> 0x011c omap3evmdc: Driver registration complete Switched to new clocking rate (Crystal/Core/MPU): 26.0/332/600 MHz IVA2 clocking rate: 430 MHz Calibrating delay loop... 597.64 BogoMIPS (lpj=2334720) OMAP DMA hardware revision 4.0 USB: No board-specific platform config found OMAP DSS rev 2.0 OMAP DISPC rev 3.0 OMAP VENC rev 2 OMAP DSI rev 1.0 bio: create slab <bio-0> at 0 i2c_omap i2c_omap.1: bus 1 rev3.12 at 2600 kHz twl4030: PIH (irq 7) chaining IRQs 368..375 twl4030: power (irq 373) chaining IRQs 376..383 twl4030: gpio (irq 368) chaining IRQs 384..401 i2c_omap i2c_omap.2: bus 2 rev3.12 at 400 kHz i2c_omap i2c_omap.3: bus 3 rev3.12 at 400 kHz SCSI subsystem initialized usbcore: registered new interface driver usbfs usbcore: registered new interface driver hub usbcore: registered new device driver usb musb_hdrc: version 6.0, musb-dma, host, debug=0 HS USB OTG: revision 0x33, sysconfig 0x2011, sysstatus 0x1, intrfsel 0x1, simenable 0x0 musb_hdrc: ConfigData=0xde (UTMI-8, dyn FIFOs, bulk combine (X), bulk split (X), HB-ISO Rx (X), HB-ISO Tx (X), SoftConn) musb_hdrc: MHDRC RTL version 1.400 musb_hdrc: setup fifo_mode 4 musb_hdrc: 29/31 max ep, 16384/16384 memory musb_hdrc: hw_ep 0shared, max 64 musb_hdrc: hw_ep 1tx, max 512 musb_hdrc: hw_ep 1rx, max 512 musb_hdrc: hw_ep 2tx, max 512 musb_hdrc: hw_ep 2rx, max 512 musb_hdrc: hw_ep 3tx, max 512 musb_hdrc: hw_ep 3rx, max 512 musb_hdrc: hw_ep 4tx, max 512 musb_hdrc: hw_ep 4rx, max 512 musb_hdrc: hw_ep 5tx, max 512 musb_hdrc: hw_ep 5rx, max 512 musb_hdrc: hw_ep 6tx, max 512 musb_hdrc: hw_ep 6rx, max 512 musb_hdrc: hw_ep 7tx, max 512 musb_hdrc: hw_ep 7rx, max 512 musb_hdrc: hw_ep 8tx, max 512 musb_hdrc: hw_ep 8rx, max 64 musb_hdrc: hw_ep 9tx, max 512 musb_hdrc: hw_ep 9rx, max 64 musb_hdrc: hw_ep 10tx, max 512 musb_hdrc: hw_ep 10rx, max 64 musb_hdrc: hw_ep 11tx, max 256 musb_hdrc: hw_ep 11rx, max 256 musb_hdrc: hw_ep 12tx, max 256 musb_hdrc: hw_ep 12rx, max 256 musb_hdrc: hw_ep 13tx, max 256 musb_hdrc: hw_ep 13rx, max 4096 musb_hdrc: hw_ep 14shared, max 1024 musb_hdrc: hw_ep 15shared, max 1024 musb_hdrc: USB Host mode controller at d80ab000 using DMA, IRQ 92 musb_hdrc musb_hdrc: MUSB HDRC host driver musb_hdrc musb_hdrc: new USB bus registered, assigned bus number 1 usb usb1: New USB device found, idVendor=1d6b, idProduct=0002 usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1 usb usb1: Product: MUSB HDRC host driver usb usb1: Manufacturer: Linux 2.6.29-rc3-omap1 musb-hcd usb usb1: SerialNumber: musb_hdrc usb usb1: configuration #1 chosen from 1 choice hub 1-0:1.0: USB hub found hub 1-0:1.0: 1 port detected Registered /proc/driver/musb_hdrc NET: Registered protocol family 2 Switched to high resolution mode on CPU 0 IP route cache hash table entries: 2048 (order: 1, 8192 bytes) TCP established hash table entries: 8192 (order: 4, 65536 bytes) TCP bind hash table entries: 8192 (order: 3, 32768 bytes) TCP: Hash tables configured (established 8192 bind 8192) TCP reno registered NET: Registered protocol family 1 OMAP35x Linux PSP version 02.01.03.11 (OMAP3EVM) NetWinder Floating Point Emulator V0.97 (double precision) VFS: Disk quotas dquot_6.5.2 Dquot-cache hash table entries: 1024 (order 0, 4096 bytes) JFFS2 version 2.2. (NAND) © 2001-2006 Red Hat, Inc. msgmni has been set to 441 alg: No test for stdrng (krng) io scheduler noop registered io scheduler anticipatory registered (default) io scheduler deadline registered io scheduler cfq registered Generic Backlight Driver Initialized. Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled serial8250.0: ttyS0 at MMIO 0x4806a000 (irq = 72) is a ST16654 console [ttyS0] enabled serial8250.0: ttyS1 at MMIO 0x4806c000 (irq = 73) is a ST16654 serial8250.0: ttyS2 at MMIO 0x49020000 (irq = 74) is a ST16654 brd: module loaded loop: module loaded smsc911x: Driver version 2008-10-21. smsc911x-mdio: probed eth0: attached PHY driver [Generic PHY] (mii_bus:phy_addr=ffffffff:01, irq=-1) net eth0: MAC Address: 00:50:c2:7e:98:67 Linux video capture interface: v2.00 usbcore: registered new interface driver uvcvideo USB Video Class driver (v0.1.0) i2c /dev entries driver Driver 'sd' needs updating - please use bus_type methods omap2-nand driver initializing NAND device: Manufacturer ID: 0x2c, Chip ID: 0xba (Micron NAND 256MiB 1,8V 16-bit) Creating 5 MTD partitions on "omap2-nand.0": 0x000000000000-0x000000080000 : "xloader-nand" 0x000000080000-0x000000240000 : "uboot-nand" 0x000000240000-0x000000280000 : "params-nand" 0x000000280000-0x000000780000 : "linux-nand" 0x000000780000-0x000010000000 : "jffs2-nand" OneNAND driver initializing ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver ehci-omap ehci-omap.0: OMAP-EHCI Host Controller ehci-omap ehci-omap.0: new USB bus registered, assigned bus number 2 ehci-omap ehci-omap.0: irq 77, io mem 0x48064800 ehci-omap ehci-omap.0: USB 2.0 started, EHCI 1.00 usb usb2: New USB device found, idVendor=1d6b, idProduct=0002 usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1 usb usb2: Product: OMAP-EHCI Host Controller usb usb2: Manufacturer: Linux 2.6.29-rc3-omap1 ehci_hcd usb usb2: SerialNumber: ehci-omap.0 usb usb2: configuration #1 chosen from 1 choice hub 2-0:1.0: USB hub found hub 2-0:1.0: 3 ports detected Initializing USB Mass Storage driver... usbcore: registered new interface driver usb-storage USB Mass Storage support registered. input: omap_twl4030keypad as /class/input/input0 ads7846 spi1.0: touchscreen, irq 335 input: ADS784x Touchscreen as /class/input/input1 OMAP Watchdog Timer Rev 0x31: initial timeout 60 sec cpuidle: using governor ladder cpuidle: using governor menu usbcore: registered new interface driver usbhid usbhid: v2.6:USB HID core driver Advanced Linux Sound Architecture Driver Version 1.0.19. usbcore: registered new interface driver snd-usb-audio No device for DAI twl4030 No device for DAI twl4030 Voice No device for DAI omap-mcbsp-dai-0 No device for DAI omap-mcbsp-dai-1 No device for DAI omap-mcbsp-dai-2 No device for DAI omap-mcbsp-dai-3 No device for DAI omap-mcbsp-dai-4 OMAP3 EVM SoC init TWL4030 Audio Codec init asoc: twl4030 <-> omap-mcbsp-dai-0 mapping ok ALSA device list: #0: omap3evm (twl4030) TCP cubic registered NET: Registered protocol family 17 NET: Registered protocol family 15 RPC: Registered udp transport module. RPC: Registered tcp transport module. Power Management for TI OMAP3. SmartReflex driver initialized Disabling unused clock "sr2_fck" Disabling unused clock "sr1_fck" Disabling unused clock "mcbsp_fck" Disabling unused clock "mcbsp_fck" Disabling unused clock "mcbsp_fck" Disabling unused clock "mcbsp_ick" Disabling unused clock "mcbsp_ick" Disabling unused clock "mcbsp_ick" Disabling unused clock "gpt2_ick" Disabling unused clock "gpt3_ick" Disabling unused clock "gpt4_ick" Disabling unused clock "gpt5_ick" Disabling unused clock "gpt6_ick" Disabling unused clock "gpt7_ick" Disabling unused clock "gpt8_ick" Disabling unused clock "gpt9_ick" Disabling unused clock "wdt3_ick" Disabling unused clock "wdt3_fck" Disabling unused clock "gpio2_dbck" Disabling unused clock "gpio3_dbck" Disabling unused clock "gpio4_dbck" Disabling unused clock "gpio5_dbck" Disabling unused clock "gpt9_fck" Disabling unused clock "gpt8_fck" Disabling unused clock "gpt7_fck" Disabling unused clock "gpt6_fck" Disabling unused clock "gpt5_fck" Disabling unused clock "gpt4_fck" Disabling unused clock "gpt3_fck" Disabling unused clock "gpt2_fck" Disabling unused clock "gpt12_ick" Disabling unused clock "wdt1_ick" Disabling unused clock "wdt2_ick" Disabling unused clock "wdt2_fck" Disabling unused clock "gpio1_dbck" Disabling unused clock "des1_ick" Disabling unused clock "sha11_ick" Disabling unused clock "rng_ick" Disabling unused clock "aes1_ick" Disabling unused clock "ssi_ick" Disabling unused clock "mailboxes_ick" Disabling unused clock "mcbsp_ick" Disabling unused clock "mcbsp_ick" Disabling unused clock "gpt10_ick" Disabling unused clock "gpt11_ick" Disabling unused clock "hdq_ick" Disabling unused clock "mspro_ick" Disabling unused clock "des2_ick" Disabling unused clock "sha12_ick" Disabling unused clock "aes2_ick" Disabling unused clock "icr_ick" Disabling unused clock "pka_ick" Disabling unused clock "ssi_ssr_fck" Disabling unused clock "hdq_fck" Disabling unused clock "mcbsp_fck" Disabling unused clock "mcbsp_fck" Disabling unused clock "mspro_fck" Disabling unused clock "gpt11_fck" Disabling unused clock "sad2d_ick" Disabling unused clock "dpll4_m6x2_ck" Disabling unused clock "dpll3_m3x2_ck" Disabling unused clock "sys_clkout1" VFP support v0.3: implementor 41 architecture 3 part 30 variant c rev 1 GPIO-153 autorequested omap-dss DISPC error: Requested pixel clock not possible with the current OMAP2_DSS_MIN_FCK_PER_PCK setting. Turning the constraint off. omap-dss: Could not find exact pixel clock. Requested 25190 kHz, got 25189 kHz Display already enabled Display already enabled Buffer Size = 3686400 omap_vout: registered and initialized video device 0 [v4l2] Buffer Size = 3686400 omap_vout: registered and initialized video device 1 [v4l2] display->updated net eth0: SMSC911x/921x identified at 0xd085c000, IRQ: 336 Sending DHCP requests .., OK IP-Config: Got DHCP answer from 192.168.1.100, my address is 192.168.1.10 IP-Config: Complete: device=eth0, addr=192.168.1.10, mask=255.255.255.0, gw=192.168.1.1, host=192.168.1.10, domain=, nis-domain=(none), bootserver=192.168.1.100, rootserver=192.168.1.100, rootpath=/home/won/workdir/filesys Looking up port of RPC 100003/2 on 192.168.1.100 Looking up port of RPC 100005/1 on 192.168.1.100 VFS: Mounted root (nfs filesystem) on device 0:12. Freeing init memory: 156K udev: starting version 141 udev: deprecated sysfs layout; update the kernel or disable CONFIG_SYSFS_DEPRECATED; some udev features will not work correctly omap-dss: Could not find exact pixel clock. Requested 25189 kHz, got 25188 kHz omap-dss: Could not find exact pixel clock. Requested 25188 kHz, got 25187 kHz root@omap3evm:~# |