ULCD7 Touchscreen Ubuntu

I have a ULCD7 touchscreen that I am trying to get working on my beagleboard xm w/ ubuntu. I currently have the display working correctly but I cannot seem to get the touch features working. Does anyone have any advice?

Even I am facing this issue. Were you able to get any fix for this issue.Touchscreen works fine with Angstrom image but does not work with ubuntu. I am using beagle board XM rev C1.

So, if Angstrom works, any change with this kernel and modules:

http://rcn-ee.homeip.net:81/testing/beagleboard/3.2-touchscreen/

Regards,

Hi,

The Angstrom image that was tested working was provided by ulcd7 on http://beagleboardtoys.com/wiki/index.php?title=ULCD7_Lite
Image link mentioned here is: http://beagleboardtoys.com/wiki/ulcd7/ULCD7_Lite_Demo_09_27_11.7z

Regards,
Ketan

Yeah, I got that from your first email... :wink: So did you have a chance
to test that image I posted, to see if that one small change I did
fixed it, or...

Regards,

Hi Robert,

Sorry for these question, but I am a beginner in this. Can you please help me understanding where to keep these files in sd card so that right modules are loaded after bootup.

The files shared are :
3.2.22-x13.1-modules.tar.gz
3.2.22-x13.1.config
3.2.22-x13.1.uImage
3.2.22-x13.1.zImage

In the sd card we have boot and the rootfs partitions. I tried un-tarring the 3.2.22-x13.1-modules.tar.gz at / of rootfs so that all the /.
Next kept the 3.2.22-x13.1.zImage as zImage in /boot partition. How about the rest and any scripts to be run after that?

Thanks,
Ketan

To be safe with your image.. also copy 3.2.22-x13.1.uImage as "uImage"
to the fat boot directory.. (it was just recently that we converted
to using zimages..)

Next boot the image, and run the "update_boot_files.sh" script found
under : "/boot/uboot/tools/"

It'll sync everything else up.. then reboot the beagle..

Regards,

Hi Robert,

Tested this. Touchscreen does not work still on ulcd7.

Also just wanted to bring another point here that upon first boot the screen was seen rotated and mirrored. hence added following in uEnv.txt to rectify this:

lcd1=i2c mw 40 00 00; i2c mw 40 04 80; i2c mw 40 0d 05
uenvcmd=i2c dev 1; run lcd1; i2c dev 0

Thanks,
Ketan

Hi Robert,

Tested this. Touchscreen does not work still on ulcd7.

Crap, thanks for testing... It worked a month ago, i wonder what
changed... Will try to look at it again this weekend..

Also just wanted to bring another point here that upon first boot the screen
was seen rotated and mirrored. hence added following in uEnv.txt to rectify
this:

lcd1=i2c mw 40 00 00; i2c mw 40 04 80; i2c mw 40 0d 05
uenvcmd=i2c dev 1; run lcd1; i2c dev 0

Strange, are you sure your using my image, as i patched u-boot to do
that automatically...

https://github.com/RobertCNelson/Bootloader-Builder/blob/master/patches/v2012.04/0001-beagle-ulcd-passthru-support.patch#L66

and it's also done by another kernel driver..

Regards,

Hi Robert,

I had used http://rcn-ee.net/deb/rootfs/precise/ubuntu-12.04-r4-minimal-armhf-2012-06-28.tar.xz image for testing with ulcd7 and had run through above steps for 3.2.22-x13.1 (the one shared by you for testing). I will give a try at ubuntu-12.04-r3-minimal-armhf.tar.xz as well now.

Before that I tried with http://rcn-ee.net/deb/rootfs/oneiric/ubuntu-11.10-r8-minimal-armel.tar.xz that was working fine with our old ulcd7 (even touchscreen was working fine) after upgrade and installing gdm and xubuntu-desktop. However our old Ulcd7 faced some issues that cannot be used for testing any more and we procured a new ulcd7 that I am testing with. So not sure of any change in the ulcd7.

Could you please give me some pointers that I can check so as to verify that the touch events are received by the kernel?

Regards,
Ketan

Strange, it's working just fine here, with 3.2.22-x13 on
precise-armhf.. Reponding to events, movements etc... Just a little
odd as i haven't run any X-calibration routine, as it seems to be
mirrored on the center line... touching bottom left puts the pointer
in the upper left, till you move to the center.. left to right is
fine..

Regards,

Hi Robert,

I am trying to rebuild the u-boot for testing the ulcd. First time when i build the u-boot and booted the sd card with new u-boot.img and MLO touch worked. But just to confirm i had reverted the u-boot.img and MLO back and tested. After this never worked. After below changes, I do see that kernel bootup shows detection of expansion board ULCD and “initializing the tsc2007” messages in the dmesg. Kindly verify my build steps of u-boot for beagle board XM.

Following steps were followed as per http://eewiki.net/display/linuxonarm/BeagleBoard :
ftp:``//ftp.denx.de/pub/u-boot/u-boot-2012.04.01.tar.bz2

Applied four pactches:

patch -p1 < ``0001``-enable-bootz-support-``for``-ti-omap-targets.patch
patch -p1 < ``0001``-beagle-fix-dvi-variable-set-higher-resolution.patch
patch -p1 < ``0001``-beagle-ulcd-passthru-support.patch
patch -p1 < ``0001``-beagle-fix-timed-out-in-wait_for_bb-message-in-SPL.patch

Modifed board/ti/beagle/beagle.c file for testing purpose:
changed :

switch (get_expansion_id(EXPANSION_EEPROM_I2C_ADDRESS + 1)) {
to:
switch (BBTOYS_ULCD/*get_expansion_id(EXPANSION_EEPROM_I2C_ADDRESS + 1)*/) {

I am building on beagle board, so did the following:

make omap3_beagle_config
make

After this, transferred the u-boot.img and MLO to /boot partition. Reboot the beagle board.
After boot-up, run /boot/uboot/tools/update_boot_files.sh and reboot again.

Thanks,
Ketan

Hi Robert,

Finally touchscreen works with above changes in uboot and kernel shared (http://rcn-ee.homeip.net:81/testing/beagleboard/3.2-touchscreen/ ).
However, the display resolution seems to be having some problem. I will try to set the resolution manually now.

Regards,
Ketan

Hi Robert,

May I know the changes done in http://rcn-ee.homeip.net:81/testing/beagleboard/3.2-touchscreen/

Regards,
Ketan

Yeap, it's shifted 10-20 pixels with that specific test image, so
don't use that image..

Regards,

Hi Robert,

Thanks a lot for your help.
Apart from shifting by 10-20 pixels, are there any changes done for the touchscreen that must have made it work?

Regards,
Ketan

Hi Robert,

I have managed to build the kernel and deploy the same from the latest git repository. I still face the touchscreen issue. Besides this I get following error in dmesg ;“EXT4-fs (mmcblk0p2): re-mounted. Opts: errors=remount-ro”

Any changes/suggestions for this would be of great help…

Regards,
Ketan

Hi,

Is there any one who has faced such issues:

  1. Touchscreen not working in ubuntu but working with ulcd7 image
  2. dmesg showing “EXT4-fs (mmcblk0p2): re-mounted. Opts: errors=remount-ro”

Any solution for these?

Regards,
Ketan

Any news with this issue? Is the ULCD7 touchscreen working with Ubuntu?

No. It still does not work for me. I am using kernel version 3.4.7. Does it work for you?

Regards,
Ketan