[yocto] Yocto and Qt embedded

2012-06-28 Thread Giovanni Foiani
Hi,

This is my first post on this mailing list and I'm quite new to Yocto.
I successfully built a distro using the latest release of hob, including Qt
embedded (without X11).
I wrote a Qt application and cross compiled for ARM on my host machine but
when I deploy it on the device (a Freescale iMX53) I get and error because
the application looks for libraries like libQtGui but on the distro all Qt
libraries are named like libQtGuiE (ending with E which I suppose it stands
for Embedded).
Is the problem due to a wrong distro configuration or a compile problem?
(I'm using a default ARM toolchain from Ubuntu repos)

Thanks

Giovanni
--

Dott. Ing. Giovanni Foiani

Cell:+39-349-3577515
Phone:+39-0532-97-4106
mail:giovanni.foi...@unife.it
CenTec - Corso Guercino, 47 - 44042 Cento (FE)
___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto


Re: [yocto] Yocto and Qt embedded

2012-07-13 Thread Giovanni Foiani
Hi Jessica,

I built separately the qte toolchain running:


   - bitbake meta-toolchain-qte

and the qte demo image (without toolchain) using Hob.
Now I need to integrate Yocto SDK and Qt Creator IDE.
I'm trying to configure Qt Creator to recognize Poky toolchain and Qt
Creator asks for the compiler path inside Poky SDK.
Where is the compiler located inside Poky SDK built from meta-toolchain-qte?

Thanks

Giovanni

--

Dott. Ing. Giovanni Foiani

Cell:+39-349-3577515
Phone:+39-0532-97-4106
mail:giovanni.foi...@unife.it
CenTec - Corso Guercino, 47 - 44042 Cento (FE)



On Thu, Jun 28, 2012 at 8:20 PM, Zhang, Jessica wrote:

> Hi Giovanni,
>
> You need to build a matching toolchain.  Either from command line do
> "bitbake meta-toolchain-qte or through hob, under Settings, please make
> sure check "Build Toolchain".
>
> Thanks,
> Jessica
>
> -Original Message-
> From: yocto-boun...@yoctoproject.org [mailto:
> yocto-boun...@yoctoproject.org] On Behalf Of Wolfgang Denk
> Sent: Thursday, June 28, 2012 11:12 AM
> To: Giovanni Foiani
> Cc: yocto@yoctoproject.org
> Subject: Re: [yocto] Yocto and Qt embedded
>
> Dear Giovanni,
>
> In message <
> cansupap4h2ouz_4mckq8jmfm_grv_ccgcmfxzqagms7ty8b...@mail.gmail.com> you
> wrote:
> >
> > This is my first post on this mailing list and I'm quite new to Yocto.
> > I successfully built a distro using the latest release of hob,
> > including Qt embedded (without X11).
> > I wrote a Qt application and cross compiled for ARM on my host machine
> > but when I deploy it on the device (a Freescale iMX53) I get and error
> > because the application looks for libraries like libQtGui but on the
> > distro all Qt libraries are named like libQtGuiE (ending with E which
> > I suppose it stands for Embedded).
>
> These names are OK for the Qt Embedded libraries, and they should match
> what your cross development tools are using.  Which tool chain did you use
> for compiling and linking your application - the one from
> meta-toolchain-qte ?
>
> When I build meta-toolchain-qte, this also includes, for example,
>
> .../sysroots/armv6-vfp-linux-gnueabi/usr/lib/libQtGuiE.so.4.8.2
>
> so cross tool chain and native systems work together without problems.
>
>
> Best regards,
>
> Wolfgang Denk
>
> --
> DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
> HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
> Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: w...@denx.deit's 
> hard to make a program foolproof because fools are so ingenious.
> ___
> yocto mailing list
> yocto@yoctoproject.org
> https://lists.yoctoproject.org/listinfo/yocto
> ___
> yocto mailing list
> yocto@yoctoproject.org
> https://lists.yoctoproject.org/listinfo/yocto
>
___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto


Re: [yocto] Yocto and Qt embedded

2012-07-15 Thread Giovanni Foiani
Hi Khem,

I have to use Yocto Denzil branch (not the latest snapshot) because I'm
developing for Freescale iMX53 QSB and fsl-arm branch is aligned with
Denzil.
>From a fresh Denzil installation I edited local.conf and bblayer.conf files
and run "bitbake meta-toolchain-qte". The command ends successfully.

So I tried to find g++ compiler using "find" command, into:

/opt/poky/1.2.1/sysroots/i686-pokysdk-linux/

with no success.

I found qmake command
(into /opt/poky/1.2.1/sysroots/i686-pokysdk-linux/usr/bin) but when I set
this Qt version in Qt creator the ABI detection fails, so I can't configure
the right toolchain inside Qt creator and I can't build my application.
Do I have to rerun the bitbake command? Am I missing any configuration?

Thanks

Giovanni

--

Dott. Ing. Giovanni Foiani

Cell:+39-349-3577515
Phone:+39-0532-97-4106
mail:giovanni.foi...@unife.it
CenTec - Corso Guercino, 47 - 44042 Cento (FE)



On Fri, Jul 13, 2012 at 9:04 PM, Khem Raj  wrote:

> On Wed, Jul 11, 2012 at 11:45 PM, Giovanni Foiani  wrote:
> > Where is the compiler located inside Poky SDK built from
> meta-toolchain-qte?
>
> somewhere like below is mine for x86_64
>
>
> /opt/poky/1.2+snapshot/sysroots/x86_64-pokysdk-linux/usr/bin/x86_64-poky-linux/
>
___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto


Re: [yocto] Yocto and Qt embedded

2012-07-16 Thread Giovanni Foiani
Thanks Khem,
I successfully found g++ compiler path which is:

/opt/poky/1.2.1/sysroots/i686-pokysdk-linux/usr/bin/armv7a-vfp-neon-poky-linux-gnueabi/arm-poky-linux-gnueabi-g++

now I was able to configure the poky tool chain into Qt creator (using
default mkspec which is linux-g++); after that I tried to configure Qt
Version (4.7.4) in Qt creator using the following qmake file:

/opt/poky/1.2.1/sysroots/i686-pokysdk-linux/usr/bin/qmake

Now Qt creator gives me a warning:

*"ABI detection failed: Make sure to use a matching tool chain when
building"*
*
*
ABI is automatically set to arm-linux-generic-elf and this warning prevents
me to select arm tool chain for building my application.
Am I using the wrong mkspec? (The other ones seems unsuitable for me..)

Thanks

Giovanni
--

Dott. Ing. Giovanni Foiani

Cell:+39-349-3577515
Phone:+39-0532-97-4106
mail:giovanni.foi...@unife.it
CenTec - Corso Guercino, 47 - 44042 Cento (FE)



On Sat, Jul 14, 2012 at 8:17 PM, Khem Raj  wrote:

> On Sat, Jul 14, 2012 at 3:15 AM, Giovanni Foiani  wrote:
> > So I tried to find g++ compiler using "find" command, into:
> >
> > /opt/poky/1.2.1/sysroots/i686-pokysdk-linux/
> >
> > with no success.
>
> find "*g++"
>
___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto


[yocto] Problem building Yocto Hello World demo on imx53QSB

2012-07-17 Thread Giovanni Foiani
Hi,

I need to deploy a C application that I have made on a Freescale iMX53 QSB.
First I wanted to test the cross-compilation environment building the Hello
World demo but I got some issues.
I made the following steps:

   - download yocto denzil
   - source oe-init-build-env
   - edit local.conf and bblayers.conf files
   - run 'bitbake meta-ide-support'
   - copied the resultant sdk in /opt/poky
   - installed Yocto Eclipse plugin
   - Configured the plugin as following
  - toolchain root location: /opt/poky/1.2.1
  - sysroot
  location: /opt/poky/1.2.1/sysroots/armv7a-vfp-neon-poky-linux-gnueabi

When I build the project I get the following error:

*Invoking autogen.sh in build directory:
/home/gfoiani/workspace/idea-c-application*
*
*
*Command-line environment variables:*
* CFLAGS=" -g -O0  -march=armv7-a -fno-tree-vectorize -mthumb-interwork
-mfloat-abi=softfp -mfpu=neon -mtune=cortex-a8
--sysroot=/opt/poky/1.2.1/sysroots/armv7a-vfp-neon-poky-linux-gnueabi"
CXXFLAGS=" -g -O0  -march=armv7-a -fno-tree-vectorize -mthumb-interwork
-mfloat-abi=softfp -mfpu=neon -mtune=cortex-a8
--sysroot=/opt/poky/1.2.1/sysroots/armv7a-vfp-neon-poky-linux-gnueabi"
LDFLAGS="
--sysroot=/opt/poky/1.2.1/sysroots/armv7a-vfp-neon-poky-linux-gnueabi"
CPPFLAGS=" -march=armv7-a -fno-tree-vectorize -mthumb-interwork
-mfloat-abi=softfp -mfpu=neon -mtune=cortex-a8
--sysroot=/opt/poky/1.2.1/sysroots/armv7a-vfp-neon-poky-linux-gnueabi"*
*
*
*sh /home/gfoiani/workspace/idea-c-application/autogen.sh
--with-libtool-sysroot=/opt/poky/1.2.1/sysroots/armv7a-vfp-neon-poky-linux-gnueabi
--target=arm-poky-linux-gnueabi --host=arm-poky-linux-gnueabi
--build=i686-linux
--with-libtool-sysroot=/opt/poky/1.2.1/sysroots/armv7a-vfp-neon-poky-linux-gnueabi
*
*configure.ac:24: error: AC_SUBST: `idea-c-application_CFLAGS' is not a
valid shell variable name*
*configure.ac:24: the top level*
*autom4te: m4 failed with exit status: 1*
*aclocal: autom4te failed with exit status: 1*
*configure.ac:24: error: AC_SUBST: `idea-c-application_CFLAGS' is not a
valid shell variable name*
*configure.ac:24: the top level*
*autom4te: m4 failed with exit status: 1*
*configure.ac:24: error: AC_SUBST: `idea-c-application_CFLAGS' is not a
valid shell variable name*
*configure.ac:24: the top level*
*autom4te: m4 failed with exit status: 1*
*autoheader: '/opt/poky/1.2.1/sysroots/i686-pokysdk-linux/usr/bin/autom4te'
failed with exit status: 1*
*configure.ac:24: error: AC_SUBST: `idea-c-application_CFLAGS' is not a
valid shell variable name*
*configure.ac:24: the top level*
*autom4te: m4 failed with exit status: 1*
*automake: autoconf failed with exit status: 1*
*/home/gfoiani/workspace/idea-c-application/autogen.sh: line 9:
./configure: No such file or directory*
*
*
*Configuration failed with error*
*
*
What Am I doing wrong?

Thanks

Giovanni
--

Dott. Ing. Giovanni Foiani

Cell:+39-349-3577515
Phone:+39-0532-97-4106
mail:giovanni.foi...@unife.it
CenTec - Corso Guercino, 47 - 44042 Cento (FE)
___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto


Re: [yocto] Problem building Yocto Hello World demo on imx53QSB

2012-07-18 Thread Giovanni Foiani
Hi Jessica,

downgrading from Ubuntu 11.04 (32 bit) to Ubuntu 10.04 (32 bit) and
following the ADT manual procedure HelloWorld demo works.
I noticed that ADT creates an armv5 tool chain instead building the
toolchain using Freescale layer (because I need to deploy the application
on a iMX53QSB) it creates an armv7 tool chain (that is the right processor
architecture).
Can this create problems?

Thanks

Giovanni
--

Dott. Ing. Giovanni Foiani

Cell:+39-349-3577515
Phone:+39-0532-97-4106
mail:giovanni.foi...@unife.it
CenTec - Corso Guercino, 47 - 44042 Cento (FE)



On Tue, Jul 17, 2012 at 5:12 PM, Zhang, Jessica wrote:

>  Hi Giovanni,
>
> ** **
>
> Can you following the ADT manual and use the built 1.2.1 toolchain tar
> ball?  The meta-ide-support is supposed to be used under build tree instead
> of copied over to /opt/poky.
>
> ** **
>
> Cheers,
>
> Jessica
>
> ** **
>
> *From:* yocto-boun...@yoctoproject.org [mailto:
> yocto-boun...@yoctoproject.org] *On Behalf Of *Giovanni Foiani
> *Sent:* Tuesday, July 17, 2012 2:29 AM
> *To:* yocto@yoctoproject.org
> *Subject:* [yocto] Problem building Yocto Hello World demo on imx53QSB
>
> ** **
>
> Hi,
>
> ** **
>
> I need to deploy a C application that I have made on a Freescale iMX53
> QSB. 
>
> First I wanted to test the cross-compilation environment building the
> Hello World demo but I got some issues. 
>
> I made the following steps:
>
>- download yocto denzil
>- source oe-init-build-env
>- edit local.conf and bblayers.conf files
>- run 'bitbake meta-ide-support'
>- copied the resultant sdk in /opt/poky
>- installed Yocto Eclipse plugin
>- Configured the plugin as following
>
>
> - toolchain root location: /opt/poky/1.2.1
>   - sysroot
>   location: /opt/poky/1.2.1/sysroots/armv7a-vfp-neon-poky-linux-gnueabi
>   
>
>  When I build the project I get the following error:
>
> ** **
>
> *Invoking autogen.sh in build directory:
> /home/gfoiani/workspace/idea-c-application*
>
> ** **
>
> *Command-line environment variables:*
>
> ***CFLAGS=" -g -O0  -march=armv7-a -fno-tree-vectorize
> -mthumb-interwork -mfloat-abi=softfp -mfpu=neon -mtune=cortex-a8
> --sysroot=/opt/poky/1.2.1/sysroots/armv7a-vfp-neon-poky-linux-gnueabi"
> CXXFLAGS=" -g -O0  -march=armv7-a -fno-tree-vectorize -mthumb-interwork
> -mfloat-abi=softfp -mfpu=neon -mtune=cortex-a8
> --sysroot=/opt/poky/1.2.1/sysroots/armv7a-vfp-neon-poky-linux-gnueabi"
> LDFLAGS="
> --sysroot=/opt/poky/1.2.1/sysroots/armv7a-vfp-neon-poky-linux-gnueabi"
> CPPFLAGS=" -march=armv7-a -fno-tree-vectorize -mthumb-interwork
> -mfloat-abi=softfp -mfpu=neon -mtune=cortex-a8
> --sysroot=/opt/poky/1.2.1/sysroots/armv7a-vfp-neon-poky-linux-gnueabi"
> *
>
> ** **
>
> *sh /home/gfoiani/workspace/idea-c-application/autogen.sh
> --with-libtool-sysroot=/opt/poky/1.2.1/sysroots/armv7a-vfp-neon-poky-linux-gnueabi
> --target=arm-poky-linux-gnueabi --host=arm-poky-linux-gnueabi
> --build=i686-linux
> --with-libtool-sysroot=/opt/poky/1.2.1/sysroots/armv7a-vfp-neon-poky-linux-gnueabi
> *
>
> *configure.ac:24: error: AC_SUBST: `idea-c-application_CFLAGS' is not a
> valid shell variable name*
>
> *configure.ac:24: the top level*
>
> *autom4te: m4 failed with exit status: 1*
>
> *aclocal: autom4te failed with exit status: 1*
>
> *configure.ac:24: error: AC_SUBST: `idea-c-application_CFLAGS' is not a
> valid shell variable name*
>
> *configure.ac:24: the top level*
>
> *autom4te: m4 failed with exit status: 1*
>
> *configure.ac:24: error: AC_SUBST: `idea-c-application_CFLAGS' is not a
> valid shell variable name*
>
> *configure.ac:24: the top level*
>
> *autom4te: m4 failed with exit status: 1*
>
> *autoheader:
> '/opt/poky/1.2.1/sysroots/i686-pokysdk-linux/usr/bin/autom4te' failed with
> exit status: 1*
>
> *configure.ac:24: error: AC_SUBST: `idea-c-application_CFLAGS' is not a
> valid shell variable name*
>
> *configure.ac:24: the top level*
>
> *autom4te: m4 failed with exit status: 1*
>
> *automake: autoconf failed with exit status: 1*
>
> */home/gfoiani/workspace/idea-c-application/autogen.sh: line 9:
> ./configure: No such file or directory*
>
> ** **
>
> *Configuration failed with error*
>
> ** **
>
> What Am I doing wrong?
>
> ** **
>
> Thanks
>
> ** **
>
> Giovanni
>
> --
>
> Dott. Ing. Giovanni Foiani
>
> Cell:+39-349-3577515
> Phone:+39-0532-97-4106
> mail:giovanni.foi...@unife.it
>
> CenTec - Corso Guercino, 47 - 44042 Cento (FE)
>
> ** **
>
___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto


Re: [yocto] Problem building Yocto Hello World demo on imx53QSB

2012-07-23 Thread Giovanni Foiani
See notes below..

thanks

Giovanni
--

Dott. Ing. Giovanni Foiani

Cell:+39-349-3577515
Phone:+39-0532-97-4106
mail:giovanni.foi...@unife.it
CenTec - Corso Guercino, 47 - 44042 Cento (FE)



On Wed, Jul 18, 2012 at 7:11 PM, Zhang, Jessica wrote:

>  Please see my comments below…
>
> ** **
>
> ** **
>
> ** **
>
> *From:* Giovanni Foiani [mailto:fno...@unife.it]
> *Sent:* Wednesday, July 18, 2012 7:25 AM
> *To:* Zhang, Jessica
> *Cc:* yocto@yoctoproject.org
> *Subject:* Re: [yocto] Problem building Yocto Hello World demo on imx53QSB
> 
>
> ** **
>
> Hi Jessica,
>
> ** **
>
> downgrading from Ubuntu 11.04 (32 bit) to Ubuntu 10.04 (32 bit) and
> following the ADT manual procedure HelloWorld demo works.
>
> [JZ] This I’m assuming you strictly follow the ADT manual and use the
> Yocto project built out toolchain, right?  Why downgrade from Ubuntu 11.04
> to 10.04? I don’t think you need to do that unless 10.04 is what you want.
> 
>
> **
>

Yocto warned me that my distribution was not supported so compatibly with
this document <https://wiki.yoctoproject.org/wiki/Distribution_Support> I
decided to downgrade to Ubuntu 10.04

**
>
> ** **
>
> I noticed that ADT creates an armv5 tool chain instead building the
> toolchain using Freescale layer (because I need to deploy the application
> on a iMX53QSB) it creates an armv7 tool chain (that is the right processor
> architecture).
>
> Can this create problems?
>
> [JZ] In that case, you need to build out an armv7 toolchain.  The key is
> to add the Freescale layer and set target MACHINE appropriately.  And use
> that toolchain  for your cross development.  It should work.
>

Yes adding Freescale layer and pointing to the toolchain under the build
tree it works.
My configuration are:


   - Toolchain root location: /home/gfoiani/yocto/poky/build
   - Sysroot location: /home/gfoiani/yocto/poky/build/tmp/sysroots/imx53qsb



> 
>
> ** **
>
> Thanks
>
> ** **
>
> Giovanni
> 
>
> --
>
> Dott. Ing. Giovanni Foiani
>
> Cell:+39-349-3577515
> Phone:+39-0532-97-4106
> mail:giovanni.foi...@unife.it
>
> CenTec - Corso Guercino, 47 - 44042 Cento (FE)
>
>
>
> 
>
> On Tue, Jul 17, 2012 at 5:12 PM, Zhang, Jessica 
> wrote:
>
> Hi Giovanni,
>
>  
>
> Can you following the ADT manual and use the built 1.2.1 toolchain tar
> ball?  The meta-ide-support is supposed to be used under build tree instead
> of copied over to /opt/poky.
>
>  
>
> Cheers,
>
> Jessica
>
>  
>
> *From:* yocto-boun...@yoctoproject.org [mailto:
> yocto-boun...@yoctoproject.org] *On Behalf Of *Giovanni Foiani
> *Sent:* Tuesday, July 17, 2012 2:29 AM
> *To:* yocto@yoctoproject.org
> *Subject:* [yocto] Problem building Yocto Hello World demo on imx53QSB
>
>  
>
> Hi,
>
>  
>
> I need to deploy a C application that I have made on a Freescale iMX53
> QSB. 
>
> First I wanted to test the cross-compilation environment building the
> Hello World demo but I got some issues. 
>
> I made the following steps:
>
>- download yocto denzil
>- source oe-init-build-env
>- edit local.conf and bblayers.conf files
>- run 'bitbake meta-ide-support'
>- copied the resultant sdk in /opt/poky
>- installed Yocto Eclipse plugin
>- Configured the plugin as following
>
>
> - toolchain root location: /opt/poky/1.2.1
>   - sysroot
>   location: /opt/poky/1.2.1/sysroots/armv7a-vfp-neon-poky-linux-gnueabi
>   
>
>  When I build the project I get the following error:
>
>  
>
> *Invoking autogen.sh in build directory:
> /home/gfoiani/workspace/idea-c-application*
>
>  
>
> *Command-line environment variables:*
>
> *CFLAGS=" -g -O0  -march=armv7-a -fno-tree-vectorize
> -mthumb-interwork -mfloat-abi=softfp -mfpu=neon -mtune=cortex-a8
> --sysroot=/opt/poky/1.2.1/sysroots/armv7a-vfp-neon-poky-linux-gnueabi"
> CXXFLAGS=" -g -O0  -march=armv7-a -fno-tree-vectorize -mthumb-interwork
> -mfloat-abi=softfp -mfpu=neon -mtune=cortex-a8
> --sysroot=/opt/poky/1.2.1/sysroots/armv7a-vfp-neon-poky-linux-gnueabi"
> LDFLAGS="
> --sysroot=/opt/poky/1.2.1/sysroots/armv7a-vfp-neon-poky-linux-gnueabi"
> CPPFLAGS=" -march=armv7-a -fno-tree-vectorize -mthumb-interwork
> -mfloat-abi=softfp -mfpu=neon -mtune=cortex-a8
> --sysroot=/opt/poky/1.2.1/sysroots/armv7a-vfp-neon-poky-linux-gnueabi"
> *
>
>  
>

[yocto] Yocto and Google Protocol Buffers

2012-07-25 Thread Giovanni Foiani
Hi,

does anyone have configured a recipe for make Google Protocol
Buffers working?
This is my recipe:

*SUMMARY = "Protocol Buffers - Google's data interchange format"*
*DESCRIPTION = "Protocol Buffers are a way of encoding structured data in
an efficient yet extensible format"*
*SECTION = "libs"*
*
*
*LICENSE = "LGPLv2.1"*
*#LIC_FILES_CHKSUM =
"file://../protobuf-2.4.1/COPYING.txt;md5=af6809583bfde9a31595a58bb4a24514"*
*LIC_FILES_CHKSUM =
"file://${COMMON_LICENSE_DIR}/LGPL-2.1;md5=1a6d268fd218675ffea8be556788b780"
*
*
*
*PR = "r0"*
*
*
*SRC_URI = "http://protobuf.googlecode.com/files/protobuf-2.4.1.tar.gz"*
*
*
*SRC_URI[md5sum] = "dc84e9912ea768baa1976cb7bbcea7b5"*
*SRC_URI[sha256sum] =
"eac6969b617f397247e805267da2b0db3ff9e5a9163b123503a192fbb5776567"*
*
*
*inherit autotools*
*
*
*do_configure() {*
* ./configure --host=arm*
*}*
*
*
bin/bash:
/home/gfoiani/yocto/fsl-community-bsp/build/tmp/work/armv7a-vfp-neon-poky-linux-gnueabi/protobuf-2.4.1-r0/protobuf-2.4.1/src/protoc:
cannot execute binary file
make[2]: *** [unittest_proto_middleman] Error 126

I also tried with *-with-protoc=protoc *option in configure command but
without success..
Does anyone can help me to write a correct recipe for Protobuf library (and
also for protobuf-c)?

Thanks

Giovanni
--

Dott. Ing. Giovanni Foiani

Cell:+39-349-3577515
Phone:+39-0532-97-4106
mail:giovanni.foi...@unife.it
CenTec - Corso Guercino, 47 - 44042 Cento (FE)
___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto


[yocto] Yocto .sdcard file missing after build

2012-07-25 Thread Giovanni Foiani
Hi,

I built some images using the latest Yocto release (with Hob) on a Ubuntu
10.04 32 bit, but when the process finishes (with success) I can't find
.sdcard files into "*tmp/deploy/images*" folder.
Some time ago I built some other images using a Ubuntu 11.04 32 bit and
.sdcard files were created properly.
Could it be a problem of max file size in Ubuntu 10.04?
Another question...sdcard files that I built using Ubuntu 11.04 (32 bit)
were about 3 GByte, is there a way or configuration to reduce this size?

Thanks

Giovanni
--

Dott. Ing. Giovanni Foiani

Cell:+39-349-3577515
Phone:+39-0532-97-4106
mail:giovanni.foi...@unife.it
CenTec - Corso Guercino, 47 - 44042 Cento (FE)
___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto


Re: [yocto] Yocto .sdcard file missing after build

2012-07-25 Thread Giovanni Foiani
Please look at my notes below..

Thanks

Giovanni
--

Dott. Ing. Giovanni Foiani

Cell:+39-349-3577515
Phone:+39-0532-97-4106
mail:giovanni.foi...@unife.it
CenTec - Corso Guercino, 47 - 44042 Cento (FE)



On Wed, Jul 25, 2012 at 10:56 AM, Andrei Gherzan  wrote:

> On Wed, Jul 25, 2012 at 11:43 AM, Giovanni Foiani  wrote:
>
>> Hi,
>>
>> I built some images using the latest Yocto release (with Hob) on a Ubuntu
>> 10.04 32 bit, but when the process finishes (with success) I can't find
>> .sdcard files into "*tmp/deploy/images*" folder.
>>
>
> Not all images create .sdcard files. What image are you talking about? sd
> images are used for machines like imx / rpi where rootfs and/or kernel
> and/or boot-loader are used from sd. In qemu ext3 images are used for
> rootfs and kernel loaded separately.
>
>

I'm building images for iMX53QSB so my situation is where rootfs and/or
kernel and/or boot-loader are used from sd card.
I'm trying to build a qt4-demo-image, do I have to put any configuration
into qt4-demo-image.bb to enable .sdcard creation?


> Some time ago I built some other images using a Ubuntu 11.04 32 bit and
>> .sdcard files were created properly.
>> Could it be a problem of max file size in Ubuntu 10.04?
>> Another question...sdcard files that I built using Ubuntu 11.04 (32 bit)
>> were about 3 GByte, is there a way or configuration to reduce this size?
>>
>> Yes. Use a compression extension. For example sdcard.xz.
>

Is this also a  qt4-demo-image.bb configuration to set?

Thanks

>
> ag
>
___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto


Re: [yocto] Yocto and Google Protocol Buffers

2012-07-25 Thread Giovanni Foiani
Thanks Burton,

I forgot to say that I'm building for an iMX53QSB.
I edited my recipe in this way:

*SUMMARY = "Protocol Buffers - Google's data interchange format"*
*DESCRIPTION = "Protocol Buffers are a way of encoding structured data in
an efficient yet extensible format"*
*SECTION = "libs"*
*
*
*DEPENDS = "protobuf-native"*
*DEPENDS_virtclass-native = ""*
*BBCLASSEXTEND = "native"*
*
*
*LICENSE = "LGPLv2.1"*
*#LIC_FILES_CHKSUM =
"file://../protobuf-2.4.1/COPYING.txt;md5=af6809583bfde9a31595a58bb4a24514"*
*LIC_FILES_CHKSUM =
"file://${COMMON_LICENSE_DIR}/LGPL-2.1;md5=1a6d268fd218675ffea8be556788b780"
*
*
*
*PR = "r0"*
*
*
*SRC_URI = "http://protobuf.googlecode.com/files/protobuf-2.4.1.tar.gz"*
*
*
*SRC_URI[md5sum] = "dc84e9912ea768baa1976cb7bbcea7b5"*
*SRC_URI[sha256sum] =
"eac6969b617f397247e805267da2b0db3ff9e5a9163b123503a192fbb5776567"*
*
*
*inherit autotools*
*
*
The native library builds properly but it populates the wrong sysroot..I
can find protoc executable into tmp/sysroots/i686-linux but not into
imx53qsb sysroot, hence rebuilding the protobuf library it can't find the
executable..

Which configuration do I have to use to populate the  imx53qsb sysroot?

Thanks

Giovanni

--

Dott. Ing. Giovanni Foiani

Cell:+39-349-3577515
Phone:+39-0532-97-4106
mail:giovanni.foi...@unife.it
CenTec - Corso Guercino, 47 - 44042 Cento (FE)



On Wed, Jul 25, 2012 at 10:41 AM, Burton, Ross wrote:

> On 25 July 2012 09:35, Giovanni Foiani  wrote:
> > does anyone have configured a recipe for make Google Protocol Buffers
> > working?
>
> > do_configure() {
> > ./configure --host=arm
> > }
>
> Don't do that, because what if you want to build gpc for another
> architecture?
>
> > bin/bash:
> >
> /home/gfoiani/yocto/fsl-community-bsp/build/tmp/work/armv7a-vfp-neon-poky-linux-gnueabi/protobuf-2.4.1-r0/protobuf-2.4.1/src/protoc:
> > cannot execute binary file
> > make[2]: *** [unittest_proto_middleman] Error 126
>
> That's because you're (presumably) running on x86 hardware, but are
> trying to execute an ARM binary.  You'll need to build a
> protobuf-native first that installs protoc into the sysroot first.
> Numerous packages have this requirement, such as gtk+.
>
> Ross
>
___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto


Re: [yocto] Yocto and Google Protocol Buffers

2012-07-25 Thread Giovanni Foiani
Thanks Ross,

Protocol Buffer README file says:

*** Note for cross-compiling ***
*
*
*  The makefiles normally invoke the protoc executable that they just*
*  built in order to build tests.  When cross-compiling, the protoc*
*  executable may not be executable on the host machine.  In this case,*
*  you must build a copy of protoc for the host machine first, then use*
*  the --with-protoc option to tell configure to use it instead.  For*
*  example:*
*
*
*./configure --with-protoc=protoc*
*
*
*  This will use the installed protoc (found in your $PATH) instead of*
*  trying to execute the one built during the build process.  You can*
*  also use an executable that hasn't been installed.  For example, if*
*  you built the protobuf package for your host machine in ../host,*
*  you might do:*
*
*
*./configure --with-protoc=../host/src/protoc*
*
*
I think I have to use this last option and point to the executable into the
i696-linux sysroot..
Can I do this overriding do_configure task? Like this:

*do_configure() {*
*./configure --with-protoc=/path/to/sysroot/i686-linux/usr/bin/protoc*
*}*
*
*
I tried this way but I got a "permission denied" error..

*/bin/bash: line 8: ../-libtool: Permission denied*
*| make[3]: *** [install-libLTLIBRARIES] Error 126*

How can I solve this error?

Thanks

Giovanni
--

Dott. Ing. Giovanni Foiani

Cell:+39-349-3577515
Phone:+39-0532-97-4106
mail:giovanni.foi...@unife.it
CenTec - Corso Guercino, 47 - 44042 Cento (FE)



On Wed, Jul 25, 2012 at 11:49 AM, Burton, Ross wrote:

> On 25 July 2012 10:47, Giovanni Foiani  wrote:
> > The native library builds properly but it populates the wrong sysroot..I
> can
> > find protoc executable into tmp/sysroots/i686-linux but not into imx53qsb
> > sysroot, hence rebuilding the protobuf library it can't find the
> > executable..
>
> That's what you want -- you want a protoc in the native sysroot.  I
> guess you need to patch the makefile to use the sysroot protoc instead
> of the one it just built.
>
> Ross
> ___
> yocto mailing list
> yocto@yoctoproject.org
> https://lists.yoctoproject.org/listinfo/yocto
>
___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto


Re: [yocto] Yocto .sdcard file missing after build

2012-07-25 Thread Giovanni Foiani
I found in *meta-fsl-arm/conf/machine/include/imx-base.inc *the following
configuration:

*IMAGE_FSTYPES ?= "tar.bz2 ext3 sdcard"*

Hence, according to this configuration, .sdcard file should be created
but pparently
it is overwritten somewhere else...

I also found the configuration to reduce sdcard file size which is into *
meta-fsl-arm/classes/image_types_fsl.bbclass.*

I reduced SDCARD_SIZE from 3.4GB to 1GB
# Default to 1.0GiB images
*SDCARD_SIZE ?= "1000"*
*
*
I'm using Yocto packed for Freescale provided by
fsl-community-bsp-platform<https://github.com/Freescale/fsl-community-bsp-platform>
and I'm
building the image using Hob but I can't find sdcard as output format in
the graphic interface

Where is the right point to place* *IMAGE_FSTYPES configuration?

Thanks

Giovanni
--

Dott. Ing. Giovanni Foiani

Cell:+39-349-3577515
Phone:+39-0532-97-4106
mail:giovanni.foi...@unife.it
CenTec - Corso Guercino, 47 - 44042 Cento (FE)



On Wed, Jul 25, 2012 at 11:07 AM, Giovanni Foiani  wrote:

> Please look at my notes below..
>
> Thanks
>
> Giovanni
> --
>
> Dott. Ing. Giovanni Foiani
>
> Cell:+39-349-3577515
> Phone:+39-0532-97-4106
> mail:giovanni.foi...@unife.it
> CenTec - Corso Guercino, 47 - 44042 Cento (FE)
>
>
>
> On Wed, Jul 25, 2012 at 10:56 AM, Andrei Gherzan wrote:
>
>> On Wed, Jul 25, 2012 at 11:43 AM, Giovanni Foiani wrote:
>>
>>> Hi,
>>>
>>> I built some images using the latest Yocto release (with Hob) on a
>>> Ubuntu 10.04 32 bit, but when the process finishes (with success) I can't
>>> find .sdcard files into "*tmp/deploy/images*" folder.
>>>
>>
>> Not all images create .sdcard files. What image are you talking about? sd
>> images are used for machines like imx / rpi where rootfs and/or kernel
>> and/or boot-loader are used from sd. In qemu ext3 images are used for
>> rootfs and kernel loaded separately.
>>
>>
>
> I'm building images for iMX53QSB so my situation is where rootfs and/or
> kernel and/or boot-loader are used from sd card.
> I'm trying to build a qt4-demo-image, do I have to put any configuration
> into qt4-demo-image.bb to enable .sdcard creation?
>
>
>> Some time ago I built some other images using a Ubuntu 11.04 32 bit and
>>> .sdcard files were created properly.
>>> Could it be a problem of max file size in Ubuntu 10.04?
>>> Another question...sdcard files that I built using Ubuntu 11.04 (32 bit)
>>> were about 3 GByte, is there a way or configuration to reduce this size?
>>>
>>> Yes. Use a compression extension. For example sdcard.xz.
>>
>
> Is this also a  qt4-demo-image.bb configuration to set?
>
> Thanks
>
>>
>> ag
>>
>
>
___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto


Re: [yocto] Yocto and Qt embedded

2012-07-25 Thread Giovanni Foiani
I also tried to point to a qmake file under the Yocto build tree but it is
not correct..

Is there a way to compile the Qt application out of Qt creator?
For example sourcing the arm environment and running make into the
application folder?

Thanks

Giovanni
--

Dott. Ing. Giovanni Foiani

Cell:+39-349-3577515
Phone:+39-0532-97-4106
mail:giovanni.foi...@unife.it
CenTec - Corso Guercino, 47 - 44042 Cento (FE)



On Mon, Jul 16, 2012 at 1:56 PM, Giovanni Foiani  wrote:

> Thanks Khem,
> I successfully found g++ compiler path which is:
>
>
> /opt/poky/1.2.1/sysroots/i686-pokysdk-linux/usr/bin/armv7a-vfp-neon-poky-linux-gnueabi/arm-poky-linux-gnueabi-g++
>
> now I was able to configure the poky tool chain into Qt creator (using
> default mkspec which is linux-g++); after that I tried to configure Qt
> Version (4.7.4) in Qt creator using the following qmake file:
>
> /opt/poky/1.2.1/sysroots/i686-pokysdk-linux/usr/bin/qmake
>
> Now Qt creator gives me a warning:
>
> *"ABI detection failed: Make sure to use a matching tool chain when
> building"*
> *
> *
> ABI is automatically set to arm-linux-generic-elf and this warning
> prevents me to select arm tool chain for building my application.
> Am I using the wrong mkspec? (The other ones seems unsuitable for me..)
>
> Thanks
>
> Giovanni
> --
>
> Dott. Ing. Giovanni Foiani
>
> Cell:+39-349-3577515
> Phone:+39-0532-97-4106
> mail:giovanni.foi...@unife.it
> CenTec - Corso Guercino, 47 - 44042 Cento (FE)
>
>
>
> On Sat, Jul 14, 2012 at 8:17 PM, Khem Raj  wrote:
>
>> On Sat, Jul 14, 2012 at 3:15 AM, Giovanni Foiani  wrote:
>> > So I tried to find g++ compiler using "find" command, into:
>> >
>> > /opt/poky/1.2.1/sysroots/i686-pokysdk-linux/
>> >
>> > with no success.
>>
>> find "*g++"
>>
>
>
___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto


Re: [yocto] Yocto .sdcard file missing after build

2012-07-25 Thread Giovanni Foiani
Yocto packed for Freescale provided by
fsl-community-bsp-platform<https://github.com/Freescale/fsl-community-bsp-platform>
uses
an own setup-environment script, I put

IMAGE_FSTYPES = "tar.bz2 ext3 sdcard"
*
*
as the last configuration in this file and now it works and hob can
generate sdcard files.

Giovanni
--

Dott. Ing. Giovanni Foiani

Cell:+39-349-3577515
Phone:+39-0532-97-4106
mail:giovanni.foi...@unife.it
CenTec - Corso Guercino, 47 - 44042 Cento (FE)



On Wed, Jul 25, 2012 at 2:51 PM, Giovanni Foiani  wrote:

> I found in *meta-fsl-arm/conf/machine/include/imx-base.inc *the following
> configuration:
>
> *IMAGE_FSTYPES ?= "tar.bz2 ext3 sdcard"*
>
> Hence, according to this configuration, .sdcard file should be created but 
> pparently
> it is overwritten somewhere else...
>
> I also found the configuration to reduce sdcard file size which is into *
> meta-fsl-arm/classes/image_types_fsl.bbclass.*
>
> I reduced SDCARD_SIZE from 3.4GB to 1GB
> # Default to 1.0GiB images
> *SDCARD_SIZE ?= "1000"*
> *
> *
> I'm using Yocto packed for Freescale provided by
> fsl-community-bsp-platform<https://github.com/Freescale/fsl-community-bsp-platform>
>  and I'm
> building the image using Hob but I can't find sdcard as output format in
> the graphic interface....
>
> Where is the right point to place* *IMAGE_FSTYPES configuration?
>
> Thanks
>
> Giovanni
> --
>
> Dott. Ing. Giovanni Foiani
>
> Cell:+39-349-3577515
> Phone:    +39-0532-97-4106
> mail:giovanni.foi...@unife.it
> CenTec - Corso Guercino, 47 - 44042 Cento (FE)
>
>
>
> On Wed, Jul 25, 2012 at 11:07 AM, Giovanni Foiani  wrote:
>
>> Please look at my notes below..
>>
>> Thanks
>>
>> Giovanni
>> --
>>
>> Dott. Ing. Giovanni Foiani
>>
>> Cell:+39-349-3577515
>> Phone:+39-0532-97-4106
>> mail:giovanni.foi...@unife.it
>> CenTec - Corso Guercino, 47 - 44042 Cento (FE)
>>
>>
>>
>> On Wed, Jul 25, 2012 at 10:56 AM, Andrei Gherzan wrote:
>>
>>> On Wed, Jul 25, 2012 at 11:43 AM, Giovanni Foiani wrote:
>>>
>>>> Hi,
>>>>
>>>> I built some images using the latest Yocto release (with Hob) on a
>>>> Ubuntu 10.04 32 bit, but when the process finishes (with success) I can't
>>>> find .sdcard files into "*tmp/deploy/images*" folder.
>>>>
>>>
>>> Not all images create .sdcard files. What image are you talking about?
>>> sd images are used for machines like imx / rpi where rootfs and/or kernel
>>> and/or boot-loader are used from sd. In qemu ext3 images are used for
>>> rootfs and kernel loaded separately.
>>>
>>>
>>
>> I'm building images for iMX53QSB so my situation is where rootfs and/or
>> kernel and/or boot-loader are used from sd card.
>> I'm trying to build a qt4-demo-image, do I have to put any configuration
>> into qt4-demo-image.bb to enable .sdcard creation?
>>
>>
>>> Some time ago I built some other images using a Ubuntu 11.04 32 bit and
>>>> .sdcard files were created properly.
>>>> Could it be a problem of max file size in Ubuntu 10.04?
>>>> Another question...sdcard files that I built using Ubuntu 11.04 (32
>>>> bit) were about 3 GByte, is there a way or configuration to reduce this
>>>> size?
>>>>
>>>> Yes. Use a compression extension. For example sdcard.xz.
>>>
>>
>> Is this also a  qt4-demo-image.bb configuration to set?
>>
>> Thanks
>>
>>>
>>> ag
>>>
>>
>>
>
___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto


Re: [yocto] Yocto and Google Protocol Buffers

2012-07-25 Thread Giovanni Foiani
Using EXTRA_OECONF = "--with-protoc=protoc" it builds properly..

My final .bb file is:

*SUMMARY = "Protocol Buffers - Google's data interchange format"*
*DESCRIPTION = "Protocol Buffers are a way of encoding structured data in
an efficient yet extensible format"*
*SECTION = "libs"*
*
*
*DEPENDS = "protobuf-native"*
*DEPENDS_virtclass-native = ""*
*BBCLASSEXTEND = "native"*
*
*
*LICENSE = "LGPLv2.1"*
*#LIC_FILES_CHKSUM =
"file://../protobuf-2.4.1/COPYING.txt;md5=af6809583bfde9a31595a58bb4a24514"*
*LIC_FILES_CHKSUM =
"file://${COMMON_LICENSE_DIR}/LGPL-2.1;md5=1a6d268fd218675ffea8be556788b780"
*
*
*
*PR = "r0"*
*
*
*SRC_URI = "http://protobuf.googlecode.com/files/protobuf-2.4.1.tar.gz"*
*
*
*SRC_URI[md5sum] = "dc84e9912ea768baa1976cb7bbcea7b5"*
*SRC_URI[sha256sum] =
"eac6969b617f397247e805267da2b0db3ff9e5a9163b123503a192fbb5776567"*
*
*
*EXTRA_OECONF = "--with-protoc=protoc"*
*
*
*inherit autotools*
*
*
*
*
*
*
I also built the C binding of Google Protocol Buffer and this is the
recipe.. (I disabled protoc_c creation)

*SUMMARY = "C bindings for Google's Protocol Buffers"*
*DESCRIPTION = "This package provides a code generator and runtime
libraries to use Protocol Buffers from pure C (not C++)."*
*SECTION = "libs"*
*
*
*DEPENDS = "protobuf-c-native"*
*DEPENDS_virtclass-native = ""*
*BBCLASSEXTEND = "native"*
*
*
*DEPENDS += "protobuf"*
*
*
*LICENSE = "LGPLv2.1"*
*LIC_FILES_CHKSUM =
"file://${COMMON_LICENSE_DIR}/LGPL-2.1;md5=1a6d268fd218675ffea8be556788b780"
*
*
*
*PR = "r0"*
*
*
*SRC_URI = "http://protobuf-c.googlecode.com/files/protobuf-c-0.15.tar.gz"*
*
*
*SRC_URI[md5sum] = "73ff0c8df50d2eee75269ad8f8c07dc8"*
*SRC_URI[sha256sum] =
"8fcb538e13a5431c46168fc8f2e6ad2574e2db9b684c0c72b066e24f010a0036"*
*
*
*EXTRA_OECONF = "--disable-protoc"*
*
*
*inherit autotools*
*
*
Giovanni
--

Dott. Ing. Giovanni Foiani

Cell:+39-349-3577515
Phone:+39-0532-97-4106
mail:giovanni.foi...@unife.it
CenTec - Corso Guercino, 47 - 44042 Cento (FE)



On Wed, Jul 25, 2012 at 12:08 PM, Burton, Ross wrote:

> On 25 July 2012 11:04, Giovanni Foiani  wrote:
> > Can I do this overriding do_configure task? Like this:
> >
> > do_configure() {
> > ./configure --with-protoc=/path/to/sysroot/i686-linux/usr/bin/protoc
> > }
> >
> > I tried this way but I got a "permission denied" error..
> >
> > /bin/bash: line 8: ../-libtool: Permission denied
> > | make[3]: *** [install-libLTLIBRARIES] Error 126
>
> By explicitly calling configure you've thrown away all the special
> options that are required to cross-compile.  Delete  your
> do_configure() block and just set EXTRA_OECONF = "
> --with-protoc=protoc" (as the sysroot is in your PATH, and you can't
> predict where sysroot is).
>
> Ross
>
___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto


Re: [yocto] Yocto and Qt embedded

2012-07-26 Thread Giovanni Foiani
I solved adding in my setup-environment script all enviroment variable
related to Qt (I used paths generated by meta-toolchain-qte).

Then sourcing this environment and running into my project directory:

   - qmake2
   - make

I can successfully build Qt applications..

I still can't configure the environment to run using qt creator...

Giovanni
--

Dott. Ing. Giovanni Foiani

Cell:+39-349-3577515
Phone:+39-0532-97-4106
mail:giovanni.foi...@unife.it
CenTec - Corso Guercino, 47 - 44042 Cento (FE)



On Wed, Jul 25, 2012 at 4:46 PM, Giovanni Foiani  wrote:

> I also tried to point to a qmake file under the Yocto build tree but it is
> not correct..
>
> Is there a way to compile the Qt application out of Qt creator?
> For example sourcing the arm environment and running make into the
> application folder?
>
> Thanks
>
> Giovanni
> --
>
> Dott. Ing. Giovanni Foiani
>
> Cell:+39-349-3577515
> Phone:+39-0532-97-4106
> mail:giovanni.foi...@unife.it
> CenTec - Corso Guercino, 47 - 44042 Cento (FE)
>
>
>
> On Mon, Jul 16, 2012 at 1:56 PM, Giovanni Foiani  wrote:
>
>> Thanks Khem,
>> I successfully found g++ compiler path which is:
>>
>>
>> /opt/poky/1.2.1/sysroots/i686-pokysdk-linux/usr/bin/armv7a-vfp-neon-poky-linux-gnueabi/arm-poky-linux-gnueabi-g++
>>
>> now I was able to configure the poky tool chain into Qt creator (using
>> default mkspec which is linux-g++); after that I tried to configure Qt
>> Version (4.7.4) in Qt creator using the following qmake file:
>>
>> /opt/poky/1.2.1/sysroots/i686-pokysdk-linux/usr/bin/qmake
>>
>> Now Qt creator gives me a warning:
>>
>> *"ABI detection failed: Make sure to use a matching tool chain when
>> building"*
>> *
>> *
>> ABI is automatically set to arm-linux-generic-elf and this warning
>> prevents me to select arm tool chain for building my application.
>> Am I using the wrong mkspec? (The other ones seems unsuitable for me..)
>>
>> Thanks
>>
>> Giovanni
>> --
>>
>> Dott. Ing. Giovanni Foiani
>>
>> Cell:+39-349-3577515
>> Phone:+39-0532-97-4106
>> mail:giovanni.foi...@unife.it
>> CenTec - Corso Guercino, 47 - 44042 Cento (FE)
>>
>>
>>
>> On Sat, Jul 14, 2012 at 8:17 PM, Khem Raj  wrote:
>>
>>> On Sat, Jul 14, 2012 at 3:15 AM, Giovanni Foiani 
>>> wrote:
>>> > So I tried to find g++ compiler using "find" command, into:
>>> >
>>> > /opt/poky/1.2.1/sysroots/i686-pokysdk-linux/
>>> >
>>> > with no success.
>>>
>>> find "*g++"
>>>
>>
>>
>
___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto


[yocto] Usb-serial device support

2012-07-27 Thread Giovanni Foiani
Hi,

I built a distribution for iMX53 QSB with kernel 2.6.35-3 and I need
support for USB-serial devices.
When I plug the usb-serial converter I get this error..

*usb wakeup is here

*
*otg host Remote wakeup

 *
*usb 1-1: new full speed USB device using fsl-ehci and address 3

  *
*usb 1-1: device v067b p2303 is not supported *

I tried to recompile linux-imx kernel adding support for USB-serial
devices, I run:

   - bibake linux-imx -c menuconfig
   - added support for usb-serial devices in menuconfig
   - bitbake -f -c compile linux-imx
   - bitbake linux-imx

..but it didn't work..

Any suggestions?

Thanks

Giovanni
--

Dott. Ing. Giovanni Foiani

Cell:+39-349-3577515
Phone:+39-0532-97-4106
mail:giovanni.foi...@unife.it
CenTec - Corso Guercino, 47 - 44042 Cento (FE)
___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto


[yocto] Usb-serial device support

2012-07-27 Thread Giovanni Foiani
Hi,

I built a distribution for iMX53 QSB with kernel 2.6.35-3 and I need
support for USB-serial devices.
When I plug the usb-serial converter I get this error..

*usb wakeup is here

