Re: [yocto] [meta-raspberrypi] enable serial communication pi 3

2017-09-14 Thread Andrei Gherzan
On Wed, Sep 13, 2017 at 6:58 PM, Ayoub Zaki  wrote:

>
>
> On 13.09.2017 19:55, Khem Raj wrote:
>
>
>
> On Wed, Sep 13, 2017 at 12:27 AM, Ayoub Zaki 
> wrote:
>
>> I ran into the same problem:
>>
>> ENABLE_UART = "1" is not enough you should also add INSTALL_append= "
>> rpi-config" to your local.conf and Serial port will be enabled.
>>
>
> ​this should be automatically pulled in if you built a sdcard image.​
>
> I'm using Wic so it does not work unless I extend the machine config with :
> MACHINE_EXTRA_RRECOMMENDS += " bcm2835-bootfiles rpi-config"
>

That is correct. It is because the sdcard generation class includes this
dependency when building an sdcard.

BTW: bcm2835-bootfiles depends on rpi-config.

About wic, this sounds like an issue anyway. wic uses IMAGE_BOOT_FILES.
This variable includes the blobs provided by bcm28350-bootfiles and, in the
same place, the config gets deployed (due to the dependency above). But in
the wic case nobody triggers the compilation of these packages making wic
to just ignore that specific entry in IMAGE_BOOT_FILES. This sounds like a
bug to me.

If you agree could you create an issue in github and maybe help us fix it
as well? At this point I think bcm2835-bootfiles should be
a MACHINE_ESSENTIAL_EXTRA_RDEPENDS.

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


Re: [yocto] [meta-raspberrypi] enable serial communication pi 3

2017-09-13 Thread Khem Raj
On Wed, Sep 13, 2017 at 12:27 AM, Ayoub Zaki  wrote:

> I ran into the same problem:
>
> ENABLE_UART = "1" is not enough you should also add INSTALL_append= "
> rpi-config" to your local.conf and Serial port will be enabled.
>

​this should be automatically pulled in if you built a sdcard image.​



>
> On 12.09.2017 14:09, yahia farghaly wrote:
>
> I have bitbaked rpi-hwup-image for raspberry pi 3 on sd card and connected
> the serial ports to *usb to ttl device* . i have set the minicom to
> port: /dev/ttyUSB0
> baud rate: 115200
> the image is booting fine and i can see the prompt on the screen but
> cannot see in my serial console using minicom.
> *is serial enabled by default for this image ? *
> i also tried ENABLE_UART = "1" in local.conf but doesn't help.
>
> how to enable it ? and what the serial device name with respect to
> raspberry pi
>
> thanks,
>
> --
> Yahia Farghaly
> Graduated from Faculty of Engineering - Electronics and Communications
> Department at Cairo University.
> Linkedin  - GitHub
> 
>
>
>
> ‌
>
>
>
> --
>
> Ayoub Zaki
> Embedded Systems Consultant
>
> Vaihinger Str. 2/1
> 71634 Ludwigsburg
>
> e-mail: ayoub.z...@embexus.com
> Tel: +49176-62901545 <+49%20176%2062901545>https://embexus.com
>
>
> --
> ___
> 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] [meta-raspberrypi] enable serial communication pi 3

2017-09-13 Thread yahia farghaly
ok, i fixed this thanks for the note but it still gives me the error.



‌

On 13 September 2017 at 10:07, Andrea Galbusera  wrote:

>
>
> On Wed, Sep 13, 2017 at 10:04 AM, yahia farghaly 
> wrote:
>
>>
>> Thanks for replying but it gives me this error log
>>
>>
>>> *ERROR: rpi-hwup-image-1.0-r0 do_rootfs: Unable to install packages.
>>> Command
>>> '/yocto/poky/build/tmp/work/raspberrypi3-poky-linux-gnueabi/rpi-hwup-image/1.0-r0/recipe-sysroot-native/usr/bin/apt-get
>>>  install --force-yes --allow-unauthenticated run-postinsts
>>> packagegroup-core-boot kernel-modules rpi-config' returned 100:*
>>> *Reading package lists...*
>>> *Building dependency tree...*
>>> *Reading state information...*
>>> *Package rpi-config is not available, but is referred to by another
>>> package.*
>>> *This may mean that the package is missing, has been obsoleted, or**is
>>> only available from another source*
>>> *E: Package 'rpi-config' has no installation candidate*
>>>
>>> *ERROR: rpi-hwup-image-1.0-r0 do_rootfs: Function failed: do_rootfs*
>>> *ERROR: Logfile of failure stored in:
>>> /yocto/poky/build/tmp/work/raspberrypi3-poky-linux-gnueabi/rpi-hwup-image/1.0-r0/temp/log.do_rootfs.2252**ERROR:
>>> Task
>>> (/yocto/poky/meta-raspberrypi/recipes-core/images/rpi-hwup-image.bb:do_rootfs)
>>> failed with exit code '1'*
>>
>>
>> All what i did is  IMAGE_INSTALL_append = "rpi-config" , the recipe file
>> is not exist in the meta-raspberry
>>
>
> You missed the space before rpi-config from the original suggestion in
> IMAGE_INSTALL_append. This is always required when overriding variables
> with _append
>
>
>>
>> ‌
>>
>> On 13 September 2017 at 09:27, Ayoub Zaki  wrote:
>>
>>> I ran into the same problem:
>>>
>>> ENABLE_UART = "1" is not enough you should also add INSTALL_append= "
>>> rpi-config" to your local.conf and Serial port will be enabled.
>>>
>>> On 12.09.2017 14:09, yahia farghaly wrote:
>>>
>>> I have bitbaked rpi-hwup-image for raspberry pi 3 on sd card and
>>> connected the serial ports to *usb to ttl device* . i have set the
>>> minicom to
>>> port: /dev/ttyUSB0
>>> baud rate: 115200
>>> the image is booting fine and i can see the prompt on the screen but
>>> cannot see in my serial console using minicom.
>>> *is serial enabled by default for this image ? *
>>> i also tried ENABLE_UART = "1" in local.conf but doesn't help.
>>>
>>> how to enable it ? and what the serial device name with respect to
>>> raspberry pi
>>>
>>> thanks,
>>>
>>> --
>>> Yahia Farghaly
>>> Graduated from Faculty of Engineering - Electronics and Communications
>>> Department at Cairo University.
>>> Linkedin  - GitHub
>>> 
>>>
>>>
>>>
>>> ‌
>>>
>>>
>>>
>>> --
>>>
>>> Ayoub Zaki
>>> Embedded Systems Consultant
>>>
>>> Vaihinger Str. 2/1
>>> 71634 Ludwigsburg
>>>
>>> e-mail: ayoub.z...@embexus.com
>>> Tel: +49176-62901545 <+49%20176%2062901545>https://embexus.com
>>>
>>>
>>> --
>>> ___
>>> yocto mailing list
>>> yocto@yoctoproject.org
>>> https://lists.yoctoproject.org/listinfo/yocto
>>>
>>>
>>
>>
>> --
>> Yahia Farghaly
>> Graduated from Faculty of Engineering - Electronics and Communications
>> Department at Cairo University.
>> Linkedin  - GitHub
>> 
>>
>> --
>> ___
>> yocto mailing list
>> yocto@yoctoproject.org
>> https://lists.yoctoproject.org/listinfo/yocto
>>
>>
>


-- 
Yahia Farghaly
Graduated from Faculty of Engineering - Electronics and Communications
Department at Cairo University.
Linkedin  - GitHub

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


Re: [yocto] [meta-raspberrypi] enable serial communication pi 3

2017-09-13 Thread Andrea Galbusera
On Wed, Sep 13, 2017 at 10:04 AM, yahia farghaly 
wrote:

>
> Thanks for replying but it gives me this error log
>
>
>> *ERROR: rpi-hwup-image-1.0-r0 do_rootfs: Unable to install packages.
>> Command
>> '/yocto/poky/build/tmp/work/raspberrypi3-poky-linux-gnueabi/rpi-hwup-image/1.0-r0/recipe-sysroot-native/usr/bin/apt-get
>>  install --force-yes --allow-unauthenticated run-postinsts
>> packagegroup-core-boot kernel-modules rpi-config' returned 100:*
>> *Reading package lists...*
>> *Building dependency tree...*
>> *Reading state information...*
>> *Package rpi-config is not available, but is referred to by another
>> package.*
>> *This may mean that the package is missing, has been obsoleted, or**is
>> only available from another source*
>> *E: Package 'rpi-config' has no installation candidate*
>>
>> *ERROR: rpi-hwup-image-1.0-r0 do_rootfs: Function failed: do_rootfs*
>> *ERROR: Logfile of failure stored in:
>> /yocto/poky/build/tmp/work/raspberrypi3-poky-linux-gnueabi/rpi-hwup-image/1.0-r0/temp/log.do_rootfs.2252**ERROR:
>> Task
>> (/yocto/poky/meta-raspberrypi/recipes-core/images/rpi-hwup-image.bb:do_rootfs)
>> failed with exit code '1'*
>
>
> All what i did is  IMAGE_INSTALL_append = "rpi-config" , the recipe file
> is not exist in the meta-raspberry
>

You missed the space before rpi-config from the original suggestion in
IMAGE_INSTALL_append. This is always required when overriding variables
with _append


>
> ‌
>
> On 13 September 2017 at 09:27, Ayoub Zaki  wrote:
>
>> I ran into the same problem:
>>
>> ENABLE_UART = "1" is not enough you should also add INSTALL_append= "
>> rpi-config" to your local.conf and Serial port will be enabled.
>>
>> On 12.09.2017 14:09, yahia farghaly wrote:
>>
>> I have bitbaked rpi-hwup-image for raspberry pi 3 on sd card and
>> connected the serial ports to *usb to ttl device* . i have set the
>> minicom to
>> port: /dev/ttyUSB0
>> baud rate: 115200
>> the image is booting fine and i can see the prompt on the screen but
>> cannot see in my serial console using minicom.
>> *is serial enabled by default for this image ? *
>> i also tried ENABLE_UART = "1" in local.conf but doesn't help.
>>
>> how to enable it ? and what the serial device name with respect to
>> raspberry pi
>>
>> thanks,
>>
>> --
>> Yahia Farghaly
>> Graduated from Faculty of Engineering - Electronics and Communications
>> Department at Cairo University.
>> Linkedin  - GitHub
>> 
>>
>>
>>
>> ‌
>>
>>
>>
>> --
>>
>> Ayoub Zaki
>> Embedded Systems Consultant
>>
>> Vaihinger Str. 2/1
>> 71634 Ludwigsburg
>>
>> e-mail: ayoub.z...@embexus.com
>> Tel: +49176-62901545 <+49%20176%2062901545>https://embexus.com
>>
>>
>> --
>> ___
>> yocto mailing list
>> yocto@yoctoproject.org
>> https://lists.yoctoproject.org/listinfo/yocto
>>
>>
>
>
> --
> Yahia Farghaly
> Graduated from Faculty of Engineering - Electronics and Communications
> Department at Cairo University.
> Linkedin  - GitHub
> 
>
> --
> ___
> 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] [meta-raspberrypi] enable serial communication pi 3

2017-09-13 Thread yahia farghaly
Thanks for replying but it gives me this error log


> *ERROR: rpi-hwup-image-1.0-r0 do_rootfs: Unable to install packages.
> Command
> '/yocto/poky/build/tmp/work/raspberrypi3-poky-linux-gnueabi/rpi-hwup-image/1.0-r0/recipe-sysroot-native/usr/bin/apt-get
>  install --force-yes --allow-unauthenticated run-postinsts
> packagegroup-core-boot kernel-modules rpi-config' returned 100:*
> *Reading package lists...*
> *Building dependency tree...*
> *Reading state information...*
> *Package rpi-config is not available, but is referred to by another
> package.*
> *This may mean that the package is missing, has been obsoleted, or**is
> only available from another source*
> *E: Package 'rpi-config' has no installation candidate*
>
> *ERROR: rpi-hwup-image-1.0-r0 do_rootfs: Function failed: do_rootfs*
> *ERROR: Logfile of failure stored in:
> /yocto/poky/build/tmp/work/raspberrypi3-poky-linux-gnueabi/rpi-hwup-image/1.0-r0/temp/log.do_rootfs.2252**ERROR:
> Task
> (/yocto/poky/meta-raspberrypi/recipes-core/images/rpi-hwup-image.bb:do_rootfs)
> failed with exit code '1'*


All what i did is  IMAGE_INSTALL_append = "rpi-config" , the recipe file is
not exist in the meta-raspberry

‌

On 13 September 2017 at 09:27, Ayoub Zaki  wrote:

> I ran into the same problem:
>
> ENABLE_UART = "1" is not enough you should also add INSTALL_append= "
> rpi-config" to your local.conf and Serial port will be enabled.
>
> On 12.09.2017 14:09, yahia farghaly wrote:
>
> I have bitbaked rpi-hwup-image for raspberry pi 3 on sd card and connected
> the serial ports to *usb to ttl device* . i have set the minicom to
> port: /dev/ttyUSB0
> baud rate: 115200
> the image is booting fine and i can see the prompt on the screen but
> cannot see in my serial console using minicom.
> *is serial enabled by default for this image ? *
> i also tried ENABLE_UART = "1" in local.conf but doesn't help.
>
> how to enable it ? and what the serial device name with respect to
> raspberry pi
>
> thanks,
>
> --
> Yahia Farghaly
> Graduated from Faculty of Engineering - Electronics and Communications
> Department at Cairo University.
> Linkedin  - GitHub
> 
>
>
>
> ‌
>
>
>
> --
>
> Ayoub Zaki
> Embedded Systems Consultant
>
> Vaihinger Str. 2/1
> 71634 Ludwigsburg
>
> e-mail: ayoub.z...@embexus.com
> Tel: +49176-62901545https://embexus.com
>
>
> --
> ___
> yocto mailing list
> yocto@yoctoproject.org
> https://lists.yoctoproject.org/listinfo/yocto
>
>


-- 
Yahia Farghaly
Graduated from Faculty of Engineering - Electronics and Communications
Department at Cairo University.
Linkedin  - GitHub

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


Re: [yocto] [meta-raspberrypi] enable serial communication pi 3

2017-09-13 Thread Ayoub Zaki

I ran into the same problem:

ENABLE_UART = "1" is not enough you should also add INSTALL_append= " 
rpi-config" to your local.conf and Serial port will be enabled.



On 12.09.2017 14:09, yahia farghaly wrote:
I have bitbaked rpi-hwup-image for raspberry pi 3 on sd card and 
connected the serial ports to /usb to ttl device/ . i have set the 
minicom to

port: /dev/ttyUSB0
baud rate: 115200
the image is booting fine and i can see the prompt on the screen but 
cannot see in my serial console using minicom.

*is serial enabled by default for this image ? *
i also tried ENABLE_UART = "1" in local.conf but doesn't help.

how to enable it ? and what the serial device name with respect to 
raspberry pi


thanks,

--
Yahia Farghaly
Graduated from Faculty of Engineering - Electronics and Communications 
Department at Cairo University.
Linkedin  - GitHub 





‌




--

Ayoub Zaki
Embedded Systems Consultant

Vaihinger Str. 2/1
71634 Ludwigsburg

e-mail: ayoub.z...@embexus.com
Tel: +49176-62901545
https://embexus.com

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


Re: [yocto] [meta-raspberrypi] enable serial communication pi 3

2017-09-12 Thread yahia farghaly
:(



‌

On 12 September 2017 at 14:09, yahia farghaly 
wrote:

> I have bitbaked rpi-hwup-image for raspberry pi 3 on sd card and connected
> the serial ports to *usb to ttl device* . i have set the minicom to
> port: /dev/ttyUSB0
> baud rate: 115200
> the image is booting fine and i can see the prompt on the screen but
> cannot see in my serial console using minicom.
> *is serial enabled by default for this image ? *
> i also tried ENABLE_UART = "1" in local.conf but doesn't help.
>
> how to enable it ? and what the serial device name with respect to
> raspberry pi
>
> thanks,
>
> --
> Yahia Farghaly
> Graduated from Faculty of Engineering - Electronics and Communications
> Department at Cairo University.
> Linkedin  - GitHub
> 
>
>
>
> ‌
>



-- 
Yahia Farghaly
Graduated from Faculty of Engineering - Electronics and Communications
Department at Cairo University.
Linkedin  - GitHub

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


[yocto] [meta-raspberrypi] enable serial communication pi 3

2017-09-12 Thread yahia farghaly
I have bitbaked rpi-hwup-image for raspberry pi 3 on sd card and connected
the serial ports to *usb to ttl device* . i have set the minicom to
port: /dev/ttyUSB0
baud rate: 115200
the image is booting fine and i can see the prompt on the screen but cannot
see in my serial console using minicom.
*is serial enabled by default for this image ? *
i also tried ENABLE_UART = "1" in local.conf but doesn't help.

how to enable it ? and what the serial device name with respect to
raspberry pi

thanks,

-- 
Yahia Farghaly
Graduated from Faculty of Engineering - Electronics and Communications
Department at Cairo University.
Linkedin  - GitHub




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