Beaglebone Black rev B - Embedded QT and X Sever - Deployment OS Ubuntu

278 views
Skip to first unread message

Peter Gregory

unread,
Sep 10, 2014, 9:15:19 AM9/10/14
to beagl...@googlegroups.com
I'm trying to get a good development system up and running for Beaglebone Black and Ubuntu.
The goal is to launch an embedded GUI application on a LCD cape on boot.
The application will control a hardware project and that is all it does. So it will be a special purpose device, not a general server.
The hardware leverages the Linux OS for WiFi, Sound, Graphics.

I'm open to using several development environments, QT, Mono, Java Swing...
I am on a Beaglebone Black rev B, so I'm limited to 2gb storage.
I'll need to have room for the application, so minimal size on the OS is needed.

I tried to get a minimal system working with Ubuntu Trusty (14.04) following the instructions to get the custom kernel running and SGX drivers.
I could get the SGX demos to work (evil morphing skull works great) but could not get the X server to work.
The desktop would load, and show the login screen.
Keyboard works, so I can log in.
However, if I move the mouse, the system would freeze up solid. Reboot is the only option.
I used a cross compiler machine to build QT applications. Console apps worked great. GUI failed.
I could get the pre-compiled examples to work with LinuxFB (Fingerpaint) but my custom compiled GUI would not work.

I dropped back to precise (12.04) and QT 4.8
X server works well for that version, but it is a bit slow.
Loading the entire desktop allows me to run QT GUI programs.
Now I'm trying to get a minimal X server QT build working.
I don't need the desktop, just enough of X server to run QT applications.
Has anyone been able to get a good minimal embedded QT environment to work?
If so, did you do it using linux packages or compiling and installing source code?
Did you end up installing the entire desktop or is there a minimum X server install that will run QT applications?

John Syn

unread,
Sep 10, 2014, 3:31:05 PM9/10/14
to beagl...@googlegroups.com

On 9/10/14, 6:15 AM, "Peter Gregory" <talk...@gmail.com> wrote:

>I'm trying to get a good development system up and running for Beaglebone
>Black and Ubuntu.
>The goal is to launch an embedded GUI application on a LCD cape on boot.
>The application will control a hardware project and that is all it does.
>So it will be a special purpose device, not a general server.
>The hardware leverages the Linux OS for WiFi, Sound, Graphics.
>
>I'm open to using several development environments, QT, Mono, Java
>Swing...
> I am on a Beaglebone Black rev B, so I'm limited to 2gb storage.
>I'll need to have room for the application, so minimal size on the OS is
>needed.
>
>I tried to get a minimal system working with Ubuntu Trusty (14.04)
>following the instructions to get the custom kernel running and SGX
>drivers.
>I could get the SGX demos to work (evil morphing skull works great) but
>could not get the X server to work.
If you read the SGX release notes, Xorg is not supported.

http://processors.wiki.ti.com/index.php/RN_5_01_01_01#What_is_not_supported

TI are going to support wayland instead.

Regards,
John
>The desktop would load, and show the login screen.
>Keyboard works, so I can log in.
>However, if I move the mouse, the system would freeze up solid. Reboot
>is the only option.
>I used a cross compiler machine to build QT applications. Console apps
>worked great. GUI failed.
>I could get the pre-compiled examples to work with LinuxFB (Fingerpaint)
>but my custom compiled GUI would not work.
>
>I dropped back to precise (12.04) and QT 4.8
>X server works well for that version, but it is a bit slow.
>Loading the entire desktop allows me to run QT GUI programs.
>Now I'm trying to get a minimal X server QT build working.
>I don't need the desktop, just enough of X server to run QT applications.
>Has anyone been able to get a good minimal embedded QT environment to
>work?
>If so, did you do it using linux packages or compiling and installing
>source code?
>Did you end up installing the entire desktop or is there a minimum X
>server install that will run QT applications?
>
>--
>For more options, visit http://beagleboard.org/discuss
>---
>You received this message because you are subscribed to the Google Groups
>"BeagleBoard" group.
>To unsubscribe from this group and stop receiving emails from it, send an
>email to beagleboard...@googlegroups.com.
>For more options, visit https://groups.google.com/d/optout.


Peter Gregory

unread,
Sep 10, 2014, 4:10:55 PM9/10/14
to beagl...@googlegroups.com
Wayland! That's what I was missing.
I was installing ubuntu-desktop.
Looks like I'll be flashing a new image tonight and giving it a try.
Thanks!

John Syn

unread,
Sep 10, 2014, 4:36:21 PM9/10/14
to beagl...@googlegroups.com
From QT, you need qtwayland.

Regards,
John

wing...@163.com

unread,
Sep 11, 2014, 1:36:36 AM9/11/14
to beagl...@googlegroups.com
于 2014-9-10 21:15, Peter Gregory 写道:
> trying to get a minimal X server QT build working.
I am doing the same thing at TI 8148。 I had make a ubuntu 12.04 with
x,jwm,and QT 4.8 for x11.
It take less than 500mb. A ubuntu without X is about 300mb in my
experience. Adding a standalone QT
, it take about 400mb. So I decided to use the ubuntu with X and a small
WM at last.


--
Vinge


Peter Gregory

unread,
Sep 11, 2014, 6:33:39 PM9/11/14
to beagl...@googlegroups.com, wing...@163.com
Ok, where does one get qtwayland?
It is not a part of the normal distribution repositories
Nor is it in ubuntu-sdk-team/ppa
I saw some references on how to download and compile it.
Is that my only option?
Do any of the desktops in the normal distribution work or are they all X desktops?

ubuntu-desktop (mouse locks it up)
lubuntu-desktop (mouse locks it up)
ubuntu-desktop-mir (didn't work for me)
xubuntu-desktop

John Syn

unread,
Sep 11, 2014, 6:45:06 PM9/11/14
to beagl...@googlegroups.com

From: Peter Gregory <talk...@gmail.com>
Reply-To: "beagl...@googlegroups.com" <beagl...@googlegroups.com>
Date: Thursday, September 11, 2014 at 3:33 PM
To: "beagl...@googlegroups.com" <beagl...@googlegroups.com>
Cc: <wing...@163.com>
Subject: Re: [beagleboard] Beaglebone Black rev B - Embedded QT and X Sever - Deployment OS Ubuntu

Ok, where does one get qtwayland?
You have to build It from source:


Or you can use archlinux for arm as I believe they have qtwayland already packaged. I haven’t used archlinux myself, but from what I have learned it looks pretty good. 

Regards,
John

Robert Nelson

unread,
Sep 11, 2014, 7:10:09 PM9/11/14
to Beagle Board
check your xorg.conf:

http://eewiki.net/display/linuxonarm/BeagleBone+Black#BeagleBoneBlack-HDMI

modesetting has a tendency to lockup

Regards,

--
Robert Nelson
http://www.rcn-ee.com/

Peter Gregory

unread,
Sep 11, 2014, 7:44:28 PM9/11/14
to beagl...@googlegroups.com
Thanks for all the great info.
I was in the process of testing lxde (Lightweight X11 desktop environment) as of my last post
It works quite well.
I installed bone-ubuntu-14.04-console-armhf-2014-08-13-2gb.img.xz onto a SD card
I installed the SGX drivers as described at http://elinux.org/BeagleBoardUbuntu
I installed lxde (sudo apt-get install lxde)
I have a desktop that takes up about 1.3gb on my SD drive.
Mouse & HDMI work well.
I'm going to develop some quick apps & transfer to flash & test headless execution

William Hermans

unread,
Sep 11, 2014, 7:50:42 PM9/11/14
to beagl...@googlegroups.com
How about performance ? I'd expect it would run sluggish.I wonder how well xcompmgr + cairo-dock would run on it heh.
 
I recently installed Lubuntu 14.04 on an older laptop, and have to say I'm impressed with it. Aesthetically it looks very nice, and otherwise is just Ubuntu, except it runs faster, and looks better.

--

Peter Gregory

unread,
Sep 12, 2014, 8:46:04 AM9/12/14
to beagl...@googlegroups.com
Performance is not as good as my 2014 MacBook Pro, but it is not too bad.
I'm running on a 16gb SD card with 1gb swap (swappiness=0)
The mouse moves well.
You can expect a half second to second to launch applications.
QT Designer is responsive.
Navigation and dialogs pop up quickly.
It takes about 5 seconds to compile a simple Hello World application.
I'm missing Quick 2 libraries, so I'm tracking down what to apt-get to load them.

I'll probably build a cross compiler once I get a better handle on QT requirements on BBB

William Hermans

unread,
Sep 12, 2014, 1:51:00 PM9/12/14
to beagl...@googlegroups.com
Peter, for your information. Installing Eclipse + armhf variant of gcc for cross compiling on Lubuntu ( Ubuntu period I presume ) is fairly simple. This is the only reason I originally bothered with Lubuntu. To test this. I have a text worklog of this, but currently is not really formatted well enough for others to read - YET

Peter Gregory

unread,
Sep 12, 2014, 2:09:26 PM9/12/14
to beagl...@googlegroups.com
I've set up a cross compiler under Ubuntu 14.04 32 bit x86 in VMWare on my mac.
I built the QT 5.3 source using Lenaro hard float gcc.
I set up the kit for cross compiling using QT Creator and could remotely deploy console applications fine.
I ran into problems getting QT graphics applications to work.
I could compile them using the TI graphics SDK, but they would not run on the BBB.
I suspect I'm missing packages on the non-X BBB.
I'm learning more as I go, I'll probably try again and see if I can get Wayland working on BBB and get QTWayland plugin working.
My original idea was to use LinuxFB, but X seems to be required for QT graphics applications.
The QT 5.3 source won't compile the Quick libraries unless X or OpenGL libraries exist.

I thought it would make sense to get QT Creator to work on BBB and make it build the QT graphics applications.
At least to start.
Then I can work on the minimum BBB deployment image that can run the QT graphics application.

John Syn

unread,
Sep 13, 2014, 5:55:15 PM9/13/14
to beagl...@googlegroups.com

On 9/12/14, 11:09 AM, "Peter Gregory" <talk...@gmail.com> wrote:

>I've set up a cross compiler under Ubuntu 14.04 32 bit x86 in VMWare on
>my mac.
>I built the QT 5.3 source using Lenaro hard float gcc.
>I set up the kit for cross compiling using QT Creator and could remotely
>deploy console applications fine.
>I ran into problems getting QT graphics applications to work.
>I could compile them using the TI graphics SDK, but they would not run on
>the BBB.
>I suspect I'm missing packages on the non-X BBB.
>I'm learning more as I go, I'll probably try again and see if I can get
>Wayland working on BBB and get QTWayland plugin working.
>My original idea was to use LinuxFB, but X seems to be required for QT
>graphics applications.
Have you tried to run the QT demos with ³-platform eglfs²

You need the SGX libraries installed for this to work.

Regards,
John
>The QT 5.3 source won't compile the Quick libraries unless X or OpenGL
>libraries exist.
>
>I thought it would make sense to get QT Creator to work on BBB and make
>it build the QT graphics applications.
>At least to start.
>Then I can work on the minimum BBB deployment image that can run the QT
>graphics application.
>

Peter Gregory

unread,
Sep 13, 2014, 6:42:36 PM9/13/14
to beagl...@googlegroups.com
I did not try -platform eglfs
However, I did get QT applications running under lxde desktop, Ubuntu Designer (qtdelarative-ubuntu-ui-toolkit-plugin)
It was very... very... slow.
Dragging UI elements to the designer window was painful.

So much for that experiment.

However, I did learn a lot from the process.

I'm now in the process of building a cross compiler on Ubuntu 14.04 LS using:

linaro 4.8 arm hard float compiler
TI GFX sdk (or do I use the source from RobertCNelson's bb-kernel?)
QT Everywhere 5.3.1
QT Designer cross compiled

Hopefully this time I can get it all to work...




John Syn

unread,
Sep 13, 2014, 6:51:40 PM9/13/14
to beagl...@googlegroups.com
Date: Saturday, September 13, 2014 at 3:42 PM
To: "beagl...@googlegroups.com" <beagl...@googlegroups.com>

Subject: Re: [beagleboard] Beaglebone Black rev B - Embedded QT and X Sever - Deployment OS Ubuntu
There is something else you should keep an eye on, that is LXQT. This is LXDE rewritten using QT combined with Razor-QT. Not sure if it will work on BBB. 

Regards,
John
Reply all
Reply to author
Forward
0 new messages