*
*otg host Remote wakeup

 *
*usb 1-1: new full speed USB device using fsl-ehci and address 3

  *
*usb 1-1: device v067b p2303 is not supported *

I tried to recompile linux-imx kernel adding support for USB-serial
devices, I run:

   - bibake linux-imx -c menuconfig
   - added support for usb-serial devices in menuconfig
   - bitbake -f -c compile linux-imx
   - bitbake linux-imx

..but it didn't work..

Any suggestions?

Thanks

Giovanni
--

Dott. Ing. Giovanni Foiani

Cell:+39-349-3577515
Phone:+39-0532-97-4106
mail:giovanni.foi...@unife.it
CenTec - Corso Guercino, 47 - 44042 Cento (FE)
___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto


[yocto] Usb-serial device support

2012-07-30 Thread Giovanni Foiani
Hi,

I built a distribution for iMX53 QSB with kernel 2.6.35-3 and I need
support for USB-serial devices.
When I plug the usb-serial converter I get this error..

*usb wakeup is here

*
*otg host Remote wakeup

 *
*usb 1-1: new full speed USB device using fsl-ehci and address 3

  *
*usb 1-1: device v067b p2303 is not supported *

I tried to recompile linux-imx kernel adding support for USB-serial
devices, I run:

   - bibake linux-imx -c menuconfig
   - added support for usb-serial devices in menuconfig
   - bitbake -f -c compile linux-imx
   - bitbake linux-imx

