QT Creator + Wandboard

Yocto related software discussions are here

QT Creator + Wandboard

Postby Wicked One 612 » Mon Dec 02, 2013 11:29 pm

Does anyone have any information about how to create a QT Yocto image for the Wandboard? I'm still trying to figure out how to setup the Yocto compiler and whatnot with QT Creator and build/load an image on to the board (Wandboard Dual).

Any help would be much appreciated!
Wicked One 612
 
Posts: 19
Joined: Fri Oct 11, 2013 2:54 am

Re: QT Creator + Wandboard

Postby Richard » Tue Dec 24, 2013 4:37 am

Hello :)
For creating a QT yocto image, you can refer to wandboard wiki:
Getting started with Yocto on Wandboard
http://wiki.wandboard.org/index.php/Get ... _Wandboard

For developing Qt application for QT yocto, you can refer to freescale community:
Setup QT Creator with Yocto Build
https://community.freescale.com/thread/309578
Richard
Site Admin
 
Posts: 137
Joined: Tue Dec 17, 2013 6:57 am

Re: QT Creator + Wandboard

Postby Wicked One 612 » Sat Jan 04, 2014 8:07 pm

How do you add the Wandboard as a device to QT Creator though? Are you connecting it to the computer via USB or ethernet or something else to build the image and run it on the Wandboard? I'm having difficulties deploying it to the board directly from QT Creator.

Thanks!
Wicked One 612
 
Posts: 19
Joined: Fri Oct 11, 2013 2:54 am

Re: QT Creator + Wandboard

Postby Richard » Tue Jan 14, 2014 3:59 am

Hello,

You can deploy your QT app to wandboard by ethernet.
The wandboard require openssh-sftp-server package
You can download here:
http://downloads.yoctoproject.org/relea ... _vfp_neon/

root@wandboard:/# rpm -ivh openssh-sftp-server-6.2p2-r0.cortexa9hf_vfp_neon.rpm

If your wandboard uses dropbear as ssh server, you should set password for root
to prevent error "SSH connection failure: Server rejected password" in QT creator
http://e2e.ti.com/support/dsp/davinci_d ... 00794.aspx

Set your password on wandboard as following:
root@wandboard:/# passwd root

Then, I can deploy QT apps to wandboard ;)
Richard
Site Admin
 
Posts: 137
Joined: Tue Dec 17, 2013 6:57 am

Re: QT Creator + Wandboard

Postby Soilman » Sun Jan 19, 2014 8:49 am

Hi there,

in case you still didn't figure out, how to deploy your apps.

I followed this guide straight through and it was working immediately.

http://wiki.wandboard.org/index.php/Bui ... _Wandboard

Thanks again for the good link.

Kind Regards
Soilman
Soilman
 
Posts: 3
Joined: Fri Jan 10, 2014 3:10 pm

Re: QT Creator + Wandboard

Postby Wicked One 612 » Sun Jan 19, 2014 6:51 pm

Hey, thanks for your input!

I've been trying to follow that guide for some time now. Unfortunately, whenever I bitbake the core-image-minimal image after adding the install appends and removing x11 and wayward, it will never boot. I look at the serial output and I get "Kernel Panic Not Syncing: No In it Found" every time.

Any ideas would be much appreciated!
Wicked One 612
 
Posts: 19
Joined: Fri Oct 11, 2013 2:54 am

Re: QT Creator + Wandboard

Postby JohnW » Sun Jan 19, 2014 7:41 pm

Hi There,

I look at the serial output and I get "Kernel Panic Not Syncing: No In it Found"


This is what you'll see if the kernel cannot find a root filesystem. My guess is that something went wrong when you wrote the image to the SD card. Can you post the steps that you followed here?

Also, if you want some assistance with Yocto, you'd do well to post to the mailing list at meta-freescale@yoctoproject.org

John
JohnW
 
Posts: 86
Joined: Sat Sep 07, 2013 3:01 pm
Location: United States

Re: QT Creator + Wandboard

Postby Wicked One 612 » Sun Jan 19, 2014 8:38 pm

JohnW wrote:Hi There,

I look at the serial output and I get "Kernel Panic Not Syncing: No In it Found"


This is what you'll see if the kernel cannot find a root filesystem. My guess is that something went wrong when you wrote the image to the SD card. Can you post the steps that you followed here?

Also, if you want some assistance with Yocto, you'd do well to post to the mailing list at meta-freescale@yoctoproject.org

John


Hi John,

I followed the steps here (initializing the dora branch of the repo), up to and including running this command:
Code: Select all
. ./setup-environment build
bitbake core-image-minimal

The core-image-minimal bitbake succeeded and booted successfully.

Then I followed the steps here exactly. (Although to run the dora branch checkout command of meta-qt5, I had to cd into the meta-qt5 folder first.) When I do the bitbake core-image-minimal, it succeeds in bitbaking it. I then cd into the /yocto/build/tmp/deploy/images/wandboard-dual folder and run this command:
Code: Select all
sudo dd if=core-image-minimal-wandboard-dual.sdcard of=/dev/sdb bs=1M

Where my sd card is located at /dev/sdb. This writes the sdcard image to my sdcard.

Finally, I pop it in my wandboard, boot it up, and watch the error come on serial.

Here are my boot logs for first boot and after a reset. You can see the kernel panic at 3.282522 and 3.056668, respectively.

Thanks for your help!
Wicked One 612
 
Posts: 19
Joined: Fri Oct 11, 2013 2:54 am

Re: QT Creator + Wandboard

Postby Soilman » Mon Jan 20, 2014 6:50 pm

Hi Wicked,

are you sure you put the SD-Card in the right slot? You have to put it into the slot on the CPU board not the main- or base-board.

Also a typical mistake I made when installing it onto the SD-Card, was to took the wrong letter (sdd instad of sde in my case). Try to double check after you burn the SD-Card, that the proper paritions were created by reinserting the card into your host computer.

Kind Regards

Soilman
Soilman
 
Posts: 3
Joined: Fri Jan 10, 2014 3:10 pm

Re: QT Creator + Wandboard

Postby Wicked One 612 » Wed Jan 22, 2014 3:19 pm

All,

JohnW solved my problem. If you are having the same kernel panic issue I was having after following this tutorial, here is the solution:

For some reason including git in the install_appends causes the kernel panic. The solution is simply to not include it when you are editing the local.conf. So your additions to local.conf would be:
Code: Select all
EXTRA_IMAGE_FEATURES = "debug-tweaks ssh-server-openssh "
IMAGE_INSTALL_append = "  \
    gcc \
    g++ \
    binutils \
    libgcc \
    libgcc-dev \
    libstdc++ \
    libstdc++-dev \
    libstdc++-staticdev \
    tslib-conf \
    tslib-tests \
    tslib-calibrate \
    openssh-sftp-server \
    alsa-lib \
    alsa-tools \
    alsa-state \
    alsa-utils-alsaconf \
    tslib \
    evtest \
    dbus \
    nano \
    qtbase \
    qtbase-fonts \
    qtbase-plugins \
    qtbase-examples \
    cinematicexperience \
    gstreamer \
    cairo \
    pango \
    fontconfig \
    freetype \
    pulseaudio \
"


We have no idea why git causes this, but it works like a charm! And you shouldn't need git for anything anyway.

Thank you so much for solving this very frustrating problem John!
Wicked One 612
 
Posts: 19
Joined: Fri Oct 11, 2013 2:54 am

Next

Return to Software - Yocto

Who is online

Users browsing this forum: Maash and 7 guests

cron