* "sub" machine types?
@ 2015-09-04 7:35 Steffen Sledz
2015-09-04 7:45 ` [oe] " Nicolas Dechesne
2015-09-05 11:29 ` Mike Looijmans
0 siblings, 2 replies; 9+ messages in thread
From: Steffen Sledz @ 2015-09-04 7:35 UTC (permalink / raw)
To: openembedded-core, openembedded-devel
We have some products which differ in bootloaders (u-boot) and kernel device trees only. They use the same kernel and root filesystem.
Does OE have concepts for this? Or any suggestions to realize this without building for many machines?
Steffen
--
DResearch Fahrzeugelektronik GmbH
Otto-Schmirgal-Str. 3, 10319 Berlin, Germany
Tel: +49 30 515932-237 mailto:sledz@dresearch-fe.de
Fax: +49 30 515932-299
Geschäftsführer: Dr. Michael Weber, Werner Mögle;
Amtsgericht Berlin Charlottenburg; HRB 130120 B;
Ust.-IDNr. DE273952058
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [oe] "sub" machine types?
2015-09-04 7:35 "sub" machine types? Steffen Sledz
@ 2015-09-04 7:45 ` Nicolas Dechesne
2015-09-05 6:44 ` Steffen Sledz
2015-09-05 11:29 ` Mike Looijmans
1 sibling, 1 reply; 9+ messages in thread
From: Nicolas Dechesne @ 2015-09-04 7:45 UTC (permalink / raw)
To: openembedded-devel; +Cc: openembedded-core
On Fri, Sep 4, 2015 at 9:35 AM, Steffen Sledz <sledz@dresearch-fe.de> wrote:
> We have some products which differ in bootloaders (u-boot) and kernel device trees only. They use the same kernel and root filesystem.
>
> Does OE have concepts for this? Or any suggestions to realize this without building for many machines?
most BSP layers use SOC_FAMILY, see [1] for this type of things, such
that you can create 'SOC' specific packages that are reused across
multiple (OE) machines. That sounds like that would help in your
situation.
[1] http://www.yoctoproject.org/docs/1.8/ref-manual/ref-manual.html#var-SOC_FAMILY
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [oe] "sub" machine types?
2015-09-04 7:45 ` [oe] " Nicolas Dechesne
@ 2015-09-05 6:44 ` Steffen Sledz
2015-09-06 20:45 ` Phil Blundell
0 siblings, 1 reply; 9+ messages in thread
From: Steffen Sledz @ 2015-09-05 6:44 UTC (permalink / raw)
To: Nicolas Dechesne, openembedded-devel; +Cc: openembedded-core
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Am 04.09.2015 um 09:45 schrieb Nicolas Dechesne:
> On Fri, Sep 4, 2015 at 9:35 AM, Steffen Sledz <sledz@dresearch-fe.de> wrote:
>> We have some products which differ in bootloaders (u-boot) and kernel device trees only. They use the same kernel and root filesystem.
>>
>> Does OE have concepts for this? Or any suggestions to realize this without building for many machines?
>
> most BSP layers use SOC_FAMILY, see [1] for this type of things, such that you can create 'SOC' specific packages that are reused across multiple (OE) machines. That sounds like that would help in your situation.
>
> [1] http://www.yoctoproject.org/docs/1.8/ref-manual/ref-manual.html#var-SOC_FAMILY
I'm not really sure if this is what we need. You suggest to use different MACHINEs of one SOC_FAMILY, Right?
But if I bitbake the root filesystem for each MACHINE an *own* image is created. And not *one* usable for all of them.
What we wish is one image containing one kernel and device tree files for each product.
In addition a u-boot image for each product so that we can use a boot setup running different u-boot images starting the same kernel and root filesystem with different parameters (e.g. for the device trees).
- --
DResearch Fahrzeugelektronik GmbH
Otto-Schmirgal-Str. 3, 10319 Berlin, Germany
Tel: +49 30 515932-237 mailto:sledz@dresearch-fe.de
Fax: +49 30 515932-299
Geschäftsführer: Dr. Michael Weber, Werner Mögle;
Amtsgericht Berlin Charlottenburg; HRB 130120 B;
Ust.-IDNr. DE273952058
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2
iQIcBAEBAgAGBQJV6o9aAAoJEIz5slJ1krPhF9UP/0cp0JrohbZOeRen1ksJfGIr
J3kGKKEqBlw4s+0ugsPIMSp3pR2La/7/IgGV938H5mc6+88CobTpQU25TaE31ukq
hgfoG/SHuZCucp1TpTahANkt+d8OmrDOTDLYTzEmWD47VGRp64PiMzlQBKIg27Bo
NUdG3cFoUzPrS6tu24LR/EiM+ve2+ItZ8/pEXY0RiCYD/vhehP8qq2Yunow5cvyj
xvy1kxbJYCYvjXQF52z9L+R68vvZVzXFF7VrTeT00DJlj99KP5R97vvbIyHzFsHK
1YJfmRkkSx5d41QGegM9GHJGaGOKxHQekh/V5PgwfgQKBxgXq/5slWAvIzH7l6Fq
udkqX9goeeEmkztiUhK1VbEQr8wd5SyRI/9wfEJD8AuJPiV460JZrC2lhh/dOxnf
sEOGzgNMe/lddcGty6ns5Jn9ztJhnaYNtYK1NFdY/aGUPASgcXCCcPxUNW00KEsp
yCwmVEUE37vIGJltqJ2XfUCPhIZ4eiuPZOkzYHo4s+CtArKHiWlzWWREXSrNREql
92FDTuOCkBuYDrmiRMbIuHRxO7gguE2ZS8YPCSRbGsE/VwwUhlMAtRddnGr5QA1G
FL1qnW+28wrqwHZlVfzFzO+qUnAo7/LqfnF525ABObdlF6sk4/b9r2MeTEoPwLkx
qd2HFZDh4HBu2h4t6E1s
=m/r6
-----END PGP SIGNATURE-----
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: "sub" machine types?
2015-09-04 7:35 "sub" machine types? Steffen Sledz
2015-09-04 7:45 ` [oe] " Nicolas Dechesne
@ 2015-09-05 11:29 ` Mike Looijmans
2015-09-07 7:09 ` Steffen Sledz
1 sibling, 1 reply; 9+ messages in thread
From: Mike Looijmans @ 2015-09-05 11:29 UTC (permalink / raw)
To: Steffen Sledz, openembedded-core, openembedded-devel
On 04-09-15 09:35, Steffen Sledz wrote:
> We have some products which differ in bootloaders (u-boot) and kernel device trees only. They use the same kernel and root filesystem.
>
> Does OE have concepts for this? Or any suggestions to realize this without building for many machines?
The way I handled this was to make it so that all machines have the same
MACHINE_ARCH, but MACHINE has some suffixes. This combines the kernels
and such. Only problem with that approach is that OE will erase the
kernel for a previous machine if you build for the next one, so you have
to copy the resulting images to another location at the end of the build.
For your case, I think you can just use a single MACHINE. You can just
supply multiple devicetrees, and I think the u-boot recipe recently
learned to have multiple targets, so you can build multiple bootloaders
for a single machine too.
--
Mike Looijmans
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [oe] "sub" machine types?
2015-09-05 6:44 ` Steffen Sledz
@ 2015-09-06 20:45 ` Phil Blundell
0 siblings, 0 replies; 9+ messages in thread
From: Phil Blundell @ 2015-09-06 20:45 UTC (permalink / raw)
To: Steffen Sledz; +Cc: openembedded-devel, openembedded-core
On Sat, 2015-09-05 at 08:44 +0200, Steffen Sledz wrote:
> What we wish is one image containing one kernel and device tree files for each product.
If these devices all use the same kernel and the same rootfs then it
sounds like, as far as OE is concerned, they are the same MACHINE. If
you need to build device trees and different bootloaders for particular
variants then you can do that easily enough with custom recipes.
p.
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: "sub" machine types?
2015-09-05 11:29 ` Mike Looijmans
@ 2015-09-07 7:09 ` Steffen Sledz
2015-09-07 12:08 ` Steffen Sledz
0 siblings, 1 reply; 9+ messages in thread
From: Steffen Sledz @ 2015-09-07 7:09 UTC (permalink / raw)
To: Mike Looijmans, openembedded-core, openembedded-devel
On 05.09.2015 13:29, Mike Looijmans wrote:
> ... and I think the u-boot recipe recently learned to have multiple targets, so you can build multiple bootloaders for a single machine too.
That sounds great. Can someone give a pointer to some documentation or examples for that?
--
DResearch Fahrzeugelektronik GmbH
Otto-Schmirgal-Str. 3, 10319 Berlin, Germany
Tel: +49 30 515932-237 mailto:sledz@dresearch-fe.de
Fax: +49 30 515932-299
Geschäftsführer: Dr. Michael Weber, Werner Mögle;
Amtsgericht Berlin Charlottenburg; HRB 130120 B;
Ust.-IDNr. DE273952058
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: "sub" machine types?
2015-09-07 7:09 ` Steffen Sledz
@ 2015-09-07 12:08 ` Steffen Sledz
2015-09-07 14:24 ` Lee Nipper
0 siblings, 1 reply; 9+ messages in thread
From: Steffen Sledz @ 2015-09-07 12:08 UTC (permalink / raw)
To: Mike Looijmans, openembedded-core, openembedded-devel, pb
On 07.09.2015 09:09, Steffen Sledz wrote:
> On 05.09.2015 13:29, Mike Looijmans wrote:
>> ... and I think the u-boot recipe recently learned to have multiple targets, so you can build multiple bootloaders for a single machine too.
>
> That sounds great. Can someone give a pointer to some documentation or examples for that?
Is it correct to just replace the UBOOT_MACHINE item in the machine config with something like this?
UBOOT_CONFIG ??= "sub1 sub2 sub3"
UBOOT_CONFIG[sub1] = "mymachine_sub1_config"
UBOOT_CONFIG[sub2] = "mymachine_sub2_config"
UBOOT_CONFIG[sub3] = "mymachine_sub3_config"
--
DResearch Fahrzeugelektronik GmbH
Otto-Schmirgal-Str. 3, 10319 Berlin, Germany
Tel: +49 30 515932-237 mailto:sledz@dresearch-fe.de
Fax: +49 30 515932-299
Geschäftsführer: Dr. Michael Weber, Werner Mögle;
Amtsgericht Berlin Charlottenburg; HRB 130120 B;
Ust.-IDNr. DE273952058
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: "sub" machine types?
2015-09-07 12:08 ` Steffen Sledz
@ 2015-09-07 14:24 ` Lee Nipper
2015-09-09 13:37 ` Steffen Sledz
0 siblings, 1 reply; 9+ messages in thread
From: Lee Nipper @ 2015-09-07 14:24 UTC (permalink / raw)
To: Steffen Sledz; +Cc: Mike Looijmans, openembedded-devel, openembedded-core
[-- Attachment #1: Type: text/plain, Size: 848 bytes --]
On Mon, Sep 7, 2015 at 7:08 AM, Steffen Sledz <sledz@dresearch-fe.de> wrote:
> On 07.09.2015 09:09, Steffen Sledz wrote:
> > On 05.09.2015 13:29, Mike Looijmans wrote:
> >> ... and I think the u-boot recipe recently learned to have multiple
> targets, so you can build multiple bootloaders for a single machine too.
> >
> > That sounds great. Can someone give a pointer to some documentation or
> examples for that?
>
> Is it correct to just replace the UBOOT_MACHINE item in the machine config
> with something like this?
>
> UBOOT_CONFIG ??= "sub1 sub2 sub3"
> UBOOT_CONFIG[sub1] = "mymachine_sub1_config"
> UBOOT_CONFIG[sub2] = "mymachine_sub2_config"
> UBOOT_CONFIG[sub3] = "mymachine_sub3_config"
>
>
Looks right.
I think you may also want to add something like:
KERNEL_DEVICETREE ??= "sub1.dtb sub2.dtb sub3.dtb"
[-- Attachment #2: Type: text/html, Size: 1445 bytes --]
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: "sub" machine types?
2015-09-07 14:24 ` Lee Nipper
@ 2015-09-09 13:37 ` Steffen Sledz
0 siblings, 0 replies; 9+ messages in thread
From: Steffen Sledz @ 2015-09-09 13:37 UTC (permalink / raw)
To: Lee Nipper; +Cc: Mike Looijmans, openembedded-devel, openembedded-core
On 07.09.2015 16:24, Lee Nipper wrote:
>
> On Mon, Sep 7, 2015 at 7:08 AM, Steffen Sledz <sledz@dresearch-fe.de <mailto:sledz@dresearch-fe.de>> wrote:
>
> On 07.09.2015 09:09, Steffen Sledz wrote:
> > On 05.09.2015 13:29, Mike Looijmans wrote:
> >> ... and I think the u-boot recipe recently learned to have multiple targets, so you can build multiple bootloaders for a single machine too.
> >
> > That sounds great. Can someone give a pointer to some documentation or examples for that?
>
> Is it correct to just replace the UBOOT_MACHINE item in the machine config with something like this?
>
> UBOOT_CONFIG ??= "sub1 sub2 sub3"
> UBOOT_CONFIG[sub1] = "mymachine_sub1_config"
> UBOOT_CONFIG[sub2] = "mymachine_sub2_config"
> UBOOT_CONFIG[sub3] = "mymachine_sub3_config"
>
>
> Looks right.
What about the u-boot-fw-utils? Is the recipe ready for this too?
What about the artefacts? Is there one binary usable for all u-boot images?
--
DResearch Fahrzeugelektronik GmbH
Otto-Schmirgal-Str. 3, 10319 Berlin, Germany
Tel: +49 30 515932-237 mailto:sledz@dresearch-fe.de
Fax: +49 30 515932-299
Geschäftsführer: Dr. Michael Weber, Werner Mögle;
Amtsgericht Berlin Charlottenburg; HRB 130120 B;
Ust.-IDNr. DE273952058
^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2015-09-09 13:37 UTC | newest]
Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-09-04 7:35 "sub" machine types? Steffen Sledz
2015-09-04 7:45 ` [oe] " Nicolas Dechesne
2015-09-05 6:44 ` Steffen Sledz
2015-09-06 20:45 ` Phil Blundell
2015-09-05 11:29 ` Mike Looijmans
2015-09-07 7:09 ` Steffen Sledz
2015-09-07 12:08 ` Steffen Sledz
2015-09-07 14:24 ` Lee Nipper
2015-09-09 13:37 ` Steffen Sledz
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox