Re: [yocto] [Meta-Qt5] "Unknown Module: declarative" Error While Creating Toolchain

2019-07-14 Thread Khem Raj
On Mon, Jul 8, 2019 at 10:59 PM Onur Eser  wrote:
>
> Hello All,
>
> I have talked to my BSP provider and they have solved the conflict files 
> issue with an update. Now I am able to create and boot a Yocto Image with 
> Meta-Qt5 recipes and 'dev_pkgs' in it. But still cannot create a toolchain. 
> Nor with I guess it is trying to compile something before qtdeclarative, but 
> these 'something' depends on qtdeclarative.
>
> My image is core image is Weston. I added the line 'inherit populate_sdk_qt5' 
> to my core-image-weston.bb file. And tried both commands 'bitbake 
> meta-toolchain-qt5' and 'bitbake -c populate_sdk core-image-weston'. The 
> result is the same.
>
> I cut just the error part of my output:
>
> | cd qdeclarativefolderlistmodel/ && ( test -e Makefile || 
> /home/closx/poky/build/tmp/work/cortexa9hf-neon-poky-linux-gnueabi/qtquick1/5.10.1+gitAUTOINC+b2476dcd53-r0/recipe-sysroot-native/usr/bin/qt5/qmake
>  -o Makefile 
> /home/closx/poky/build/tmp/work/cortexa9hf-neon-poky-linux-gnueabi/qtquick1/5.10.1+gitAUTOINC+b2476dcd53-r0/git/tests/auto/declarative/qdeclarativefolderlistmodel/qdeclarativefolderlistmodel.pro
>  ) && make -f Makefile
> | Project ERROR: Unknown module(s) in QT: declarative widgets
> | Makefile:88: recipe for target 'sub-qdeclarativecomponent-make_first' failed
> | make[2]: *** [sub-qdeclarativecomponent-make_first] Error 3
> | make[2]: *** Waiting for unfinished jobs
> | Project ERROR: Unknown module(s) in QT: declarative
> | Project ERROR: Unknown module(s) in QT: declarative
> | Makefile:113: recipe for target 'sub-qdeclarativecontext-make_first' failed
> | make[2]: *** [sub-qdeclarativecontext-make_first] Error 3
> | Project ERROR: Unknown module(s) in QT: declarative
> | Makefile:138: recipe for target 'sub-qdeclarativeengine-make_first' failed
> | make[2]: *** [sub-qdeclarativeengine-make_first] Error 3
> | Makefile:63: recipe for target 'sub-parserstress-make_first' failed
> | make[2]: *** [sub-parserstress-make_first] Error 3
> | make[2]: Entering directory 
> '/home/closx/poky/build/tmp/work/cortexa9hf-neon-poky-linux-gnueabi/qtquick1/5.10.1+gitAUTOINC+b2476dcd53-r0/build/tests/manual/declarative'
> | make[2]: Nothing to be done for 'first'.
> | make[2]: Leaving directory 
> '/home/closx/poky/build/tmp/work/cortexa9hf-neon-poky-linux-gnueabi/qtquick1/5.10.1+gitAUTOINC+b2476dcd53-r0/build/tests/manual/declarative'
> | make[1]: Leaving directory 
> '/home/closx/poky/build/tmp/work/cortexa9hf-neon-poky-linux-gnueabi/qtquick1/5.10.1+gitAUTOINC+b2476dcd53-r0/build/tests/manual'
> | Project ERROR: Unknown module(s) in QT: declarative
> | Makefile:163: recipe for target 'sub-qdeclarativeerror-make_first' failed
> | make[2]: *** [sub-qdeclarativeerror-make_first] Error 3
> | Project ERROR: Unknown module(s) in QT: declarative
> | Makefile:188: recipe for target 
> 'sub-qdeclarativefolderlistmodel-make_first' failed
> | make[2]: *** [sub-qdeclarativefolderlistmodel-make_first] Error 3
> | make[2]: Leaving directory 
> '/home/closx/poky/build/tmp/work/cortexa9hf-neon-poky-linux-gnueabi/qtquick1/5.10.1+gitAUTOINC+b2476dcd53-r0/build/tests/auto/declarative'
> | Makefile:45: recipe for target 'sub-declarative-make_first' failed
> | make[1]: *** [sub-declarative-make_first] Error 2
> | make[1]: Leaving directory 
> '/home/closx/poky/build/tmp/work/cortexa9hf-neon-poky-linux-gnueabi/qtquick1/5.10.1+gitAUTOINC+b2476dcd53-r0/build/tests/auto'
> | Makefile:45: recipe for target 'sub-auto-make_first' failed
> | make: *** [sub-auto-make_first] Error 2
> | ERROR: oe_runmake failed
> | WARNING: exit code 1 from a shell command.
> | ERROR: Function failed: do_compile_ptest_base (log file is located at 
> /home/closx/poky/build/tmp/work/cortexa9hf-neon-poky-linux-gnueabi/qtquick1/5.10.1+gitAUTOINC+b2476dcd53-r0/temp/log.do_compile_ptest_base.29566)
> ERROR: Task 
> (/home/closx/poky/meta-qt5/recipes-qt/qt5/qtquick1_git.bb:do_compile_ptest_base)
>  failed with exit code '1'
>
> What do you guys think the reason of this issue may be? Any solution offers?
>
> My full output:
> https://paste.ee/p/PupWr#Epvqnw9FoasgQEBhIXqQ8hH7veMcRybX
>
> Another source issue again?
> Have a lovely day!

qtquick1 has been removed but I am guessting you are on an older
release. Can you try adding DEPENDS += "qtdeclarative"  to qtquick1
recipe and see if that helps ?
secondly you can stop build ptest for this package since thats where
its failing, that might be a workaround.

> Onur
> --
> ___
> 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] Can't boot to initramfs

2019-07-14 Thread Moritz Porst

Hey,

On 13.07.19 13:53, JH wrote:

Hi Moritz,

Thanks for your explanation, I know the copy from your script is for
an example, Did you get the zImage-initramfs? I'll double check to
follow your and Zoran documents.

Yes I have a working initramfs now. As I said the main problem for me
was that I did not understand that the yocto build system puts the
unbundled kernel into the rootfs. However I use x86 architecture.
For you there seems to be a problem because of the architecture of your
target. You will have to track the yocto recipes for initramfs back to
understand why there is this limitation to architecture (and eventually
adapt it). A shortcut could be to look at what the raspberry pi people
did as I guess someone should have solved this problem. (Since raspberry
pi is also ARM)


Thank you.

- jupiter


Good luck
Moritz

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


Re: [yocto] Where to add U-Boot argements bootargs and bootcmd?

2019-07-14 Thread Gabriele Zampieri
Hi,

as far as I know, there is no mechanism to add custom bootargs and/or
bootcmd to uboot via Yocto (correct me if I'm wrong). I usually patch the
upstream uboot to achieve this task.

Best regards,
Gabriele

Il giorno lun 8 lug 2019 alle ore 22:43 JH  ha
scritto:

> Hi,
>
> Which Yocto files and which statement can I add my own U-Boot bootargs
> and bootcmd?
>
> Thank you.
>
> - jupiter
> --
> ___
> yocto mailing list
> yocto@yoctoproject.org
> https://lists.yoctoproject.org/listinfo/yocto
>
-- 
___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto