Met vriendelijke groet / kind regards,

Mike Looijmans
System Expert


TOPIC Embedded Products B.V.
Materiaalweg 4, 5681 RJ Best
The Netherlands

T: +31 (0) 499 33 69 69
E: [email protected]
W: www.topic.nl

Please consider the environment before printing this e-mail
On 13-04-2023 16:05, Mark Hatle via lists.yoctoproject.org wrote:


On 4/13/23 1:29 AM, Mike Looijmans wrote:
One issue that now pops up is the MACHINE_ESSENTIAL_EXTRA_RDEPENDS scripting,
in meta-xilinx-core/conf/machine/include/machine-xilinx-default.inc

MACHINE_ESSENTIAL_EXTRA_RDEPENDS .= "${@bb.utils.contains('IMAGE_BOOT_FILES',
'boot.bin',     ' ${PREFERRED_PROVIDER_virtual/boot-bin}', '', d)}"

Some boards DO boot from boot.bin in a fat filesystem (/boot). This is why that was done.  The additional files were placed there as well (firmwares) so it can be reconstructed on the target, if necessary, or again some boot methods allow a chained boot where parts can be loaded from the filesystem.

My thoughts:

- If "some" machine(s) need this, wouldn't it be better to set these for "some" machine only and not force it to all?

- As far as I know, boot.bin in /boot/ is pointless, the ROM cannot boot from that. boot.bin must be in the root of the first FAT partition.

- On my systems, boot.bin is the one and only file in the fat partition.

- It's still not correct to force files into the root filesystem. I currently work around it by just setting MACHINE_ESSENTIAL_EXTRA_RDEPENDS = "" which I consider an ugly hack.

- It causes build fails on my system.


All this is broken. This particular line will put "boot.bin" into the root
filesystem. Boot files should NOT be in the root filesystem.

If you go back to the Poky WKS: https://git.yoctoproject.org/poky/tree/scripts/lib/wic/canned-wks/sdimage-bootpart.wks

Then that file disappears as the /boot partition is generated vs installed from packages.  (There are other ways of handling this through wic as well.)

WIC files aren't the only way to create images, and Xilinx isn't the only SOM manufacturer.

We tend to use SWUpdate a lot, so we just flash the rootfs onto the target over network.



But with that said, I'll look at what can be done to better control this behavior, in a follow up.  I don't want to hold off moving this to langdale/mickledore much longer -- it's already taken me months to get it to this point.

First assigning to a _XILINX variable and adding that would help a lot. Then I can just override that to be empty and get standard OE behavior back.
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#5224): 
https://lists.yoctoproject.org/g/meta-xilinx/message/5224
Mute This Topic: https://lists.yoctoproject.org/mt/98229455/21656
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/meta-xilinx/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to