Re: [yocto] yocto Digest, Vol 75, Issue 73

2016-12-21 Thread praveen vattipalli
Thanks Alex.
I followed below procedure. Now i could compile hello_2.7

in build/conf/local.conf

INHERIT += "externalsrc"
EXTERNALSRC_pn-hello =
"/home/rajesh/Downloads/poky-krogoth-15.0.2/meta/recipes-extended/hello/hello_2.7"
EXTERNALSRC_BUILD_pn-hello =
"/home/rajesh/Downloads/poky-krogoth-15.0.2/meta/recipes-extended/hello/hello_2.7"

in hello_2.7.bb

EXTERNALSRC =
"/home/rajesh/Downloads/poky-krogoth-15.0.2/meta/recipes-extended/hello/hello_2.7"
EXTERNALSRC_BUILD =
"/home/rajesh/Downloads/poky-krogoth-15.0.2/meta/recipes-extended/hello/hello_2.7"

Thanks,
Praveen.

Message: 1
Date: Mon, 19 Dec 2016 15:41:44 +0200
From: Alexander Kanavin 
To: yocto@yoctoproject.org
Subject: Re: [yocto] Fwd: error while compiling hello_2.7.bb
Message-ID: <25d33f10-e79c-1a60-5dac-a40bb647c...@linux.intel.com>
Content-Type: text/plain; charset=windows-1252; format=flowed

On 12/19/2016 02:42 PM, praveen vattipalli wrote:
> I have hello_2.7.bb  file which contains as below
> vim hello_2.7.bb 
> DESCRIPTION = "GNU Helloworld application"
> SECTION = "test"
> LICENSE = "BSD"
>
> LIC_FILES_CHKSUM =
> "file://${COMMON_LICENSE_DIR}/BSD;md5=3775480a712fc46a69647678acb234cb"
> SRC_DIR ?=
> "/home/rajesh/poky-krogoth-15.0.2/meta/recipes-support/hello/hello_2.7"
> SRC_URI = "file://${SRC_DIR}"
>
> S = "${SRC_DIR}"
>
> do_compile (){
> make prog
> }

You probably need to use externalsrc facility:
http://www.yoctoproject.org/docs/2.2/dev-manual/dev-
manual.html#building-software-from-an-external-source

Alex

On Mon, Dec 19, 2016 at 8:50 PM,  wrote:

> Send yocto mailing list submissions to
> yocto@yoctoproject.org
>
> To subscribe or unsubscribe via the World Wide Web, visit
> https://lists.yoctoproject.org/listinfo/yocto
> or, via email, send a message with subject or body 'help' to
> yocto-requ...@yoctoproject.org
>
> You can reach the person managing the list at
> yocto-ow...@yoctoproject.org
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of yocto digest..."
>
>
> Today's Topics:
>
>1. Re: Fwd: error while compiling hello_2.7.bb (Alexander Kanavin)
>2. Re: Build one package from a split package recipe (Thomas Thorne)
>3. Re: setting up autobuilder on local machine (Jussi Kukkonen)
>4. Re: setting up autobuilder on local machine (Mirza Krak)
>
>
> --
>
> Message: 1
> Date: Mon, 19 Dec 2016 15:41:44 +0200
> From: Alexander Kanavin 
> To: yocto@yoctoproject.org
> Subject: Re: [yocto] Fwd: error while compiling hello_2.7.bb
> Message-ID: <25d33f10-e79c-1a60-5dac-a40bb647c...@linux.intel.com>
> Content-Type: text/plain; charset=windows-1252; format=flowed
>
> On 12/19/2016 02:42 PM, praveen vattipalli wrote:
> > I have hello_2.7.bb  file which contains as below
> > vim hello_2.7.bb 
> > DESCRIPTION = "GNU Helloworld application"
> > SECTION = "test"
> > LICENSE = "BSD"
> >
> > LIC_FILES_CHKSUM =
> > "file://${COMMON_LICENSE_DIR}/BSD;md5=3775480a712fc46a69647678acb234cb"
> > SRC_DIR ?=
> > "/home/rajesh/poky-krogoth-15.0.2/meta/recipes-support/hello/hello_2.7"
> > SRC_URI = "file://${SRC_DIR}"
> >
> > S = "${SRC_DIR}"
> >
> > do_compile (){
> > make prog
> > }
>
> You probably need to use externalsrc facility:
> http://www.yoctoproject.org/docs/2.2/dev-manual/dev-
> manual.html#building-software-from-an-external-source
>
> Alex
>
>
> --
>
> Message: 2
> Date: Mon, 19 Dec 2016 14:13:46 +
> From: Thomas Thorne 
> To: "Bipnesh, Abhinav (Abhinav)" ,
> "yocto@yoctoproject.org" 
> Subject: Re: [yocto] Build one package from a split package recipe
> Message-ID:
>  eurprd07.prod.outlook.com>
>
> Content-Type: text/plain; charset="us-ascii"
>
> ?  Now when I fire a bitbake command like "bitbake test" all the packages
> listed into the recipe get build. But sometime I need to build only one
> package say test1.
>
> ?
>
> ?  How that can be achieved as when I tried "bitbake test1" its reports
> below error
>
> ?  ERROR: Nothing PROVIDES test1'
>
> I think you would need to define a recipe for each target you wanted to
> build.  You could still have a top level recipe that depended on them all
> and caused them all to be generated.
>
> Thomas A. F. Thorne  Software
> Engineer  Net2Edge
>
> -- next part --
> An HTML attachment was scrubbed...
> URL:  attachments/20161219/48a387c4/attachment-0001.html>
>
> --
>
> Message: 3
> Date: Mon, 19 Dec 2016 16:57:52 +0200
> From: Jussi Kukkonen 
> To: Mirza Krak 
> Cc: "yocto@yoctoproject.org" 
> Subject: Re: [yocto] setting up autobuilder on local machine
> Message-ID:
>  fqbvh...@mail.gmail.com>
> Content-Type: text/plain; charset="ut

Re: [yocto] Error during webkit compilation for rasberry pi3

2016-12-21 Thread Mont3z Claros
Thanks all for the help. I was able to build webkit using:
MACHINE_FEATURES += "vc4graphics"

I'm sorry for asking those basic questions but is there a way to build
webkit without opencl for the raspberry pi3?

Thanks,
Montez

On Sun, Dec 11, 2016 at 9:55 PM, Gary Thomas  wrote:
> On 2016-12-11 16:49, Mont3z Claros wrote:
>>
>> Hi Khem,
>>
>> this layer is:
>>
>> https://layers.openembedded.org/layerindex/branch/master/layer/meta-webkit/
>>
>> I've also tried to use the webkit recipe from poky but I've got the
>> same error. In this case I used a different configuration because poky
>> doesn't have webkitgtk-bin (mini browser). To test that I've tried to
>> build a modified version of meta-web-kiosk
>>  (https://github.com/mont3z/meta-web-kiosk). This is still a work in
>> progress but basically it replaces midori by epiphany.
>>
>> local.conf:
>> MACHINE = "raspberrypi3"
>> DISTRO_FEATURES_append = " x11 gles2"
>>
>> command:
>> bitbake core-image-web-kiosk
>>
>> bblayes.conf:
>> BBLAYERS ?= " \
>>   /home/mont3z/yocto/poky/meta \
>>   /home/mont3z/yocto/poky/meta-poky \
>>   /home/mont3z/yocto/poky/meta-yocto-bsp \
>>   /home/mont3z/yocto/meta-openembedded/meta-oe \
>>   /home/mont3z/yocto/meta-raspberrypi \
>>   /home/mont3z/yocto/meta-web-kiosk \
>> "
>>
>> I also found this discussion about rpi2. I'll try to run some of those
>> configurations:
>> https://github.com/Igalia/meta-webkit/issues/1
>
>
> I built webkit for rpi3 just fine (yesterday 2016-12-11) using just
>   poky: e38775a1d82e6dc60fc96cf243ecb94be964d9b2
>   meta-raspberrypi: 44d41bf3e94c4c8fe5ad5a3650572c8d17ef36c9
> these were the current master as of then.
>
> What version(s) are you trying to use?
>
>
>>
>> On Sat, Dec 10, 2016 at 1:02 PM, Khem Raj  wrote:
>>>
>>> On Sat, Dec 10, 2016 at 7:52 AM, Mont3z Claros 
>>> wrote:

 Hi all,

 I don't know what I'm doing wrong but I'm getting an error during
 compilation of webkit for raspberry pi3. Please see below the error
 and my configurations,

 Thanks,
 Mont3z

 local.conf:
 MACHINE = "raspberrypi3"
 DISTRO_FEATURES_append = " x11 gles2"
 IMAGE_INSTALL_append = " webkitgtk-bin"

 Error:
 | ERROR: oe_runmake failed
 | In file included from

 /home/mont3z/yocto/poky/build/tmp/work/cortexa7t2hf-neon-vfpv4-poky-linux-gnueabi/webkitgtk/2.14.2-r0/webkitgtk-2.14.2/Source/WebCore/platform/graphics/cairo/GraphicsContext3DCairo.cpp:51:0:
 |
 /home/mont3z/yocto/poky/build/tmp/work/cortexa7t2hf-neon-vfpv4-poky-linux-gnueabi/webkitgtk/2.14.2-r0/webkitgtk-2.14.2/Source/WebCore/platform/graphics/opengl/Extensions3DOpenGLES.h:109:5:
 error: 'PFNGLFRAMEBUFFERTEXTURE2DMULTISAMPLEIMGPROC' does not name a
 type
 |  PFNGLFRAMEBUFFERTEXTURE2DMULTISAMPLEIMGPROC
 m_glFramebufferTexture2DMultisampleIMG;
 |  ^~~

 command:
 bitbake core-image-sato

 bblayes.conf:
 BBLAYERS ?= " \
   /home/mont3z/yocto/poky/meta \
   /home/mont3z/yocto/poky/meta-poky \
   /home/mont3z/yocto/poky/meta-yocto-bsp \
   /home/mont3z/yocto/meta-openembedded/meta-oe \
   /home/mont3z/yocto/meta-webkit \
>>>
>>>
>>>
>>> what does this layer do ?
>>>
   /home/mont3z/yocto/meta-raspberrypi \
   "
>
>
>
> --
> 
> Gary Thomas |  Consulting for the
> MLB Associates  |Embedded world
> 
> --
> ___
> 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] fitImage and initramfs

