Yocto Image Build for NXP i.MX8M


Aj Cit
 

Hello,

I'm trying to build a Yocto image for NXP i.MX8M (4 core 64-bit A53s). I am getting some error when I execute the bitmake command.

I'd appreciate if you could guide me with next steps. Any Guide or url will be helpful.

Thanks
Ajith


Josef Holzmayr <holzmayr@...>
 

On Thu, Nov 28, 2019 at 12:29:14PM +0530, Aj Cit wrote:
Hello,

I'm trying to build a Yocto image for NXP i.MX8M (4 core 64-bit A53s). I am
getting some error when I execute the bitmake command.
Please name the layers and their versions in use, the MACHINE setting
that you are using, the bitbake command you are issuing and the error
message. The latter please verbatim, not only the two most prominent
words. Then somebody can have a look.

Greetz


I'd appreciate if you could guide me with next steps. Any Guide or url will
be helpful.

Thanks
Ajith
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#47442): https://lists.yoctoproject.org/g/yocto/message/47442
Mute This Topic: https://lists.yoctoproject.org/mt/63894854/3618269
Group Owner: yocto+owner@...
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub [holzmayr@...]
-=-=-=-=-=-=-=-=-=-=-=-

--
———————————————
Josef Holzmayr
Software Developer Embedded Systems

Tel: +49 8444 9204-48
Fax: +49 8444 9204-50

R-S-I Elektrotechnik GmbH & Co. KG
Woelkestrasse 11
D-85301 Schweitenkirchen
www.rsi-elektrotechnik.de
———————————————
Amtsgericht Ingolstadt – GmbH: HRB 191328 – KG: HRA 170393
Geschäftsführer: Dr.-Ing. Michael Sorg, Dipl.-Ing. Franz Sorg
Ust-IdNr: DE 128592548

_____________________________________________________________
Amtsgericht Ingolstadt - GmbH: HRB 191328 - KG: HRA 170363
Geschäftsführer: Dr.-Ing. Michael Sorg, Dipl.-Ing. Franz Sorg
USt-IdNr.: DE 128592548


Aj Cit
 


I've followed the instruction from the yocto project:

till the bitbake command. However, I'm getting the following error:
ERROR:  OE-core's config sanity checker detected a potential misconfiguration.
    Either fix the cause of this error or at your own risk disable the checker (see sanity.conf).
    Following is the list of potential problems / advisories:

    Do not use Bitbake as root.  
 


On Thu, Nov 28, 2019 at 12:29 PM Aj Cit <aj.ci.01.239@...> wrote:
Hello,

I'm trying to build a Yocto image for NXP i.MX8M (4 core 64-bit A53s). I am getting some error when I execute the bitmake command.

I'd appreciate if you could guide me with next steps. Any Guide or url will be helpful.

Thanks
Ajith


Maciej Pijanowski
 


On 28.11.2019 09:32, Aj Cit wrote:

I've followed the instruction from the yocto project:

till the bitbake command. However, I'm getting the following error:
ERROR:  OE-core's config sanity checker detected a potential misconfiguration.
    Either fix the cause of this error or at your own risk disable the checker (see sanity.conf).
    Following is the list of potential problems / advisories:

    Do not use Bitbake as root. 
Isn't this warning message straightforward?
What is your build environment?
Are you using root in fact?
 

On Thu, Nov 28, 2019 at 12:29 PM Aj Cit <aj.ci.01.239@...> wrote:
Hello,

I'm trying to build a Yocto image for NXP i.MX8M (4 core 64-bit A53s). I am getting some error when I execute the bitmake command.

I'd appreciate if you could guide me with next steps. Any Guide or url will be helpful.

Thanks
Ajith

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#47444): https://lists.yoctoproject.org/g/yocto/message/47444
Mute This Topic: https://lists.yoctoproject.org/mt/63894854/3616795
Group Owner: yocto+owner@...
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub  [maciej.pijanowski@...]
-=-=-=-=-=-=-=-=-=-=-=-
-- 
Maciej Pijanowski
Embedded Systems Engineer
https://3mdeb.com | @3mdeb_com


Josef Holzmayr <holzmayr@...>
 

On Thu, Nov 28, 2019 at 02:02:29PM +0530, Aj Cit wrote:
I've followed the instruction from the yocto project:
https://www.yoctoproject.org/docs/3.0/brief-yoctoprojectqs/brief-yoctoprojectqs.html
This can not be exactly true, as this guide certainly does not include
anything related to the imx8. So you are either still building for qemu
(as it defaults to), or using seomthing additional that you're not
mentioning.



till the bitbake command. However, I'm getting the following error:
ERROR: OE-core's config sanity checker detected a potential
misconfiguration.
Either fix the cause of this error or at your own risk disable the
checker (see sanity.conf).
Following is the list of potential problems / advisories:

Do not use Bitbake as root.
Here is your answer: do not run botbake as the root user :)

In a nutshell, I recommend watching at least the first couple of videos
here:
https://www.youtube.com/playlist?list=PLD4M5FoHz-TxMfBFrDKfIS_GLY25Qsfyj

Greetz


On Thu, Nov 28, 2019 at 12:29 PM Aj Cit <aj.ci.01.239@...> wrote:

Hello,

I'm trying to build a Yocto image for NXP i.MX8M (4 core 64-bit A53s). I
am getting some error when I execute the bitmake command.

I'd appreciate if you could guide me with next steps. Any Guide or url
will be helpful.

Thanks
Ajith
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#47444): https://lists.yoctoproject.org/g/yocto/message/47444
Mute This Topic: https://lists.yoctoproject.org/mt/63894854/3618269
Group Owner: yocto+owner@...
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub [holzmayr@...]
-=-=-=-=-=-=-=-=-=-=-=-

--
———————————————
Josef Holzmayr
Software Developer Embedded Systems

Tel: +49 8444 9204-48
Fax: +49 8444 9204-50

R-S-I Elektrotechnik GmbH & Co. KG
Woelkestrasse 11
D-85301 Schweitenkirchen
www.rsi-elektrotechnik.de
———————————————
Amtsgericht Ingolstadt – GmbH: HRB 191328 – KG: HRA 170393
Geschäftsführer: Dr.-Ing. Michael Sorg, Dipl.-Ing. Franz Sorg
Ust-IdNr: DE 128592548

_____________________________________________________________
Amtsgericht Ingolstadt - GmbH: HRB 191328 - KG: HRA 170363
Geschäftsführer: Dr.-Ing. Michael Sorg, Dipl.-Ing. Franz Sorg
USt-IdNr.: DE 128592548


Laurent Gauthier
 

[ all: Let me share the replay I made in private to Ajit. ]

Hi Ajith,

Unfortunately because you do not provide much information about the
"some error" you are seeing there is not much that can be done right
away to support you.

Here is a useful article on how to ask technical questions.

* https://opensource.com/life/16/10/how-ask-technical-questions

And here is a relevant quote from it that should help you increase
your chances of getting an answer:

You should include a clear description of the issue you're facing or goal you're trying to achieve. Include as
much specific relevant information as you can:

* If the problem is reproducible, what are the exact steps to do so?
* If you're getting an error message or debugging information, make sure you include it verbatim.
* Have you made any recent changes?
* What Linux distribution and version are you using?
* Is the hardware you're using a factor?

The more relevant information you include, the more likely you'll receive a solution that actually works.

You should also include any research you've done and steps you've already taken
to try to solve the issue. This not only prevents receiving a solution you've already
tried, but shows that you've already put effort into solving the issue yourself.
Generic answer about your question based on the information you provided:

* NXP i.MX8M is supported in Yocto through NXP's own Yocto BSP (not
just base Yocto) and your question
is probably more likely to get an answer on NXP's community forums
at https://community.nxp.com/

Kind Regards, Laurent.
--
https://soccasys.com

On Thu, Nov 28, 2019 at 9:53 AM Josef Holzmayr
<holzmayr@...> wrote:

On Thu, Nov 28, 2019 at 02:02:29PM +0530, Aj Cit wrote:
I've followed the instruction from the yocto project:
https://www.yoctoproject.org/docs/3.0/brief-yoctoprojectqs/brief-yoctoprojectqs.html
This can not be exactly true, as this guide certainly does not include
anything related to the imx8. So you are either still building for qemu
(as it defaults to), or using seomthing additional that you're not
mentioning.



till the bitbake command. However, I'm getting the following error:
ERROR: OE-core's config sanity checker detected a potential
misconfiguration.
Either fix the cause of this error or at your own risk disable the
checker (see sanity.conf).
Following is the list of potential problems / advisories:

Do not use Bitbake as root.
Here is your answer: do not run botbake as the root user :)

In a nutshell, I recommend watching at least the first couple of videos
here:
https://www.youtube.com/playlist?list=PLD4M5FoHz-TxMfBFrDKfIS_GLY25Qsfyj

Greetz


On Thu, Nov 28, 2019 at 12:29 PM Aj Cit <aj.ci.01.239@...> wrote:

Hello,

I'm trying to build a Yocto image for NXP i.MX8M (4 core 64-bit A53s). I
am getting some error when I execute the bitmake command.

I'd appreciate if you could guide me with next steps. Any Guide or url
will be helpful.

Thanks
Ajith
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#47444): https://lists.yoctoproject.org/g/yocto/message/47444
Mute This Topic: https://lists.yoctoproject.org/mt/63894854/3618269
Group Owner: yocto+owner@...
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub [holzmayr@...]
-=-=-=-=-=-=-=-=-=-=-=-

--
———————————————
Josef Holzmayr
Software Developer Embedded Systems

Tel: +49 8444 9204-48
Fax: +49 8444 9204-50

R-S-I Elektrotechnik GmbH & Co. KG
Woelkestrasse 11
D-85301 Schweitenkirchen
www.rsi-elektrotechnik.de
———————————————
Amtsgericht Ingolstadt – GmbH: HRB 191328 – KG: HRA 170393
Geschäftsführer: Dr.-Ing. Michael Sorg, Dipl.-Ing. Franz Sorg
Ust-IdNr: DE 128592548

_____________________________________________________________
Amtsgericht Ingolstadt - GmbH: HRB 191328 - KG: HRA 170363
Geschäftsführer: Dr.-Ing. Michael Sorg, Dipl.-Ing. Franz Sorg
USt-IdNr.: DE 128592548

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#47447): https://lists.yoctoproject.org/g/yocto/message/47447
Mute This Topic: https://lists.yoctoproject.org/mt/63894854/3618354
Group Owner: yocto+owner@...
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub [laurent.gauthier@...]
-=-=-=-=-=-=-=-=-=-=-=-


--
Laurent Gauthier
Phone: +33 630 483 429
http://soccasys.com


Aj Cit
 


Dear Josef,

I've managed to run build command to generate OS image for the target, which is core-image-sato by executing the following command:

     $ bitbake core-image-sato
Can I know how to proceed further?

I'm getting the following response from the Ubuntu 18.04.1 LTS

Loading cache: 100% |#########################################################################################################| Time: 0:00:00
Loaded 1264 entries from dependency cache.
NOTE: Resolving any missing task queue dependencies

Build Configuration:
BB_VERSION           = "1.40.0"
BUILD_SYS            = "x86_64-linux"
NATIVELSBSTRING      = "universal"
TARGET_SYS           = "x86_64-poky-linux"
MACHINE              = "qemux86-64"
DISTRO               = "poky"
DISTRO_VERSION       = "2.6.2"
TUNE_FEATURES        = "m64 core2"
TARGET_FPU           = ""
meta
meta-poky
meta-yocto-bsp       = "HEAD:e7f0177ef3b6e06b8bc1722fca0241fef08a1530"

Initialising tasks: 100% |#########################################################################################################| Time: 0:00:02
Checking sstate mirror object availability: 100% |######################################################################################| Time: 0:05:55
Sstate summary: Wanted 1402 Found 329 Missed 2146 Current 708 (23% match, 49% complete)
NOTE: Executing SetScene Tasks
NOTE: Executing RunQueue Tasks
WARNING: sudo-1.8.23-r0 do_fetch: Failed to fetch URL http://ftp.sudo.ws/sudo/dist/sudo-1.8.23.tar.gz, attempting MIRRORS if available
NOTE: Tasks Summary: Attempted 5774 tasks of which 2941 didn't need to be rerun and all succeeded.

Summary: There was 1 WARNING message shown.
adminuser@verathon:~/poky/build$ ls
bitbake-cookerdaemon.log  cache  conf  downloads  sstate-cache  tmp
adminuser@verathon:~/poky/build$ runqemu qemux86
runqemu - INFO - Running MACHINE=qemux86 bitbake -e...
runqemu - ERROR - /home/adminuser/poky/build/tmp/deploy/images/qemux86 not a directory valid DEPLOY_DIR_IMAGE
ls: cannot access '/home/adminuser/poky/build/tmp/deploy/images/qemux86/*.qemuboot.conf': No such file or directory
runqemu - ERROR - Command 'ls -t /home/adminuser/poky/build/tmp/deploy/images/qemux86/*.qemuboot.conf' returned non-zero exit status 2.
runqemu - INFO - Cleaning up
adminuser@verathon:~/poky/build$


Thanks,

Ajith

On Thu, Nov 28, 2019 at 2:34 PM Josef Holzmayr <holzmayr@...> wrote:
On Thu, Nov 28, 2019 at 02:29:08PM +0530, Aj Cit wrote:
> Hi Josef,
>
> Is there specific steps to be followed to build an image for iMX8M?

You need at least a board support (BSP) layer. As I have no clue about
your board, I can only guess that it will probably something freescale
related, mabye https://git.yoctoproject.org/cgit.cgi/meta-freescale/

But first and absolutely foremost:
1) watch the introductory videos
2) consult the documentation of your board vendor.

Greetz

>
> Tnx
> Ajith
>
> On Thu, Nov 28, 2019 at 2:23 PM Josef Holzmayr <
> holzmayr@...> wrote:
>
> > On Thu, Nov 28, 2019 at 02:02:29PM +0530, Aj Cit wrote:
> > > I've followed the instruction from the yocto project:
> > >
> > https://www.yoctoproject.org/docs/3.0/brief-yoctoprojectqs/brief-yoctoprojectqs.html
> >
> > This can not be exactly true, as this guide certainly does not include
> > anything related to the imx8. So you are either still building for qemu
> > (as it defaults to), or using seomthing additional that you're not
> > mentioning.
> >
> > >
> > >
> > > till the bitbake command. However, I'm getting the following error:
> > > ERROR:  OE-core's config sanity checker detected a potential
> > > misconfiguration.
> > >     Either fix the cause of this error or at your own risk disable the
> > > checker (see sanity.conf).
> > >     Following is the list of potential problems / advisories:
> > >
> > >     Do not use Bitbake as root.
> >
> > Here is your answer: do not run botbake as the root user :)
> >
> > In a nutshell, I recommend watching at least the first couple of videos
> > here:
> > https://www.youtube.com/playlist?list=PLD4M5FoHz-TxMfBFrDKfIS_GLY25Qsfyj
> >
> > Greetz
> > >
> > >
> > > On Thu, Nov 28, 2019 at 12:29 PM Aj Cit <aj.ci.01.239@...> wrote:
> > >
> > > > Hello,
> > > >
> > > > I'm trying to build a Yocto image for NXP i.MX8M (4 core 64-bit A53s).
> > I
> > > > am getting some error when I execute the bitmake command.
> > > >
> > > > I'd appreciate if you could guide me with next steps. Any Guide or url
> > > > will be helpful.
> > > >
> > > > Thanks
> > > > Ajith
> > > >
> >
> > > -=-=-=-=-=-=-=-=-=-=-=-
> > > Links: You receive all messages sent to this group.
> > >
> > > View/Reply Online (#47444):
> > https://lists.yoctoproject.org/g/yocto/message/47444
> > > Mute This Topic: https://lists.yoctoproject.org/mt/63894854/3618269
> > > Group Owner: yocto+owner@...
> > > Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub  [
> > holzmayr@...]
> > > -=-=-=-=-=-=-=-=-=-=-=-
> >
> >
> > --
> > ———————————————
> > Josef Holzmayr
> > Software Developer Embedded Systems
> >
> > Tel: +49 8444 9204-48
> > Fax: +49 8444 9204-50
> >
> > R-S-I Elektrotechnik GmbH & Co. KG
> > Woelkestrasse 11
> > D-85301 Schweitenkirchen
> > www.rsi-elektrotechnik.de
> > ———————————————
> > Amtsgericht Ingolstadt – GmbH: HRB 191328 – KG: HRA 170393
> > Geschäftsführer: Dr.-Ing. Michael Sorg, Dipl.-Ing. Franz Sorg
> > Ust-IdNr: DE 128592548
> >
> > _____________________________________________________________
> > Amtsgericht Ingolstadt - GmbH: HRB 191328 - KG: HRA 170363
> > Geschäftsführer: Dr.-Ing. Michael Sorg, Dipl.-Ing. Franz Sorg
> > USt-IdNr.: DE 128592548
> >
> >

--
———————————————
Josef Holzmayr
Software Developer Embedded Systems

Tel: +49 8444 9204-48
Fax: +49 8444 9204-50

R-S-I Elektrotechnik GmbH & Co. KG
Woelkestrasse 11
D-85301 Schweitenkirchen
www.rsi-elektrotechnik.de
———————————————
Amtsgericht Ingolstadt – GmbH: HRB 191328 – KG: HRA 170393
Geschäftsführer: Dr.-Ing. Michael Sorg, Dipl.-Ing. Franz Sorg
Ust-IdNr: DE 128592548


Aj Cit
 

Hello,

I'm getting the following error when I have tried to simulate the image on QEMU

adminuser@verathon:~/poky/build$ runqemu qemux86
runqemu - INFO - Running MACHINE=qemux86 bitbake -e...
runqemu - ERROR - /home/adminuser/poky/build/tmp/deploy/images/qemux86 not a directory valid DEPLOY_DIR_IMAGE
ls: cannot access '/home/adminuser/poky/build/tmp/deploy/images/qemux86/*.qemuboot.conf': No such file or directory
runqemu - ERROR - Command 'ls -t /home/adminuser/poky/build/tmp/deploy/images/qemux86/*.qemuboot.conf' returned non-zero exit status 2.
runqemu - INFO - Cleaning up


any help would be appreciated.

tnQ

On Thu, Nov 28, 2019 at 5:33 PM Aj Cit via Lists.Yoctoproject.Org <aj.ci.01.239=gmail.com@...> wrote:

Dear Josef,

I've managed to run build command to generate OS image for the target, which is core-image-sato by executing the following command:

     $ bitbake core-image-sato
Can I know how to proceed further?

I'm getting the following response from the Ubuntu 18.04.1 LTS

Loading cache: 100% |#########################################################################################################| Time: 0:00:00
Loaded 1264 entries from dependency cache.
NOTE: Resolving any missing task queue dependencies

Build Configuration:
BB_VERSION           = "1.40.0"
BUILD_SYS            = "x86_64-linux"
NATIVELSBSTRING      = "universal"
TARGET_SYS           = "x86_64-poky-linux"
MACHINE              = "qemux86-64"
DISTRO               = "poky"
DISTRO_VERSION       = "2.6.2"
TUNE_FEATURES        = "m64 core2"
TARGET_FPU           = ""
meta
meta-poky
meta-yocto-bsp       = "HEAD:e7f0177ef3b6e06b8bc1722fca0241fef08a1530"

Initialising tasks: 100% |#########################################################################################################| Time: 0:00:02
Checking sstate mirror object availability: 100% |######################################################################################| Time: 0:05:55
Sstate summary: Wanted 1402 Found 329 Missed 2146 Current 708 (23% match, 49% complete)
NOTE: Executing SetScene Tasks
NOTE: Executing RunQueue Tasks
WARNING: sudo-1.8.23-r0 do_fetch: Failed to fetch URL http://ftp.sudo.ws/sudo/dist/sudo-1.8.23.tar.gz, attempting MIRRORS if available
NOTE: Tasks Summary: Attempted 5774 tasks of which 2941 didn't need to be rerun and all succeeded.

Summary: There was 1 WARNING message shown.
adminuser@verathon:~/poky/build$ ls
bitbake-cookerdaemon.log  cache  conf  downloads  sstate-cache  tmp
adminuser@verathon:~/poky/build$ runqemu qemux86
runqemu - INFO - Running MACHINE=qemux86 bitbake -e...
runqemu - ERROR - /home/adminuser/poky/build/tmp/deploy/images/qemux86 not a directory valid DEPLOY_DIR_IMAGE
ls: cannot access '/home/adminuser/poky/build/tmp/deploy/images/qemux86/*.qemuboot.conf': No such file or directory
runqemu - ERROR - Command 'ls -t /home/adminuser/poky/build/tmp/deploy/images/qemux86/*.qemuboot.conf' returned non-zero exit status 2.
runqemu - INFO - Cleaning up
adminuser@verathon:~/poky/build$


Thanks,

Ajith

On Thu, Nov 28, 2019 at 2:34 PM Josef Holzmayr <holzmayr@...> wrote:
On Thu, Nov 28, 2019 at 02:29:08PM +0530, Aj Cit wrote:
> Hi Josef,
>
> Is there specific steps to be followed to build an image for iMX8M?

You need at least a board support (BSP) layer. As I have no clue about
your board, I can only guess that it will probably something freescale
related, mabye https://git.yoctoproject.org/cgit.cgi/meta-freescale/

But first and absolutely foremost:
1) watch the introductory videos
2) consult the documentation of your board vendor.

Greetz

>
> Tnx
> Ajith
>
> On Thu, Nov 28, 2019 at 2:23 PM Josef Holzmayr <
> holzmayr@...> wrote:
>
> > On Thu, Nov 28, 2019 at 02:02:29PM +0530, Aj Cit wrote:
> > > I've followed the instruction from the yocto project:
> > >
> > https://www.yoctoproject.org/docs/3.0/brief-yoctoprojectqs/brief-yoctoprojectqs.html
> >
> > This can not be exactly true, as this guide certainly does not include
> > anything related to the imx8. So you are either still building for qemu
> > (as it defaults to), or using seomthing additional that you're not
> > mentioning.
> >
> > >
> > >
> > > till the bitbake command. However, I'm getting the following error:
> > > ERROR:  OE-core's config sanity checker detected a potential
> > > misconfiguration.
> > >     Either fix the cause of this error or at your own risk disable the
> > > checker (see sanity.conf).
> > >     Following is the list of potential problems / advisories:
> > >
> > >     Do not use Bitbake as root.
> >
> > Here is your answer: do not run botbake as the root user :)
> >
> > In a nutshell, I recommend watching at least the first couple of videos
> > here:
> > https://www.youtube.com/playlist?list=PLD4M5FoHz-TxMfBFrDKfIS_GLY25Qsfyj
> >
> > Greetz
> > >
> > >
> > > On Thu, Nov 28, 2019 at 12:29 PM Aj Cit <aj.ci.01.239@...> wrote:
> > >
> > > > Hello,
> > > >
> > > > I'm trying to build a Yocto image for NXP i.MX8M (4 core 64-bit A53s).
> > I
> > > > am getting some error when I execute the bitmake command.
> > > >
> > > > I'd appreciate if you could guide me with next steps. Any Guide or url
> > > > will be helpful.
> > > >
> > > > Thanks
> > > > Ajith
> > > >
> >
> > > -=-=-=-=-=-=-=-=-=-=-=-
> > > Links: You receive all messages sent to this group.
> > >
> > > View/Reply Online (#47444):
> > https://lists.yoctoproject.org/g/yocto/message/47444
> > > Mute This Topic: https://lists.yoctoproject.org/mt/63894854/3618269
> > > Group Owner: yocto+owner@...
> > > Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub  [
> > holzmayr@...]
> > > -=-=-=-=-=-=-=-=-=-=-=-
> >
> >
> > --
> > ———————————————
> > Josef Holzmayr
> > Software Developer Embedded Systems
> >
> > Tel: +49 8444 9204-48
> > Fax: +49 8444 9204-50
> >
> > R-S-I Elektrotechnik GmbH & Co. KG
> > Woelkestrasse 11
> > D-85301 Schweitenkirchen
> > www.rsi-elektrotechnik.de
> > ———————————————
> > Amtsgericht Ingolstadt – GmbH: HRB 191328 – KG: HRA 170393
> > Geschäftsführer: Dr.-Ing. Michael Sorg, Dipl.-Ing. Franz Sorg
> > Ust-IdNr: DE 128592548
> >
> > _____________________________________________________________
> > Amtsgericht Ingolstadt - GmbH: HRB 191328 - KG: HRA 170363
> > Geschäftsführer: Dr.-Ing. Michael Sorg, Dipl.-Ing. Franz Sorg
> > USt-IdNr.: DE 128592548
> >
> >

--
———————————————
Josef Holzmayr
Software Developer Embedded Systems

Tel: +49 8444 9204-48
Fax: +49 8444 9204-50

R-S-I Elektrotechnik GmbH & Co. KG
Woelkestrasse 11
D-85301 Schweitenkirchen
www.rsi-elektrotechnik.de
———————————————
Amtsgericht Ingolstadt – GmbH: HRB 191328 – KG: HRA 170393
Geschäftsführer: Dr.-Ing. Michael Sorg, Dipl.-Ing. Franz Sorg
Ust-IdNr: DE 128592548

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#47455): https://lists.yoctoproject.org/g/yocto/message/47455
Mute This Topic: https://lists.yoctoproject.org/mt/63894854/3738872
Group Owner: yocto+owner@...
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub  [aj.ci.01.239@...]
-=-=-=-=-=-=-=-=-=-=-=-


Randy MacLeod
 

On 11/28/19 7:02 AM, Aj Cit wrote:
Dear Josef,
I've managed to run build command to generate OS image for the target, which is |core-image-sato| by executing the following command:
$ bitbake core-image-sato
Can I know how to proceed further?
I'm getting the following response from the Ubuntu 18.04.1 LTS
Loading cache: 100% |#########################################################################################################| Time: 0:00:00
Loaded 1264 entries from dependency cache.
NOTE: Resolving any missing task queue dependencies
Build Configuration:
BB_VERSION           = "1.40.0"
BUILD_SYS            = "x86_64-linux"
NATIVELSBSTRING      = "universal"
TARGET_SYS           = "x86_64-poky-linux"
MACHINE              = "qemux86-64"
DISTRO               = "poky"
DISTRO_VERSION       = "2.6.2"
TUNE_FEATURES        = "m64 core2"
TARGET_FPU           = ""
meta
meta-poky
meta-yocto-bsp       = "HEAD:e7f0177ef3b6e06b8bc1722fca0241fef08a1530"
Initialising tasks: 100% |#########################################################################################################| Time: 0:00:02
Checking sstate mirror object availability: 100% |######################################################################################| Time: 0:05:55
Sstate summary: Wanted 1402 Found 329 Missed 2146 Current 708 (23% match, 49% complete)
NOTE: Executing SetScene Tasks
NOTE: Executing RunQueue Tasks
WARNING: sudo-1.8.23-r0 do_fetch: Failed to fetch URL http://ftp.sudo.ws/sudo/dist/sudo-1.8.23.tar.gz, attempting MIRRORS if available
NOTE: Tasks Summary: Attempted 5774 tasks of which 2941 didn't need to be rerun and all succeeded.
Summary: There was 1 WARNING message shown.
adminuser@verathon:~/poky/build$ ls
bitbake-cookerdaemon.log  cache  conf  downloads  sstate-cache  tmp
adminuser@verathon:~/poky/build$ runqemu qemux86
runqemu - INFO - Running MACHINE=qemux86 bitbake -e...
runqemu - ERROR - /home/adminuser/poky/build/tmp/deploy/images/qemux86 not a directory valid DEPLOY_DIR_IMAGE
ls: cannot access '/home/adminuser/poky/build/tmp/deploy/images/qemux86/*.qemuboot.conf': No such file or directory
runqemu - ERROR - Command 'ls -t /home/adminuser/poky/build/tmp/deploy/images/qemux86/*.qemuboot.conf' returned non-zero exit status 2.
runqemu - INFO - Cleaning up
adminuser@verathon:~/poky/build$
Run:
$ runqemu qemux86-64

since your machine is:
MACHINE = "qemux86-64"
above.

I see that the 'quick start' guide says to use "qemux86"

https://www.yoctoproject.org/docs/2.0/yocto-project-qs/yocto-project-qs.html

Did you change the machine or is the documentation out of date?

../Randy


Thanks,
Ajith
On Thu, Nov 28, 2019 at 2:34 PM Josef Holzmayr <holzmayr@... <mailto:holzmayr@...>> wrote:
On Thu, Nov 28, 2019 at 02:29:08PM +0530, Aj Cit wrote:
> Hi Josef,
>
> Is there specific steps to be followed to build an image for iMX8M?
You need at least a board support (BSP) layer. As I have no clue about
your board, I can only guess that it will probably something freescale
related, mabye https://git.yoctoproject.org/cgit.cgi/meta-freescale/
But first and absolutely foremost:
1) watch the introductory videos
2) consult the documentation of your board vendor.
Greetz

>
> Tnx
> Ajith
>
> On Thu, Nov 28, 2019 at 2:23 PM Josef Holzmayr <
> holzmayr@...
<mailto:holzmayr@...>> wrote:
>
> > On Thu, Nov 28, 2019 at 02:02:29PM +0530, Aj Cit wrote:
> > > I've followed the instruction from the yocto project:
> > >
> >
https://www.yoctoproject.org/docs/3.0/brief-yoctoprojectqs/brief-yoctoprojectqs.html
> >
> > This can not be exactly true, as this guide certainly does not
include
> > anything related to the imx8. So you are either still building
for qemu
> > (as it defaults to), or using seomthing additional that you're not
> > mentioning.
> >
> > >
> > >
> > > till the bitbake command. However, I'm getting the following
error:
> > > ERROR:  OE-core's config sanity checker detected a potential
> > > misconfiguration.
> > >     Either fix the cause of this error or at your own risk
disable the
> > > checker (see sanity.conf).
> > >     Following is the list of potential problems / advisories:
> > >
> > >     Do not use Bitbake as root.
> >
> > Here is your answer: do not run botbake as the root user :)
> >
> > In a nutshell, I recommend watching at least the first couple
of videos
> > here:
> >
https://www.youtube.com/playlist?list=PLD4M5FoHz-TxMfBFrDKfIS_GLY25Qsfyj
> >
> > Greetz
> > >
> > >
> > > On Thu, Nov 28, 2019 at 12:29 PM Aj Cit
<aj.ci.01.239@... <mailto:aj.ci.01.239@...>> wrote:
> > >
> > > > Hello,
> > > >
> > > > I'm trying to build a Yocto image for NXP i.MX8M (4 core
64-bit A53s).
> > I
> > > > am getting some error when I execute the bitmake command.
> > > >
> > > > I'd appreciate if you could guide me with next steps. Any
Guide or url
> > > > will be helpful.
> > > >
> > > > Thanks
> > > > Ajith
> > > >
> >
> > > -=-=-=-=-=-=-=-=-=-=-=-
> > > Links: You receive all messages sent to this group.
> > >
> > > View/Reply Online (#47444):
> > https://lists.yoctoproject.org/g/yocto/message/47444
> > > Mute This Topic:
https://lists.yoctoproject.org/mt/63894854/3618269
> > > Group Owner: yocto+owner@...
<mailto:yocto%2Bowner@...>
> > > Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub  [
> > holzmayr@...
<mailto:holzmayr@...>]
> > > -=-=-=-=-=-=-=-=-=-=-=-
> >
> >
> > --
> > ———————————————
> > Josef Holzmayr
> > Software Developer Embedded Systems
> >
> > Tel: +49 8444 9204-48
> > Fax: +49 8444 9204-50
> >
> > R-S-I Elektrotechnik GmbH & Co. KG
> > Woelkestrasse 11
> > D-85301 Schweitenkirchen
> > www.rsi-elektrotechnik.de <http://www.rsi-elektrotechnik.de>
> > ———————————————
> > Amtsgericht Ingolstadt – GmbH: HRB 191328 – KG: HRA 170393
> > Geschäftsführer: Dr.-Ing. Michael Sorg, Dipl.-Ing. Franz Sorg
> > Ust-IdNr: DE 128592548
> >
> > _____________________________________________________________
> > Amtsgericht Ingolstadt - GmbH: HRB 191328 - KG: HRA 170363
> > Geschäftsführer: Dr.-Ing. Michael Sorg, Dipl.-Ing. Franz Sorg
> > USt-IdNr.: DE 128592548
> >
> >
--
———————————————
Josef Holzmayr
Software Developer Embedded Systems
Tel: +49 8444 9204-48
Fax: +49 8444 9204-50
R-S-I Elektrotechnik GmbH & Co. KG
Woelkestrasse 11
D-85301 Schweitenkirchen
www.rsi-elektrotechnik.de <http://www.rsi-elektrotechnik.de>
———————————————
Amtsgericht Ingolstadt – GmbH: HRB 191328 – KG: HRA 170393
Geschäftsführer: Dr.-Ing. Michael Sorg, Dipl.-Ing. Franz Sorg
Ust-IdNr: DE 128592548
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#47455): https://lists.yoctoproject.org/g/yocto/message/47455
Mute This Topic: https://lists.yoctoproject.org/mt/63894854/3616765
Group Owner: yocto+owner@...
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub [randy.macleod@...]
-=-=-=-=-=-=-=-=-=-=-=-

--
# Randy MacLeod
# Wind River Linux


Randy MacLeod
 

On 12/3/19 1:51 AM, Aj Cit wrote:

Dear Randy,

Could you please tell me the steps for running a "Hello world" app on x86 QEMU?

I've been following the guidelines as per 

tnx
Aj

Aj,

Please CC the yocto email list; I've added it back.

Googling "hello world yocto" found:
   http://variwiki.com/index.php?title=Yocto_Hello_World
and several other web pages and youtube videos.

You might also find the Wind River "A Sample Application Recipe File" documentaion useful:
   https://docs.windriver.com/bundle/Wind_River_Linux_Platform_Developers_Guide_LTS_19/page/mmo1403548803429.html
It's written for the WR product but there doesn't seem to be much that is specific to WR in this case.

I hope that helps.

../Randy




On Tue, Dec 3, 2019 at 7:38 AM Randy MacLeod <randy.macleod@...> wrote:
On 11/28/19 7:02 AM, Aj Cit wrote:
>
> Dear Josef,
>
> I've managed to run build command to generate OS image for the target,
> which is |core-image-sato| by executing the following command:
>
>       $ bitbake core-image-sato
>
> Can I know how to proceed further?
>
> I'm getting the following response from the Ubuntu 18.04.1 LTS
>
> Loading cache: 100%
> |#########################################################################################################|
> Time: 0:00:00
> Loaded 1264 entries from dependency cache.
> NOTE: Resolving any missing task queue dependencies
>
> Build Configuration:
> BB_VERSION           = "1.40.0"
> BUILD_SYS            = "x86_64-linux"
> NATIVELSBSTRING      = "universal"
> TARGET_SYS           = "x86_64-poky-linux"
> MACHINE              = "qemux86-64"
> DISTRO               = "poky"
> DISTRO_VERSION       = "2.6.2"
> TUNE_FEATURES        = "m64 core2"
> TARGET_FPU           = ""
> meta
> meta-poky
> meta-yocto-bsp       = "HEAD:e7f0177ef3b6e06b8bc1722fca0241fef08a1530"
>
> Initialising tasks: 100%
> |#########################################################################################################|
> Time: 0:00:02
> Checking sstate mirror object availability: 100%
> |######################################################################################|
> Time: 0:05:55
> Sstate summary: Wanted 1402 Found 329 Missed 2146 Current 708 (23%
> match, 49% complete)
> NOTE: Executing SetScene Tasks
> NOTE: Executing RunQueue Tasks
> WARNING: sudo-1.8.23-r0 do_fetch: Failed to fetch URL
> http://ftp.sudo.ws/sudo/dist/sudo-1.8.23.tar.gz, attempting MIRRORS if
> available
> NOTE: Tasks Summary: Attempted 5774 tasks of which 2941 didn't need to
> be rerun and all succeeded.
>
> Summary: There was 1 WARNING message shown.
> adminuser@verathon:~/poky/build$ ls
> bitbake-cookerdaemon.log  cache  conf  downloads  sstate-cache  tmp
> adminuser@verathon:~/poky/build$ runqemu qemux86
> runqemu - INFO - Running MACHINE=qemux86 bitbake -e...
> runqemu - ERROR - /home/adminuser/poky/build/tmp/deploy/images/qemux86
> not a directory valid DEPLOY_DIR_IMAGE
> ls: cannot access
> '/home/adminuser/poky/build/tmp/deploy/images/qemux86/*.qemuboot.conf':
> No such file or directory
> runqemu - ERROR - Command 'ls -t
> /home/adminuser/poky/build/tmp/deploy/images/qemux86/*.qemuboot.conf'
> returned non-zero exit status 2.
> runqemu - INFO - Cleaning up
> adminuser@verathon:~/poky/build$
>
>
Run:
$ runqemu qemux86-64

since your machine is:
 > MACHINE              = "qemux86-64"

above.

I see that the 'quick start' guide says to use "qemux86"

https://www.yoctoproject.org/docs/2.0/yocto-project-qs/yocto-project-qs.html

Did you change the machine or is the documentation out of date?

../Randy


> Thanks,
>
> Ajith
>
> On Thu, Nov 28, 2019 at 2:34 PM Josef Holzmayr
> <holzmayr@... <mailto:holzmayr@...>>
> wrote:
>
>     On Thu, Nov 28, 2019 at 02:29:08PM +0530, Aj Cit wrote:
>      > Hi Josef,
>      >
>      > Is there specific steps to be followed to build an image for iMX8M?
>
>     You need at least a board support (BSP) layer. As I have no clue about
>     your board, I can only guess that it will probably something freescale
>     related, mabye https://git.yoctoproject.org/cgit.cgi/meta-freescale/
>
>     But first and absolutely foremost:
>     1) watch the introductory videos
>     2) consult the documentation of your board vendor.
>
>     Greetz
>
>      >
>      > Tnx
>      > Ajith
>      >
>      > On Thu, Nov 28, 2019 at 2:23 PM Josef Holzmayr <
>      > holzmayr@...
>     <mailto:holzmayr@...>> wrote:
>      >
>      > > On Thu, Nov 28, 2019 at 02:02:29PM +0530, Aj Cit wrote:
>      > > > I've followed the instruction from the yocto project:
>      > > >
>      > >
>     https://www.yoctoproject.org/docs/3.0/brief-yoctoprojectqs/brief-yoctoprojectqs.html
>      > >
>      > > This can not be exactly true, as this guide certainly does not
>     include
>      > > anything related to the imx8. So you are either still building
>     for qemu
>      > > (as it defaults to), or using seomthing additional that you're not
>      > > mentioning.
>      > >
>      > > >
>      > > >
>      > > > till the bitbake command. However, I'm getting the following
>     error:
>      > > > ERROR:  OE-core's config sanity checker detected a potential
>      > > > misconfiguration.
>      > > >     Either fix the cause of this error or at your own risk
>     disable the
>      > > > checker (see sanity.conf).
>      > > >     Following is the list of potential problems / advisories:
>      > > >
>      > > >     Do not use Bitbake as root.
>      > >
>      > > Here is your answer: do not run botbake as the root user :)
>      > >
>      > > In a nutshell, I recommend watching at least the first couple
>     of videos
>      > > here:
>      > >
>     https://www.youtube.com/playlist?list=PLD4M5FoHz-TxMfBFrDKfIS_GLY25Qsfyj
>      > >
>      > > Greetz
>      > > >
>      > > >
>      > > > On Thu, Nov 28, 2019 at 12:29 PM Aj Cit
>     <aj.ci.01.239@... <mailto:aj.ci.01.239@...>> wrote:
>      > > >
>      > > > > Hello,
>      > > > >
>      > > > > I'm trying to build a Yocto image for NXP i.MX8M (4 core
>     64-bit A53s).
>      > > I
>      > > > > am getting some error when I execute the bitmake command.
>      > > > >
>      > > > > I'd appreciate if you could guide me with next steps. Any
>     Guide or url
>      > > > > will be helpful.
>      > > > >
>      > > > > Thanks
>      > > > > Ajith
>      > > > >
>      > >
>      > > > -=-=-=-=-=-=-=-=-=-=-=-
>      > > > Links: You receive all messages sent to this group.
>      > > >
>      > > > View/Reply Online (#47444):
>      > > https://lists.yoctoproject.org/g/yocto/message/47444
>      > > > Mute This Topic:
>     https://lists.yoctoproject.org/mt/63894854/3618269
>      > > > Group Owner: yocto+owner@...
>     <mailto:yocto%2Bowner@...>
>      > > > Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub  [
>      > > holzmayr@...
>     <mailto:holzmayr@...>]
>      > > > -=-=-=-=-=-=-=-=-=-=-=-
>      > >
>      > >
>      > > --
>      > > ———————————————
>      > > Josef Holzmayr
>      > > Software Developer Embedded Systems
>      > >
>      > > Tel: +49 8444 9204-48
>      > > Fax: +49 8444 9204-50
>      > >
>      > > R-S-I Elektrotechnik GmbH & Co. KG
>      > > Woelkestrasse 11
>      > > D-85301 Schweitenkirchen
>      > > www.rsi-elektrotechnik.de <http://www.rsi-elektrotechnik.de>
>      > > ———————————————
>      > > Amtsgericht Ingolstadt – GmbH: HRB 191328 – KG: HRA 170393
>      > > Geschäftsführer: Dr.-Ing. Michael Sorg, Dipl.-Ing. Franz Sorg
>      > > Ust-IdNr: DE 128592548
>      > >
>      > > _____________________________________________________________
>      > > Amtsgericht Ingolstadt - GmbH: HRB 191328 - KG: HRA 170363
>      > > Geschäftsführer: Dr.-Ing. Michael Sorg, Dipl.-Ing. Franz Sorg
>      > > USt-IdNr.: DE 128592548
>      > >
>      > >
>
>     --
>     ———————————————
>     Josef Holzmayr
>     Software Developer Embedded Systems
>
>     Tel: +49 8444 9204-48
>     Fax: +49 8444 9204-50
>
>     R-S-I Elektrotechnik GmbH & Co. KG
>     Woelkestrasse 11
>     D-85301 Schweitenkirchen
>     www.rsi-elektrotechnik.de <http://www.rsi-elektrotechnik.de>
>     ———————————————
>     Amtsgericht Ingolstadt – GmbH: HRB 191328 – KG: HRA 170393
>     Geschäftsführer: Dr.-Ing. Michael Sorg, Dipl.-Ing. Franz Sorg
>     Ust-IdNr: DE 128592548
>
>
> -=-=-=-=-=-=-=-=-=-=-=-
> Links: You receive all messages sent to this group.
>
> View/Reply Online (#47455): https://lists.yoctoproject.org/g/yocto/message/47455
> Mute This Topic: https://lists.yoctoproject.org/mt/63894854/3616765
> Group Owner: yocto+owner@...
> Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub  [randy.macleod@...]
> -=-=-=-=-=-=-=-=-=-=-=-
>


--
# Randy MacLeod
# Wind River Linux


-- 
# Randy MacLeod
# Wind River Linux