is there OE support for building multi-image/component FIT image files?
not sure i even know if i'm asking the right question, but i already
know that i can build a *basic* FIT image file for (as an example) a mpc8315e-rdb target, just goofing around. the .its file contains a node for the kernel, and the dtb file, and the corresponding configuration node, so everything is fine.
however, let's say i was building for a beaglebone black, for which,
when you build the kernel. you get *multiple* dtb files for numerous related targets.
is there OE support for defining .its files that contain multiple
kernels, and/or multiple dtb files, that automatically generates multiple configurations nodes to cover those possibilities?
i realize you can do all that manually with the "mkimage" command,
i'm just not sure how far you can push creating FIT image files with stock OE support.
rday
Signature · 7 lines
========================================================================
Robert P. J. Day Ottawa, Ontario, CANADA
http://crashcourse.ca
Twitter: http://twitter.com/rpjday
LinkedIn: http://ca.linkedin.com/in/rpjday
========================================================================kernel-fitimage.bbclass loops through all the DTBs listed in KERNEL_DEVICETREE and adds a FIT section for each one. It looks like only the first one is put into a config section though.
Quoted 36 lines · Robert P. J. Day
not sure i even know if i'm asking the right question, but i already
know that i can build a *basic* FIT image file for (as an example) a mpc8315e-rdb target, just goofing around. the .its file contains a node for the kernel, and the dtb file, and the corresponding configuration node, so everything is fine.however, let's say i was building for a beaglebone black, for which,
when you build the kernel. you get *multiple* dtb files for numerous related targets.is there OE support for defining .its files that contain multiple
kernels, and/or multiple dtb files, that automatically generates multiple configurations nodes to cover those possibilities?i realize you can do all that manually with the "mkimage" command,
i'm just not sure how far you can push creating FIT image files with stock OE support.rday
--
========================================================================
Robert P. J. Day Ottawa, Ontario, CANADA
http://crashcourse.caTwitter: http://twitter.com/rpjday LinkedIn: http://ca.linkedin.com/in/rpjday========================================================================
--
_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-core
Quoted 3 lines · Rick Altherr
kernel-fitimage.bbclass loops through all the DTBs listed in
KERNEL_DEVICETREEand adds a FIT section for each one. It looks like only the first one is put into a config section though.
maybe i just haven't read far enough, but what value would that
have? as i read it, "bootm" can either boot based on an actual image reference, or a configuration entry. i don't see how you can select from among DTBs unless they're referenced in a configuration entry.
can someone clarify this?
rday
Signature · 7 lines
========================================================================
Robert P. J. Day Ottawa, Ontario, CANADA
http://crashcourse.ca
Twitter: http://twitter.com/rpjday
LinkedIn: http://ca.linkedin.com/in/rpjday
========================================================================Quoted 3 lines · Rick Altherr
kernel-fitimage.bbclass loops through all the DTBs listed in
KERNEL_DEVICETREEand adds a FIT section for each one. It looks like only the first one is put into a config section though.
that's not what i'm seeing based on a test with YP-provided
beaglebone reference board. that machine config file includes the line for two dtb files:
KERNEL_DEVICETREE="am335x-bone.dtb am335x-boneblack.dtb"
and the resulting .its file generated contains two configurations -- using the same kernel, and for each dtb file. i just need to read the code more carefully to verify that it appears to loop through all the dtb files.
images {
kernel@1 {
description = "Linux kernel";
data = /incbin/("linux.bin");
type = "kernel";
arch = "arm";
os = "linux";
compression = "none";
load = <0x80008000>;
entry = <0x80008000>;
hash@1 {
algo = "sha1";
};
};
[email protected] {
description = "Flattened Device Tree blob";
data = /incbin/("arch/arm/boot/dts/am335x-bone.dtb");
type = "flat_dt";
arch = "arm";
compression = "none";
hash@1 {
algo = "sha1";
};
};
[email protected] {
description = "Flattened Device Tree blob";
data = /incbin/("arch/arm/boot/dts/am335x-boneblack.dtb");
type = "flat_dt";
arch = "arm";
compression = "none";
hash@1 {
algo = "sha1";
};
};
};configurations {
default = "[email protected]";
[email protected] {
description = "1 Linux kernel, FDT blob";
kernel = "kernel@1";
fdt = "[email protected]";
hash@1 {
algo = "sha1";
};
};
[email protected] {
description = "0 Linux kernel, FDT blob";
kernel = "kernel@1";
fdt = "[email protected]";
hash@1 {
algo = "sha1";
};
};
};rday
Signature · 7 lines
========================================================================
Robert P. J. Day Ottawa, Ontario, CANADA
http://crashcourse.ca
Twitter: http://twitter.com/rpjday
LinkedIn: http://ca.linkedin.com/in/rpjday
========================================================================Quoted 11 lines · Robert P. J. Day
Quoted 3 lines · Rick Altherr
kernel-fitimage.bbclass loops through all the DTBs listed in
KERNEL_DEVICETREEand adds a FIT section for each one. It looks like only the first one is put into a config section though.maybe i just haven't read far enough, but what value would that
have? as i read it, "bootm" can either boot based on an actual image reference, or a configuration entry. i don't see how you can select from among DTBs unless they're referenced in a configuration entry.
bootm takes 3 arguments: kernel, initrd, fdt. Each of those can reference a specific image within the FIT using <fit-address>:<image-name> format.
Quoted 14 lines
can someone clarify this?
rday
--
========================================================================
Robert P. J. Day Ottawa, Ontario, CANADA
http://crashcourse.caTwitter: http://twitter.com/rpjday LinkedIn: http://ca.linkedin.com/in/rpjday========================================================================
Looks like this was changed 8 days ago:
http://git.openembedded.org/openembedded-core/commit/meta/classes/kernel-fitimage.bbclass?id=cd2ed7f80b555add07795cc0cbaee866e6c193a3.
I was looking at an old local repo.
Quoted 92 lines · Robert P. J. Day
Quoted 3 lines · Rick Altherr
kernel-fitimage.bbclass loops through all the DTBs listed in
KERNEL_DEVICETREEand adds a FIT section for each one. It looks like only the first one is put into a config section though.that's not what i'm seeing based on a test with YP-provided
beaglebone reference board. that machine config file includes the line for two dtb files:KERNEL_DEVICETREE="am335x-bone.dtb am335x-boneblack.dtb"
and the resulting .its file generated contains two configurations -- using the same kernel, and for each dtb file. i just need to read the code more carefully to verify that it appears to loop through all the dtb files.
images { kernel@1 { description = "Linux kernel"; data = /incbin/("linux.bin"); type = "kernel"; arch = "arm"; os = "linux"; compression = "none"; load = <0x80008000>; entry = <0x80008000>; hash@1 { algo = "sha1"; }; }; [email protected] { description = "Flattened Device Tree blob"; data = /incbin/("arch/arm/boot/dts/am335x-bone.dtb"); type = "flat_dt"; arch = "arm"; compression = "none"; hash@1 { algo = "sha1"; }; }; [email protected] { description = "Flattened Device Tree blob"; data = /incbin/("arch/arm/boot/dts/am335x-boneblack.dtb"); type = "flat_dt"; arch = "arm"; compression = "none"; hash@1 { algo = "sha1"; }; }; };configurations { default = "[email protected]"; [email protected] { description = "1 Linux kernel, FDT blob"; kernel = "kernel@1"; fdt = "[email protected]"; hash@1 { algo = "sha1"; }; }; [email protected] { description = "0 Linux kernel, FDT blob"; kernel = "kernel@1"; fdt = "[email protected]"; hash@1 { algo = "sha1"; }; }; };rday
--
========================================================================
Robert P. J. Day Ottawa, Ontario, CANADA
http://crashcourse.caTwitter: http://twitter.com/rpjday LinkedIn: http://ca.linkedin.com/in/rpjday========================================================================