[beagleboard] Bone LCD3 Ubuntu Support

Well, to answer the first, the LCD3 support got merged about day after
those images went out.. (psp19)... So without the cape attached,
please run this on the bone (latest fixes):

wget http://rcn-ee.net/deb/precise-armhf/v3.2.25-psp20/install-me.sh
/bin/bash install-me.sh

(reboot/poweroff/reattache cape)

and please let use know if it works.. :wink:

Regards,

Hey Robert,

I might be responding to this twice, I’m not sure if the first one went through properly. Regardless, thanks for the quick response. I tried installing the patch while following your instructions on an otherwise vanilla install of ubuntu r5, the patch installed properly (ssh-ing shows it is running psp20) but it did not fix my issue. I am reformatting the install back to vanilla but without the ulcd driver addon to see if that fixes the issue. Are there any other steps that I could take to try and get this going? Also, my bone is Rev A6.

Thanks,

Jake

Just realized that I was updating from psp18 to 20, I’m going to try going through 19 now.

Jake

Darn, then it has to be a config issue.. For now, you'll have to
borrow the kernel/modules from Koen's latest Angstrom Beaglebone
image..

http://dominion.thruhere.net/koen/narcissus/

You just need the kernel image (uImage) and the modules (/lib/modules)
from that download..

I'll see if i can find the ulcd 3 tomorrow at work..

PS, each pspX release is good on it's own, you don't need the between numbers..

Regards,

OK, thanks for the information. As for installing those files/directories, should I just use sudo and tar to place them where they belong or is there more to it than that?

To anyone who was curious about this issue: as of 8/15 the issue is resolved, I re-installed precise for the umpteenth time today using nothing but “–addon ulcd” today and the LCD3 cape worked properly. I assume Robert was behind this, so thanks dude!

Jake

Hi Jake
I 'm also researching the Beaglebone with LCD 3'' , I 'm just beginer
, I'm extremely ethusiastic if you share document about this topic ,
and let me know what GUI program you use , Qt creator?

Actually I’m afraid I spoke to soon; I installed xubuntu yesterday and left the bone to work on that installation overnight. When I got in this morning I was able to run start an x environment on the display, it was awesome. Unfortunately after restarting the bone the display no longer works. I have no idea why, it is very frustrating. The kicker is I was so excited about getting the thing running I didn’t make a backup of the working image.

To answer your questions though Minh I’m using the Tkinter module in python. It’s a great library for a basic GUI development and it is well documented both online and in books. I recently purchased “Core Python Applications Programming” edition 3 by Wesley Chun and have been working from that book, $30 on amazon and it is a great resource for general python and Tkinter development. I wish I could offer more help there but I’m pretty new to all of this too. Good luck!

The trick for me seems to be getting 1) an X environment 2) Tkinter and 3) the LCD3 cape all working in the same installation. Hopefully Robert can add that capability to a new psp release. In the meantime the uImage and /lib/modules copying does not seem to be working, just so you know.

Jake

Actually I’m afraid I spoke to soon; I installed xubuntu yesterday and left the bone to work on that installation overnight. When I got in this morning I was able to run start an x environment on the display, it was awesome. Unfortunately after restarting the bone the display no longer works. I have no idea why, it is very frustrating. The kicker is I was so excited about getting the thing running I didn’t make a backup of the working image.

Did touch work?

Couldn’t tell you, the glass was cracked in transit so touch never worked on it.

Jake

Hallo Everybody,

I am a new member in these newsgroup and I am trying to run Ubuntu on the
Beaglebone with LCD3 cape.
I have tried several methods to install the Images with suspicious error
messages.
The only script that work comes from Robert Nelson unfortunately the --addon
ulcd was not accepted by the script.

The "--addon ulcd" option has been removed from the script, people
where using it in situations it wasn't designed to fix (like this
situation).. So that particular target is now fixed in u-boot, so the
option is no longer needed... (and it makes the sd card work
with/without the display on that other board..)

The bone comes up with the following Message on the console:
        Welcome to Ubuntu 12.04.1 LTS (GNU/Linux 3.2.28-psp21 armv7l)
but unfortunately the LCD3 cape keeps black.... :frowning:

while booting the following message was displayed on the console:

[ 1.812303] at24 3-0054: 32768 byte 24c256 EEPROM, writable, 64
bytes/write
[ 1.842566] BeagleBone cape EEPROM: found eeprom at address 0x54
[ 1.848894] BeagleBone cape: Beagleboardtoys. BeagleBone LCD3
CAPE............Beagleboardtoys., revisi
on 00A1
[ 1.859352] BeagleBone cape partnumber: BB-BONE-LCD3-01.
[ 1.864960] BeagleBone cape: initializing LCD cape
[ 1.870480] da8xx_lcdc.0: alias fck already exists
[ 1.875949] da8xx_lcdc da8xx_lcdc.0: GLCD: Found CDTech_S035Q01 panel
[ 1.888745] Console: switching to colour frame buffer device 40x30

It found it...

[ 1.899651] BeagleBone cape: initializing LCD cape touchscreen
[ 1.905813] TSC connected to BeagleBone
[ 1.910313] BeagleBone cape: Registering gpio-keys for LCD rev A1 or
later cape
[ 1.918475] at24 3-0055: 32768 byte 24c256 EEPROM, writable, 64
bytes/write
[ 1.980857] BeagleBone cape EEPROM: could not read eeprom at address 0x55
[ 1.988061] at24 3-0056: 32768 byte 24c256 EEPROM, writable, 64
bytes/write
[ 2.051044] BeagleBone cape EEPROM: could not read eeprom at address 0x56
[ 2.058266] at24 3-0057: 32768 byte 24c256 EEPROM, writable, 64
bytes/write
[ 2.120856] BeagleBone cape EEPROM: could not read eeprom at address 0x57
[ 2.128189] omap_hsmmc.0: alias fck already exists
[ 2.133575] BeagleBone cape: initializing w1-gpio

My uEnv.txt keeps the following

#################################################
kernel_file=uImage
initrd_file=uInitrd

#Video: Uncomment to override U-Boots value:
#UENV_FB
#UENV_TIMING
#UENV_VRAM

#vram=12MB
#defaultdisplay=dvi
#dvimode=320x240MR-16@60

console=ttyO0,115200n8
buddy=bbtoys-ulcd
camera=none
defaultdisplay=lcd
lcd1=i2c mw 40 00 00; i2c mw 40 04 80; i2c mw 40 0d 05; i2c mw 40 0d 15
lcd2=i2c mw 40 0c 25; mw 49056090 10000000
lcd3=i2c mw 40 04 30; i2c mw 40 0c 21; i2c mw 40 04 80; i2c mw 40 04 70; i2c
mw 40 04 60
lcd4=i2c mw 40 04 50; i2c mw 40 04 40; i2c me 40 04 30; i2c mw 40 04 20
dvimode="320x240MR-16@60 omapfb.vram=0:8M,1:4M,2:4M omapfb.debug=y
omapfb.test=y omapdss.debug=y consoleblank=0
omap_vout.vid1_static_vrfb_alloc=y"
vram=16M
uenvcmd=i2c dev1; run lcd1; i2c dev 0

mmcroot=/dev/mmcblk0p3 ro
mmcrootfstype=ext4 rootwait fixrtc

boot_fstype=fat
xyz_load_image=${boot_fstype}load mmc 0:1 0x80300000 ${kernel_file}
xyz_load_initrd=${boot_fstype}load mmc 0:1 0x81600000 ${initrd_file}; setenv
initrd_size ${filesize}
xyz_load_dtb=${boot_fstype}load mmc 0:1 0x815f0000 /dtbs/${dtb_file}

xyz_mmcboot=run xyz_load_image; run xyz_load_initrd; echo Booting from mmc
...

#video_args=setenv video VIDEO_DISPLAY
video_args=setenv video vram=${vram}
omapfb.mode=${defaultdisplay}:${dvimode} omapdss.def_disp=${defaultdisplay}
device_args=run video_args; run expansion_args; run mmcargs
mmcargs=setenv bootargs console=${console} ${optargs} ${video}
root=${mmcroot} rootfstype=${mmcrootfstype} ${expansion}

expansion_args=setenv expansion ip=${ip_method}
mmc_load_uimage=run xyz_mmcboot; run bootargs_defaults; run device_args;
bootm 0x80300000 0x81600000
#################################################

This bootloader config is for the "beagle_xm", use "--uboot bone" with
the script..

userksejuergen@beaglebone:/var/log$ cat Xorg.0.log|grep omapfb
[ 50.633] Kernel command line: console=ttyO0,115200n8 vram=16M
omapfb.mode=lcd:320x240MR-16@60 omapfb.
vram=0:8M,1:4M,2:4M omapfb.debug=y omapdss.def_disp=lcd root=/dev/mmcblk0p3
ro rootfstype=ext4 rootwait f
ixrtc ip=none
[ 50.744] (II) LoadModule: "omapfb"
[ 50.745] (II) Loading /usr/lib/xorg/modules/drivers/omapfb_drv.so
[ 50.752] (II) Module omapfb: vendor="X.Org Foundation"
[ 50.752] (II) omapfb: Driver for OMAP framebuffer (omapfb) and external
LCD controllers:
[ 50.755] (WW) OMAPFBProbe: Not an omapfb device: DA8xx FB Drv

The "BeagleBone" doesn't have "omapfb" display hardware, it has
"davanci", so there's no way "omapfb_drv.so" is going to work...

My lcd3 is at home, so i can't help anymore till later..

Regards,