<div dir="auto"><div><br><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Le jeu. 15 août 2024, 05:03, Henti Smith <<a href="mailto:henti@gaydonsmith.co.uk">henti@gaydonsmith.co.uk</a>> a écrit :<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>Hello
Etienne</div><div><br></div><div>I cannot find any info on how to extract this information from the current system. <br></div><div><br></div><div>How would I go about doing that ?</div></div></blockquote></div></div><div dir="auto"><br></div><div dir="auto">Try</div><div dir="auto"><br></div><div dir="auto">cat /sys/devices/pci0000:00/0000:00:10.0/0000:05:00.0/firmware_node/sun<br></div><div dir="auto">cat /sys/devices/pci0000:00/0000:00:10.0/firmware_node/sun<br></div><div dir="auto"><span style="font-size:12.8px"><br></span></div><div dir="auto"><br></div><div dir="auto"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div> <br></div><div><br></div><div>Kind regards</div><div>Henti <br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, 13 Aug 2024 at 17:56, Etienne Champetier <<a href="mailto:champetier.etienne@gmail.com" target="_blank" rel="noreferrer">champetier.etienne@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hello Henti,<br>
<br>
Le mar. 13 août 2024 à 12:16, Henti Smith <<a href="mailto:henti@gaydonsmith.co.uk" target="_blank" rel="noreferrer">henti@gaydonsmith.co.uk</a>> a écrit :<br>
><br>
> Good day everybody.<br>
><br>
> I've searched high and low and cannot seem to find an answer for what I'm trying to do. The most relevant I found was this [1] thread in 2020, but only because I'm using a script to change the contents of my .link files during boot, which is not working constantly.<br>
><br>
> Some things to note:<br>
> 1. The hardware is sample hardware so Mac addresses are 00:00:00:00:00.<br>
> 2. The hardware has an external hot-swap PCId port that takes a board for VGA out.<br>
> 3. We're attempting to configure two interfaces.<br>
><br>
> The problem is when the board is attached the PCI numbering of the two interfaces change. With the board attached, it's 5 and 6, without it 4 and 5.<br>
><br>
> Normally this would not be a problem, since you can Match on mac address, but in this case, both have the same mac address of 00:00:00:00:00.<br>
><br>
> My attempt to fix this was to create a script [2] that enumerated the PCI ports for the hardware manufacturer and use that information to update the link files [2] before systemd-networkd starts, but this does not work constantly.<br>
><br>
> Are there any other recommendations to resolve this situation or if my approach is the only real way to do this, how can I ensure my script is executed before systemd uses the link files to apply the interface configuration ?<br>
<br>
Does the platform provide ACPI _SUN info by any chance ?<br>
<a href="https://github.com/systemd/systemd/pull/33682" rel="noreferrer noreferrer" target="_blank">https://github.com/systemd/systemd/pull/33682</a><br>
<br>
Best<br>
Etienne<br>
<br>
><br>
> [1] <a href="https://lists.freedesktop.org/archives/systemd-devel/2020-June/044784.html" rel="noreferrer noreferrer" target="_blank">https://lists.freedesktop.org/archives/systemd-devel/2020-June/044784.html</a><br>
> [2] <a href="https://paste.mozilla.org/jgcCyo9A" rel="noreferrer noreferrer" target="_blank">https://paste.mozilla.org/jgcCyo9A</a><br>
> [3] <a href="https://paste.mozilla.org/zXQYpXpd" rel="noreferrer noreferrer" target="_blank">https://paste.mozilla.org/zXQYpXpd</a><br>
><br>
> Any guidance would be most welcome.<br>
><br>
> Kind regards<br>
> Henti Smith<br>
</blockquote></div></div>
</blockquote></div></div></div>