2016-12-21 Thread Hamish Guthrie
Hi List,

I am trying to create a fitImage including an initramfs. I am able to create a 
fitImage without an initramfs, and I am able to create a zImage with an 
initramfs. If I try to create a fitImage with an initramfs, I receive the 
following error:

| Creating a kernel image with a bundled initramfs...
| Copying initramfs into ./usr ...
| xz decompressing image
| xz: 
/home/hamish/build/tmp/work/beaglebone-poky-linux-gnueabi/linux-yocto/4.8.12+gitAUTOINC+926c93ae07_85dc85153c-r0/linux-beaglebone-standard-build/usr/core-image-minimal-beaglebone.cpio.xz:
 Unexpected end of input

I have added the following to my machine .conf file:

KERNEL_IMAGETYPES = "zImage fitImage"
KERNEL_CLASSES += "kernel-fitimage"

INITRAMFS_IMAGE = "core-image-minimal"
INITRAMFS_IMAGE_BUNDLE = "1"

Any ideas would be most welcome.

Hamish
-
-- 
___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto


Re: [yocto] Error during webkit compilation for rasberry pi3

2016-12-21 Thread Khem Raj
Perhaps by adding -DENABLE_OPENCL=OFF to the EXTRA_OECONF

On Wed, Dec 21, 2016 at 7:20 AM, Mont3z Claros  wrote:
> Thanks all for the help. I was able to build webkit using:
> MACHINE_FEATURES += "vc4graphics"
>
> I'm sorry for asking those basic questions but is there a way to build
> webkit without opencl for the raspberry pi3?
>
> Thanks,
> Montez
>
> On Sun, Dec 11, 2016 at 9:55 PM, Gary Thomas  wrote:
>> On 2016-12-11 16:49, Mont3z Claros wrote:
>>>
>>> Hi Khem,
>>>
>>> this layer is:
>>>
>>> https://layers.openembedded.org/layerindex/branch/master/layer/meta-webkit/
>>>
>>> I've also tried to use the webkit recipe from poky but I've got the
>>> same error. In this case I used a different configuration because poky
>>> doesn't have webkitgtk-bin (mini browser). To test that I've tried to
>>> build a modified version of meta-web-kiosk
>>>  (https://github.com/mont3z/meta-web-kiosk). This is still a work in
>>> progress but basically it replaces midori by epiphany.
>>>
>>> local.conf:
>>> MACHINE = "raspberrypi3"
>>> DISTRO_FEATURES_append = " x11 gles2"
>>>
>>> command:
>>> bitbake core-image-web-kiosk
>>>
>>> bblayes.conf:
>>> BBLAYERS ?= " \
>>>   /home/mont3z/yocto/poky/meta \
>>>   /home/mont3z/yocto/poky/meta-poky \
>>>   /home/mont3z/yocto/poky/meta-yocto-bsp \
>>>   /home/mont3z/yocto/meta-openembedded/meta-oe \
>>>   /home/mont3z/yocto/meta-raspberrypi \
>>>   /home/mont3z/yocto/meta-web-kiosk \
>>> "
>>>
>>> I also found this discussion about rpi2. I'll try to run some of those
>>> configurations:
>>> https://github.com/Igalia/meta-webkit/issues/1
>>
>>
>> I built webkit for rpi3 just fine (yesterday 2016-12-11) using just
>>   poky: e38775a1d82e6dc60fc96cf243ecb94be964d9b2
>>   meta-raspberrypi: 44d41bf3e94c4c8fe5ad5a3650572c8d17ef36c9
>> these were the current master as of then.
>>
>> What version(s) are you trying to use?
>>
>>
>>>
>>> On Sat, Dec 10, 2016 at 1:02 PM, Khem Raj  wrote:

 On Sat, Dec 10, 2016 at 7:52 AM, Mont3z Claros 
 wrote:
>
> Hi all,
>
> I don't know what I'm doing wrong but I'm getting an error during
> compilation of webkit for raspberry pi3. Please see below the error
> and my configurations,
>
> Thanks,
> Mont3z
>
> local.conf:
> MACHINE = "raspberrypi3"
> DISTRO_FEATURES_append = " x11 gles2"
> IMAGE_INSTALL_append = " webkitgtk-bin"
>
> Error:
> | ERROR: oe_runmake failed
> | In file included from
>
> /home/mont3z/yocto/poky/build/tmp/work/cortexa7t2hf-neon-vfpv4-poky-linux-gnueabi/webkitgtk/2.14.2-r0/webkitgtk-2.14.2/Source/WebCore/platform/graphics/cairo/GraphicsContext3DCairo.cpp:51:0:
> |
> /home/mont3z/yocto/poky/build/tmp/work/cortexa7t2hf-neon-vfpv4-poky-linux-gnueabi/webkitgtk/2.14.2-r0/webkitgtk-2.14.2/Source/WebCore/platform/graphics/opengl/Extensions3DOpenGLES.h:109:5:
> error: 'PFNGLFRAMEBUFFERTEXTURE2DMULTISAMPLEIMGPROC' does not name a
> type
> |  PFNGLFRAMEBUFFERTEXTURE2DMULTISAMPLEIMGPROC
> m_glFramebufferTexture2DMultisampleIMG;
> |  ^~~
>
> command:
> bitbake core-image-sato
>
> bblayes.conf:
> BBLAYERS ?= " \
>   /home/mont3z/yocto/poky/meta \
>   /home/mont3z/yocto/poky/meta-poky \
>   /home/mont3z/yocto/poky/meta-yocto-bsp \
>   /home/mont3z/yocto/meta-openembedded/meta-oe \
>   /home/mont3z/yocto/meta-webkit \



 what does this layer do ?

>   /home/mont3z/yocto/meta-raspberrypi \
>   "
>>
>>
>>
>> --
>> 
>> Gary Thomas |  Consulting for the
>> MLB Associates  |Embedded world
>> 
>> --
>> ___
>> 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] [bitbake] Failure to compile UltraJson, LMDB and Netifaces python modules recipes for Krogoth.

2016-12-21 Thread Khem Raj
On Tue, Dec 20, 2016 at 10:54 PM, Mateusz Orzoł
 wrote:
>
>
> W dniu 2016-12-20 o 10:46, Mateusz Orzoł pisze:
>
>
>
> W dniu 2016-12-20 o 00:43, Khem Raj pisze:
>
>
>
> On Mon, Dec 19, 2016 at 1:46 PM, Mateusz Orzoł
>  wrote:
>>
>> Hi everyone,
>>
>> I am migrating my old Yocto image from kernel 3.8 to 4.1 on the Intel
>> Quark based platform. After dealing with some SPI driver issues now I've
>> encountered some strange bitbake behaviour. My web application requires
>> UltraJson , LMDB and Netifaces modules. After running bitbake  I am getting
>> a lot of undefined reference errors. In all three cases pretty similar.
>> Exemplary log for python-ujson is here: http://pastebin.com/8ms9PgnY . It
>> seems like the python environment wasn't linked properly but many other
>> python recipes have no problem with compiling.
>>
>> The python-ujson recipe comes from here
>> https://layers.openembedded.org/layerindex/recipe/49510/. In  previous
>> distribution with kernel 3.8 it was working without any problem.
>>
>> Have you got any idea what could be wrong or what should I check first?
>
>
> The error seems to have nothing to do with kernel version. Are you upgrading
> the whole of yocto framework from one release to another ? and if yes from
> which version to which new version.
>
>
>
> I am upgrading from 1.4.2 Dylan version to Krogoth. Firstly I've prepared
> clean Krogoth image which worked fine. Now I am adding necessary recipes and
> packages one by one and currently the only problem I've encountered is the
> mentioned one.
>
> Hi,
> W have found found quick fix for this.  The errors disappeared when all the
> build flags were cleared in mentioned python modules recipes. It means
> TARGET_CFLAGS = "" LDFLAGS = "" CFLAGS = "" in module .bb file. It was
> checked on the device that modules are visible in python and they work. I
> don't know why this helped and also what was causing the issue. Do you have
> any clues what was wrong and how to fix it in proper way?

Can you post the exact change ? perhaps there is issue in Makefile
environment that
bitbake is handing off to the makefiles of this component. There
change in this area
in OE recently.

>>
>> Thank you for your help in advance,
>>
>> Mateusz
>>
>>
>> --
>>
>>
>> --
>> ___
>> 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] fitImage and initramfs

