BeagleBone LCD cape

This forum is for supported devices using an ARMv7 Texas Instruments (TI) SoC.

Re: BeagleBone LCD cape

Postby ykmag » Wed Jun 13, 2012 8:33 am

This my friend worked like a charm. Finaly.

The there is the question about kernel support for the backlight driver. Could we we please have that in the next upgrade?
ykmag
 
Posts: 61
Joined: Wed Aug 18, 2010 1:28 pm

Re: BeagleBone LCD cape

Postby ykmag » Sun Jul 29, 2012 8:36 pm

Here we go again. I just upgraded to 3.2.21, and the touche screen stoped working. Baklight and display is ok.
The LCD-cape is version 1, if that is any clue.
Output from dmsg:
$this->bbcode_second_pass_code('', '[ 0.477266] omap_device: da8xx_lcdc: build failed (-17)
[ 0.482742] ------------[ cut here ]------------
[ 0.482763] WARNING: at arch/arm/mach-omap2/devices.c:169 am33xx_register_lcdc+0x8c/0xb0()
[ 0.482779] Can't build omap_device for da8xx_lcdc:lcdc.
[ 0.482790] Modules linked in:
[ 0.482801] Backtrace:
[ 0.482827] [<c0010e8c>] (dump_backtrace+0x0/0x10c) from [<c052413c>] (dump_stack+0x18/0x1c)
[ 0.482842] r6:c06ea520 r5:00000009 r4:cf837d48 r3:00000000
[ 0.482879] [<c0524124>] (dump_stack+0x0/0x1c) from [<c003bc2c>] (warn_slowpath_common+0x54/0x6c)
[ 0.482905] [<c003bbd8>] (warn_slowpath_common+0x0/0x6c) from [<c003bce8>] (warn_slowpath_fmt+0x38/0x40)
[ 0.482922] r8:cf9e7220 r7:00000000 r6:ffffffef r5:c073ae4c r4:00000000
[ 0.482950] r3:00000009
[ 0.482973] [<c003bcb0>] (warn_slowpath_fmt+0x0/0x40) from [<c06ea520>] (am33xx_register_lcdc+0x8c/0xb0)
[ 0.482990] r3:c064cf63 r2:c064da62
[ 0.483018] [<c06ea494>] (am33xx_register_lcdc+0x0/0xb0) from [<c0524718>] (bbtoys7lcd_init.isra.10+0x30/0x58)
[ 0.483035] r6:00000000 r5:ffffffff r4:ffffffff
[ 0.483068] [<c05246e8>] (bbtoys7lcd_init.isra.10+0x0/0x58) from [<c0028f98>] (beaglebone_cape_setup+0x2e0/0x9ec)
[ 0.483096] [<c0028cb8>] (beaglebone_cape_setup+0x0/0x9ec) from [<c0359060>] (at24_probe+0x3ec/0x490)
[ 0.483113] r5:cf9e7200 r4:cf9f2740
[ 0.483139] [<c0358c74>] (at24_probe+0x0/0x490) from [<c03c8f9c>] (i2c_device_probe+0x8c/0xb4)
[ 0.483167] [<c03c8f10>] (i2c_device_probe+0x0/0xb4) from [<c034b504>] (driver_probe_device+0xc0/0x19c)
[ 0.483184] r5:cf9e7254 r4:cf9e7220
[ 0.483212] [<c034b444>] (driver_probe_device+0x0/0x19c) from [<c034b650>] (__driver_attach+0x70/0x94)
[ 0.483228] r6:c07578d0 r5:cf9e7254 r4:cf9e7220 r3:00000000
[ 0.483265] [<c034b5e0>] (__driver_attach+0x0/0x94) from [<c034a420>] (bus_for_each_dev+0x54/0x9c)
[ 0.483282] r6:c07578d0 r5:cf837ee0 r4:00000000 r3:00000000
[ 0.483318] [<c034a3cc>] (bus_for_each_dev+0x0/0x9c) from [<c034b194>] (driver_attach+0x20/0x28)
[ 0.483334] r7:c075dd40 r6:c003f538 r5:cf9deec0 r4:c07578d0
[ 0.483371] [<c034b174>] (driver_attach+0x0/0x28) from [<c034adb8>] (bus_add_driver+0xd4/0x23c)
[ 0.483398] [<c034ace4>] (bus_add_driver+0x0/0x23c) from [<c034b990>] (driver_register+0xa8/0x12c)
[ 0.483425] [<c034b8e8>] (driver_register+0x0/0x12c) from [<c03caba8>] (i2c_register_driver+0x94/0xb8)
[ 0.483450] [<c03cab14>] (i2c_register_driver+0x0/0xb8) from [<c0703698>] (at24_init+0x48/0x54)
[ 0.483466] r5:c071f96c r4:c071f788
[ 0.483491] [<c0703650>] (at24_init+0x0/0x54) from [<c00086c0>] (do_one_initcall+0x9c/0x16c)
[ 0.483515] [<c0008624>] (do_one_initcall+0x0/0x16c) from [<c06e28f4>] (kernel_init+0xc4/0x168)
[ 0.483540] [<c06e2830>] (kernel_init+0x0/0x168) from [<c003f538>] (do_exit+0x0/0x68c)
[ 0.483555] r5:c06e2830 r4:00000000
[ 0.483572] ---[ end trace 727ae84ea0c8f7c1 ]---
[ 0.483583] Failed to register Beagleboardtoys 7" LCD cape device
[ 0.483596] BeagleBone cape: initializing LCD cape touchscreen
')
Is there a module I am missing or is there a kernal patch missing or...
ykmag
 
Posts: 61
Joined: Wed Aug 18, 2010 1:28 pm

Re: BeagleBone LCD cape

Postby ykmag » Wed Aug 08, 2012 4:31 pm

Fixed it:
$this->bbcode_second_pass_code('', 'modprobe ti_tscadc')
ykmag
 
Posts: 61
Joined: Wed Aug 18, 2010 1:28 pm

Re: BeagleBone LCD cape

Postby Dorian » Tue Dec 11, 2012 3:09 pm

Hey everyone,

I'm fairly new to beaglebone/LCD7 cape and Archlinux community.
Today I was able to get archlinux running, from installation guide at http://archlinuxarm.org/platforms/armv7/beaglebone (lastest version of Archlinux I guess), together with xorg and enlightenment17.
$this->bbcode_second_pass_code('', '
[root@alarm ~]# uname -a
Linux alarm 3.2.32-4-ARCH #1 PREEMPT Mon Nov 5 03:18:39 UTC 2012 armv7l GNU/Linux
')

Below various step *after* SD Card Creation :
$this->bbcode_second_pass_code('', '
pacman -Syu
pacman -S fbset
pacman -S xorg-server xorg-xinit xorg-server-utils
pacman -S xf86-video-omapfb
pacman -S enlightenment17
pacman -S ttf-dejavu ttf-bitstream-vera
pacman -S ttf-indic-otf
')

After that , edited /etc/X11/xinit/xinitrc like :
$this->bbcode_second_pass_code('', '
enlightenment_start
#twm &
#xclock -geometry 50x50-1+1 &
#xterm -geometry 80x50+494+51 &
#xterm -geometry 80x20+494-0 &
#exec xterm -geometry 80x66+0+0 -name login
')

Like ykmag said , enabled touchscreen with : modprobe ti_tscadc
Then created /etc/modules-load.d/ti_tscadc.conf file :
$this->bbcode_second_pass_code('', '
#Load 'ti_tscadc.ko' at boot.
ti_tscadc
')

Well, the beaglebone + LCD + TS seems to work with #startx command. But I wondering now , how to calibrate the touchscreen in Archlinux...

All suggestions are welcome !
Dorian
 
Posts: 2
Joined: Tue Dec 11, 2012 2:37 pm

Re: BeagleBone LCD cape

Postby ykmag » Tue Dec 11, 2012 7:57 pm

I am not familiar with X, using Qt embedded I use tslib as the touch driver. it has ts_calibrate. Don't know if that helps..
ykmag
 
Posts: 61
Joined: Wed Aug 18, 2010 1:28 pm

Re: BeagleBone LCD cape

Postby Dorian » Wed Dec 12, 2012 4:04 pm

Thank you ykmag, I was able to calibrate TS in Archlinux. Saw that in Angstrom (bundled with beaglebone), which actually have a calibration utility.

First, set the environment variable with main X11 display:
$this->bbcode_second_pass_code('', '
export DISPLAY=:0.0
')

Then use xinput command to set calibration data to "ti_tscadc", that is named "ti-tsc-adcc" in X11 devices list
$this->bbcode_second_pass_code('', '
[root@alarm ~]# xinput list
Virtual core pointer id=2 [master pointer (3)]
↳ Virtual core XTEST pointer id=4 [slave pointer (2)]
↳ ti-tsc-adcc id=7 [slave pointer (2)]
Virtual core keyboard id=3 [master keyboard (2)]
↳ Virtual core XTEST keyboard id=5 [slave keyboard (3)]
↳ gpio-keys id=6 [slave keyboard (3)]
')
$this->bbcode_second_pass_code('', '
xinput set-int-prop "ti-tsc-adcc" "Evdev Axis Calibration" 32 104 4018 314 3844;
')

The "magic numbers" are directly from my LCD7 cape calibration in Angstrom ...
Dorian
 
Posts: 2
Joined: Tue Dec 11, 2012 2:37 pm

Previous

Return to Texas Instruments (TI)

Who is online

Users browsing this forum: No registered users and 4 guests