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: How t oadd DP83640 Ethernet PHY to Linux Kernel v4.9.28

Other Parts Discussed in Thread: OMAPL138, DP83640

Tool/software: Linux

Hi there,

I am using OMAP L138 LCDK board and managed to install SDK 4.0.0.4 and also managed to rebuild the UBoot and Linux Kernel.

Now, I would like to change the Linux Kernel and/or UBoot to support custom OMAL L138 board.

I would like to add following :

1) RMII PHY support. 

2) Add DP83640 PHY

     I had added this in the tisdk_omapl138-lcdk_defconfig file using the link 

In the previous version of the SDK but not sure how to add it in this version of the SDK 4.0.04 for Linux Kernel v4.9.26.

Could you please help me with this. Thanks

 Regards,

Mitesh

  • Hi Mitesh,

    The DP83640 link shared by you mentions linux kernel supported between 4.0 to 4.12. So, I guess, in 4.9 if you enable, it should work as is.
    Please share your observations.

    Thanks,
    Prabhuraj
    BlackPepper Technologies
  • Hi Prabhuraj,
    I did try to edit the *_defconfig file and added the CONFIG_DP83640_PHY=y and rebuild the make with *-defconfig.
    However, when I opened the menuconfig to check, I can't see under PHY Device Support and infrastructure.
  • Hi Mitesh,

    DP83640 has a dependency which needs to be enable first. Only then you can enable the DP83640 driver.
    Follow the steps below :

    1) Export your arm compiler path to your current environment in the terminal
    2) ARCH=arm CROSS_COMPILE=arm-linux-gnueabi- make tisdk_omapl138-lcdk_defconfig
    3) make menuconfig ARCH=arm
    4) Go to Networking support -> Networking option -> Time stamping in phy devices [Select this option]
    5) Go to Device drivers -> PTP clock support -> Driver for National semiconductor DP83640 PHYTER [select this option]
    6) save and exit
    7) build your code, DP83640 will be part of your kernel image

    Please try these steps and share your observations.

    Thanks,
    Prabhuraj
    BlackPepper Technologies
  • 3808.Linux_4_SDK_4_0_0_4_CustomBoard_Log.txtHi Prabu,

    That's funny, I just did exactly same thing ;) The log attached does shoe that it detected the DP83640 PHY but got stuck after that . I think, its to do with card detect logic for the SD card. I had changed that in the kernel /*/board-support/linux*/arch/arm/mach-davinci/board-omapl138-lcdk.c but can find this file in the new SDK.

  • Hi Mitesh,

    Good to know that you could make progress.

    Thanks,
    Prabhuraj
    BlackPepper Technologies
  • Thanks, could you help me with that, please?
    The custom OMAPL138 board is using different Card Detect GPIO pin than compare to the OMAP L138 LCDK, where should this be changed?
    and any idea why did the booting stopped ? (I have attached the log in my previous reply) Thanks.
  • Hi Mitesh,

    We will close this thread as your problem of enabling DM83640 is resolved. The log that you shared in previous thread is showing junk characters when I opened. Please create another thread stating your issue with details and share the logs. We will look into it.

    Thanks,
    Prabhuraj
    BlackPepper Technologies