..but it didn't work..

Any suggestions?

Thanks

Giovanni
--

Dott. Ing. Giovanni Foiani

Cell:+39-349-3577515
Phone:+39-0532-97-4106
mail:giovanni.foi...@unife.it
CenTec - Corso Guercino, 47 - 44042 Cento (FE)
___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto


[yocto] Delete unused hob images

2012-07-30 Thread Giovanni Foiani
Hi,

I read this section in Poky Reference manual:

*A.2.13. build/tmp/deploy/images/*
*
*
*This directory receives complete filesystem images. If you want to flash
the resulting image from a build onto a device, look here for the image.*
*
*
*Note, you should not remove any files from this directory by hand in an
attempt to rebuild an image. If you want to clean out the cache, re-run the
build using the following BitBake command: *
* $ bitbake -c cleanall *

I built many images using hob and in my *build/tmp/deploy/images/ *folder
there are a lot of rootfs images (like
hob-image-imx53qsb-.rootfs.ext3 etc..) and I want to remove the
unused ones to free some space..

I tried tp run:

*bitbake -c cleanall * hob-image-imx53qsb-

but I got:
ERROR: Nothing PROVIDES 'hob-image-imx53qsb-'

Can I safely remove these files by hand?

thanks

Giovanni
--

Dott. Ing. Giovanni Foiani

Cell:+39-349-3577515
Phone:+39-0532-97-4106
mail:giovanni.foi...@unife.it
CenTec - Corso Guercino, 47 - 44042 Cento (FE)
___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto


Re: [yocto] Delete unused hob images

2012-07-30 Thread Giovanni Foiani
Ok, thanks

Giovanni
--

Dott. Ing. Giovanni Foiani

Cell:+39-349-3577515
Phone:+39-0532-97-4106
mail:giovanni.foi...@unife.it
CenTec - Corso Guercino, 47 - 44042 Cento (FE)



On Mon, Jul 30, 2012 at 4:42 PM, Paul Eggleton <
paul.eggle...@linux.intel.com> wrote:

> On Monday 30 July 2012 15:18:37 Giovanni Foiani wrote:
> > I read this section in Poky Reference manual:
> >
> > *A.2.13. build/tmp/deploy/images/*
> > *
> > *
> > *This directory receives complete filesystem images. If you want to flash
> > the resulting image from a build onto a device, look here for the image.*
> > *
> > *
> > *Note, you should not remove any files from this directory by hand in an
> > attempt to rebuild an image. If you want to clean out the cache, re-run
> the
> > build using the following BitBake command: *
> > * $ bitbake -c cleanall *
> >
> > I built many images using hob and in my *build/tmp/deploy/images/ *folder
> > there are a lot of rootfs images (like
> > hob-image-imx53qsb-.rootfs.ext3 etc..) and I want to remove
> the
> > unused ones to free some space..
> >
> > I tried tp run:
> >
> > *bitbake -c cleanall * hob-image-imx53qsb-
> >
> > but I got:
> > ERROR: Nothing PROVIDES 'hob-image-imx53qsb-'
>
> I'm not sure where this came from originally, but it is not correct. I'll
> talk
> to Scott R about fixing this part of the manual.
>
> > Can I safely remove these files by hand?
>
> The hob-image-*, yes. In fact any actual image files in deploy/images are
> OK to
> delete (excluding *zImage*, *uImage*, etc. - those are kernels). All the
> warnings are trying to prevent is people deleting the entire contents of
> deploy/images and then wondering why the kernel, bootloader etc. that get
> produced as part of the process of building an image but are not part of
> the
> image itself aren't re-created when they build the image again afterwards.
>
> Cheers,
> Paul
>
> --
>
> Paul Eggleton
> Intel Open Source Technology Centre
>
___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto


Re: [yocto] Usb-serial device support

2012-08-07 Thread Giovanni Foiani
For me this procedure works:


   - bitbake linux-imx -c cleansstate
   - bitbake linux-imx -c patch
   - bitbake linux-imx -c menuconfig (add usb-serial converter support)
   - bitbake linux-imx


Giovanni
--

Dott. Ing. Giovanni Foiani

Cell:+39-349-3577515
Phone:+39-0532-97-4106
mail:giovanni.foi...@unife.it
CenTec - Corso Guercino, 47 - 44042 Cento (FE)



On Mon, Jul 30, 2012 at 8:47 PM, Leon Woestenberg <
sidebranch.openembed...@gmail.com> wrote:

> Giovanni,
>
>
> On Mon, Jul 30, 2012 at 10:48 AM, Giovanni Foiani  wrote:
>
>> I built a distribution for iMX53 QSB with kernel 2.6.35-3 and I need
>> support for USB-serial devices.
>> When I plug the usb-serial converter I get this error..
>>
>> *usb wakeup is here
>>
>> *
>> *otg host Remote wakeup
>>
>>  *
>> *usb 1-1: new full speed USB device using fsl-ehci and address 3
>>
>> *
>> *usb 1-1: device v067b p2303 is not supported *
>>
>> I tried to recompile linux-imx kernel adding support for USB-serial
>> devices, I run:
>>
>>- bibake linux-imx -c menuconfig
>>- added support for usb-serial devices in menuconfig
>>- bitbake -f -c compile linux-imx
>>- bitbake linux-imx
>>
>> ..but it didn't work..
>>
>> Any suggestions?
>>
>> Did you see the install and deploy steps being performed? There are some
> versions of OE/Yocto where those steps are not depended upon, even if you
> ran -c compile -f.
>
> For example, on Denzil, I have to run the compile, install and deploy
> steps forcefully.
>
> Regards,
>
> Leon.
>
>> Giovanni
>>  --
>>
>> Dott. Ing. Giovanni Foiani
>>
>> Cell:+39-349-3577515
>> Phone:+39-0532-97-4106
>> mail:giovanni.foi...@unife.it
>> CenTec - Corso Guercino, 47 - 44042 Cento (FE)
>>
>>
>> ___
>> yocto mailing list
>> yocto@yoctoproject.org
>> https://lists.yoctoproject.org/listinfo/yocto
>>
>>
>
___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto


[yocto] Custom splash screen using psplash

2012-08-08 Thread Giovanni Foiani
Hi,

I need to setup a custom splash screen replacing the Yocto logo with a
custom image.
I generated my logo using make-image script into psplash screen and
replaced the previous one in meta/recipes-core/psplash/files folder.
Then I run


   - bitbake psplash -c cleansstate
   - bitbake psplash

and then generate a new image, but during boot I still see the Yocto logo.
Which is the right procedure?
Does the my custom logo (a png image) have some requirements (i.e. size,
colors, etc..)?

Thanks

Giovanni
--

Dott. Ing. Giovanni Foiani

Cell:+39-349-3577515
Phone:+39-0532-97-4106
mail:giovanni.foi...@unife.it
CenTec - Corso Guercino, 47 - 44042 Cento (FE)
___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto


Re: [yocto] Custom splash screen using psplash

2012-08-09 Thread Giovanni Foiani
Hi Scott,

I copied the psplash directory (and replaced the logo with mine) into my
own layer but when I run:

   - bitbake psplash -c cleansstate
   - bitbake psplash

it still builds the sources located into meta-yocto directory and not
sources that are into my own layer directory.
How can I build a package pointing to a specific folder path ?

Thanks

Giovanni
--

Dott. Ing. Giovanni Foiani

Cell:+39-349-3577515
Phone:+39-0532-97-4106
mail:giovanni.foi...@unife.it
CenTec - Corso Guercino, 47 - 44042 Cento (FE)



On Wed, Aug 8, 2012 at 7:11 PM, Scott Garman wrote:

> On 08/08/2012 10:10 AM, Scott Garman wrote:
>
>> On 08/08/2012 08:13 AM, Giovanni Foiani wrote:
>>
>>> Hi,
>>>
>>> I need to setup a custom splash screen replacing the Yocto logo with a
>>> custom image.
>>> I generated my logo using make-image script into psplash screen and
>>> replaced the previous one in meta/recipes-core/psplash/**files folder.
>>> Then I run
>>>
>>>   * bitbake psplash -c cleansstate
>>>   * bitbake psplash
>>>
>>> and then generate a new image, but during boot I still see the Yocto
>>> logo.
>>> Which is the right procedure?
>>> Does the my custom logo (a png image) have some requirements (i.e. size,
>>> colors, etc..)?
>>>
>>
>> Did you re-generate the image too?
>>
>
> Sorry, apparently I can't read this morning.
>
>
> Scott
>
> --
> Scott Garman
> Embedded Linux Engineer - Yocto Project
> Intel Open Source Technology Center
> __**_
> yocto mailing list
> yocto@yoctoproject.org
> https://lists.yoctoproject.**org/listinfo/yocto<https://lists.yoctoproject.org/listinfo/yocto>
>
___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto