button example on my beagleboard running linux angstrom

Crank Storyboard Designer samples and code snippets.

Moderator: jamiev

button example on my beagleboard running linux angstrom

Postby LGuy » Wed Sep 04, 2013 11:16 am

Dear all,

I am new in Storyboard and also linux so I try to run the button example on my beagleboard running linux angstrom.
An usb keyboard, mouse and lcd are connected to the board.
I follow the document http://www.cranksoftware.com/services_s ... eboard.php but I am facing some troubles.
1- This document asks for installing the directfb package and some lines later it asks for coping files from fbdev; is this right?
2- I copied files from fbdev and launch the sbengine; but i get nothing on the screen
root@beaglebone:/# cd Storyboard
root@beaglebone:/Storyboard# cd bin
root@beaglebone:/Storyboard/bin# chmod ugo+x sbengine
root@beaglebone:/Storyboard/bin# export GRE_PLUGINS=/Storyboard/plugins
root@beaglebone:/Storyboard/bin# export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/Storyboard/lib
root@beaglebone:/Storyboard/bin# pkill gpe-dm
root@beaglebone:/Storyboard/bin# /Storyboard/bin/sbengine -vvvvv /home/root/button/button.gapp
DIAG (3070165744):Detected plugin [/Storyboard/plugins/libgre-plugin-lua.so]
DIAG (3070165744):Detected plugin [/Storyboard/plugins/libgre-plugin-greio.so]
DIAG (3070165744):Unable to load plugin: /Storyboard/plugins/libgre-plugin-tslib.so
Error: libts-0.0.so.0: cannot open shared object file: No such file or directory
DIAG (3070165744):Detected plugin [/Storyboard/plugins/librender-plugin-fbdev.so]
DIAG (3070165744):Detected plugin [/Storyboard/plugins/libgre-plugin-screen-path.so]
DIAG (3070165744):Detected plugin [/Storyboard/plugins/libgre-plugin-poly.so]
DIAG (3070165744):Detected plugin [/Storyboard/plugins/libgre-plugin-capture-playback.so]
DIAG (3070165744):Detected plugin [/Storyboard/plugins/libgre-plugin-logger.so]
DIAG (3070165744):Detected plugin [/Storyboard/plugins/libgre-plugin-timer.so]
DIAG (3070165744):Detected plugin [/Storyboard/plugins/libgre-plugin-screen-scale.so]
--------------------------------
DIAG (3070165744):Detected plugin [/Storyboard/plugins/libgre-plugin-dev-input.so]
INFO (3070165744):Manager: data_mgr Internal: 0xb6fb7b00
INFO (3070165744):Manager: model_mgr Internal: 0xb6fb6b24
---------------------------------
INFO (3070165744):Initialize plugin: [dev-input (3.1.0.10071)] []
DBG1 (3070165744):IO Deliver event [gre.internalinit]
DIAG (3070165744):IO Callback 0xb6fb866c(gre.internalinit, 0b6fccd48)
DIAG (3070165744):IO Callback 0xb6fbf550(gre.internalinit, 000011008)
DIAG (3070165744):IO Callback 0xb6fbca9c(gre.internalinit, 000011008)
INFO (3070165744):No device specified, using default /dev/fb0

WARN (3070165744):Frambuffer format mismatch requested 0 using 16

DBG1 (3070165744):IO Trigger event [gre.init]
DBG1 (3065255024):IO Trigger event [gre.init]
DIAG (3070165744):IO Callback 0xb6d59650(gre.internalinit, 00002f0c8)
DBG1 (3070165744):IO Deliver event [gre.init]
DIAG (3070165744):IO Callback 0xb6fb866c(gre.init, 0b6fccd48)
DIAG (3070165744):IO Callback 0xb6fbf550(gre.init, 000011008)
DIAG (3070165744):IO Callback 0xb6fbd3ac(gre.init, 000011008)
DBG1 (3070165744):IO Trigger event [gre.screenshow.pre]
DBG1 (3070165744):IO Trigger event [gre.screenshow.post]
DBG1 (3065255024):IO Trigger event [gre.screenshow.pre]
DBG1 (3070165744):IO Deliver event [gre.screenshow.pre]
DIAG (3070165744):IO Callback 0xb6fb866c(gre.screenshow.pre, 0b6fccd48)
DIAG (3070165744):IO Callback 0xb6fbf550(gre.screenshow.pre, 000011008)
DBG1 (3065255024):IO Trigger event [gre.screenshow.post]
DBG1 (3070165744):IO Deliver event [gre.screenshow.post]
DIAG (3070165744):IO Callback 0xb6fb866c(gre.screenshow.post, 0b6fccd48)
DIAG (3070165744):IO Callback 0xb6fbf550(gre.screenshow.post, 000011008)
/Storyboard/bin/sbengine -vvvvv /home/root/button/button.gapp^Z
[1]+ Stopped(SIGTSTP) /Storyboard/bin/sbengine -vvvvv /home/root/button/button.gapp
root@beaglebone:/Storyboard/bin#

