debian 7.6 console (2014-9-4 build) setting up for QT embedded issues

I’m trying to get the minimum installed on debian 7.6 console to run boot-to-qt applications.
I’d like to get the TI SGX graphics & OGLES2 up and running for my LCD cape (4DCAPE-43).
I also have a USB sound device.

I got very close to getting a good minimal environment working in ubuntu 14.04 LS, but the SGX graphics drivers did not detect the LCD cape and would fall back to using HDMI.
I got the USB sound working with ALSA drivers under ubuntu, haven’t gotten that far with debian yet.

I downloaded and installed the bone-debian-7.6-console-armhf-2014-09-04-2gb build onto a 8gb SD card.
My intention is to set up a base image for deploying boot to QT applications using this image.

in this debian image, I can’t upgrade the kernel from 3.8.13-bone64 to v3.15.8-bone6.
the console version does not have GIT installed. After installing it, it does not recognize /opt/scripts/tools as a git repository
(fatal: Not a git repository (or any of the parent directories): .git)

so, a few questions:

do you need to upgrade the kernel to 3.15.8-bone6 for TI SGX or will it work under 3.8.13-bone64.
How do you set up the root repository for git in /opt/script/tools? Is there a git clone command or do I download the missing .git directory?
has anyone successfully built an embedded QT5 environment for directly booting to QT5 application with accelerated graphics on LCD? If so, what method did you use? (compile kernel, yucto, apt-get, cross-compile)
Do you use the ti-sdk-am335x-evm-07.00.00.00 graphics SDK and mesa OpenGL (OGLES2) for LCD (or, does that work)?
Or, are you using the LXDE X Server frame buffer implementation?
Is there a minimum install for QT application graphics support without loading the entire LXDE?
Is there a minimal apt-get package install that will load the QT5 embedded runtime environment, or do I need to build it using qt-everywhere-opensource-src-5.3.1? (I have a feeling I will need to build it not to get X server)

Thanks in advance for the advice!

I'm trying to get the minimum installed on debian 7.6 console to run
boot-to-qt applications.
I'd like to get the TI SGX graphics & OGLES2 up and running for my LCD cape
(4DCAPE-43).
I also have a USB sound device.

I got very close to getting a good minimal environment working in ubuntu
14.04 LS, but the SGX graphics drivers did not detect the LCD cape and would
fall back to using HDMI.
I got the USB sound working with ALSA drivers under ubuntu, haven't gotten
that far with debian yet.

I downloaded and installed the bone-debian-7.6-console-armhf-2014-09-04-2gb
build onto a 8gb SD card.
My intention is to set up a base image for deploying boot to QT applications
using this image.

in this debian image, I can't upgrade the kernel from 3.8.13-bone64 to
v3.15.8-bone6.
the console version does not have GIT installed. After installing it, it
does not recognize /opt/scripts/tools as a git repository
(fatal: Not a git repository (or any of the parent directories): .git)

The "console" doesn't have git installed, so we can be around 200Mb..

You don't have to rely on the scripts under /opt/scripts/tools/ just:

sudo apt-get update ; sudo apt-get install linux-image-3.15.8-bone6

so, a few questions:
do you need to upgrade the kernel to 3.15.8-bone6 for TI SGX or will it work
under 3.8.13-bone64.
How do you set up the root repository for git in /opt/script/tools? Is
there a git clone command or do I download the missing .git directory?
has anyone successfully built an embedded QT5 environment for directly
booting to QT5 application with accelerated graphics on LCD? If so, what

btw, i'm really focusing on v3.14 lately, and haven't back/forward
ported the kernel fixes for v3.15/v3.16/v3.17 for all the lcd capes.
The sgx build script from v3.15 should work on v3.14.x

method did you use? (compile kernel, yucto, apt-get, cross-compile)
Do you use the ti-sdk-am335x-evm-07.00.00.00 graphics SDK and mesa OpenGL
(OGLES2) for LCD (or, does that work)?
Or, are you using the LXDE X Server frame buffer implementation?
Is there a minimum install for QT application graphics support without
loading the entire LXDE?
Is there a minimal apt-get package install that will load the QT5 embedded
runtime environment, or do I need to build it using
qt-everywhere-opensource-src-5.3.1? (I have a feeling I will need to build
it not to get X server)

You will have to build that.. debian doesn't build qt5 embedded, but
right down your steps.. I've been setting up:

https://github.com/rcn-ee/repos

to help setup packages thrown out to: repos.rcn-ee.net

Regards,

Thanks for the good advice.
I installed the latest version of the 3.14 kernel (linux-image-3.14.17-bone8) and the apt-get install worked great.
I’m in the process of building the SGX driver on a x86 debian image (my ubuntu 14.04 LS build wouldn’t work)
I’ll update with the dependency list as I go.

Wrong "3.14"... (that one is eol..)

sudo apt-get update;
sudo apt-get install linux-image-3.14.19-ti-r22

Regards,

More details:

http://elinux.org/Beagleboard:Capes_3.8_to_3.14

Regards,

Got it. Thanks!
I installed 3.14.19-ti-r22.
On reboot, it did not initialize the 4DCAPE-43
I modified the /boot/uEnv.txt to use am335x-boneblack-4dcape-43t.dtb.
It still does not use the LCD cape, but I can ssh into the board.
Is there something I need to build to create the dtb file?
Reading the link above it sounds like it is baked into the kernel.

My uEnv.txt looks like:

#Docs: http://elinux.org/Beagleboard:U-boot_partitioning_layout_2.0

uname_r=3.14.19-ti-r22

dtb=am335x-boneblack-4dcape-43t.dtb

cmdline=quiet init=/lib/systemd/systemd

##Example

#cape_disable=capemgr.disable_partno=

#cape_enable=capemgr.enable_partno=

##Disable HDMI/eMMC

#cape_disable=capemgr.disable_partno=BB-BONELT-HDMI,BB-BONELT-HDMIN,BB-BONE-EMMC-2G

##Disable HDMI

cape_disable=capemgr.disable_partno=BB-BONELT-HDMI,BB-BONELT-HDMIN

##Disable eMMC

#cape_disable=capemgr.disable_partno=BB-BONE-EMMC-2G

##Audio Cape (needs HDMI Audio disabled)

#cape_disable=capemgr.disable_partno=BB-BONELT-HDMI

#cape_enable=capemgr.enable_partno=BB-BONE-AUDI-02

##enable BBB: eMMC Flasher:

##make sure, these tools are installed: dosfstools rsync

#cmdline=init=/opt/scripts/tools/eMMC/init-eMMC-flasher-v3.sh

Also try:
fdtfile=am335x-boneblack-4dcape-43t.dtb

(if your running an old bootloader, i missed the fdtfile -> dtb change)

Regards,

That did it! Thank you!

LCD cape is up and running.
Now to install the compiled GFX_5.01.01.01.tar.gz…

It'll be interesting what happens, as i haven't tested it sgx on the
newer 3.14-ti branch yet. :wink:

Regards,

I’ve unpackaged the compiled

GFX_5.01.01.01.tar.gz

into the root directory.

Now I get:

debian@beaglebone:/opt/gfxinstall$ sudo ./sgx-install.sh

./sgx-install.sh: 29: ./sgx-install.sh: lsb_release: not found

Am I missing something in the /opt/scripts/tools directory?

I still can’t git update - it is missing the .git directory.

so close…

sudo apt-get install lsb-release

It's 200Mb for a reason. :wink: lots of stuff stripped.. :wink:

Regards,

that was the only missing dependency.
The install script ran.
However, on reboot I did not see the installed packages.

lsmod | grep omaplfb

did not show any packages installed.
I ran the install a couple of ties to make sure.

Is there a log file I can attach to see what is failing?

Fixed:

https://github.com/RobertCNelson/ti-linux-kernel-dev/commit/ec0332b2b70f665193e68dba78b7e6a15153dee9

debian@beaglebone:/opt/gfxsdkdemos/ogles2$ sudo ./OGLES2ChameleonMan
Can't open keypad input device (/dev/input/event0)
PVRShell: EGL 1.4 initialized

Regards,

Cool beans!
So, when do the repositories get updated for a kernel patch?
Do I just:

sudo apt-get update
sudo apt-get upgrade

and the patch will get applied? (not yet if so, maybe it takes time to propagate)

Or, will it get applied the next time I build a new system and add the kernel (looked like a minor revision change, still 3.14.19 r22) (so close to 3.14159, but I digress…)?

(I’m new at this)

So a couple options.

Build from that tree..

Wait for me to finish up one more cape (audio rev 1), then push out next:

After 20 mins or so after, it'll pop up on:
http://builds.beagleboard.org/one_line_per_build

After 2-3 hours the native build will finish... repos.rcn-ee.net is
synced via cron every 6 hours...

I'm going to start packing the sgx kernel modules into a deb on
rcn-ee.net too, but i won't get it done this week/weekend..

Regards,

Now my expectations are set.
I’ll wait for the build to complete.
Then I’ll look into the rest of the build / deploy.
Awesome work!

http://builds.beagleboard.org/linux/42.html

wget *.deb
sudo dpkg -i *.deb
sudo reboot

(note, you'll probally still have to rebuild the sgx module tar file
against: this branch)

https://github.com/RobertCNelson/ti-linux-kernel-dev/tree/ti-linux-3.14.y

Regards,

Chameleon man runs again!
First time I’ve seen it on my LCD cape.
It looks great.
Thank you for getting it going!
Now to get the qt5 embedded library compiled with OpenGL es2 & asla sound!