2016-12-21 Thread Hamish Guthrie
Hi Rick,

>> Have you tried manually extracting the .xz it is having trouble with?

Yes I have tried this, in fact I made some changes to the script where the copy 
and extract is done and I can verify that in fact the copy of the cpio.xz image 
is done correctly to the usr directory in the kernel directory, I also added a 
line to make an additional copy of it, and in fact the original is being 
extracted correctly to the usr directory, and it is correctly extracted, but 
for some strange reason I get the Unexpected end of input error. I have 
manually extracted the image and the result of that extraction is identical 
both in size and content to the one which claims to have an error.

The core-image-minimal is purely for experimental purposes, what I am actually 
trying to do is to create a fit image for our swupdate image so that I can have 
a single fit image including the kernel, device tree and initramfs for 
swupdate, so I can include it in a single UBI volume.

Hamish -
-- 
___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto


[yocto] question about variables/parameters

2016-12-21 Thread Jeff Hagen


I am completely confused about bitbake variables how and when to set 
them to get the desired result in the poky/yocto environment.


For context, I am just a user but I have been around awhile. I have been 
using yocto/poky for several years now. I have written a number of 
simple recipes and successfully deployed embedded linux builds on a 
number of custom projects and architectures (x86 x86_64 zync and 
alterasoc ). This stuff works. My hat is off to the architects.


The problem comes when I want to change something. Frankly, I dont 
understand the documentation. Its way too generic. I end up wandering 
around the recipes and web searching and trying everything until I find 
some seemingly random combination of bbappend or conf file or 
variable_name that works. Once found, it works no sweat, but there has 
to be a better way.


So here is an example of a problem I am trying to solve. I need to add a 
boot parameter to the kernel.
When I run bitbake -v -f core-image-minimal for an x86 system I notice 
that (at least in the old version I am using) uses syslinux as the boot 
agent.  So I look at syslinux it needs a file called syslinux.cfg. There 
is a parameter there called APPEND that I need to add the keyword to. 
Then I find the syslinux.cfg file in a yocto build and I see that its 
created by a python script inside of syslinux.bbclass. I look there and 
sure enough there is a big comment there telling me to set the APPEND 
variable for the class. I also notice that the python script that 
creates syslinux.cfg runs when I run bitbake -v -f core-image-minimal


Also in the documentation there is a class called syslinux and it lists 
the variables that I found in the comments bbclass file. This is no 
doubt some clever auto-doc feature.


But thats where it ends. How do I know how to set that APPEND variable 
for my custom build?
The answer is either a bbappend file in my layer, a conf file, or 
something I can put in local.conf.


Rather than just telling me the answer, can someone please describe the 
reasoning that would go into figuring it out so I can figure out other 
similar issues on my own later? Or perhaps this was already done and I 
am missing some documentation somewhere. Can you please direct me? 
Thanks for your patience.


Jeff Hagen

--
Jeffrey R Hagen
Lithe Technology LLC
jha...@lithetechnology.com
(520) 488-1155 (mobile)
(520) 477-6066 (office)
http://www.lithetechnology.com

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


Re: [yocto] fitImage and initramfs

2016-12-21 Thread Rick Altherr
What happens if you use core-image-minimal-initramfs for INITRAMFS_IMAGE?
I think the main problem is that you are telling Yocto to include the full
rootfs image as an initramfs instead of the reduced, special-purpose
initramfs image.  Are you trying to boot entirely from a ramdisk or do you
intend to store root somewhere else (NAND, etc)?

On Wed, Dec 21, 2016 at 9:38 AM, Hamish Guthrie 
wrote:

> Hi Rick,
>
> >> Have you tried manually extracting the .xz it is having trouble with?
>
> Yes I have tried this, in fact I made some changes to the script where the
> copy and extract is done and I can verify that in fact the copy of the
> cpio.xz image is done correctly to the usr directory in the kernel
> directory, I also added a line to make an additional copy of it, and in
> fact the original is being extracted correctly to the usr directory, and it
> is correctly extracted, but for some strange reason I get the Unexpected
> end of input error. I have manually extracted the image and the result of
> that extraction is identical both in size and content to the one which
> claims to have an error.
>
> The core-image-minimal is purely for experimental purposes, what I am
> actually trying to do is to create a fit image for our swupdate image so
> that I can have a single fit image including the kernel, device tree and
> initramfs for swupdate, so I can include it in a single UBI volume.
>
> Hamish -
>
-- 
___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto


Re: [yocto] Error during webkit compilation for rasberry pi3

2016-12-21 Thread Mont3z Claros
Thanks, Khem. I'll try this.
I've just asked this because I've got a black screen on my monitor
when using VC4 driver and when I've check the UART console I see the
error:

vc4-drm soc:gpu: failed to bind 3f902000.hdmi (ops vc4_hdmi_ops): -517
vc4-drm soc:gpu: master bind failed: -517
vc4-drm soc:gpu: failed to bind 3f902000.hdmi (ops vc4_hdmi_ops): -517
vc4-drm soc:gpu: master bind failed: -517

So, I'll try building it without opencl.
Montez.



On Wed, Dec 21, 2016 at 9:19 AM, Khem Raj  wrote:
> Perhaps by adding -DENABLE_OPENCL=OFF to the EXTRA_OECONF
>
> On Wed, Dec 21, 2016 at 7:20 AM, Mont3z Claros  
> wrote:
>> Thanks all for the help. I was able to build webkit using:
>> MACHINE_FEATURES += "vc4graphics"
>>
>> I'm sorry for asking those basic questions but is there a way to build
>> webkit without opencl for the raspberry pi3?
>>
>> Thanks,
>> Montez
>>
>> On Sun, Dec 11, 2016 at 9:55 PM, Gary Thomas  wrote:
>>> On 2016-12-11 16:49, Mont3z Claros wrote:

 Hi Khem,

 this layer is:

 https://layers.openembedded.org/layerindex/branch/master/layer/meta-webkit/

 I've also tried to use the webkit recipe from poky but I've got the
 same error. In this case I used a different configuration because poky
 doesn't have webkitgtk-bin (mini browser). To test that I've tried to
 build a modified version of meta-web-kiosk
  (https://github.com/mont3z/meta-web-kiosk). This is still a work in
 progress but basically it replaces midori by epiphany.

 local.conf:
 MACHINE = "raspberrypi3"
 DISTRO_FEATURES_append = " x11 gles2"

 command:
 bitbake core-image-web-kiosk

 bblayes.conf:
 BBLAYERS ?= " \
   /home/mont3z/yocto/poky/meta \
   /home/mont3z/yocto/poky/meta-poky \
   /home/mont3z/yocto/poky/meta-yocto-bsp \
   /home/mont3z/yocto/meta-openembedded/meta-oe \
   /home/mont3z/yocto/meta-raspberrypi \
   /home/mont3z/yocto/meta-web-kiosk \
 "

 I also found this discussion about rpi2. I'll try to run some of those
 configurations:
 https://github.com/Igalia/meta-webkit/issues/1
>>>
>>>
>>> I built webkit for rpi3 just fine (yesterday 2016-12-11) using just
>>>   poky: e38775a1d82e6dc60fc96cf243ecb94be964d9b2
>>>   meta-raspberrypi: 44d41bf3e94c4c8fe5ad5a3650572c8d17ef36c9
>>> these were the current master as of then.
>>>
>>> What version(s) are you trying to use?
>>>
>>>

 On Sat, Dec 10, 2016 at 1:02 PM, Khem Raj  wrote:
>
> On Sat, Dec 10, 2016 at 7:52 AM, Mont3z Claros 
> wrote:
>>
>> Hi all,
>>
>> I don't know what I'm doing wrong but I'm getting an error during
>> compilation of webkit for raspberry pi3. Please see below the error
>> and my configurations,
>>
>> Thanks,
>> Mont3z
>>
>> local.conf:
>> MACHINE = "raspberrypi3"
>> DISTRO_FEATURES_append = " x11 gles2"
>> IMAGE_INSTALL_append = " webkitgtk-bin"
>>
>> Error:
>> | ERROR: oe_runmake failed
>> | In file included from
>>
>> /home/mont3z/yocto/poky/build/tmp/work/cortexa7t2hf-neon-vfpv4-poky-linux-gnueabi/webkitgtk/2.14.2-r0/webkitgtk-2.14.2/Source/WebCore/platform/graphics/cairo/GraphicsContext3DCairo.cpp:51:0:
>> |
>> /home/mont3z/yocto/poky/build/tmp/work/cortexa7t2hf-neon-vfpv4-poky-linux-gnueabi/webkitgtk/2.14.2-r0/webkitgtk-2.14.2/Source/WebCore/platform/graphics/opengl/Extensions3DOpenGLES.h:109:5:
>> error: 'PFNGLFRAMEBUFFERTEXTURE2DMULTISAMPLEIMGPROC' does not name a
>> type
>> |  PFNGLFRAMEBUFFERTEXTURE2DMULTISAMPLEIMGPROC
>> m_glFramebufferTexture2DMultisampleIMG;
>> |  ^~~
>>
>> command:
>> bitbake core-image-sato
>>
>> bblayes.conf:
>> BBLAYERS ?= " \
>>   /home/mont3z/yocto/poky/meta \
>>   /home/mont3z/yocto/poky/meta-poky \
>>   /home/mont3z/yocto/poky/meta-yocto-bsp \
>>   /home/mont3z/yocto/meta-openembedded/meta-oe \
>>   /home/mont3z/yocto/meta-webkit \
>
>
>
> what does this layer do ?
>
>>   /home/mont3z/yocto/meta-raspberrypi \
>>   "
>>>
>>>
>>>
>>> --
>>> 
>>> Gary Thomas |  Consulting for the
>>> MLB Associates  |Embedded world
>>> 
>>> --
>>> ___
>>> 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] fitImage and initramfs

2016-12-21 Thread Hamish Guthrie
Hi Rick,

>> What happens if you use core-image-minimal-initramfs for INITRAMFS_IMAGE? 

I just tried that and Yocto complains with Nothing PROVIDES 
'core-image-minimal-initramfs'

>> I think the main problem is that you are telling Yocto to include the full 
>> rootfs image as an initramfs instead of the reduced, special-purpose 
>> initramfs image.

I am not sure that Yocto should give a damn about what I am trying to put into 
my initramfs, if I am stupid enough to include a 100G image into my initramfs, 
it is my problem, not Yocto's! If I am stupid enough to do that, knowing that I 
only have 256M RAM, I should be the one bitten!

I have tried doing the same thing with a special reduced filesystem for our 
update software (which is about 4M, by the way), and I get the same error with 
(Unexpected end of input), so I do not believe for a moment it is the size of 
the initramfs. I suspect something in the kernel.bbclass, but for the life of 
me I cannot see why it would fail. It should just WORK!

Hamish
-- 
___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto


Re: [yocto] Error during webkit compilation for rasberry pi3

2016-12-21 Thread Khem Raj
On Wed, Dec 21, 2016 at 9:50 AM, Mont3z Claros  wrote:
> Thanks, Khem. I'll try this.
> I've just asked this because I've got a black screen on my monitor
> when using VC4 driver and when I've check the UART console I see the
> error:
>
> vc4-drm soc:gpu: failed to bind 3f902000.hdmi (ops vc4_hdmi_ops): -517
> vc4-drm soc:gpu: master bind failed: -517
> vc4-drm soc:gpu: failed to bind 3f902000.hdmi (ops vc4_hdmi_ops): -517
> vc4-drm soc:gpu: master bind failed: -517

Dont think it has to do anything with opencl, but you need to start
some app and see if it fails to
display

>
> So, I'll try building it without opencl.
> Montez.
>
>
>
> On Wed, Dec 21, 2016 at 9:19 AM, Khem Raj  wrote:
>> Perhaps by adding -DENABLE_OPENCL=OFF to the EXTRA_OECONF
>>
>> On Wed, Dec 21, 2016 at 7:20 AM, Mont3z Claros  
>> wrote:
>>> Thanks all for the help. I was able to build webkit using:
>>> MACHINE_FEATURES += "vc4graphics"
>>>
>>> I'm sorry for asking those basic questions but is there a way to build
>>> webkit without opencl for the raspberry pi3?
>>>
>>> Thanks,
>>> Montez
>>>
>>> On Sun, Dec 11, 2016 at 9:55 PM, Gary Thomas  wrote:
 On 2016-12-11 16:49, Mont3z Claros wrote:
