Re: drivers/net/dsa/dsa_loop_bdinfo.c build problems

From: Florian Fainelli
Date: Mon May 13 2024 - 11:50:12 EST




On 5/13/2024 8:45 AM, Stephen Langstaff wrote:
On Mon, May 13, 2024 at 4:40 PM Florian Fainelli <f.fainelli@xxxxxxxxx> wrote:
The Makefile has this:

obj-$(CONFIG_FIXED_PHY) += dsa_loop_bdinfo.o

so it follows the value of CONFIG_FIXED_PHY, what is this configuration
symbol is to in your kernel configuration?

CONFIG_FIXED_PHY=y

Then dsa_loop_bdinfo is going to be built into your kernel image, and it will register a mdio_board_info structure which will create fixed PHY devices and it will assume that the DSA conduit network device name is "eth0". If this is not correct for your system, that needs changing.

What are you trying to achieve? Can you be a tad more verbose about what you have tried and what is not working?
--
Florian