All of lore.kernel.org
 help / color / mirror / Atom feed
* MTD UBI undefined reference failed to build OE gatesgarth branch
@ 2021-01-15  8:07 ` JH
  0 siblings, 0 replies; 17+ messages in thread
From: Jupiter @ 2021-01-15  8:07 UTC (permalink / raw)
  To: linux-mtd; +Cc: meta-freescale

Hello,

I was able to build MTD, UBI and u-boot on OE version Zeus branch, but
failed in gatesgarth branch. Here are errors, what could I be missing?

u-boot-imx/2020.04-r0/git/cmd/ubi.c:478: undefined reference to
`mtd_probe_devices'
u-boot-imx/2020.04-r0/git/cmd/ubi.c:484: undefined reference to `put_mtd_device'
u-boot-imx/2020.04-r0/git/drivers/mtd/ubi/build.c:1161: undefined
reference to `put_mtd_device'
u-boot-imx/2020.04-r0/git/drivers/mtd/ubi/build.c:1229: undefined
reference to `get_mtd_device_nm'
u-boot-imx/2020.04-r0/git/drivers/mtd/ubi/io.c:1407: undefined
reference to `mtd_read'
u-boot-imx/2020.04-r0/git/drivers/mtd/ubi/io.c:279: undefined
reference to `mtd_write'

u-boot-imx/2020.04-r0/git/drivers/video/cfb_console.c:2025: undefined
reference to `video_hw_init'
u-boot-imx/2020.04-r0/git/drivers/gpio/74x164_gpio.c:51: undefined
reference to `dm_spi_claim_bus'
u-boot-imx/2020.04-r0/git/drivers/gpio/74x164_gpio.c:55: undefined
reference to `dm_spi_xfer'
u-boot-imx/2020.04-r0/git/drivers/gpio/74x164_gpio.c:58: undefined
reference to `dm_spi_release_bus'
u-boot-imx/2020.04-r0/git/Makefile:1701: recipe for target 'u-boot' failed
make[1]: *** [u-boot] Error 1
WARNING: exit code 1 from a shell command.

There are a couple of warning messages I am not sure if they are
important or just nonsense, like CONFIG_DEFAULT_DEVICE_TREE has
already been defined but it complained:

Device Tree Source is not correctly specified.
Please define 'CONFIG_DEFAULT_DEVICE_TREE'
or build with 'DEVICE_TREE=<device_tree>' argument

u-boot-imx/2020.04-r0/git/drivers/gpio/74x164_gpio.c:51:8: warning:
implicit declaration of function 'dm_spi_claim_bus'; did you mean
'spi_claim_bus'? [-Wimplicit-function-declaration]
   51 |  ret = dm_spi_claim_bus(dev);
      |        ^~~~~~~~~~~~~~~~
      |        spi_claim_bus
@
u-boot-imx/2020.04-r0/git/drivers/gpio/74x164_gpio.c:55:8: warning:
implicit declaration of function 'dm_spi_xfer'; did you mean
'spi_xfer'? [-Wimplicit-function-declaration]
   55 |  ret = dm_spi_xfer(dev, priv->nregs * 8, priv->buffer, NULL,
      |        ^~~~~~~~~~~
      |        spi_xfer
u-boot-imx/2020.04-r0/git/drivers/gpio/74x164_gpio.c:58:2: warning:
implicit declaration of function 'dm_spi_release_bus'; did you mean
'spi_release_bus'? [-Wimplicit-function-declaration]
   58 |  dm_spi_release_bus(dev);
      |  ^~~~~~~~~~~~~~~~~~
      |  spi_release_bus

Appreciate your advice.

Thank you very much.

Kind regards,

- jupiter

______________________________________________________
Linux MTD discussion mailing list
http://lists.infradead.org/mailman/listinfo/linux-mtd/

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

* MTD UBI undefined reference failed to build OE gatesgarth branch
@ 2021-01-15  8:07 ` JH
  0 siblings, 0 replies; 17+ messages in thread
From: JH @ 2021-01-15  8:07 UTC (permalink / raw)
  To: linux-mtd; +Cc: meta-freescale

Hello,

I was able to build MTD, UBI and u-boot on OE version Zeus branch, but
failed in gatesgarth branch. Here are errors, what could I be missing?

u-boot-imx/2020.04-r0/git/cmd/ubi.c:478: undefined reference to
`mtd_probe_devices'
u-boot-imx/2020.04-r0/git/cmd/ubi.c:484: undefined reference to `put_mtd_device'
u-boot-imx/2020.04-r0/git/drivers/mtd/ubi/build.c:1161: undefined
reference to `put_mtd_device'
u-boot-imx/2020.04-r0/git/drivers/mtd/ubi/build.c:1229: undefined
reference to `get_mtd_device_nm'
u-boot-imx/2020.04-r0/git/drivers/mtd/ubi/io.c:1407: undefined
reference to `mtd_read'
u-boot-imx/2020.04-r0/git/drivers/mtd/ubi/io.c:279: undefined
reference to `mtd_write'

u-boot-imx/2020.04-r0/git/drivers/video/cfb_console.c:2025: undefined
reference to `video_hw_init'
u-boot-imx/2020.04-r0/git/drivers/gpio/74x164_gpio.c:51: undefined
reference to `dm_spi_claim_bus'
u-boot-imx/2020.04-r0/git/drivers/gpio/74x164_gpio.c:55: undefined
reference to `dm_spi_xfer'
u-boot-imx/2020.04-r0/git/drivers/gpio/74x164_gpio.c:58: undefined
reference to `dm_spi_release_bus'
u-boot-imx/2020.04-r0/git/Makefile:1701: recipe for target 'u-boot' failed
make[1]: *** [u-boot] Error 1
WARNING: exit code 1 from a shell command.

There are a couple of warning messages I am not sure if they are
important or just nonsense, like CONFIG_DEFAULT_DEVICE_TREE has
already been defined but it complained:

Device Tree Source is not correctly specified.
Please define 'CONFIG_DEFAULT_DEVICE_TREE'
or build with 'DEVICE_TREE=<device_tree>' argument

u-boot-imx/2020.04-r0/git/drivers/gpio/74x164_gpio.c:51:8: warning:
implicit declaration of function 'dm_spi_claim_bus'; did you mean
'spi_claim_bus'? [-Wimplicit-function-declaration]
   51 |  ret = dm_spi_claim_bus(dev);
      |        ^~~~~~~~~~~~~~~~
      |        spi_claim_bus
@
u-boot-imx/2020.04-r0/git/drivers/gpio/74x164_gpio.c:55:8: warning:
implicit declaration of function 'dm_spi_xfer'; did you mean
'spi_xfer'? [-Wimplicit-function-declaration]
   55 |  ret = dm_spi_xfer(dev, priv->nregs * 8, priv->buffer, NULL,
      |        ^~~~~~~~~~~
      |        spi_xfer
u-boot-imx/2020.04-r0/git/drivers/gpio/74x164_gpio.c:58:2: warning:
implicit declaration of function 'dm_spi_release_bus'; did you mean
'spi_release_bus'? [-Wimplicit-function-declaration]
   58 |  dm_spi_release_bus(dev);
      |  ^~~~~~~~~~~~~~~~~~
      |  spi_release_bus

Appreciate your advice.

Thank you very much.

Kind regards,

- jupiter

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

* Re: MTD UBI undefined reference failed to build OE gatesgarth branch
  2021-01-15  8:07 ` JH
  (?)
@ 2021-01-15 19:32   ` Jupiter
  -1 siblings, 0 replies; 17+ messages in thread
From: Jupiter @ 2021-01-15 19:32 UTC (permalink / raw)
  To: Patches and discussions about the oe-core layer
  Cc: meta-freescale, linux-mtd, U-Boot Mailing List

Hello,

The mtd build was fine, what could be missing not to link mtd?

$ ls 2020.04-r0/build/mx6ull_14x14_evk_nand_config/drivers/mtd

built-in.o  mtdcore.su  mtdpart.o   mtd_uboot.o   mtd-uclass.o   nand     spi
mtdcore.o   mtd.o       mtdpart.su  mtd_uboot.su  mtd-uclass.su  onenand  ubi



On 1/15/21, Jupiter <jupiter.hce@gmail.com> wrote:
> Hello,
>
> I was able to build MTD, UBI and u-boot on OE version Zeus branch, but
> failed in gatesgarth branch. Here are errors, what could I be missing?
>
> u-boot-imx/2020.04-r0/git/cmd/ubi.c:478: undefined reference to
> `mtd_probe_devices'
> u-boot-imx/2020.04-r0/git/cmd/ubi.c:484: undefined reference to
> `put_mtd_device'
> u-boot-imx/2020.04-r0/git/drivers/mtd/ubi/build.c:1161: undefined
> reference to `put_mtd_device'
> u-boot-imx/2020.04-r0/git/drivers/mtd/ubi/build.c:1229: undefined
> reference to `get_mtd_device_nm'
> u-boot-imx/2020.04-r0/git/drivers/mtd/ubi/io.c:1407: undefined
> reference to `mtd_read'
> u-boot-imx/2020.04-r0/git/drivers/mtd/ubi/io.c:279: undefined
> reference to `mtd_write'
>
> u-boot-imx/2020.04-r0/git/drivers/video/cfb_console.c:2025: undefined
> reference to `video_hw_init'
> u-boot-imx/2020.04-r0/git/drivers/gpio/74x164_gpio.c:51: undefined
> reference to `dm_spi_claim_bus'
> u-boot-imx/2020.04-r0/git/drivers/gpio/74x164_gpio.c:55: undefined
> reference to `dm_spi_xfer'
> u-boot-imx/2020.04-r0/git/drivers/gpio/74x164_gpio.c:58: undefined
> reference to `dm_spi_release_bus'
> u-boot-imx/2020.04-r0/git/Makefile:1701: recipe for target 'u-boot' failed
> make[1]: *** [u-boot] Error 1
> WARNING: exit code 1 from a shell command.
>
> There are a couple of warning messages I am not sure if they are
> important or just nonsense, like CONFIG_DEFAULT_DEVICE_TREE has
> already been defined but it complained:
>
> Device Tree Source is not correctly specified.
> Please define 'CONFIG_DEFAULT_DEVICE_TREE'
> or build with 'DEVICE_TREE=<device_tree>' argument
>
> u-boot-imx/2020.04-r0/git/drivers/gpio/74x164_gpio.c:51:8: warning:
> implicit declaration of function 'dm_spi_claim_bus'; did you mean
> 'spi_claim_bus'? [-Wimplicit-function-declaration]
>    51 |  ret = dm_spi_claim_bus(dev);
>       |        ^~~~~~~~~~~~~~~~
>       |        spi_claim_bus
> @
> u-boot-imx/2020.04-r0/git/drivers/gpio/74x164_gpio.c:55:8: warning:
> implicit declaration of function 'dm_spi_xfer'; did you mean
> 'spi_xfer'? [-Wimplicit-function-declaration]
>    55 |  ret = dm_spi_xfer(dev, priv->nregs * 8, priv->buffer, NULL,
>       |        ^~~~~~~~~~~
>       |        spi_xfer
> u-boot-imx/2020.04-r0/git/drivers/gpio/74x164_gpio.c:58:2: warning:
> implicit declaration of function 'dm_spi_release_bus'; did you mean
> 'spi_release_bus'? [-Wimplicit-function-declaration]
>    58 |  dm_spi_release_bus(dev);
>       |  ^~~~~~~~~~~~~~~~~~
>       |  spi_release_bus
>
> Appreciate your advice.
>
> Thank you very much.
>
> Kind regards,
>
> - jupiter
>


--
"A man can fail many times, but he isn't a failure until he begins to
blame somebody else."
-- John Burroughs

______________________________________________________
Linux MTD discussion mailing list
http://lists.infradead.org/mailman/listinfo/linux-mtd/

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

* MTD UBI undefined reference failed to build OE gatesgarth branch
@ 2021-01-15 19:32   ` Jupiter
  0 siblings, 0 replies; 17+ messages in thread
From: Jupiter @ 2021-01-15 19:32 UTC (permalink / raw)
  To: u-boot

Hello,

The mtd build was fine, what could be missing not to link mtd?

$ ls 2020.04-r0/build/mx6ull_14x14_evk_nand_config/drivers/mtd

built-in.o  mtdcore.su  mtdpart.o   mtd_uboot.o   mtd-uclass.o   nand     spi
mtdcore.o   mtd.o       mtdpart.su  mtd_uboot.su  mtd-uclass.su  onenand  ubi



On 1/15/21, Jupiter <jupiter.hce@gmail.com> wrote:
> Hello,
>
> I was able to build MTD, UBI and u-boot on OE version Zeus branch, but
> failed in gatesgarth branch. Here are errors, what could I be missing?
>
> u-boot-imx/2020.04-r0/git/cmd/ubi.c:478: undefined reference to
> `mtd_probe_devices'
> u-boot-imx/2020.04-r0/git/cmd/ubi.c:484: undefined reference to
> `put_mtd_device'
> u-boot-imx/2020.04-r0/git/drivers/mtd/ubi/build.c:1161: undefined
> reference to `put_mtd_device'
> u-boot-imx/2020.04-r0/git/drivers/mtd/ubi/build.c:1229: undefined
> reference to `get_mtd_device_nm'
> u-boot-imx/2020.04-r0/git/drivers/mtd/ubi/io.c:1407: undefined
> reference to `mtd_read'
> u-boot-imx/2020.04-r0/git/drivers/mtd/ubi/io.c:279: undefined
> reference to `mtd_write'
>
> u-boot-imx/2020.04-r0/git/drivers/video/cfb_console.c:2025: undefined
> reference to `video_hw_init'
> u-boot-imx/2020.04-r0/git/drivers/gpio/74x164_gpio.c:51: undefined
> reference to `dm_spi_claim_bus'
> u-boot-imx/2020.04-r0/git/drivers/gpio/74x164_gpio.c:55: undefined
> reference to `dm_spi_xfer'
> u-boot-imx/2020.04-r0/git/drivers/gpio/74x164_gpio.c:58: undefined
> reference to `dm_spi_release_bus'
> u-boot-imx/2020.04-r0/git/Makefile:1701: recipe for target 'u-boot' failed
> make[1]: *** [u-boot] Error 1
> WARNING: exit code 1 from a shell command.
>
> There are a couple of warning messages I am not sure if they are
> important or just nonsense, like CONFIG_DEFAULT_DEVICE_TREE has
> already been defined but it complained:
>
> Device Tree Source is not correctly specified.
> Please define 'CONFIG_DEFAULT_DEVICE_TREE'
> or build with 'DEVICE_TREE=<device_tree>' argument
>
> u-boot-imx/2020.04-r0/git/drivers/gpio/74x164_gpio.c:51:8: warning:
> implicit declaration of function 'dm_spi_claim_bus'; did you mean
> 'spi_claim_bus'? [-Wimplicit-function-declaration]
>    51 |  ret = dm_spi_claim_bus(dev);
>       |        ^~~~~~~~~~~~~~~~
>       |        spi_claim_bus
> @
> u-boot-imx/2020.04-r0/git/drivers/gpio/74x164_gpio.c:55:8: warning:
> implicit declaration of function 'dm_spi_xfer'; did you mean
> 'spi_xfer'? [-Wimplicit-function-declaration]
>    55 |  ret = dm_spi_xfer(dev, priv->nregs * 8, priv->buffer, NULL,
>       |        ^~~~~~~~~~~
>       |        spi_xfer
> u-boot-imx/2020.04-r0/git/drivers/gpio/74x164_gpio.c:58:2: warning:
> implicit declaration of function 'dm_spi_release_bus'; did you mean
> 'spi_release_bus'? [-Wimplicit-function-declaration]
>    58 |  dm_spi_release_bus(dev);
>       |  ^~~~~~~~~~~~~~~~~~
>       |  spi_release_bus
>
> Appreciate your advice.
>
> Thank you very much.
>
> Kind regards,
>
> - jupiter
>


--
"A man can fail many times, but he isn't a failure until he begins to
blame somebody else."
-- John Burroughs

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

* Re: MTD UBI undefined reference failed to build OE gatesgarth branch
@ 2021-01-15 19:32   ` Jupiter
  0 siblings, 0 replies; 17+ messages in thread
From: JH @ 2021-01-15 19:32 UTC (permalink / raw)
  To: Patches and discussions about the oe-core layer
  Cc: meta-freescale, linux-mtd, U-Boot Mailing List

Hello,

The mtd build was fine, what could be missing not to link mtd?

$ ls 2020.04-r0/build/mx6ull_14x14_evk_nand_config/drivers/mtd

built-in.o  mtdcore.su  mtdpart.o   mtd_uboot.o   mtd-uclass.o   nand     spi
mtdcore.o   mtd.o       mtdpart.su  mtd_uboot.su  mtd-uclass.su  onenand  ubi



On 1/15/21, Jupiter <jupiter.hce@gmail.com> wrote:
> Hello,
>
> I was able to build MTD, UBI and u-boot on OE version Zeus branch, but
> failed in gatesgarth branch. Here are errors, what could I be missing?
>
> u-boot-imx/2020.04-r0/git/cmd/ubi.c:478: undefined reference to
> `mtd_probe_devices'
> u-boot-imx/2020.04-r0/git/cmd/ubi.c:484: undefined reference to
> `put_mtd_device'
> u-boot-imx/2020.04-r0/git/drivers/mtd/ubi/build.c:1161: undefined
> reference to `put_mtd_device'
> u-boot-imx/2020.04-r0/git/drivers/mtd/ubi/build.c:1229: undefined
> reference to `get_mtd_device_nm'
> u-boot-imx/2020.04-r0/git/drivers/mtd/ubi/io.c:1407: undefined
> reference to `mtd_read'
> u-boot-imx/2020.04-r0/git/drivers/mtd/ubi/io.c:279: undefined
> reference to `mtd_write'
>
> u-boot-imx/2020.04-r0/git/drivers/video/cfb_console.c:2025: undefined
> reference to `video_hw_init'
> u-boot-imx/2020.04-r0/git/drivers/gpio/74x164_gpio.c:51: undefined
> reference to `dm_spi_claim_bus'
> u-boot-imx/2020.04-r0/git/drivers/gpio/74x164_gpio.c:55: undefined
> reference to `dm_spi_xfer'
> u-boot-imx/2020.04-r0/git/drivers/gpio/74x164_gpio.c:58: undefined
> reference to `dm_spi_release_bus'
> u-boot-imx/2020.04-r0/git/Makefile:1701: recipe for target 'u-boot' failed
> make[1]: *** [u-boot] Error 1
> WARNING: exit code 1 from a shell command.
>
> There are a couple of warning messages I am not sure if they are
> important or just nonsense, like CONFIG_DEFAULT_DEVICE_TREE has
> already been defined but it complained:
>
> Device Tree Source is not correctly specified.
> Please define 'CONFIG_DEFAULT_DEVICE_TREE'
> or build with 'DEVICE_TREE=<device_tree>' argument
>
> u-boot-imx/2020.04-r0/git/drivers/gpio/74x164_gpio.c:51:8: warning:
> implicit declaration of function 'dm_spi_claim_bus'; did you mean
> 'spi_claim_bus'? [-Wimplicit-function-declaration]
>    51 |  ret = dm_spi_claim_bus(dev);
>       |        ^~~~~~~~~~~~~~~~
>       |        spi_claim_bus
> @
> u-boot-imx/2020.04-r0/git/drivers/gpio/74x164_gpio.c:55:8: warning:
> implicit declaration of function 'dm_spi_xfer'; did you mean
> 'spi_xfer'? [-Wimplicit-function-declaration]
>    55 |  ret = dm_spi_xfer(dev, priv->nregs * 8, priv->buffer, NULL,
>       |        ^~~~~~~~~~~
>       |        spi_xfer
> u-boot-imx/2020.04-r0/git/drivers/gpio/74x164_gpio.c:58:2: warning:
> implicit declaration of function 'dm_spi_release_bus'; did you mean
> 'spi_release_bus'? [-Wimplicit-function-declaration]
>    58 |  dm_spi_release_bus(dev);
>       |  ^~~~~~~~~~~~~~~~~~
>       |  spi_release_bus
>
> Appreciate your advice.
>
> Thank you very much.
>
> Kind regards,
>
> - jupiter
>


--
"A man can fail many times, but he isn't a failure until he begins to
blame somebody else."
-- John Burroughs

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

* Re: [meta-freescale] MTD UBI undefined reference failed to build OE gatesgarth branch
  2021-01-15 19:32   ` Jupiter
  (?)
@ 2021-01-15 20:12     ` Andrey Zhizhikin
  -1 siblings, 0 replies; 17+ messages in thread
From: Andrey Zhizhikin @ 2021-01-15 20:12 UTC (permalink / raw)
  To: JH
  Cc: U-Boot Mailing List, meta-freescale, linux-mtd,
	Patches and discussions about the oe-core layer

Hello Jupiter,

On Fri, Jan 15, 2021 at 8:32 PM JH <jupiter.hce@gmail.com> wrote:
>
> Hello,
>
> The mtd build was fine, what could be missing not to link mtd?
>
> $ ls 2020.04-r0/build/mx6ull_14x14_evk_nand_config/drivers/mtd

From all the build logs you have, it look to me that you're trying to
build the U-Boot delivered by NXP as a part of their BSP release.

In this case, I suggest you'd rather contact NXP support in order to
address this failure, since it is a vendor BSP you're trying to
upgrade.

In addition, I do not think that all mailing lists you've cross-posted
your question to would be able to help you here:
- linux-mtd list is not really appropriate to solve U-Boot build issues;
- u-boot list is for upstream U-Boot patches and discussions, which is
way past over 2020.04 version (not even considering that you're
building U-Boot from NXP fork);
- oe-core is not a proper list to post questions specific to one SOC vendor;
- meta-freescale 'gatesgarth' branch does not have any U-Boot build
configuration for mx6ull_14x14_evk_nand_config, the only available
build config provided is for sd card;

Having all those points above, I'd suggest you contact NXP support at
first to see if they can solve those build errors for you.

If you would find a solution, you can send a PR to meta-freescale to
address it - this would be much appreciated.

>
> built-in.o  mtdcore.su  mtdpart.o   mtd_uboot.o   mtd-uclass.o   nand     spi
> mtdcore.o   mtd.o       mtdpart.su  mtd_uboot.su  mtd-uclass.su  onenand  ubi
>
>
>
> On 1/15/21, Jupiter <jupiter.hce@gmail.com> wrote:
> > Hello,
> >
> > I was able to build MTD, UBI and u-boot on OE version Zeus branch, but
> > failed in gatesgarth branch. Here are errors, what could I be missing?
> >
> > u-boot-imx/2020.04-r0/git/cmd/ubi.c:478: undefined reference to
> > `mtd_probe_devices'
> > u-boot-imx/2020.04-r0/git/cmd/ubi.c:484: undefined reference to
> > `put_mtd_device'
> > u-boot-imx/2020.04-r0/git/drivers/mtd/ubi/build.c:1161: undefined
> > reference to `put_mtd_device'
> > u-boot-imx/2020.04-r0/git/drivers/mtd/ubi/build.c:1229: undefined
> > reference to `get_mtd_device_nm'
> > u-boot-imx/2020.04-r0/git/drivers/mtd/ubi/io.c:1407: undefined
> > reference to `mtd_read'
> > u-boot-imx/2020.04-r0/git/drivers/mtd/ubi/io.c:279: undefined
> > reference to `mtd_write'
> >
> > u-boot-imx/2020.04-r0/git/drivers/video/cfb_console.c:2025: undefined
> > reference to `video_hw_init'
> > u-boot-imx/2020.04-r0/git/drivers/gpio/74x164_gpio.c:51: undefined
> > reference to `dm_spi_claim_bus'
> > u-boot-imx/2020.04-r0/git/drivers/gpio/74x164_gpio.c:55: undefined
> > reference to `dm_spi_xfer'
> > u-boot-imx/2020.04-r0/git/drivers/gpio/74x164_gpio.c:58: undefined
> > reference to `dm_spi_release_bus'
> > u-boot-imx/2020.04-r0/git/Makefile:1701: recipe for target 'u-boot' failed
> > make[1]: *** [u-boot] Error 1
> > WARNING: exit code 1 from a shell command.
> >
> > There are a couple of warning messages I am not sure if they are
> > important or just nonsense, like CONFIG_DEFAULT_DEVICE_TREE has
> > already been defined but it complained:
> >
> > Device Tree Source is not correctly specified.
> > Please define 'CONFIG_DEFAULT_DEVICE_TREE'
> > or build with 'DEVICE_TREE=<device_tree>' argument
> >
> > u-boot-imx/2020.04-r0/git/drivers/gpio/74x164_gpio.c:51:8: warning:
> > implicit declaration of function 'dm_spi_claim_bus'; did you mean
> > 'spi_claim_bus'? [-Wimplicit-function-declaration]
> >    51 |  ret = dm_spi_claim_bus(dev);
> >       |        ^~~~~~~~~~~~~~~~
> >       |        spi_claim_bus
> > @
> > u-boot-imx/2020.04-r0/git/drivers/gpio/74x164_gpio.c:55:8: warning:
> > implicit declaration of function 'dm_spi_xfer'; did you mean
> > 'spi_xfer'? [-Wimplicit-function-declaration]
> >    55 |  ret = dm_spi_xfer(dev, priv->nregs * 8, priv->buffer, NULL,
> >       |        ^~~~~~~~~~~
> >       |        spi_xfer
> > u-boot-imx/2020.04-r0/git/drivers/gpio/74x164_gpio.c:58:2: warning:
> > implicit declaration of function 'dm_spi_release_bus'; did you mean
> > 'spi_release_bus'? [-Wimplicit-function-declaration]
> >    58 |  dm_spi_release_bus(dev);
> >       |  ^~~~~~~~~~~~~~~~~~
> >       |  spi_release_bus
> >
> > Appreciate your advice.
> >
> > Thank you very much.
> >
> > Kind regards,
> >
> > - jupiter
> >
>
>
> --
> "A man can fail many times, but he isn't a failure until he begins to
> blame somebody else."
> -- John Burroughs
>
> -=-=-=-=-=-=-=-=-=-=-=-
> Links: You receive all messages sent to this group.
> View/Reply Online (#24489): https://lists.yoctoproject.org/g/meta-freescale/message/24489
> Mute This Topic: https://lists.yoctoproject.org/mt/79697340/3617192
> Group Owner: meta-freescale+owner@lists.yoctoproject.org
> Unsubscribe: https://lists.yoctoproject.org/g/meta-freescale/unsub [andrey.z@gmail.com]
> -=-=-=-=-=-=-=-=-=-=-=-
>


-- 
Regards,
Andrey.

______________________________________________________
Linux MTD discussion mailing list
http://lists.infradead.org/mailman/listinfo/linux-mtd/

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

* [meta-freescale] MTD UBI undefined reference failed to build OE gatesgarth branch
@ 2021-01-15 20:12     ` Andrey Zhizhikin
  0 siblings, 0 replies; 17+ messages in thread
From: Andrey Zhizhikin @ 2021-01-15 20:12 UTC (permalink / raw)
  To: u-boot

Hello Jupiter,

On Fri, Jan 15, 2021 at 8:32 PM JH <jupiter.hce@gmail.com> wrote:
>
> Hello,
>
> The mtd build was fine, what could be missing not to link mtd?
>
> $ ls 2020.04-r0/build/mx6ull_14x14_evk_nand_config/drivers/mtd

From all the build logs you have, it look to me that you're trying to
build the U-Boot delivered by NXP as a part of their BSP release.

In this case, I suggest you'd rather contact NXP support in order to
address this failure, since it is a vendor BSP you're trying to
upgrade.

In addition, I do not think that all mailing lists you've cross-posted
your question to would be able to help you here:
- linux-mtd list is not really appropriate to solve U-Boot build issues;
- u-boot list is for upstream U-Boot patches and discussions, which is
way past over 2020.04 version (not even considering that you're
building U-Boot from NXP fork);
- oe-core is not a proper list to post questions specific to one SOC vendor;
- meta-freescale 'gatesgarth' branch does not have any U-Boot build
configuration for mx6ull_14x14_evk_nand_config, the only available
build config provided is for sd card;

Having all those points above, I'd suggest you contact NXP support at
first to see if they can solve those build errors for you.

If you would find a solution, you can send a PR to meta-freescale to
address it - this would be much appreciated.

>
> built-in.o  mtdcore.su  mtdpart.o   mtd_uboot.o   mtd-uclass.o   nand     spi
> mtdcore.o   mtd.o       mtdpart.su  mtd_uboot.su  mtd-uclass.su  onenand  ubi
>
>
>
> On 1/15/21, Jupiter <jupiter.hce@gmail.com> wrote:
> > Hello,
> >
> > I was able to build MTD, UBI and u-boot on OE version Zeus branch, but
> > failed in gatesgarth branch. Here are errors, what could I be missing?
> >
> > u-boot-imx/2020.04-r0/git/cmd/ubi.c:478: undefined reference to
> > `mtd_probe_devices'
> > u-boot-imx/2020.04-r0/git/cmd/ubi.c:484: undefined reference to
> > `put_mtd_device'
> > u-boot-imx/2020.04-r0/git/drivers/mtd/ubi/build.c:1161: undefined
> > reference to `put_mtd_device'
> > u-boot-imx/2020.04-r0/git/drivers/mtd/ubi/build.c:1229: undefined
> > reference to `get_mtd_device_nm'
> > u-boot-imx/2020.04-r0/git/drivers/mtd/ubi/io.c:1407: undefined
> > reference to `mtd_read'
> > u-boot-imx/2020.04-r0/git/drivers/mtd/ubi/io.c:279: undefined
> > reference to `mtd_write'
> >
> > u-boot-imx/2020.04-r0/git/drivers/video/cfb_console.c:2025: undefined
> > reference to `video_hw_init'
> > u-boot-imx/2020.04-r0/git/drivers/gpio/74x164_gpio.c:51: undefined
> > reference to `dm_spi_claim_bus'
> > u-boot-imx/2020.04-r0/git/drivers/gpio/74x164_gpio.c:55: undefined
> > reference to `dm_spi_xfer'
> > u-boot-imx/2020.04-r0/git/drivers/gpio/74x164_gpio.c:58: undefined
> > reference to `dm_spi_release_bus'
> > u-boot-imx/2020.04-r0/git/Makefile:1701: recipe for target 'u-boot' failed
> > make[1]: *** [u-boot] Error 1
> > WARNING: exit code 1 from a shell command.
> >
> > There are a couple of warning messages I am not sure if they are
> > important or just nonsense, like CONFIG_DEFAULT_DEVICE_TREE has
> > already been defined but it complained:
> >
> > Device Tree Source is not correctly specified.
> > Please define 'CONFIG_DEFAULT_DEVICE_TREE'
> > or build with 'DEVICE_TREE=<device_tree>' argument
> >
> > u-boot-imx/2020.04-r0/git/drivers/gpio/74x164_gpio.c:51:8: warning:
> > implicit declaration of function 'dm_spi_claim_bus'; did you mean
> > 'spi_claim_bus'? [-Wimplicit-function-declaration]
> >    51 |  ret = dm_spi_claim_bus(dev);
> >       |        ^~~~~~~~~~~~~~~~
> >       |        spi_claim_bus
> > @
> > u-boot-imx/2020.04-r0/git/drivers/gpio/74x164_gpio.c:55:8: warning:
> > implicit declaration of function 'dm_spi_xfer'; did you mean
> > 'spi_xfer'? [-Wimplicit-function-declaration]
> >    55 |  ret = dm_spi_xfer(dev, priv->nregs * 8, priv->buffer, NULL,
> >       |        ^~~~~~~~~~~
> >       |        spi_xfer
> > u-boot-imx/2020.04-r0/git/drivers/gpio/74x164_gpio.c:58:2: warning:
> > implicit declaration of function 'dm_spi_release_bus'; did you mean
> > 'spi_release_bus'? [-Wimplicit-function-declaration]
> >    58 |  dm_spi_release_bus(dev);
> >       |  ^~~~~~~~~~~~~~~~~~
> >       |  spi_release_bus
> >
> > Appreciate your advice.
> >
> > Thank you very much.
> >
> > Kind regards,
> >
> > - jupiter
> >
>
>
> --
> "A man can fail many times, but he isn't a failure until he begins to
> blame somebody else."
> -- John Burroughs
>
> -=-=-=-=-=-=-=-=-=-=-=-
> Links: You receive all messages sent to this group.
> View/Reply Online (#24489): https://lists.yoctoproject.org/g/meta-freescale/message/24489
> Mute This Topic: https://lists.yoctoproject.org/mt/79697340/3617192
> Group Owner: meta-freescale+owner at lists.yoctoproject.org
> Unsubscribe: https://lists.yoctoproject.org/g/meta-freescale/unsub [andrey.z at gmail.com]
> -=-=-=-=-=-=-=-=-=-=-=-
>


-- 
Regards,
Andrey.

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

* Re: [meta-freescale] MTD UBI undefined reference failed to build OE gatesgarth branch
@ 2021-01-15 20:12     ` Andrey Zhizhikin
  0 siblings, 0 replies; 17+ messages in thread
From: Andrey Zhizhikin @ 2021-01-15 20:12 UTC (permalink / raw)
  To: JH
  Cc: Patches and discussions about the oe-core layer, meta-freescale,
	linux-mtd, U-Boot Mailing List

Hello Jupiter,

On Fri, Jan 15, 2021 at 8:32 PM JH <jupiter.hce@gmail.com> wrote:
>
> Hello,
>
> The mtd build was fine, what could be missing not to link mtd?
>
> $ ls 2020.04-r0/build/mx6ull_14x14_evk_nand_config/drivers/mtd

From all the build logs you have, it look to me that you're trying to
build the U-Boot delivered by NXP as a part of their BSP release.

In this case, I suggest you'd rather contact NXP support in order to
address this failure, since it is a vendor BSP you're trying to
upgrade.

In addition, I do not think that all mailing lists you've cross-posted
your question to would be able to help you here:
- linux-mtd list is not really appropriate to solve U-Boot build issues;
- u-boot list is for upstream U-Boot patches and discussions, which is
way past over 2020.04 version (not even considering that you're
building U-Boot from NXP fork);
- oe-core is not a proper list to post questions specific to one SOC vendor;
- meta-freescale 'gatesgarth' branch does not have any U-Boot build
configuration for mx6ull_14x14_evk_nand_config, the only available
build config provided is for sd card;

Having all those points above, I'd suggest you contact NXP support at
first to see if they can solve those build errors for you.

If you would find a solution, you can send a PR to meta-freescale to
address it - this would be much appreciated.

>
> built-in.o  mtdcore.su  mtdpart.o   mtd_uboot.o   mtd-uclass.o   nand     spi
> mtdcore.o   mtd.o       mtdpart.su  mtd_uboot.su  mtd-uclass.su  onenand  ubi
>
>
>
> On 1/15/21, Jupiter <jupiter.hce@gmail.com> wrote:
> > Hello,
> >
> > I was able to build MTD, UBI and u-boot on OE version Zeus branch, but
> > failed in gatesgarth branch. Here are errors, what could I be missing?
> >
> > u-boot-imx/2020.04-r0/git/cmd/ubi.c:478: undefined reference to
> > `mtd_probe_devices'
> > u-boot-imx/2020.04-r0/git/cmd/ubi.c:484: undefined reference to
> > `put_mtd_device'
> > u-boot-imx/2020.04-r0/git/drivers/mtd/ubi/build.c:1161: undefined
> > reference to `put_mtd_device'
> > u-boot-imx/2020.04-r0/git/drivers/mtd/ubi/build.c:1229: undefined
> > reference to `get_mtd_device_nm'
> > u-boot-imx/2020.04-r0/git/drivers/mtd/ubi/io.c:1407: undefined
> > reference to `mtd_read'
> > u-boot-imx/2020.04-r0/git/drivers/mtd/ubi/io.c:279: undefined
> > reference to `mtd_write'
> >
> > u-boot-imx/2020.04-r0/git/drivers/video/cfb_console.c:2025: undefined
> > reference to `video_hw_init'
> > u-boot-imx/2020.04-r0/git/drivers/gpio/74x164_gpio.c:51: undefined
> > reference to `dm_spi_claim_bus'
> > u-boot-imx/2020.04-r0/git/drivers/gpio/74x164_gpio.c:55: undefined
> > reference to `dm_spi_xfer'
> > u-boot-imx/2020.04-r0/git/drivers/gpio/74x164_gpio.c:58: undefined
> > reference to `dm_spi_release_bus'
> > u-boot-imx/2020.04-r0/git/Makefile:1701: recipe for target 'u-boot' failed
> > make[1]: *** [u-boot] Error 1
> > WARNING: exit code 1 from a shell command.
> >
> > There are a couple of warning messages I am not sure if they are
> > important or just nonsense, like CONFIG_DEFAULT_DEVICE_TREE has
> > already been defined but it complained:
> >
> > Device Tree Source is not correctly specified.
> > Please define 'CONFIG_DEFAULT_DEVICE_TREE'
> > or build with 'DEVICE_TREE=<device_tree>' argument
> >
> > u-boot-imx/2020.04-r0/git/drivers/gpio/74x164_gpio.c:51:8: warning:
> > implicit declaration of function 'dm_spi_claim_bus'; did you mean
> > 'spi_claim_bus'? [-Wimplicit-function-declaration]
> >    51 |  ret = dm_spi_claim_bus(dev);
> >       |        ^~~~~~~~~~~~~~~~
> >       |        spi_claim_bus
> > @
> > u-boot-imx/2020.04-r0/git/drivers/gpio/74x164_gpio.c:55:8: warning:
> > implicit declaration of function 'dm_spi_xfer'; did you mean
> > 'spi_xfer'? [-Wimplicit-function-declaration]
> >    55 |  ret = dm_spi_xfer(dev, priv->nregs * 8, priv->buffer, NULL,
> >       |        ^~~~~~~~~~~
> >       |        spi_xfer
> > u-boot-imx/2020.04-r0/git/drivers/gpio/74x164_gpio.c:58:2: warning:
> > implicit declaration of function 'dm_spi_release_bus'; did you mean
> > 'spi_release_bus'? [-Wimplicit-function-declaration]
> >    58 |  dm_spi_release_bus(dev);
> >       |  ^~~~~~~~~~~~~~~~~~
> >       |  spi_release_bus
> >
> > Appreciate your advice.
> >
> > Thank you very much.
> >
> > Kind regards,
> >
> > - jupiter
> >
>
>
> --
> "A man can fail many times, but he isn't a failure until he begins to
> blame somebody else."
> -- John Burroughs
>
> 
>


-- 
Regards,
Andrey.

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

* Re: [meta-freescale] MTD UBI undefined reference failed to build OE gatesgarth branch
  2021-01-15 20:12     ` Andrey Zhizhikin
  (?)
@ 2021-01-15 20:43       ` Jupiter
  -1 siblings, 0 replies; 17+ messages in thread
From: Jupiter @ 2021-01-15 20:43 UTC (permalink / raw)
  To: Andrey Zhizhikin
  Cc: U-Boot Mailing List, meta-freescale, linux-mtd,
	Patches and discussions about the oe-core layer

Thanks for your response.

I am sorry, I thought that is what meta-freescale for, right? NXP
might involve the coding, but is it integrated and released by Yocto /
OE https://git.yoctoproject.org/cgit/cgit.cgi/meta-freescale/, right?
I cloned meta-freescale from Yocto project:
git://git.yoctoproject.org/meta-freescale, I am sorry, I really lost.

______________________________________________________
Linux MTD discussion mailing list
http://lists.infradead.org/mailman/listinfo/linux-mtd/

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

* [meta-freescale] MTD UBI undefined reference failed to build OE gatesgarth branch
@ 2021-01-15 20:43       ` Jupiter
  0 siblings, 0 replies; 17+ messages in thread
From: Jupiter @ 2021-01-15 20:43 UTC (permalink / raw)
  To: u-boot

Thanks for your response.

I am sorry, I thought that is what meta-freescale for, right? NXP
might involve the coding, but is it integrated and released by Yocto /
OE https://git.yoctoproject.org/cgit/cgit.cgi/meta-freescale/, right?
I cloned meta-freescale from Yocto project:
git://git.yoctoproject.org/meta-freescale, I am sorry, I really lost.

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

* Re: [meta-freescale] MTD UBI undefined reference failed to build OE gatesgarth branch
@ 2021-01-15 20:43       ` Jupiter
  0 siblings, 0 replies; 17+ messages in thread
From: JH @ 2021-01-15 20:43 UTC (permalink / raw)
  To: Andrey Zhizhikin
  Cc: Patches and discussions about the oe-core layer, meta-freescale,
	linux-mtd, U-Boot Mailing List

Thanks for your response.

I am sorry, I thought that is what meta-freescale for, right? NXP
might involve the coding, but is it integrated and released by Yocto /
OE https://git.yoctoproject.org/cgit/cgit.cgi/meta-freescale/, right?
I cloned meta-freescale from Yocto project:
git://git.yoctoproject.org/meta-freescale, I am sorry, I really lost.

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

* MTD UBI undefined reference failed to build OE gatesgarth branch
  2021-01-15 20:12     ` Andrey Zhizhikin
@ 2021-01-18  0:21       ` JH
  -1 siblings, 0 replies; 17+ messages in thread
From: Jupiter @ 2021-01-18  0:21 UTC (permalink / raw)
  To: u-boot

Hi Tom and Lauren,

I failed to build mx6ull with MTD and UBI in OE and meta-freescahe
gatesgarth branch, please be aware that I was able to build it in zeus
branch, it seems something broken in gatesgarth branch.

My apology I am not clear if it is the issue for MTD or u-boot or
meta-freescale or OE so that I posted messages to several mailing
lists for help. Andrey Zhizhikin was very unhappy about it, he
believes it is your responsibility.

Could you please kindly respond if it is your jurisdiction and if you
tested and passed mx6ull with MTD UBI in gatesgarth branch or not?

My apology again for crossing mailing lists.

Kind regards,

- jupiter


On 1/16/21, Andrey Zhizhikin <andrey.z@gmail.com> wrote:
> Hello Jupiter,
>
> On Fri, Jan 15, 2021 at 8:32 PM JH <jupiter.hce@gmail.com> wrote:
>>
>> Hello,
>>
>> The mtd build was fine, what could be missing not to link mtd?
>>
>> $ ls 2020.04-r0/build/mx6ull_14x14_evk_nand_config/drivers/mtd
>
> From all the build logs you have, it look to me that you're trying to
> build the U-Boot delivered by NXP as a part of their BSP release.
>
> In this case, I suggest you'd rather contact NXP support in order to
> address this failure, since it is a vendor BSP you're trying to
> upgrade.
>
> In addition, I do not think that all mailing lists you've cross-posted
> your question to would be able to help you here:
> - linux-mtd list is not really appropriate to solve U-Boot build issues;
> - u-boot list is for upstream U-Boot patches and discussions, which is
> way past over 2020.04 version (not even considering that you're
> building U-Boot from NXP fork);
> - oe-core is not a proper list to post questions specific to one SOC
> vendor;
> - meta-freescale 'gatesgarth' branch does not have any U-Boot build
> configuration for mx6ull_14x14_evk_nand_config, the only available
> build config provided is for sd card;
>
> Having all those points above, I'd suggest you contact NXP support at
> first to see if they can solve those build errors for you.
>
> If you would find a solution, you can send a PR to meta-freescale to
> address it - this would be much appreciated.
>
>>
>> built-in.o  mtdcore.su  mtdpart.o   mtd_uboot.o   mtd-uclass.o   nand
>> spi
>> mtdcore.o   mtd.o       mtdpart.su  mtd_uboot.su  mtd-uclass.su  onenand
>> ubi
>>
>>
>>
>> On 1/15/21, Jupiter <jupiter.hce@gmail.com> wrote:
>> > Hello,
>> >
>> > I was able to build MTD, UBI and u-boot on OE version Zeus branch, but
>> > failed in gatesgarth branch. Here are errors, what could I be missing?
>> >
>> > u-boot-imx/2020.04-r0/git/cmd/ubi.c:478: undefined reference to
>> > `mtd_probe_devices'
>> > u-boot-imx/2020.04-r0/git/cmd/ubi.c:484: undefined reference to
>> > `put_mtd_device'
>> > u-boot-imx/2020.04-r0/git/drivers/mtd/ubi/build.c:1161: undefined
>> > reference to `put_mtd_device'
>> > u-boot-imx/2020.04-r0/git/drivers/mtd/ubi/build.c:1229: undefined
>> > reference to `get_mtd_device_nm'
>> > u-boot-imx/2020.04-r0/git/drivers/mtd/ubi/io.c:1407: undefined
>> > reference to `mtd_read'
>> > u-boot-imx/2020.04-r0/git/drivers/mtd/ubi/io.c:279: undefined
>> > reference to `mtd_write'
>> >
>> > u-boot-imx/2020.04-r0/git/drivers/video/cfb_console.c:2025: undefined
>> > reference to `video_hw_init'
>> > u-boot-imx/2020.04-r0/git/drivers/gpio/74x164_gpio.c:51: undefined
>> > reference to `dm_spi_claim_bus'
>> > u-boot-imx/2020.04-r0/git/drivers/gpio/74x164_gpio.c:55: undefined
>> > reference to `dm_spi_xfer'
>> > u-boot-imx/2020.04-r0/git/drivers/gpio/74x164_gpio.c:58: undefined
>> > reference to `dm_spi_release_bus'
>> > u-boot-imx/2020.04-r0/git/Makefile:1701: recipe for target 'u-boot'
>> > failed
>> > make[1]: *** [u-boot] Error 1
>> > WARNING: exit code 1 from a shell command.
>> >
>> > There are a couple of warning messages I am not sure if they are
>> > important or just nonsense, like CONFIG_DEFAULT_DEVICE_TREE has
>> > already been defined but it complained:
>> >
>> > Device Tree Source is not correctly specified.
>> > Please define 'CONFIG_DEFAULT_DEVICE_TREE'
>> > or build with 'DEVICE_TREE=<device_tree>' argument
>> >
>> > u-boot-imx/2020.04-r0/git/drivers/gpio/74x164_gpio.c:51:8: warning:
>> > implicit declaration of function 'dm_spi_claim_bus'; did you mean
>> > 'spi_claim_bus'? [-Wimplicit-function-declaration]
>> >    51 |  ret = dm_spi_claim_bus(dev);
>> >       |        ^~~~~~~~~~~~~~~~
>> >       |        spi_claim_bus
>> > @
>> > u-boot-imx/2020.04-r0/git/drivers/gpio/74x164_gpio.c:55:8: warning:
>> > implicit declaration of function 'dm_spi_xfer'; did you mean
>> > 'spi_xfer'? [-Wimplicit-function-declaration]
>> >    55 |  ret = dm_spi_xfer(dev, priv->nregs * 8, priv->buffer, NULL,
>> >       |        ^~~~~~~~~~~
>> >       |        spi_xfer
>> > u-boot-imx/2020.04-r0/git/drivers/gpio/74x164_gpio.c:58:2: warning:
>> > implicit declaration of function 'dm_spi_release_bus'; did you mean
>> > 'spi_release_bus'? [-Wimplicit-function-declaration]
>> >    58 |  dm_spi_release_bus(dev);
>> >       |  ^~~~~~~~~~~~~~~~~~
>> >       |  spi_release_bus
>> >
>> > Appreciate your advice.
>> >
>> > Thank you very much.
>> >
>> > Kind regards,
>> >
>> > - jupiter
>> >
>>
>>
>> --
>> "A man can fail many times, but he isn't a failure until he begins to
>> blame somebody else."
>> -- John Burroughs
>>
>> -=-=-=-=-=-=-=-=-=-=-=-
>> Links: You receive all messages sent to this group.
>> View/Reply Online (#24489):
>> https://lists.yoctoproject.org/g/meta-freescale/message/24489
>> Mute This Topic: https://lists.yoctoproject.org/mt/79697340/3617192
>> Group Owner: meta-freescale+owner at lists.yoctoproject.org
>> Unsubscribe: https://lists.yoctoproject.org/g/meta-freescale/unsub
>> [andrey.z at gmail.com]
>> -=-=-=-=-=-=-=-=-=-=-=-
>>
>
>
> --
> Regards,
> Andrey.
>


--
"A man can fail many times, but he isn't a failure until he begins to
blame somebody else."
-- John Burroughs

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

* MTD UBI undefined reference failed to build OE gatesgarth branch
@ 2021-01-18  0:21       ` JH
  0 siblings, 0 replies; 17+ messages in thread
From: JH @ 2021-01-18  0:21 UTC (permalink / raw)
  To: Tom Hochstein, Lauren Post
  Cc: meta-freescale, linux-mtd, U-Boot Mailing List, Andrey Zhizhikin

Hi Tom and Lauren,

I failed to build mx6ull with MTD and UBI in OE and meta-freescahe
gatesgarth branch, please be aware that I was able to build it in zeus
branch, it seems something broken in gatesgarth branch.

My apology I am not clear if it is the issue for MTD or u-boot or
meta-freescale or OE so that I posted messages to several mailing
lists for help. Andrey Zhizhikin was very unhappy about it, he
believes it is your responsibility.

Could you please kindly respond if it is your jurisdiction and if you
tested and passed mx6ull with MTD UBI in gatesgarth branch or not?

My apology again for crossing mailing lists.

Kind regards,

- jupiter


On 1/16/21, Andrey Zhizhikin <andrey.z@gmail.com> wrote:
> Hello Jupiter,
>
> On Fri, Jan 15, 2021 at 8:32 PM JH <jupiter.hce@gmail.com> wrote:
>>
>> Hello,
>>
>> The mtd build was fine, what could be missing not to link mtd?
>>
>> $ ls 2020.04-r0/build/mx6ull_14x14_evk_nand_config/drivers/mtd
>
> From all the build logs you have, it look to me that you're trying to
> build the U-Boot delivered by NXP as a part of their BSP release.
>
> In this case, I suggest you'd rather contact NXP support in order to
> address this failure, since it is a vendor BSP you're trying to
> upgrade.
>
> In addition, I do not think that all mailing lists you've cross-posted
> your question to would be able to help you here:
> - linux-mtd list is not really appropriate to solve U-Boot build issues;
> - u-boot list is for upstream U-Boot patches and discussions, which is
> way past over 2020.04 version (not even considering that you're
> building U-Boot from NXP fork);
> - oe-core is not a proper list to post questions specific to one SOC
> vendor;
> - meta-freescale 'gatesgarth' branch does not have any U-Boot build
> configuration for mx6ull_14x14_evk_nand_config, the only available
> build config provided is for sd card;
>
> Having all those points above, I'd suggest you contact NXP support at
> first to see if they can solve those build errors for you.
>
> If you would find a solution, you can send a PR to meta-freescale to
> address it - this would be much appreciated.
>
>>
>> built-in.o  mtdcore.su  mtdpart.o   mtd_uboot.o   mtd-uclass.o   nand
>> spi
>> mtdcore.o   mtd.o       mtdpart.su  mtd_uboot.su  mtd-uclass.su  onenand
>> ubi
>>
>>
>>
>> On 1/15/21, Jupiter <jupiter.hce@gmail.com> wrote:
>> > Hello,
>> >
>> > I was able to build MTD, UBI and u-boot on OE version Zeus branch, but
>> > failed in gatesgarth branch. Here are errors, what could I be missing?
>> >
>> > u-boot-imx/2020.04-r0/git/cmd/ubi.c:478: undefined reference to
>> > `mtd_probe_devices'
>> > u-boot-imx/2020.04-r0/git/cmd/ubi.c:484: undefined reference to
>> > `put_mtd_device'
>> > u-boot-imx/2020.04-r0/git/drivers/mtd/ubi/build.c:1161: undefined
>> > reference to `put_mtd_device'
>> > u-boot-imx/2020.04-r0/git/drivers/mtd/ubi/build.c:1229: undefined
>> > reference to `get_mtd_device_nm'
>> > u-boot-imx/2020.04-r0/git/drivers/mtd/ubi/io.c:1407: undefined
>> > reference to `mtd_read'
>> > u-boot-imx/2020.04-r0/git/drivers/mtd/ubi/io.c:279: undefined
>> > reference to `mtd_write'
>> >
>> > u-boot-imx/2020.04-r0/git/drivers/video/cfb_console.c:2025: undefined
>> > reference to `video_hw_init'
>> > u-boot-imx/2020.04-r0/git/drivers/gpio/74x164_gpio.c:51: undefined
>> > reference to `dm_spi_claim_bus'
>> > u-boot-imx/2020.04-r0/git/drivers/gpio/74x164_gpio.c:55: undefined
>> > reference to `dm_spi_xfer'
>> > u-boot-imx/2020.04-r0/git/drivers/gpio/74x164_gpio.c:58: undefined
>> > reference to `dm_spi_release_bus'
>> > u-boot-imx/2020.04-r0/git/Makefile:1701: recipe for target 'u-boot'
>> > failed
>> > make[1]: *** [u-boot] Error 1
>> > WARNING: exit code 1 from a shell command.
>> >
>> > There are a couple of warning messages I am not sure if they are
>> > important or just nonsense, like CONFIG_DEFAULT_DEVICE_TREE has
>> > already been defined but it complained:
>> >
>> > Device Tree Source is not correctly specified.
>> > Please define 'CONFIG_DEFAULT_DEVICE_TREE'
>> > or build with 'DEVICE_TREE=<device_tree>' argument
>> >
>> > u-boot-imx/2020.04-r0/git/drivers/gpio/74x164_gpio.c:51:8: warning:
>> > implicit declaration of function 'dm_spi_claim_bus'; did you mean
>> > 'spi_claim_bus'? [-Wimplicit-function-declaration]
>> >    51 |  ret = dm_spi_claim_bus(dev);
>> >       |        ^~~~~~~~~~~~~~~~
>> >       |        spi_claim_bus
>> > @
>> > u-boot-imx/2020.04-r0/git/drivers/gpio/74x164_gpio.c:55:8: warning:
>> > implicit declaration of function 'dm_spi_xfer'; did you mean
>> > 'spi_xfer'? [-Wimplicit-function-declaration]
>> >    55 |  ret = dm_spi_xfer(dev, priv->nregs * 8, priv->buffer, NULL,
>> >       |        ^~~~~~~~~~~
>> >       |        spi_xfer
>> > u-boot-imx/2020.04-r0/git/drivers/gpio/74x164_gpio.c:58:2: warning:
>> > implicit declaration of function 'dm_spi_release_bus'; did you mean
>> > 'spi_release_bus'? [-Wimplicit-function-declaration]
>> >    58 |  dm_spi_release_bus(dev);
>> >       |  ^~~~~~~~~~~~~~~~~~
>> >       |  spi_release_bus
>> >
>> > Appreciate your advice.
>> >
>> > Thank you very much.
>> >
>> > Kind regards,
>> >
>> > - jupiter
>> >
>>
>>
>> --
>> "A man can fail many times, but he isn't a failure until he begins to
>> blame somebody else."
>> -- John Burroughs
>>
>> 
>>
>
>
> --
> Regards,
> Andrey.
>


--
"A man can fail many times, but he isn't a failure until he begins to
blame somebody else."
-- John Burroughs

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

* Re: MTD UBI undefined reference failed to build OE gatesgarth branch
  2021-01-18  0:21       ` JH
  (?)
@ 2021-01-19  0:16       ` Tom Hochstein
  2021-01-19  8:56         ` JH
  -1 siblings, 1 reply; 17+ messages in thread
From: Tom Hochstein @ 2021-01-19  0:16 UTC (permalink / raw)
  To: Jupiter, Lauren Post, Otavio Salvador, Andrey Zhizhikin, Jun Zhu
  Cc: meta-freescale

[Dropped u-boot and linux-mtd mailing lists]

Hi Jupiter,

Sorry, I finally got to look at your issue. We are in fact still working on the gatesgarth branch. I'm sorry you are running into troubles.

In trying to duplicate your issue, as Andrey pointed out, I see that imx6ullevk.conf does in fact not have support for nand. I'm not sure why, as we have had it in out meta-imx layer for some time.

I am currently working on a machine config update for gatesgarth:

https://github.com/Freescale/meta-freescale/pull/570

So I updated imx6ullevk.conf with nand support. It built fine.

Looking back at my PR, perhaps you are running into an NXP BSP bug that I fixed in my fork:

https://github.com/Freescale/meta-freescale/pull/570/commits/d4724429368c7755943f3b885bbba4e04eaaa44a

Can you try building with my fork?

https://github.com/thochstein/meta-freescale

Tom

-----Original Message-----
From: Jupiter <jupiter.hce@gmail.com> 
Sent: Sunday, January 17, 2021 6:22 PM
To: Tom Hochstein <tom.hochstein@nxp.com>; Lauren Post <lauren.post@nxp.com>
Cc: meta-freescale@lists.yoctoproject.org; linux-mtd <linux-mtd@lists.infradead.org>; U-Boot Mailing List <u-boot@lists.denx.de>; Andrey Zhizhikin <andrey.z@gmail.com>
Subject: MTD UBI undefined reference failed to build OE gatesgarth branch

Hi Tom and Lauren,

I failed to build mx6ull with MTD and UBI in OE and meta-freescahe
gatesgarth branch, please be aware that I was able to build it in zeus
branch, it seems something broken in gatesgarth branch.

My apology I am not clear if it is the issue for MTD or u-boot or
meta-freescale or OE so that I posted messages to several mailing
lists for help. Andrey Zhizhikin was very unhappy about it, he
believes it is your responsibility.

Could you please kindly respond if it is your jurisdiction and if you
tested and passed mx6ull with MTD UBI in gatesgarth branch or not?

My apology again for crossing mailing lists.

Kind regards,

- jupiter


On 1/16/21, Andrey Zhizhikin <andrey.z@gmail.com> wrote:
> Hello Jupiter,
>
> On Fri, Jan 15, 2021 at 8:32 PM JH <jupiter.hce@gmail.com> wrote:
>>
>> Hello,
>>
>> The mtd build was fine, what could be missing not to link mtd?
>>
>> $ ls 2020.04-r0/build/mx6ull_14x14_evk_nand_config/drivers/mtd
>
> From all the build logs you have, it look to me that you're trying to
> build the U-Boot delivered by NXP as a part of their BSP release.
>
> In this case, I suggest you'd rather contact NXP support in order to
> address this failure, since it is a vendor BSP you're trying to
> upgrade.
>
> In addition, I do not think that all mailing lists you've cross-posted
> your question to would be able to help you here:
> - linux-mtd list is not really appropriate to solve U-Boot build issues;
> - u-boot list is for upstream U-Boot patches and discussions, which is
> way past over 2020.04 version (not even considering that you're
> building U-Boot from NXP fork);
> - oe-core is not a proper list to post questions specific to one SOC
> vendor;
> - meta-freescale 'gatesgarth' branch does not have any U-Boot build
> configuration for mx6ull_14x14_evk_nand_config, the only available
> build config provided is for sd card;
>
> Having all those points above, I'd suggest you contact NXP support at
> first to see if they can solve those build errors for you.
>
> If you would find a solution, you can send a PR to meta-freescale to
> address it - this would be much appreciated.
>
>>
>> built-in.o  mtdcore.su  mtdpart.o   mtd_uboot.o   mtd-uclass.o   nand
>> spi
>> mtdcore.o   mtd.o       mtdpart.su  mtd_uboot.su  mtd-uclass.su  onenand
>> ubi
>>
>>
>>
>> On 1/15/21, Jupiter <jupiter.hce@gmail.com> wrote:
>> > Hello,
>> >
>> > I was able to build MTD, UBI and u-boot on OE version Zeus branch, but
>> > failed in gatesgarth branch. Here are errors, what could I be missing?
>> >
>> > u-boot-imx/2020.04-r0/git/cmd/ubi.c:478: undefined reference to
>> > `mtd_probe_devices'
>> > u-boot-imx/2020.04-r0/git/cmd/ubi.c:484: undefined reference to
>> > `put_mtd_device'
>> > u-boot-imx/2020.04-r0/git/drivers/mtd/ubi/build.c:1161: undefined
>> > reference to `put_mtd_device'
>> > u-boot-imx/2020.04-r0/git/drivers/mtd/ubi/build.c:1229: undefined
>> > reference to `get_mtd_device_nm'
>> > u-boot-imx/2020.04-r0/git/drivers/mtd/ubi/io.c:1407: undefined
>> > reference to `mtd_read'
>> > u-boot-imx/2020.04-r0/git/drivers/mtd/ubi/io.c:279: undefined
>> > reference to `mtd_write'
>> >
>> > u-boot-imx/2020.04-r0/git/drivers/video/cfb_console.c:2025: undefined
>> > reference to `video_hw_init'
>> > u-boot-imx/2020.04-r0/git/drivers/gpio/74x164_gpio.c:51: undefined
>> > reference to `dm_spi_claim_bus'
>> > u-boot-imx/2020.04-r0/git/drivers/gpio/74x164_gpio.c:55: undefined
>> > reference to `dm_spi_xfer'
>> > u-boot-imx/2020.04-r0/git/drivers/gpio/74x164_gpio.c:58: undefined
>> > reference to `dm_spi_release_bus'
>> > u-boot-imx/2020.04-r0/git/Makefile:1701: recipe for target 'u-boot'
>> > failed
>> > make[1]: *** [u-boot] Error 1
>> > WARNING: exit code 1 from a shell command.
>> >
>> > There are a couple of warning messages I am not sure if they are
>> > important or just nonsense, like CONFIG_DEFAULT_DEVICE_TREE has
>> > already been defined but it complained:
>> >
>> > Device Tree Source is not correctly specified.
>> > Please define 'CONFIG_DEFAULT_DEVICE_TREE'
>> > or build with 'DEVICE_TREE=<device_tree>' argument
>> >
>> > u-boot-imx/2020.04-r0/git/drivers/gpio/74x164_gpio.c:51:8: warning:
>> > implicit declaration of function 'dm_spi_claim_bus'; did you mean
>> > 'spi_claim_bus'? [-Wimplicit-function-declaration]
>> >    51 |  ret = dm_spi_claim_bus(dev);
>> >       |        ^~~~~~~~~~~~~~~~
>> >       |        spi_claim_bus
>> > @
>> > u-boot-imx/2020.04-r0/git/drivers/gpio/74x164_gpio.c:55:8: warning:
>> > implicit declaration of function 'dm_spi_xfer'; did you mean
>> > 'spi_xfer'? [-Wimplicit-function-declaration]
>> >    55 |  ret = dm_spi_xfer(dev, priv->nregs * 8, priv->buffer, NULL,
>> >       |        ^~~~~~~~~~~
>> >       |        spi_xfer
>> > u-boot-imx/2020.04-r0/git/drivers/gpio/74x164_gpio.c:58:2: warning:
>> > implicit declaration of function 'dm_spi_release_bus'; did you mean
>> > 'spi_release_bus'? [-Wimplicit-function-declaration]
>> >    58 |  dm_spi_release_bus(dev);
>> >       |  ^~~~~~~~~~~~~~~~~~
>> >       |  spi_release_bus
>> >
>> > Appreciate your advice.
>> >
>> > Thank you very much.
>> >
>> > Kind regards,
>> >
>> > - jupiter
>> >
>>
>>
>> --
>> "A man can fail many times, but he isn't a failure until he begins to
>> blame somebody else."
>> -- John Burroughs
>>
>> 
>>
>
>
> --
> Regards,
> Andrey.
>


--
"A man can fail many times, but he isn't a failure until he begins to
blame somebody else."
-- John Burroughs

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

* Re: MTD UBI undefined reference failed to build OE gatesgarth branch
  2021-01-19  0:16       ` Tom Hochstein
@ 2021-01-19  8:56         ` JH
  2021-01-19 16:13           ` Tom Hochstein
       [not found]           ` <165BAE2FBF9D93F6.23889@lists.yoctoproject.org>
  0 siblings, 2 replies; 17+ messages in thread
From: JH @ 2021-01-19  8:56 UTC (permalink / raw)
  To: Tom Hochstein
  Cc: Lauren Post, Otavio Salvador, Andrey Zhizhikin, Jun Zhu, meta-freescale

Hi Tom,

Thanks for your response and help.

> In trying to duplicate your issue, as Andrey pointed out, I see that
> imx6ullevk.conf does in fact not have support for nand. I'm not sure why, as
> we have had it in out meta-imx layer for some time.

Yes, indeed I was able to build it on the zeus branch and to work on
zeus for a long time.

> So I updated imx6ullevk.conf with nand support. It built fine.

It is not that problem,  I defined nand support in my machine
configure already, do you have a build system with bitbake, oe-core
(poky) for building gatesgarth branch so I can debug it?

> Can you try building with my fork?
>
> https://github.com/thochstein/meta-freescale

Which branch should I build it? I pulled your fork, but I could not
find gatesgarth, so I used master branch to build, it still has many
undefined references:

| /build/YoctoGatesgarth/build/tmp-glibc/work/solar-oe-linux-gnueabi/u-boot-imx/2020.04-r0/git/cmd/ubi.c:478:
undefined reference to `mtd_probe_devices'
| arm-oe-linux-gnueabi-ld.bfd:
/build/YoctoGatesgarth/build/tmp-glibc/work/solar-oe-linux-gnueabi/u-boot-imx/2020.04-r0/git/cmd/ubi.c:479:
undefined reference to `get_mtd_device_nm'
| arm-oe-linux-gnueabi-ld.bfd:
/build/YoctoGatesgarth/build/tmp-glibc/work/solar-oe-linux-gnueabi/u-boot-imx/2020.04-r0/git/cmd/ubi.c:484:
undefined reference to `put_mtd_device'
| arm-oe-linux-gnueabi-ld.bfd: drivers/built-in.o: in function
`ubi_detach_mtd_dev':
| /build/YoctoGatesgarth/build/tmp-glibc/work/solar-oe-linux-gnueabi/u-boot-imx/2020.04-r0/git/drivers/mtd/ubi/build.c:1161:
undefined reference to `put_mtd_device'

Thank you very much.

Kind regards,

Jupiter

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

* Re: MTD UBI undefined reference failed to build OE gatesgarth branch
  2021-01-19  8:56         ` JH
@ 2021-01-19 16:13           ` Tom Hochstein
       [not found]           ` <165BAE2FBF9D93F6.23889@lists.yoctoproject.org>
  1 sibling, 0 replies; 17+ messages in thread
From: Tom Hochstein @ 2021-01-19 16:13 UTC (permalink / raw)
  To: Jupiter
  Cc: Lauren Post, Otavio Salvador, Andrey Zhizhikin, Jun Zhu, meta-freescale

Hi Jupiter,

In that case, you could try building with MACHINE=imx6ullevk, then compare the builds.

One thing I don't understand is your log shows build/tmp-glibc/work. I'm only familiar with builds using build/tmp/work.

Tom

-----Original Message-----
From: Jupiter <jupiter.hce@gmail.com> 
Sent: Tuesday, January 19, 2021 2:57 AM
To: Tom Hochstein <tom.hochstein@nxp.com>
Cc: Lauren Post <lauren.post@nxp.com>; Otavio Salvador <otavio.salvador@ossystems.com.br>; Andrey Zhizhikin <andrey.z@gmail.com>; Jun Zhu <junzhu@nxp.com>; meta-freescale@lists.yoctoproject.org
Subject: Re: MTD UBI undefined reference failed to build OE gatesgarth branch

Hi Tom,

Thanks for your response and help.

> In trying to duplicate your issue, as Andrey pointed out, I see that
> imx6ullevk.conf does in fact not have support for nand. I'm not sure why, as
> we have had it in out meta-imx layer for some time.

Yes, indeed I was able to build it on the zeus branch and to work on
zeus for a long time.

> So I updated imx6ullevk.conf with nand support. It built fine.

It is not that problem,  I defined nand support in my machine
configure already, do you have a build system with bitbake, oe-core
(poky) for building gatesgarth branch so I can debug it?

> Can you try building with my fork?
>
> https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fthochstein%2Fmeta-freescale&amp;data=04%7C01%7Ctom.hochstein%40nxp.com%7C01b853cef2af407bfdfb08d8bc583c80%7C686ea1d3bc2b4c6fa92cd99c5c301635%7C0%7C0%7C637466434453653332%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&amp;sdata=yza9OQxsfvGAVAM1i1YepzN7xmtK1MHQWBY0DWeSJvo%3D&amp;reserved=0

Which branch should I build it? I pulled your fork, but I could not
find gatesgarth, so I used master branch to build, it still has many
undefined references:

| /build/YoctoGatesgarth/build/tmp-glibc/work/solar-oe-linux-gnueabi/u-boot-imx/2020.04-r0/git/cmd/ubi.c:478:
undefined reference to `mtd_probe_devices'
| arm-oe-linux-gnueabi-ld.bfd:
/build/YoctoGatesgarth/build/tmp-glibc/work/solar-oe-linux-gnueabi/u-boot-imx/2020.04-r0/git/cmd/ubi.c:479:
undefined reference to `get_mtd_device_nm'
| arm-oe-linux-gnueabi-ld.bfd:
/build/YoctoGatesgarth/build/tmp-glibc/work/solar-oe-linux-gnueabi/u-boot-imx/2020.04-r0/git/cmd/ubi.c:484:
undefined reference to `put_mtd_device'
| arm-oe-linux-gnueabi-ld.bfd: drivers/built-in.o: in function
`ubi_detach_mtd_dev':
| /build/YoctoGatesgarth/build/tmp-glibc/work/solar-oe-linux-gnueabi/u-boot-imx/2020.04-r0/git/drivers/mtd/ubi/build.c:1161:
undefined reference to `put_mtd_device'

Thank you very much.

Kind regards,

Jupiter

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

* Re: [meta-freescale] MTD UBI undefined reference failed to build OE gatesgarth branch
       [not found]           ` <165BAE2FBF9D93F6.23889@lists.yoctoproject.org>
@ 2021-01-19 23:38             ` Tom Hochstein
  0 siblings, 0 replies; 17+ messages in thread
From: Tom Hochstein @ 2021-01-19 23:38 UTC (permalink / raw)
  To: Tom Hochstein, Jupiter
  Cc: Lauren Post, Otavio Salvador, Andrey Zhizhikin, Jun Zhu, meta-freescale

Okay, I found the lines responsible for build/tmp-glibc in poky/meta/conf/distro/defaultsetup.conf. It appears that your config is using the default for this, while we are overriding:

# Allow single libc distros to disable this code
TCLIBCAPPEND ?= "-${TCLIBC}"
TMPDIR .= "${TCLIBCAPPEND}"

-----Original Message-----
From: meta-freescale@lists.yoctoproject.org <meta-freescale@lists.yoctoproject.org> On Behalf Of Tom Hochstein via lists.yoctoproject.org
Sent: Tuesday, January 19, 2021 10:13 AM
To: Jupiter <jupiter.hce@gmail.com>
Cc: Lauren Post <lauren.post@nxp.com>; Otavio Salvador <otavio.salvador@ossystems.com.br>; Andrey Zhizhikin <andrey.z@gmail.com>; Jun Zhu <junzhu@nxp.com>; meta-freescale@lists.yoctoproject.org
Subject: Re: [meta-freescale] MTD UBI undefined reference failed to build OE gatesgarth branch

Hi Jupiter,

In that case, you could try building with MACHINE=imx6ullevk, then compare the builds.

One thing I don't understand is your log shows build/tmp-glibc/work. I'm only familiar with builds using build/tmp/work.

Tom

-----Original Message-----
From: Jupiter <jupiter.hce@gmail.com> 
Sent: Tuesday, January 19, 2021 2:57 AM
To: Tom Hochstein <tom.hochstein@nxp.com>
Cc: Lauren Post <lauren.post@nxp.com>; Otavio Salvador <otavio.salvador@ossystems.com.br>; Andrey Zhizhikin <andrey.z@gmail.com>; Jun Zhu <junzhu@nxp.com>; meta-freescale@lists.yoctoproject.org
Subject: Re: MTD UBI undefined reference failed to build OE gatesgarth branch

Hi Tom,

Thanks for your response and help.

> In trying to duplicate your issue, as Andrey pointed out, I see that
> imx6ullevk.conf does in fact not have support for nand. I'm not sure why, as
> we have had it in out meta-imx layer for some time.

Yes, indeed I was able to build it on the zeus branch and to work on
zeus for a long time.

> So I updated imx6ullevk.conf with nand support. It built fine.

It is not that problem,  I defined nand support in my machine
configure already, do you have a build system with bitbake, oe-core
(poky) for building gatesgarth branch so I can debug it?

> Can you try building with my fork?
>
> https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fthochstein%2Fmeta-freescale&amp;data=04%7C01%7Ctom.hochstein%40nxp.com%7C9051a3894e6c4249f79f08d8bc953011%7C686ea1d3bc2b4c6fa92cd99c5c301635%7C0%7C0%7C637466696228174025%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&amp;sdata=ianZoZDG1lUtI7RrRnKKtZ%2FuADlj2aqg056h2LJBdEI%3D&amp;reserved=0

Which branch should I build it? I pulled your fork, but I could not
find gatesgarth, so I used master branch to build, it still has many
undefined references:

| /build/YoctoGatesgarth/build/tmp-glibc/work/solar-oe-linux-gnueabi/u-boot-imx/2020.04-r0/git/cmd/ubi.c:478:
undefined reference to `mtd_probe_devices'
| arm-oe-linux-gnueabi-ld.bfd:
/build/YoctoGatesgarth/build/tmp-glibc/work/solar-oe-linux-gnueabi/u-boot-imx/2020.04-r0/git/cmd/ubi.c:479:
undefined reference to `get_mtd_device_nm'
| arm-oe-linux-gnueabi-ld.bfd:
/build/YoctoGatesgarth/build/tmp-glibc/work/solar-oe-linux-gnueabi/u-boot-imx/2020.04-r0/git/cmd/ubi.c:484:
undefined reference to `put_mtd_device'
| arm-oe-linux-gnueabi-ld.bfd: drivers/built-in.o: in function
`ubi_detach_mtd_dev':
| /build/YoctoGatesgarth/build/tmp-glibc/work/solar-oe-linux-gnueabi/u-boot-imx/2020.04-r0/git/drivers/mtd/ubi/build.c:1161:
undefined reference to `put_mtd_device'

Thank you very much.

Kind regards,

Jupiter

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

end of thread, other threads:[~2021-01-19 23:38 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-01-15  8:07 MTD UBI undefined reference failed to build OE gatesgarth branch Jupiter
2021-01-15  8:07 ` JH
2021-01-15 19:32 ` Jupiter
2021-01-15 19:32   ` JH
2021-01-15 19:32   ` Jupiter
2021-01-15 20:12   ` [meta-freescale] " Andrey Zhizhikin
2021-01-15 20:12     ` Andrey Zhizhikin
2021-01-15 20:12     ` Andrey Zhizhikin
2021-01-15 20:43     ` Jupiter
2021-01-15 20:43       ` JH
2021-01-15 20:43       ` Jupiter
2021-01-18  0:21     ` Jupiter
2021-01-18  0:21       ` JH
2021-01-19  0:16       ` Tom Hochstein
2021-01-19  8:56         ` JH
2021-01-19 16:13           ` Tom Hochstein
     [not found]           ` <165BAE2FBF9D93F6.23889@lists.yoctoproject.org>
2021-01-19 23:38             ` [meta-freescale] " Tom Hochstein

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.