All of lore.kernel.org
 help / color / mirror / Atom feed
* pyro branch mfgtool kernel and initramfs build fails
@ 2018-06-26 18:49 Sergeant Peppercorn
  2018-06-26 19:19 ` Marc Ferland
  0 siblings, 1 reply; 4+ messages in thread
From: Sergeant Peppercorn @ 2018-06-26 18:49 UTC (permalink / raw)
  To: meta-freescale

[-- Attachment #1: Type: text/plain, Size: 1689 bytes --]

 I am trying to build the mfgtool initramfs and mfgtool kernel from the
pyro branch.

I created my repo by doing this:

$ mkdir fsl-community-bsp-pyro  && cd fsl-community-bsp-pyro/
$  repo init -u https://github.com/Freescale/fsl-community-bsp-platform -b
pyro && repo sync && repo start pyro --all
$  MACHINE=imx6ulevk DISTRO=fslc-framebuffer SDKMACHINE=x86_64 source
setup-environment build-evk

Then, because I need a bit of customization, before I do "bitbake
fsl-image-mfgtool-initramfs", I do:
$ bitbake -c menuconfig mfgtool-linux-imx
... which fails:
NOTE: Your conf/bblayers.conf has been automatically updated.
Parsing recipes: 100%
|#################################################################################################################################|
Time: 0:09:11
Parsing of 1709 .bb files complete (0 cached, 1709 parsed). 2330 targets,
465 skipped, 0 masked, 0 errors.
NOTE: Resolving any missing task queue dependencies
ERROR: Nothing PROVIDES 'virtual/mfgtool-arm-fslc-linux-gnueabi-binutils'.
Close matches:
  virtual/arm-fslc-linux-gnueabi-binutils
  virtual/arm-fslc-linux-gnueabi-libc-initial
  virtual/arm-fslc-linux-gnueabi-gcc-initial
ERROR: Required build target 'mfgtool-linux-imx' has no buildable providers.
Missing or unbuildable dependency chain was: ['mfgtool-linux-imx',
'virtual/mfgtool-arm-fslc-linux-gnueabi-binutils']

Summary: There were 2 ERROR messages shown, returning a non-zero exit code.
$

Is this supposed to work? How do I fix this? What is this strange
dependency that is not present? morty seems to work, as well as the
official fsl-arm-yocto-bsp imx-4.1.15_1.0.0-ga branch from NXP.

TIA

[-- Attachment #2: Type: text/html, Size: 2011 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: pyro branch mfgtool kernel and initramfs build fails
  2018-06-26 18:49 pyro branch mfgtool kernel and initramfs build fails Sergeant Peppercorn
@ 2018-06-26 19:19 ` Marc Ferland
  2018-06-26 21:41   ` Sergeant Peppercorn
  0 siblings, 1 reply; 4+ messages in thread
From: Marc Ferland @ 2018-06-26 19:19 UTC (permalink / raw)
  To: Sergeant Peppercorn; +Cc: meta-freescale Mailing List

On Tue, Jun 26, 2018 at 2:49 PM, Sergeant Peppercorn
<speppercorn109@gmail.com> wrote:
> I am trying to build the mfgtool initramfs and mfgtool kernel from the pyro
> branch.
>
> I created my repo by doing this:
>
> $ mkdir fsl-community-bsp-pyro  && cd fsl-community-bsp-pyro/
> $  repo init -u https://github.com/Freescale/fsl-community-bsp-platform -b
> pyro && repo sync && repo start pyro --all
> $  MACHINE=imx6ulevk DISTRO=fslc-framebuffer SDKMACHINE=x86_64 source
> setup-environment build-evk
>
> Then, because I need a bit of customization, before I do "bitbake
> fsl-image-mfgtool-initramfs", I do:
> $ bitbake -c menuconfig mfgtool-linux-imx
> ... which fails:
> NOTE: Your conf/bblayers.conf has been automatically updated.
> Parsing recipes: 100%
> |#################################################################################################################################|
> Time: 0:09:11
> Parsing of 1709 .bb files complete (0 cached, 1709 parsed). 2330 targets,
> 465 skipped, 0 masked, 0 errors.
> NOTE: Resolving any missing task queue dependencies
> ERROR: Nothing PROVIDES 'virtual/mfgtool-arm-fslc-linux-gnueabi-binutils'.
> Close matches:
>   virtual/arm-fslc-linux-gnueabi-binutils
>   virtual/arm-fslc-linux-gnueabi-libc-initial
>   virtual/arm-fslc-linux-gnueabi-gcc-initial
> ERROR: Required build target 'mfgtool-linux-imx' has no buildable providers.
> Missing or unbuildable dependency chain was: ['mfgtool-linux-imx',
> 'virtual/mfgtool-arm-fslc-linux-gnueabi-binutils']
>
> Summary: There were 2 ERROR messages shown, returning a non-zero exit code.
> $
>
> Is this supposed to work? How do I fix this? What is this strange dependency
> that is not present? morty seems to work, as well as the official
> fsl-arm-yocto-bsp imx-4.1.15_1.0.0-ga branch from NXP.
>

I think this has been broken for awhile and is caused by the MLPREFIX
variable being set to "mfgtool-" in linux-mfgtool.inc.

I was able to get around this issue by just removing the:

    e.data.setVar("MLPREFIX", "mfgtool-")

line from linux-mfgtool.inc. Pretty hacky... but it seems to work, I
was able to compile the kernel and get mfgtool going. I think the
right solution would be to use the KERNEL_PACAKGE_NAME which is now
available in sumo...

Marc


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: pyro branch mfgtool kernel and initramfs build fails
  2018-06-26 19:19 ` Marc Ferland
@ 2018-06-26 21:41   ` Sergeant Peppercorn
  2018-06-27  1:05     ` Marc Ferland
  0 siblings, 1 reply; 4+ messages in thread
From: Sergeant Peppercorn @ 2018-06-26 21:41 UTC (permalink / raw)
  To: Marc Ferland; +Cc: meta-freescale Mailing List

[-- Attachment #1: Type: text/plain, Size: 3179 bytes --]

Marc, Thank you very much for the response. This got me much further
running 'bitbake -c menuconfig mfgtool-linux-imx' until this happened:
WARNING: mfgtool-linux-imx-4.1.15-r0 do_fetch: Failed to fetch URL
file://defconfig, attempting MIRRORS if available
ERROR: mfgtool-linux-imx-4.1.15-r0 do_fetch: Fetcher failure: Unable to
find file file://defconfig anywhere. The paths that were searched were:
... (all directories under source/meta-freescale/recipes-kernel/... )

Can it be that that prefix is in fact needed? What else could be the
problem? I can't get an initramfs or mfgtool kernel built for 4.1.15 with
any method so far! TIA.

On Tue, Jun 26, 2018 at 12:19 PM, Marc Ferland <marc.ferland@gmail.com>
wrote:

> On Tue, Jun 26, 2018 at 2:49 PM, Sergeant Peppercorn
> <speppercorn109@gmail.com> wrote:
> > I am trying to build the mfgtool initramfs and mfgtool kernel from the
> pyro
> > branch.
> >
> > I created my repo by doing this:
> >
> > $ mkdir fsl-community-bsp-pyro  && cd fsl-community-bsp-pyro/
> > $  repo init -u https://github.com/Freescale/fsl-community-bsp-platform
> -b
> > pyro && repo sync && repo start pyro --all
> > $  MACHINE=imx6ulevk DISTRO=fslc-framebuffer SDKMACHINE=x86_64 source
> > setup-environment build-evk
> >
> > Then, because I need a bit of customization, before I do "bitbake
> > fsl-image-mfgtool-initramfs", I do:
> > $ bitbake -c menuconfig mfgtool-linux-imx
> > ... which fails:
> > NOTE: Your conf/bblayers.conf has been automatically updated.
> > Parsing recipes: 100%
> > |###########################################################
> ######################################################################|
> > Time: 0:09:11
> > Parsing of 1709 .bb files complete (0 cached, 1709 parsed). 2330 targets,
> > 465 skipped, 0 masked, 0 errors.
> > NOTE: Resolving any missing task queue dependencies
> > ERROR: Nothing PROVIDES 'virtual/mfgtool-arm-fslc-
> linux-gnueabi-binutils'.
> > Close matches:
> >   virtual/arm-fslc-linux-gnueabi-binutils
> >   virtual/arm-fslc-linux-gnueabi-libc-initial
> >   virtual/arm-fslc-linux-gnueabi-gcc-initial
> > ERROR: Required build target 'mfgtool-linux-imx' has no buildable
> providers.
> > Missing or unbuildable dependency chain was: ['mfgtool-linux-imx',
> > 'virtual/mfgtool-arm-fslc-linux-gnueabi-binutils']
> >
> > Summary: There were 2 ERROR messages shown, returning a non-zero exit
> code.
> > $
> >
> > Is this supposed to work? How do I fix this? What is this strange
> dependency
> > that is not present? morty seems to work, as well as the official
> > fsl-arm-yocto-bsp imx-4.1.15_1.0.0-ga branch from NXP.
> >
>
> I think this has been broken for awhile and is caused by the MLPREFIX
> variable being set to "mfgtool-" in linux-mfgtool.inc.
>
> I was able to get around this issue by just removing the:
>
>     e.data.setVar("MLPREFIX", "mfgtool-")
>
> line from linux-mfgtool.inc. Pretty hacky... but it seems to work, I
> was able to compile the kernel and get mfgtool going. I think the
> right solution would be to use the KERNEL_PACAKGE_NAME which is now
> available in sumo...
>
> Marc
>

[-- Attachment #2: Type: text/html, Size: 4143 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: pyro branch mfgtool kernel and initramfs build fails
  2018-06-26 21:41   ` Sergeant Peppercorn
@ 2018-06-27  1:05     ` Marc Ferland
  0 siblings, 0 replies; 4+ messages in thread
From: Marc Ferland @ 2018-06-27  1:05 UTC (permalink / raw)
  To: Sergeant Peppercorn; +Cc: meta-freescale Mailing List

On Tue, Jun 26, 2018 at 5:41 PM, Sergeant Peppercorn
<speppercorn109@gmail.com> wrote:
>
> Marc, Thank you very much for the response. This got me much further running 'bitbake -c menuconfig mfgtool-linux-imx' until this happened:
> WARNING: mfgtool-linux-imx-4.1.15-r0 do_fetch: Failed to fetch URL file://defconfig, attempting MIRRORS if available
> ERROR: mfgtool-linux-imx-4.1.15-r0 do_fetch: Fetcher failure: Unable to find file file://defconfig anywhere. The paths that were searched were:
> ... (all directories under source/meta-freescale/recipes-kernel/... )
>
> Can it be that that prefix is in fact needed? What else could be the problem? I can't get an initramfs or mfgtool kernel built for 4.1.15 with any method so far! TIA.
>

I see.

bitbake complains because it cannot find the defconfig file. Try
creating a directory named linux-imx-mfgtool (or maybe
mfgtool-linux-imx?) and placing a copy of
recipes-kernel/linux/linux-imx-4.1.15/imx/defconfig in it... that
might solve your problem.

Good luck!

Marc


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2018-06-27  1:05 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-06-26 18:49 pyro branch mfgtool kernel and initramfs build fails Sergeant Peppercorn
2018-06-26 19:19 ` Marc Ferland
2018-06-26 21:41   ` Sergeant Peppercorn
2018-06-27  1:05     ` Marc Ferland

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.