>
> Hi Khem,
>
> this layer is:
>
> https://layers.openembedded.org/layerindex/branch/master/layer/meta-webkit/
>
> I've also tried to use the webkit recipe from poky but I've got the
> same error. In this case I used a different configuration because poky
> doesn't have webkitgtk-bin (mini browser). To test that I've tried to
> build a modified version of meta-web-kiosk
>  (https://github.com/mont3z/meta-web-kiosk). This is still a work in
> progress but basically it replaces midori by epiphany.
>
> local.conf:
> MACHINE = "raspberrypi3"
> DISTRO_FEATURES_append = " x11 gles2"
>
> command:
> bitbake core-image-web-kiosk
>
> bblayes.conf:
> BBLAYERS ?= " \
>   /home/mont3z/yocto/poky/meta \
>   /home/mont3z/yocto/poky/meta-poky \
>   /home/mont3z/yocto/poky/meta-yocto-bsp \
>   /home/mont3z/yocto/meta-openembedded/meta-oe \
>   /home/mont3z/yocto/meta-raspberrypi \
>   /home/mont3z/yocto/meta-web-kiosk \
> "
>
> I also found this discussion about rpi2. I'll try to run some of those
> configurations:
> https://github.com/Igalia/meta-webkit/issues/1


 I built webkit for rpi3 just fine (yesterday 2016-12-11) using just
   poky: e38775a1d82e6dc60fc96cf243ecb94be964d9b2
   meta-raspberrypi: 44d41bf3e94c4c8fe5ad5a3650572c8d17ef36c9
 these were the current master as of then.

 What version(s) are you trying to use?


>
> On Sat, Dec 10, 2016 at 1:02 PM, Khem Raj  wrote:
>>
>> On Sat, Dec 10, 2016 at 7:52 AM, Mont3z Claros 
>> wrote:
>>>
>>> Hi all,
>>>
>>> I don't know what I'm doing wrong but I'm getting an error during
>>> compilation of webkit for raspberry pi3. Please see below the error
>>> and my configurations,
>>>
>>> Thanks,
>>> Mont3z
>>>
>>> local.conf:
>>> MACHINE = "raspberrypi3"
>>> DISTRO_FEATURES_append = " x11 gles2"
>>> IMAGE_INSTALL_append = " webkitgtk-bin"
>>>
>>> Error:
>>> | ERROR: oe_runmake failed
>>> | In file included from
>>>
>>> /home/mont3z/yocto/poky/build/tmp/work/cortexa7t2hf-neon-vfpv4-poky-linux-gnueabi/webkitgtk/2.14.2-r0/webkitgtk-2.14.2/Source/WebCore/platform/graphics/cairo/GraphicsContext3DCairo.cpp:51:0:
>>> |
>>> /home/mont3z/yocto/poky/build/tmp/work/cortexa7t2hf-neon-vfpv4-poky-linux-gnueabi/webkitgtk/2.14.2-r0/webkitgtk-2.14.2/Source/WebCore/platform/graphics/opengl/Extensions3DOpenGLES.h:109:5:
>>> error: 'PFNGLFRAMEBUFFERTEXTURE2DMULTISAMPLEIMGPROC' does not name a
>>> type
>>> |  PFNGLFRAMEBUFFERTEXTURE2DMULTISAMPLEIMGPROC
>>> m_glFramebufferTexture2DMultisampleIMG;
>>> |  ^~~
>>>
>>> command:
>>> bitbake core-image-sato
>>>
>>> bblayes.conf:
>>> BBLAYERS ?= " \
>>>   /home/mont3z/yocto/poky/meta \
>>>   /home/mont3z/yocto/poky/meta-poky \
>>>   /home/mont3z/yocto/poky/meta-yocto-bsp \
>>>   /home/mont3z/yocto/meta-openembedded/meta-oe \
>>>   /home/mont3z/yocto/meta-webkit \
>>
>>
>>
>> what does this layer do ?
>>
>>>   /home/mont3z/yocto/meta-raspberrypi \
>>>   "



 --
 
 Gary Thomas |  Consulting for the
 MLB Associates  |Embedded world
 
 --
 ___
 yocto mailing list
 yocto@yoctoproject.org
 https://lists.yoctoproject.org/listinfo/yocto
>>> --
>>> ___
>>> yocto mailing list
>>> yocto@yoctoproject

Re: [yocto] Error during webkit compilation for rasberry pi3

2016-12-21 Thread Carlos Alberto Lopez Perez
On 21/12/16 18:50, Mont3z Claros wrote:
> Thanks, Khem. I'll try this.
> I've just asked this because I've got a black screen on my monitor
> when using VC4 driver and when I've check the UART console I see the
> error:
> 
> vc4-drm soc:gpu: failed to bind 3f902000.hdmi (ops vc4_hdmi_ops): -517
> vc4-drm soc:gpu: master bind failed: -517
> vc4-drm soc:gpu: failed to bind 3f902000.hdmi (ops vc4_hdmi_ops): -517
> vc4-drm soc:gpu: master bind failed: -517
> 
> So, I'll try building it without opencl.
> Montez.
> 

For the RPI3 there are two options for the graphics drivers:

 1) The default ones (propietary from broadcom). To get WebKit working
with that ones you have to disable OpenGL support in WebKit. This can be
achieved by not passing the corresponding PACKAGECONFIG option. For
example, using last master of poky/oe-core or meta-webkit you can set
this in local.conf:

  PACKAGECONFIG_pn-webkitgtk = "x11 webgl"

Check the webkit recipe to see if there is an opengl PACKAGECONFIG
option. Otherwise you can pass the flag manually -DENABLE_OPENGL=OFF to
EXTRA_OECMAKE

Alternatively, if you already built it, you can disable OpenGL at
runtime also by executing on the terminal:
export WEBKIT_DISABLE_COMPOSITING_MODE=1
before starting the browser from the terminal itself.

 2) With the new VC4 drivers it should work with OpenGL support.
I friend of mine tried it on the RPI3 with Wayland (core-image-weston)
and it worked as expected. Not sure about X11 (core-image-sato).

But you seem to have trouble starting the GUI with this VC4 drivers.
Maybe it helps if you use the master branch of meta-raspberry as this
VC4 drivers are relatively bleeding edge.



signature.asc
Description: OpenPGP digital signature
-- 
___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto