All of lore.kernel.org
 help / color / mirror / Atom feed
* [meta-fsl-arm] Multiple U-Boot configurations
@ 2016-01-25 14:10 Gary Thomas
  2016-01-25 14:42 ` Max Krummenacher
  0 siblings, 1 reply; 6+ messages in thread
From: Gary Thomas @ 2016-01-25 14:10 UTC (permalink / raw)
  To: meta-freescale@yoctoproject.org

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

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


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

* Re: [meta-fsl-arm] Multiple U-Boot configurations
  2016-01-25 14:10 [meta-fsl-arm] Multiple U-Boot configurations Gary Thomas
@ 2016-01-25 14:42 ` Max Krummenacher
  2016-01-25 15:18   ` Gary Thomas
  0 siblings, 1 reply; 6+ messages in thread
From: Max Krummenacher @ 2016-01-25 14:42 UTC (permalink / raw)
  To: Gary Thomas; +Cc: meta-freescale@yoctoproject.org

Hi Gary


2016-01-25 15:10 GMT+01:00 Gary Thomas <gary@mlbassoc.com>:
> 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
>

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

> Thanks
>
> --
> ------------------------------------------------------------
> Gary Thomas                 |  Consulting for the
> MLB Associates              |    Embedded world
> ------------------------------------------------------------
> --
> _______________________________________________
> meta-freescale mailing list
> meta-freescale@yoctoproject.org
> https://lists.yoctoproject.org/listinfo/meta-freescale


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

* Re: [meta-fsl-arm] Multiple U-Boot configurations
  2016-01-25 14:42 ` Max Krummenacher
@ 2016-01-25 15:18   ` Gary Thomas
  2016-01-25 15:48     ` Max Krummenacher
  0 siblings, 1 reply; 6+ messages in thread
From: Gary Thomas @ 2016-01-25 15:18 UTC (permalink / raw)
  To: Max Krummenacher; +Cc: meta-freescale@yoctoproject.org

On 01/25/2016 03:42 PM, Max Krummenacher wrote:
> Hi Gary
>
>
> 2016-01-25 15:10 GMT+01:00 Gary Thomas <gary@mlbassoc.com>:
>> 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
>>
>
> 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

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.

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


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

* Re: [meta-fsl-arm] Multiple U-Boot configurations
  2016-01-25 15:18   ` Gary Thomas
@ 2016-01-25 15:48     ` Max Krummenacher
  2016-01-25 16:05       ` Gary Thomas
  0 siblings, 1 reply; 6+ messages in thread
From: Max Krummenacher @ 2016-01-25 15:48 UTC (permalink / raw)
  To: Gary Thomas; +Cc: meta-freescale@yoctoproject.org

2016-01-25 16:18 GMT+01:00 Gary Thomas <gary@mlbassoc.com>:
> On 01/25/2016 03:42 PM, Max Krummenacher wrote:
>>
>> Hi Gary
>>
>>
>> 2016-01-25 15:10 GMT+01:00 Gary Thomas <gary@mlbassoc.com>:
>>>
>>> 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
>>>
>>
>> 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
>
>
> 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.

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


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

* Re: [meta-fsl-arm] Multiple U-Boot configurations
  2016-01-25 15:48     ` Max Krummenacher
@ 2016-01-25 16:05       ` Gary Thomas
  2016-01-25 16:17         ` Gary Thomas
  0 siblings, 1 reply; 6+ messages in thread
From: Gary Thomas @ 2016-01-25 16:05 UTC (permalink / raw)
  To: Max Krummenacher; +Cc: meta-freescale@yoctoproject.org

On 01/25/2016 04:48 PM, Max Krummenacher wrote:
> 2016-01-25 16:18 GMT+01:00 Gary Thomas <gary@mlbassoc.com>:
>> On 01/25/2016 03:42 PM, Max Krummenacher wrote:
>>>
>>> Hi Gary
>>>
>>>
>>> 2016-01-25 15:10 GMT+01:00 Gary Thomas <gary@mlbassoc.com>:
>>>>
>>>> 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
>>>>
>>>
>>> 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
>>
>>
>> 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.

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


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

* Re: [meta-fsl-arm] Multiple U-Boot configurations
  2016-01-25 16:05       ` Gary Thomas
@ 2016-01-25 16:17         ` Gary Thomas
  0 siblings, 0 replies; 6+ messages in thread
From: Gary Thomas @ 2016-01-25 16:17 UTC (permalink / raw)
  To: meta-freescale

On 01/25/2016 05:05 PM, Gary Thomas wrote:
> On 01/25/2016 04:48 PM, Max Krummenacher wrote:
>> 2016-01-25 16:18 GMT+01:00 Gary Thomas <gary@mlbassoc.com>:
>>> On 01/25/2016 03:42 PM, Max Krummenacher wrote:
>>>>
>>>> Hi Gary
>>>>
>>>>
>>>> 2016-01-25 15:10 GMT+01:00 Gary Thomas <gary@mlbassoc.com>:
>>>>>
>>>>> 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
>>>>>
>>>>
>>>> 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
>>>
>>>
>>> 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.
>

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"

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


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

end of thread, other threads:[~2016-01-25 16:17 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-01-25 14:10 [meta-fsl-arm] Multiple U-Boot configurations Gary Thomas
2016-01-25 14:42 ` Max Krummenacher
2016-01-25 15:18   ` Gary Thomas
2016-01-25 15:48     ` Max Krummenacher
2016-01-25 16:05       ` Gary Thomas
2016-01-25 16:17         ` Gary Thomas

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.