Re: [systemd-devel] Ordering services issue. Trying to start ptp4l in bonding setup fails as bonding appears to take a while.

2021-12-02 Thread Brian Hutchinson
Hi James, On Thu, Dec 2, 2021 at 1:50 PM James Feeney wrote: > On 12/2/21 08:41, Brian Hutchinson wrote: > > Yup, I'm using systemd-networkd ... I think I have to in order to > leverage network-online.target etc., and set up my network (bonding in this > case) with .netdev a

Re: [systemd-devel] Ordering services issue. Trying to start ptp4l in bonding setup fails as bonding appears to take a while.

2021-12-02 Thread Brian Hutchinson
Hey James, On Thu, Dec 2, 2021 at 9:30 AM James Feeney wrote: > On 12/1/21 13:27, Brian Hutchinson wrote: > > Maybe I'm missing something here but I don't see any way for me to "add > targets" to this problem to solve it ... > > Well, of course, tha

Re: [systemd-devel] Ordering services issue. Trying to start ptp4l in bonding setup fails as bonding appears to take a while.

2021-12-01 Thread Brian Hutchinson
Hey Andrei, On Wed, Dec 1, 2021 at 1:51 PM Andrei Borzenkov wrote: > On 01.12.2021 17:20, Brian Hutchinson wrote: > > Hi, > > > > I'm on embedded imx8 mm platform and trying to order services such that > > ptp4l (LinuxPTP) is started after a bond is c

Re: [systemd-devel] Ordering services issue. Trying to start ptp4l in bonding setup fails as bonding appears to take a while.

2021-12-01 Thread Brian Hutchinson
Hey James, Thanks! Responses below On Wed, Dec 1, 2021 at 1:12 PM James Feeney wrote: > On 12/1/21 07:20, Brian Hutchinson wrote: > > ... > > In .system file I tried all I know to ensure the required interfaces > were created before starting ptp4l in attempt to give bondin

[systemd-devel] Ordering services issue. Trying to start ptp4l in bonding setup fails as bonding appears to take a while.

2021-12-01 Thread Brian Hutchinson
Hi, I'm on embedded imx8 mm platform and trying to order services such that ptp4l (LinuxPTP) is started after a bond is created between two DSA network interfaces on my Microchip Ethernet Switch. No matter what I try with BindsTo, Wants=, Requires=, Before=, After=, when the board boots and I wat

Re: [systemd-devel] Systemd setup DSA interfaces in port mode and bond them together?

2021-11-18 Thread Brian Hutchinson
Hi Alvin, On Thu, Nov 18, 2021 at 5:48 PM Alvin Šipraga wrote: > On 11/18/21 23:25, Brian Hutchinson wrote: > > Hi Alvin, > > > > > > On Thu, Nov 18, 2021 at 4:20 PM Alvin Šipraga > <mailto:a...@bang-olufsen.dk>> wrote: > > > > Hi Bri

Re: [systemd-devel] Systemd setup DSA interfaces in port mode and bond them together?

2021-11-18 Thread Brian Hutchinson
Hi Alvin, On Thu, Nov 18, 2021 at 4:20 PM Alvin Šipraga wrote: > Hi Brian, > > On 11/18/21 01:20, Brian Hutchinson wrote: > > Yet another update, I was able to get it working .. but feel like it is > > a hack so comments welcome ... see below: > > > > >

Re: [systemd-devel] Systemd setup DSA interfaces in port mode and bond them together?

2021-11-17 Thread Brian Hutchinson
Hi Andrei, On Thu, Nov 18, 2021, 12:13 AM Andrei Borzenkov wrote: > On 18.11.2021 03:20, Brian Hutchinson wrote: > > Yet another update, I was able to get it working .. but feel like it is a > > hack so comments welcome ... see below: > > > > On Wed, Nov 17, 2021 a

Re: [systemd-devel] Systemd setup DSA interfaces in port mode and bond them together?

2021-11-17 Thread Brian Hutchinson
Yet another update, I was able to get it working .. but feel like it is a hack so comments welcome ... see below: On Wed, Nov 17, 2021 at 12:26 AM Brian Hutchinson wrote: > Update below > > On Tue, Nov 16, 2021 at 2:27 PM Brian Hutchinson > wrote: > >> Hi Mikulėnas, >&

Re: [systemd-devel] Systemd setup DSA interfaces in port mode and bond them together?

2021-11-16 Thread Brian Hutchinson
Update below On Tue, Nov 16, 2021 at 2:27 PM Brian Hutchinson wrote: > Hi Mikulėnas, > > On Tue, Nov 16, 2021, 3:12 AM Mantas Mikulėnas wrote: > >> Most of this looks like it could be done with systemd-networkd to create >> a bond .netdev, with a small oneshot serv

Re: [systemd-devel] Systemd setup DSA interfaces in port mode and bond them together?

2021-11-16 Thread Brian Hutchinson
nd was created etc. Same thing for the i2c command to enable the switch. Regards, Brian > On Tue, Nov 16, 2021, 02:58 Brian Hutchinson wrote: > >> Hi, >> >> I'm on a IMX8 platform and have a Microchip KSZ9567 Ethernet switch. I >> can use IP commands to man

[systemd-devel] Systemd setup DSA interfaces in port mode and bond them together?

2021-11-15 Thread Brian Hutchinson
Hi, I'm on a IMX8 platform and have a Microchip KSZ9567 Ethernet switch. I can use IP commands to manually bring lan1 and lan2 interfaces up and then create a redundant/failover bond ... but I'm having difficulty figuring out how to do this the "systemd" way. My first attempt was to just have sy

Re: [systemd-devel] Systemd setting up two Microchip switch ports as individual network interfaces and then bonding them

2020-10-15 Thread Brian Hutchinson
ng me. Regards, Brian On Tue, Oct 13, 2020 at 8:56 AM Brian Hutchinson wrote: > Hi, > > I have my device tree exposing two Microchip KSZ9567 switch ports. I need > to use them as individual NIC's. > > I've tested the DSA driver as individual nics and they work fine.

Re: [systemd-devel] Systemd setting up two Microchip switch ports as individual network interfaces and then bonding them

2020-10-13 Thread Brian Hutchinson
... would be nice if someone could add a systemd-networkd section to Documentation/networking/bonding.txt Looks like all methods but systemd-networkd are covered. Regards, Brian On Tue, Oct 13, 2020 at 4:06 PM Brian Hutchinson wrote: > > > On Tue, Oct 13, 2020 at 10:06 AM Brian H

Re: [systemd-devel] Systemd setting up two Microchip switch ports as individual network interfaces and then bonding them

2020-10-13 Thread Brian Hutchinson
On Tue, Oct 13, 2020 at 10:06 AM Brian Hutchinson wrote: > > On Tue, Oct 13, 2020 at 9:16 AM Kevin P. Fleming wrote: > >> While I can't comment on the specifics of configuring systemd-networkd >> to use ports through DSA (although the linked GitHub issue shows that &g

Re: [systemd-devel] Systemd setting up two Microchip switch ports as individual network interfaces and then bonding them

2020-10-13 Thread Brian Hutchinson
On Tue, Oct 13, 2020 at 10:06 AM Brian Hutchinson wrote: > > On Tue, Oct 13, 2020 at 9:16 AM Kevin P. Fleming wrote: > >> While I can't comment on the specifics of configuring systemd-networkd >> to use ports through DSA (although the linked GitHub issue shows that &g

Re: [systemd-devel] Systemd setting up two Microchip switch ports as individual network interfaces and then bonding them

2020-10-13 Thread Brian Hutchinson
On Tue, Oct 13, 2020 at 9:16 AM Kevin P. Fleming wrote: > While I can't comment on the specifics of configuring systemd-networkd > to use ports through DSA (although the linked GitHub issue shows that > it can be done), I really doubt you are going to be able to > successfully bond any group of s

[systemd-devel] Systemd setting up two Microchip switch ports as individual network interfaces and then bonding them

2020-10-13 Thread Brian Hutchinson
Hi, I have my device tree exposing two Microchip KSZ9567 switch ports. I need to use them as individual NIC's. I've tested the DSA driver as individual nics and they work fine. I do this with: ip addr add 192.168.0.4/24 dev lan1 ip addr add 192.168.2.4/24 dev lan2 ip link set eth0 up ip link

[systemd-devel] Udev rule from Yocto 1.8.1 no longer works in Yocto 2.2.2

2017-08-16 Thread Brian Hutchinson
Hi, I have a case where I have basically a cold plugged USB based mass storage device. This is an embedded application, so I do some magic with udev rules (not using systemd yet which would make this easier from what I hear) to make sure the device has e2fsck ran on it before it mounts. To make