3- I tryed with the directfb files

root@beaglebone:/Storyboard/plugins# /Storyboard/bin/sbengine -vvvvvv /home/root/button/button.gapp
DIAG (3069297392):Detected plugin [/Storyboard/plugins/libgre-plugin-lua.so]
DIAG (3069297392):Detected plugin [/Storyboard/plugins/libgre-plugin-greio.so]
DIAG (3069297392):Detected plugin [/Storyboard/plugins/libgre-plugin-screen-path.so]
DIAG (3069297392):Detected plugin [/Storyboard/plugins/libgre-plugin-poly.so]
DIAG (3069297392):Detected plugin [/Storyboard/plugins/libgre-plugin-capture-playback.so]
DIAG (3069297392):Detected plugin [/Storyboard/plugins/libgre-plugin-logger.so]
DIAG (3069297392):Detected plugin [/Storyboard/plugins/libgre-plugin-timer.so]
DIAG (3069297392):Detected plugin [/Storyboard/plugins/libgre-plugin-screen-scale.so]
DIAG (3069297392):Unable to load plugin: /Storyboard/plugins/librender-plugin-directfb.so
Error: libdirectfb-1.4.so.0: cannot open shared object file: No such file or directory
DIAG (3069297392):Detected plugin [/Storyboard/plugins/libgre-plugin-animation.so]
DIAG (3069297392):Detected plugin [/Storyboard/plugins/libgre-plugin-event-redirect.so]
DIAG (3069297392):Detected plugin [/Storyboard/plugins/libgre-plugin-gesture.so]
DIAG (3069297392):Detected plugin [/Storyboard/plugins/libgre-plugin-screen-dump.so]
DIAG (3069297392):Detected plugin [/Storyboard/plugins/libgre-plugin-dynamic-rext.so]
DIAG (3069297392):Detected plugin [/Storyboard/plugins/libgre-plugin-system.so]
DIAG (3069297392):Detected plugin [/Storyboard/plugins/libgre-plugin-audio.so]
DIAG (3069297392):Detected plugin [/Storyboard/plugins/libgre-plugin-rext-external.so]
INFO (3069297392):Manager: data_mgr Internal: 0xb6ee3b00
INFO (3069297392):Manager: model_mgr Internal: 0xb6ee2b24
INFO (3069297392):Manager: io_mgr Internal: 0xb6eea310
INFO (3069297392):Manager: action_mgr Internal: 0xb6eeb748
DIAG (3069297392):Manager: render_mgr FUNC:gr_rendermgr_create
FATAL (3069297392):Unable to load a renderer
INFO (3069297392):Finalize IO Manager
Failed to run engine using file: /home/root/button/button.gapp
root@beaglebone:/Storyboard/plugins#

I understand that the sbengine looks for “libdirectfb-1.4.so.0” but the “libdirectfb-1.6.so.0” is in the system under /usr/lib; seems after performing “opkg install directfb”.

Does someone can push me in the right direction.
Thanks a lot
LGuy
 
Posts: 3
Joined: Wed Sep 04, 2013 9:45 am

Re: button example on my beagleboard running linux angstrom

Postby Deric » Wed Sep 04, 2013 2:37 pm

HI,

I've got a couple of quick questions, do you see anything at all on your screen? I know from experience that the default images for the beagleboard often put the framebuffer ins a sleep mode after a certain time.

Can you try the following command in your serial console?

echo 0 > /sys/class/graphics/fb0/blank

Also there are some other tips found in this post that will apply to your board ( disabling the blinking cursor etc )

viewtopic.php?f=5&t=36&hilit=fb0

If the screen is enabled properly you should see a linux console, when you run Storyboard this will be replaced by the Storyboard application.

For the Directfb question our runtime links against an older version of Directfb, to be able to run the directfb runtime you'll need a copy of the libdirectfb-1.4 binaries. I can put a package together for you, or you can try installing an older version using opkg, although they may not have a package for that version of directfb. Is there a specific reason you're trying directfb? Is it beacuse fbdev didn't work?

What version of the beagleboard are you running on? If it's the Beagleboard xM you can also run the opengles_2.0 runtime.

