Re: [yocto] tiny-linux distribution with raspberrypi error

2017-11-18 Thread Khem Raj
On Fri, Nov 17, 2017 at 5:34 PM, Michael Gloff  wrote:
> This looks to be because poky-tiny.conf does not allow overriding of the
> kernel provider. You could try the below patch to use a different kernel.
>
> Michael Gloff
>
> diff --git a/meta-poky/conf/distro/poky-tiny.conf
> b/meta-poky/conf/distro/poky-tiny.conf
> index 2032bfde32..acafd9fef4 100644
> --- a/meta-poky/conf/distro/poky-tiny.conf
> +++ b/meta-poky/conf/distro/poky-tiny.conf
> @@ -37,7 +37,7 @@ TCLIBC = "musl"
>
>  # Distro config is evaluated after the machine config, so we have to
> explicitly
>  # set the kernel provider to override a machine config.
> -PREFERRED_PROVIDER_virtual/kernel = "linux-yocto-tiny"
> +PREFERRED_PROVIDER_virtual/kernel ?= "linux-yocto-tiny"
>  PREFERRED_VERSION_linux-yocto-tiny ?= "4.12%"
>

please submit this patch with sign off and git format, its good for
inclusion upstream

>  # We can use packagegroup-core-boot, but in the future we may need a new
> packagegroup-core-tiny
>
>
> On Thu, Nov 16, 2017 at 7:05 PM, Sherif Omran 
> wrote:
>>
>> hi
>>
>> i am trying to compile the yocto-tiny for raspberry pi by adding the
>> distro to my local.conf
>>
>> DISTRO = "poky-tiny"  and i  get the following
>>
>>
>> ERROR: nothing provides 'virtual/kernel'
>> ERROR: linux-yocto-tiny Provides virtual/kernel but was skipped:
>> incompatible with machine raspberrypi0-wifi (not in compatible_machine)
>> ERROR: linux-yocto-rt Provides virtual/kernel but was skipped:
>> incompatible with machine raspberrypi0-wifi (not in compatible_machine)
>> ERROR: linux-yocto Provides virtual/kernel but was skipped: incompatible
>> with machine raspberrypi0-wifi (not in compatible_machine)
>> ERROR: linux-yocto-dev Provides virtual/kernel but was skipped:
>> incompatible with machine raspberrypi0-wifi (not in compatible_machine)
>> ERROR: required build target 'rpi-basic-image' has no buildable providers.
>> Missing or unbuildable depency chain was: 'rpi-basic-image',
>> 'virtual/kernel'
>>
>>
>> any body has a clue to solve it?
>>
>> thanks
>>
>> --
>> ___
>> 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] tiny-linux distribution with raspberrypi error

2017-11-18 Thread Sherif Omran
it worked well with

PREFERRED_PROVIDER_virtual/kernel = "linux-yocto-tini"

in local.conf. However i don't know if it will work with real time kernel
.. to be tested later

 thank you

On Sat, Nov 18, 2017 at 10:19 AM, Khem Raj  wrote:

> On Fri, Nov 17, 2017 at 5:34 PM, Michael Gloff  wrote:
> > This looks to be because poky-tiny.conf does not allow overriding of the
> > kernel provider. You could try the below patch to use a different kernel.
> >
> > Michael Gloff
> >
> > diff --git a/meta-poky/conf/distro/poky-tiny.conf
> > b/meta-poky/conf/distro/poky-tiny.conf
> > index 2032bfde32..acafd9fef4 100644
> > --- a/meta-poky/conf/distro/poky-tiny.conf
> > +++ b/meta-poky/conf/distro/poky-tiny.conf
> > @@ -37,7 +37,7 @@ TCLIBC = "musl"
> >
> >  # Distro config is evaluated after the machine config, so we have to
> > explicitly
> >  # set the kernel provider to override a machine config.
> > -PREFERRED_PROVIDER_virtual/kernel = "linux-yocto-tiny"
> > +PREFERRED_PROVIDER_virtual/kernel ?= "linux-yocto-tiny"
> >  PREFERRED_VERSION_linux-yocto-tiny ?= "4.12%"
> >
>
> please submit this patch with sign off and git format, its good for
> inclusion upstream
>
> >  # We can use packagegroup-core-boot, but in the future we may need a new
> > packagegroup-core-tiny
> >
> >
> > On Thu, Nov 16, 2017 at 7:05 PM, Sherif Omran  >
> > wrote:
> >>
> >> hi
> >>
> >> i am trying to compile the yocto-tiny for raspberry pi by adding the
> >> distro to my local.conf
> >>
> >> DISTRO = "poky-tiny"  and i  get the following
> >>
> >>
> >> ERROR: nothing provides 'virtual/kernel'
> >> ERROR: linux-yocto-tiny Provides virtual/kernel but was skipped:
> >> incompatible with machine raspberrypi0-wifi (not in compatible_machine)
> >> ERROR: linux-yocto-rt Provides virtual/kernel but was skipped:
> >> incompatible with machine raspberrypi0-wifi (not in compatible_machine)
> >> ERROR: linux-yocto Provides virtual/kernel but was skipped: incompatible
> >> with machine raspberrypi0-wifi (not in compatible_machine)
> >> ERROR: linux-yocto-dev Provides virtual/kernel but was skipped:
> >> incompatible with machine raspberrypi0-wifi (not in compatible_machine)
> >> ERROR: required build target 'rpi-basic-image' has no buildable
> providers.
> >> Missing or unbuildable depency chain was: 'rpi-basic-image',
> >> 'virtual/kernel'
> >>
> >>
> >> any body has a clue to solve it?
> >>
> >> thanks
> >>
> >> --
> >> ___
> >> 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


[yocto] Displaying buildcfg

2017-11-18 Thread Chris Simmonds
Hi,

At the start of a bitbake run it displays the current build
configuration before it starts to build anything:

Build Configuration:
BB_VERSION= "1.28.0"
BUILD_SYS = "x86_64-linux"
[...]

This information is useful, especially when you are swapping between
multiple projects with different versions. Is there a simple way to get
bitbake to print just this information, without going on to do build
anything?

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


Re: [yocto] Displaying buildcfg

2017-11-18 Thread cddatemp
At 2017-11-18 20:45:11, "Chris Simmonds"  wrote:
>Hi,
>
>At the start of a bitbake run it displays the current build
>configuration before it starts to build anything:
>
>Build Configuration:
>BB_VERSION= "1.28.0"
>BUILD_SYS = "x86_64-linux"
>[...]
>
>This information is useful, especially when you are swapping between
>multiple projects with different versions. Is there a simple way to get
>bitbake to print just this information, without going on to do build
>anything?

Try this:
$ bitbake -n base-files


>
>Regards,
>Chris
>-- 
>___
>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] Displaying buildcfg

2017-11-18 Thread Chris Simmonds
Hi,

On 18/11/17 14:41, cddatemp wrote:
> At 2017-11-18 20:45:11, "Chris Simmonds"  wrote:
>>Hi,
>>
>>At the start of a bitbake run it displays the current build
>>configuration before it starts to build anything:
>>
>>Build Configuration:
>>BB_VERSION= "1.28.0"
>>BUILD_SYS = "x86_64-linux"
>>[...]
>>
>>This information is useful, especially when you are swapping between
>>multiple projects with different versions. Is there a simple way to get
>>bitbake to print just this information, without going on to do build
>>anything?
> 
> Try this:
> $ bitbake -n base-files
> 
>>
>>Regards,
>>Chris
>>-- 

Thanks,

Thanks, that works.

I can't help feeling that there should be a more direct way of dumping
the buildcfg though. Anyone have an insight on this?

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


[yocto] eclipse-poky: Rootfs includes not in CDT

2017-11-18 Thread Art Kaufmann

Environment: Eclipse Neon 3 with the Yocto plug-in. Running on Fedora 24.

I've built the SDK and configured Eclipse and the plug-in. The Hello 
World autotools project builds, but, there's an issue. The CDT isn't 
aware of the include directories so its checker is flagging my files 
with missing includes errors. I *could* add ${SDKTARGETROOT}/usr/include 
(and the appropriate sub-directories) to my project's configuration, but 
I don't want to mess up the cross compiler which just uses the --rootfs 
option and finds everything that it needs. How do I configure this to 
get rid of the annoying errors? I like the help that the CDT provides 
before compilation.


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


Re: [yocto] tiny-linux distribution with raspberrypi error

2017-11-18 Thread Sherif Omran
I have it now being compiled and created a file called
rpi-basic-image-raspberrypi0-wifi-20171118102213.rootfs.cpio.gz
but how can i burn it? it is not an img file.
Any clue is appreciated.

On Sat, Nov 18, 2017 at 12:21 PM, Sherif Omran 
wrote:

> it worked well with
>
> PREFERRED_PROVIDER_virtual/kernel = "linux-yocto-tini"
>
> in local.conf. However i don't know if it will work with real time kernel
> .. to be tested later
>
>  thank you
>
> On Sat, Nov 18, 2017 at 10:19 AM, Khem Raj  wrote:
>
>> On Fri, Nov 17, 2017 at 5:34 PM, Michael Gloff 
>> wrote:
>> > This looks to be because poky-tiny.conf does not allow overriding of the
>> > kernel provider. You could try the below patch to use a different
>> kernel.
>> >
>> > Michael Gloff
>> >
>> > diff --git a/meta-poky/conf/distro/poky-tiny.conf
>> > b/meta-poky/conf/distro/poky-tiny.conf
>> > index 2032bfde32..acafd9fef4 100644
>> > --- a/meta-poky/conf/distro/poky-tiny.conf
>> > +++ b/meta-poky/conf/distro/poky-tiny.conf
>> > @@ -37,7 +37,7 @@ TCLIBC = "musl"
>> >
>> >  # Distro config is evaluated after the machine config, so we have to
>> > explicitly
>> >  # set the kernel provider to override a machine config.
>> > -PREFERRED_PROVIDER_virtual/kernel = "linux-yocto-tiny"
>> > +PREFERRED_PROVIDER_virtual/kernel ?= "linux-yocto-tiny"
>> >  PREFERRED_VERSION_linux-yocto-tiny ?= "4.12%"
>> >
>>
>> please submit this patch with sign off and git format, its good for
>> inclusion upstream
>>
>> >  # We can use packagegroup-core-boot, but in the future we may need a
>> new
>> > packagegroup-core-tiny
>> >
>> >
>> > On Thu, Nov 16, 2017 at 7:05 PM, Sherif Omran <
>> sherifomran2...@gmail.com>
>> > wrote:
>> >>
>> >> hi
>> >>
>> >> i am trying to compile the yocto-tiny for raspberry pi by adding the
>> >> distro to my local.conf
>> >>
>> >> DISTRO = "poky-tiny"  and i  get the following
>> >>
>> >>
>> >> ERROR: nothing provides 'virtual/kernel'
>> >> ERROR: linux-yocto-tiny Provides virtual/kernel but was skipped:
>> >> incompatible with machine raspberrypi0-wifi (not in compatible_machine)
>> >> ERROR: linux-yocto-rt Provides virtual/kernel but was skipped:
>> >> incompatible with machine raspberrypi0-wifi (not in compatible_machine)
>> >> ERROR: linux-yocto Provides virtual/kernel but was skipped:
>> incompatible
>> >> with machine raspberrypi0-wifi (not in compatible_machine)
>> >> ERROR: linux-yocto-dev Provides virtual/kernel but was skipped:
>> >> incompatible with machine raspberrypi0-wifi (not in compatible_machine)
>> >> ERROR: required build target 'rpi-basic-image' has no buildable
>> providers.
>> >> Missing or unbuildable depency chain was: 'rpi-basic-image',
>> >> 'virtual/kernel'
>> >>
>> >>
>> >> any body has a clue to solve it?
>> >>
>> >> thanks
>> >>
>> >> --
>> >> ___
>> >> 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] tiny-linux distribution with raspberrypi error

2017-11-18 Thread Khem Raj
I think you can generate a SD card image which can be dd’ed into a sd card
​poky tiny by default generates an initramfs image only. ​
​
​you can add

IMAGE_FSTYPES_append = " rpi-sdimg​"

​in local.conf and see if you get a rpi-sdimag​



On Sat, Nov 18, 2017 at 10:47 AM Sherif Omran 
wrote:

> I have it now being compiled and created a file called
> rpi-basic-image-raspberrypi0-wifi-20171118102213.rootfs.cpio.gz
> but how can i burn it? it is not an img file.
> Any clue is appreciated.
>
> On Sat, Nov 18, 2017 at 12:21 PM, Sherif Omran 
> wrote:
>
>> it worked well with
>>
>> PREFERRED_PROVIDER_virtual/kernel = "linux-yocto-tini"
>>
>> in local.conf. However i don't know if it will work with real time kernel
>> .. to be tested later
>>
>>  thank you
>>
>> On Sat, Nov 18, 2017 at 10:19 AM, Khem Raj  wrote:
>>
>>> On Fri, Nov 17, 2017 at 5:34 PM, Michael Gloff 
>>> wrote:
>>> > This looks to be because poky-tiny.conf does not allow overriding of
>>> the
>>> > kernel provider. You could try the below patch to use a different
>>> kernel.
>>> >
>>> > Michael Gloff
>>> >
>>> > diff --git a/meta-poky/conf/distro/poky-tiny.conf
>>> > b/meta-poky/conf/distro/poky-tiny.conf
>>> > index 2032bfde32..acafd9fef4 100644
>>> > --- a/meta-poky/conf/distro/poky-tiny.conf
>>> > +++ b/meta-poky/conf/distro/poky-tiny.conf
>>> > @@ -37,7 +37,7 @@ TCLIBC = "musl"
>>> >
>>> >  # Distro config is evaluated after the machine config, so we have to
>>> > explicitly
>>> >  # set the kernel provider to override a machine config.
>>> > -PREFERRED_PROVIDER_virtual/kernel = "linux-yocto-tiny"
>>> > +PREFERRED_PROVIDER_virtual/kernel ?= "linux-yocto-tiny"
>>> >  PREFERRED_VERSION_linux-yocto-tiny ?= "4.12%"
>>> >
>>>
>>> please submit this patch with sign off and git format, its good for
>>> inclusion upstream
>>>
>>> >  # We can use packagegroup-core-boot, but in the future we may need a
>>> new
>>> > packagegroup-core-tiny
>>> >
>>> >
>>> > On Thu, Nov 16, 2017 at 7:05 PM, Sherif Omran <
>>> sherifomran2...@gmail.com>
>>> > wrote:
>>> >>
>>> >> hi
>>> >>
>>> >> i am trying to compile the yocto-tiny for raspberry pi by adding the
>>> >> distro to my local.conf
>>> >>
>>> >> DISTRO = "poky-tiny"  and i  get the following
>>> >>
>>> >>
>>> >> ERROR: nothing provides 'virtual/kernel'
>>> >> ERROR: linux-yocto-tiny Provides virtual/kernel but was skipped:
>>> >> incompatible with machine raspberrypi0-wifi (not in
>>> compatible_machine)
>>> >> ERROR: linux-yocto-rt Provides virtual/kernel but was skipped:
>>> >> incompatible with machine raspberrypi0-wifi (not in
>>> compatible_machine)
>>> >> ERROR: linux-yocto Provides virtual/kernel but was skipped:
>>> incompatible
>>> >> with machine raspberrypi0-wifi (not in compatible_machine)
>>> >> ERROR: linux-yocto-dev Provides virtual/kernel but was skipped:
>>> >> incompatible with machine raspberrypi0-wifi (not in
>>> compatible_machine)
>>> >> ERROR: required build target 'rpi-basic-image' has no buildable
>>> providers.
>>> >> Missing or unbuildable depency chain was: 'rpi-basic-image',
>>> >> 'virtual/kernel'
>>> >>
>>> >>
>>> >> any body has a clue to solve it?
>>> >>
>>> >> thanks
>>> >>
>>> >> --
>>> >> ___
>>> >> 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