Skip to contentSkip to conversation

Multiple U-Boot configurations

meta-fsl-arm Gary Thomas 2 participants 6 messages Jan 25, 2016

lore
Share & tools
lore
#0 lore raw

I have a board which can be deployed with either i.MX6Q or i.MX6solo I have U-Boot configurations for both.

I'm trying to use a single build (bitbake u-boot-fslc) to create both U-Boot images, using
UBOOT_MACHINE ?= "teton_p8303_config teton_p8303s_config"

Sadly, it's failing:

| Configuring for teton_p8303 - Board: teton_p8303, Options: IMX_CONFIG=board/amltd/teton_p8303/teton_p8303q.cfg,MX6Q,DDR_MB=2048
| Configuring for teton_p8303s - Board: teton_p8303, Options: IMX_CONFIG=board/amltd/teton_p8303/teton_p8303.cfg,MX6S,DDR_MB=1024
| ln: failed to create symbolic link 'asm/arch': File exists
| Makefile:468: recipe for target 'teton_p8303_config' failed

Obviously, I don't understand the mechanism and I don't see a working example in either meta-fsl-arm or meta-fsl-arm-extra

Any pointers would be great

Thanks

Signature · 4 lines
------------------------------------------------------------
Gary Thomas                 |  Consulting for the
MLB Associates              |    Embedded world
------------------------------------------------------------
#1 lore raw

Hi Gary

2016-01-25 15:10 GMT+01:00 Gary Thomas <[email protected]>:

Quoted 15 lines

I have a board which can be deployed with either i.MX6Q or i.MX6solo I have U-Boot configurations for both.

I'm trying to use a single build (bitbake u-boot-fslc) to create both U-Boot images, using
UBOOT_MACHINE ?= "teton_p8303_config teton_p8303s_config"

Sadly, it's failing:
| Configuring for teton_p8303 - Board: teton_p8303, Options:
IMX_CONFIG=board/amltd/teton_p8303/teton_p8303q.cfg,MX6Q,DDR_MB=2048 | Configuring for teton_p8303s - Board: teton_p8303, Options:
IMX_CONFIG=board/amltd/teton_p8303/teton_p8303.cfg,MX6S,DDR_MB=1024 | ln: failed to create symbolic link 'asm/arch': File exists | Makefile:468: recipe for target 'teton_p8303_config' failed

Quoted 5 lines

Obviously, I don't understand the mechanism and I don't see a working example in either meta-fsl-arm or meta-fsl-arm-extra

Any pointers would be great

Have you tried something like this:
https://github.com/Freescale/meta-fsl-arm-extra/blob/master/conf/machine/apalis-imx6.conf#L24

So in your <machine>.conf:

UBOOT_CONFIG ??= "s"
UBOOT_CONFIG[q] = "teton_p8303_config"
UBOOT_CONFIG[s] = "teton_p8303s_config"

Which I expect to build a u-boot.imx, u-boot.imx-s

Quoted 12 lines

Thanks

--
------------------------------------------------------------
Gary Thomas | Consulting for the
MLB Associates | Embedded world
------------------------------------------------------------
--
_______________________________________________
meta-freescale mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/meta-freescale

#2 lore raw
Quoted 28 lines · Max Krummenacher

Hi Gary

2016-01-25 15:10 GMT+01:00 Gary Thomas <[email protected]>:

Quoted 15 lines

I have a board which can be deployed with either i.MX6Q or i.MX6solo I have U-Boot configurations for both.

I'm trying to use a single build (bitbake u-boot-fslc) to create both U-Boot images, using
UBOOT_MACHINE ?= "teton_p8303_config teton_p8303s_config"

Sadly, it's failing:
| Configuring for teton_p8303 - Board: teton_p8303, Options:
IMX_CONFIG=board/amltd/teton_p8303/teton_p8303q.cfg,MX6Q,DDR_MB=2048 | Configuring for teton_p8303s - Board: teton_p8303, Options:
IMX_CONFIG=board/amltd/teton_p8303/teton_p8303.cfg,MX6S,DDR_MB=1024 | ln: failed to create symbolic link 'asm/arch': File exists | Makefile:468: recipe for target 'teton_p8303_config' failed

Quoted 5 lines

Obviously, I don't understand the mechanism and I don't see a working example in either meta-fsl-arm or meta-fsl-arm-extra

Any pointers would be great

Have you tried something like this:
https://github.com/Freescale/meta-fsl-arm-extra/blob/master/conf/machine/apalis-imx6.conf#L24

Quoted 7 lines

So in your <machine>.conf:

UBOOT_CONFIG ??= "s"
UBOOT_CONFIG[q] = "teton_p8303_config"
UBOOT_CONFIG[s] = "teton_p8303s_config"

Which I expect to build a u-boot.imx, u-boot.imx-s

What if I want to build u-boot.imx-q and u-boot.imx-s? I want to build all possible versions and decide only when I install which to use.

Signature · 4 lines
------------------------------------------------------------
Gary Thomas                 |  Consulting for the
MLB Associates              |    Embedded world
------------------------------------------------------------
#3 lore raw

2016-01-25 16:18 GMT+01:00 Gary Thomas <[email protected]>:

Quoted 38 lines · Max Krummenacher
Quoted 37 lines

Hi Gary

2016-01-25 15:10 GMT+01:00 Gary Thomas <[email protected]>:

Quoted 16 lines

I have a board which can be deployed with either i.MX6Q or i.MX6solo I have U-Boot configurations for both.

I'm trying to use a single build (bitbake u-boot-fslc) to create both U-Boot images, using
UBOOT_MACHINE ?= "teton_p8303_config teton_p8303s_config"

Sadly, it's failing:
| Configuring for teton_p8303 - Board: teton_p8303, Options:
IMX_CONFIG=board/amltd/teton_p8303/teton_p8303q.cfg,MX6Q,DDR_MB=2048 | Configuring for teton_p8303s - Board: teton_p8303, Options:
IMX_CONFIG=board/amltd/teton_p8303/teton_p8303.cfg,MX6S,DDR_MB=1024 | ln: failed to create symbolic link 'asm/arch': File exists | Makefile:468: recipe for target 'teton_p8303_config' failed

Quoted 5 lines

Obviously, I don't understand the mechanism and I don't see a working example in either meta-fsl-arm or meta-fsl-arm-extra

Any pointers would be great

Have you tried something like this:

https://github.com/Freescale/meta-fsl-arm-extra/blob/master/conf/machine/apalis-imx6.conf#L24

So in your <machine>.conf:

UBOOT_CONFIG ??= "s"
UBOOT_CONFIG[q] = "teton_p8303_config"
UBOOT_CONFIG[s] = "teton_p8303s_config"

Quoted 6 lines
Quoted 1 line

Which I expect to build a u-boot.imx, u-boot.imx-s

What if I want to build u-boot.imx-q and u-boot.imx-s? I want to build all possible versions and decide only when I install which to use.

I expect that you get a binary for each of your UBOOT_CONFIG[xxxx]. And what is set by UBOOT_CONFIG = "s" is the default one.

Quoted 6 lines

--
------------------------------------------------------------
Gary Thomas | Consulting for the
MLB Associates | Embedded world
------------------------------------------------------------

#4 lore raw
Quoted 42 lines · Max Krummenacher

2016-01-25 16:18 GMT+01:00 Gary Thomas <[email protected]>:

Quoted 41 lines · Max Krummenacher
Quoted 38 lines

Hi Gary

2016-01-25 15:10 GMT+01:00 Gary Thomas <[email protected]>:

Quoted 16 lines

I have a board which can be deployed with either i.MX6Q or i.MX6solo I have U-Boot configurations for both.

I'm trying to use a single build (bitbake u-boot-fslc) to create both U-Boot images, using

    UBOOT_MACHINE ?= "teton_p8303_config teton_p8303s_config"

Sadly, it's failing:
| Configuring for teton_p8303 - Board: teton_p8303, Options:
IMX_CONFIG=board/amltd/teton_p8303/teton_p8303q.cfg,MX6Q,DDR_MB=2048 | Configuring for teton_p8303s - Board: teton_p8303, Options:
IMX_CONFIG=board/amltd/teton_p8303/teton_p8303.cfg,MX6S,DDR_MB=1024 | ln: failed to create symbolic link 'asm/arch': File exists | Makefile:468: recipe for target 'teton_p8303_config' failed

Quoted 5 lines

Obviously, I don't understand the mechanism and I don't see a working example in either meta-fsl-arm or meta-fsl-arm-extra

Any pointers would be great

Have you tried something like this:

https://github.com/Freescale/meta-fsl-arm-extra/blob/master/conf/machine/apalis-imx6.conf#L24

So in your <machine>.conf:

UBOOT_CONFIG ??= "s"
UBOOT_CONFIG[q] = "teton_p8303_config"
UBOOT_CONFIG[s] = "teton_p8303s_config"

Which I expect to build a u-boot.imx, u-boot.imx-s

Quoted 7 lines
Quoted 3 lines

What if I want to build u-boot.imx-q and u-boot.imx-s? I want to build all possible versions and decide only when I install which to use.

I expect that you get a binary for each of your UBOOT_CONFIG[xxxx]. And what is set by UBOOT_CONFIG = "s" is the default one.

Thanks, I'll give it a go.

Signature · 4 lines
------------------------------------------------------------
Gary Thomas                 |  Consulting for the
MLB Associates              |    Embedded world
------------------------------------------------------------
#5 lore raw
Quoted 47 lines · Gary Thomas
Quoted 46 lines · Max Krummenacher

2016-01-25 16:18 GMT+01:00 Gary Thomas <[email protected]>:

Quoted 44 lines · Max Krummenacher
Quoted 31 lines

Hi Gary

2016-01-25 15:10 GMT+01:00 Gary Thomas <[email protected]>:

Quoted 16 lines

I have a board which can be deployed with either i.MX6Q or i.MX6solo I have U-Boot configurations for both.

I'm trying to use a single build (bitbake u-boot-fslc) to create both U-Boot images, using

    UBOOT_MACHINE ?= "teton_p8303_config teton_p8303s_config"

Sadly, it's failing:
| Configuring for teton_p8303 - Board: teton_p8303, Options:
IMX_CONFIG=board/amltd/teton_p8303/teton_p8303q.cfg,MX6Q,DDR_MB=2048 | Configuring for teton_p8303s - Board: teton_p8303, Options:
IMX_CONFIG=board/amltd/teton_p8303/teton_p8303.cfg,MX6S,DDR_MB=1024 | ln: failed to create symbolic link 'asm/arch': File exists | Makefile:468: recipe for target 'teton_p8303_config' failed

Quoted 5 lines

Obviously, I don't understand the mechanism and I don't see a working example in either meta-fsl-arm or meta-fsl-arm-extra

Any pointers would be great

Have you tried something like this:

https://github.com/Freescale/meta-fsl-arm-extra/blob/master/conf/machine/apalis-imx6.conf#L24

Quoted 7 lines

So in your <machine>.conf:

UBOOT_CONFIG ??= "s"
UBOOT_CONFIG[q] = "teton_p8303_config"
UBOOT_CONFIG[s] = "teton_p8303s_config"

Which I expect to build a u-boot.imx, u-boot.imx-s

What if I want to build u-boot.imx-q and u-boot.imx-s? I want to build all possible versions and decide only when I install which to use.

Quoted 6 lines
Quoted 3 lines

I expect that you get a binary for each of your UBOOT_CONFIG[xxxx]. And what is set by UBOOT_CONFIG = "s" is the default one.

Thanks, I'll give it a go.

That works, thanks. However, to get the i.MX6Q version to be the default and get both versions created, I had to write this:

UBOOT_CONFIG ??= "s q"
UBOOT_CONFIG[q] = "teton_p8303_config"
UBOOT_CONFIG[s] = "teton_p8303s_config"

Signature · 4 lines
------------------------------------------------------------
Gary Thomas                 |  Consulting for the
MLB Associates              |    Embedded world
------------------------------------------------------------