Thanks.
Deric.
User avatar
Deric
 
Posts: 50
Joined: Mon Jul 05, 2010 3:17 pm

Re: button example on my beagleboard running linux angstrom

Postby LGuy » Thu Sep 05, 2013 3:18 am

Hi,

I use the Beaglebone black board with
Angstrom Release v2012.12
Kernel Linux 3.8.13

I tried the directfb as I got the following error when I launch sbengine with the fbdev
DIAG (3070165744):Unable to load plugin: /Storyboard/plugins/libgre-plugin-tslib.so
Error: libts-0.0.so.0: cannot open shared object file: No such file or directory

Thanks & Regards,
Guy
LGuy
 
Posts: 3
Joined: Wed Sep 04, 2013 9:45 am

Re: button example on my beagleboard running linux angstrom

Postby Deric » Thu Sep 05, 2013 7:29 am

LGuy wrote:Hi,

I use the Beaglebone black board with
Angstrom Release v2012.12
Kernel Linux 3.8.13

I tried the directfb as I got the following error when I launch sbengine with the fbdev
DIAG (3070165744):Unable to load plugin: /Storyboard/plugins/libgre-plugin-tslib.so
Error: libts-0.0.so.0: cannot open shared object file: No such file or directory

Thanks & Regards,
Guy


Hi Guy,

I have a Beaglebone Black and I've been running our fbdev release with no problems. You can ignore the tslib error for now, if you want the touchscreen to work you're going to need to create a symbolic link to libts-1.0.so.0 and name it libts-0.0.so.0

Code: Select all
ln -s /usr/lib/libts-1.0.so.0 /usr/lib/libts-0.0.so.0


I know for a fact that the framebuffer goes into sleep mode on the black after a few minutes, you need to issue the following command to turn it back on

Code: Select all
echo 0 > /sys/class/graphics/fb0/blank


If you want to turn off the sleep mode for the session you're running you need to execute the following after starting up

Code: Select all
echo -e '\033[9;0]'


The beagelbone black doesn't support the SGX chipset yet so you can't use the OpenGLES_2.0 runtime yet, when they release the 3.12 kernel for the black it's supposed to have integrated supported for the Graphics chip.
User avatar
Deric
 
Posts: 50
Joined: Mon Jul 05, 2010 3:17 pm

Re: button example on my beagleboard running linux angstrom

Postby LGuy » Mon Sep 09, 2013 7:01 am

Hi,

I have now the button example working.

What I did:
When the board is powered on it comes with the Angstrom desktop. So in a console I enter:
pkill gdm (pkill gpe-dm did not kill the desktop)
and to launch the application
[target]/bin/sbengine –vvvvv -oscreen_mgr,swcursor=1 -odev-input,mouse=/dev/input/event1 /tmp/button-example/button-example.gapp
with -odev-input,mouse=/dev/input/event2; I had the mouse pointer at the top left corner, but it did not move; perhaps due to my installation.
I have an usb hub (for Keyboard, mouse and stick) connected to the usb host connector.

Thanks & best regards
Guy
LGuy
 
Posts: 3
Joined: Wed Sep 04, 2013 9:45 am

Re: button example on my beagleboard running linux angstrom

Postby Deric » Mon Sep 09, 2013 8:11 am

LGuy wrote:Hi,

I have now the button example working.

What I did:
When the board is powered on it comes with the Angstrom desktop. So in a console I enter:
pkill gdm (pkill gpe-dm did not kill the desktop)
and to launch the application
[target]/bin/sbengine –vvvvv -oscreen_mgr,swcursor=1 -odev-input,mouse=/dev/input/event1 /tmp/button-example/button-example.gapp
with -odev-input,mouse=/dev/input/event2; I had the mouse pointer at the top left corner, but it did not move; perhaps due to my installation.
I have an usb hub (for Keyboard, mouse and stick) connected to the usb host connector.

Thanks & best regards
Guy


Hi Guy,

Glad to hear you got everything working. The event number assigned to an input device is not normally static so Linux could assign /dev/input/event2 to the mouse or /dev/input/event1. I suspect that /dev/input/event2 in your current setup is pointing to the keyboard. The easiest way I've found to figure out which device is which is to cat the input file and then wiggle the mouse around, when you see a bunch of garbage characters show up on the terminal while you move the mouse you know you've got the right file.

Let us know if you have any more questions.

Thanks,
Deric.
User avatar
Deric
 
Posts: 50
Joined: Mon Jul 05, 2010 3:17 pm


Return to Samples

Who is online

Users browsing this forum: No registered users and 1 guest

cron