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/AM5728: VSC8572 Ethernet PHY support

Part Number: AM5728

Tool/software: Linux

I have my custom am5728 board and I have a vitesse VSC8572 ethernet phy chip connected that i want to use as eth0. I am trying to modify drivers/net/phy/vitesse.c to add support for VSC8572. However I am not sure how to compile and load this driver onto my board. Following the instructions for the kernel compilation guide I do:

make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- tisdk_am57xx-evm_defconfig -j4

make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- menuconfig -j4

make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- zImage -j4

make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- am57xx-evm-reva3.dtb -j4

make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- modules -j4

sudo cp arch/arm/boot/zImage arch/arm/boot/dts/am57xx-evm-reva3.dtb /media/$USER/$rootfs_dir/boot

sudo make ARCH=arm INSTALL_MOD_PATH=/media/$USER/$rootfs_dir modules_install -j4

However, these steps don't seem to be compiling the vitesse.c file. If you could please let me know how I could go about enabling support for this VSC8572 phy chip that would be great!

Thanks,

Eeshan

  • The software team have been notified. They will respond here.
  • Hi Eeshan,

    I suggest you a patch adding support for the Vitesse VSC8572:
    patchwork.kernel.org/.../

    Then you need to modify your Linux kernel config as follow your steps but with small change in menuconfig as described in 1) or modify .config file as described in 2):

    make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- tisdk_am57xx-evm_defconfig -j4

    1)
    make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- menuconfig -j4

    Device Drivers --->
    Network device support --->
    PHY Device support and infrastructure --->
    Vitesse PHYs -- Change to <M> for module or [*] to built-in

    2)
    Modify .config (which is hidden file)
    search for
    # CONFIG_VITESSE_PHY is not set
    and change to
    CONFIG_VITESSE_PHY=m

    make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- zImage -j4

    make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- am57xx-evm-reva3.dtb -j4

    make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- modules -j4

    sudo cp arch/arm/boot/zImage arch/arm/boot/dts/am57xx-evm-reva3.dtb /media/$USER/$rootfs_dir/boot

    sudo make ARCH=arm INSTALL_MOD_PATH=/media/$USER/$rootfs_dir modules_install -j4

    BR
    Tsvetolin Shulev
  • Part Number: AM5728

    Tool/software: Linux

    Hi,

    I posted a while back to enable the ethernet phy VSC8572 for my custom am5728 board. I followed the instructions I was given.

    However, I am not able to ping my device and I don't get an IP address assigned. Is there any other steps I need to do besides the ones in the link above? Please let me know! Thank you.