This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Linux/DP83TC811S-Q1: Linux driver on older kernel

Part Number: DP83TC811S-Q1
Other Parts Discussed in Thread: DP83TC811

Tool/software: Linux

Hello,

we are developing an interface for IP-communication with DP83TC811. The kernel we used is 4.14.99. I tried to build the kernel with this driver, but I got error messages. I copied the driver code for this PHY from website into /drivers/net/phy and added lines in Kconfig and Makefile to check the driver in menuconfig. Somehow appeared error messages like implicit declaration of functions phy_clear_bits_mmd and phy_set_bits_mmd. 

Is it possible to run this PHY in kernel 4.14? I tried to compile kernel 5.1.5, which included this driver, but our processor does not support kernel version above 4.14.

The PHY is pinstrapped as master through RMII and I can see it on MDIO bus, but can't send or transmit messages. I checked it with Wireshark and tcpdump. I think it can't operate because kernel doesn't know this device.

Could you give me an advice how to fix this problems?

Thank you.

Regards, Andy

  • Update:
    after manually installing different header-files like
    - phy.h
    - mdio.h
    - mii.h
    - uapi/linux/mdio.h
    - phy-core.c

    from kernel 5.1.5 I get now following error messages:
    drivers/net/phy/dp83tc811.o: In Function >dp83811_set_wol<:
    dp83811.c:(.text+0x1b0): Warning: undefined reference to >phy_modify_mmd<

    and the same for dp83811_resume

    I hope you can help me. Thank you.
  • Hi Andy,

    The driver will need a patch to work for older kernel versions. We can take a look at developing the kernel 4.14 patch but at this moment I don't have a expected timeline. I will come back with more information as soon as we have it.

    -Regards
    Aniruddha
  • Hi Aniruddha,

    I am glad to hear that the driver for this PHY could be patched. Can we support you to do this on high priority? Our board should be finished in two months, and we have to do some tests and also an final board version. It would be nice if someone could spend time on it. If you have some questions, you can also ask me via E-Mail. Thank you very much for response.

    Best regards,

    Andy

  • Hello,

    after compiling the newer Kernel 4.20.5 and fixing some small bugs on board the DP83TC811 was now identified with correct driver on system. 

    So this issue will be closed. Thank you.

    Have a nice week.

    Regards,

    Andy