Re: Yocto Image Build for NXP i.MX8M


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

Join yocto@lists.yoctoproject.org to automatically receive all group messages.