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.
Tool/software: Linux
I have a custom board of dm814x in which i have used KSz9031, I am using latest ezsdk , with u-boot-2010.06-psp04.04.00.01.
Problem is using generic driver , in u-boot i am getting a link up at 1000 mbps , but i am not able to use dhcp or tftp and if i assign static ip , tftp doesnt work.
How can i add KSz9031 Phy , which uses mmd to read/write from registor unlike ksz9021. Can some guide me , if there is some patch for micrel PHy and how to apply it in last uboot version.
Ammar said:Log from new Uboot.
Ammar said:I2C: ready
DRAM: 2 GiB
NAND: HW ECC Hamming Code selected
256 MiB
This is not new u-boot. In new u-boot DRAM size report is 1GiB and data cache is enabled, this is what I have on the EVM:
U-Boot 2010.06 (Jul 19 2017 - 15:53:00)
TI8148-GP rev 2.1
ARM clk: 600MHz
DDR clk: 400MHz
I2C: ready
DRAM: 1 GiB
DCACHE: On
NAND: HW ECC BCH8 Selected
256 MiB
Ammar said:TI8148_EVM#mii info
PHY 0x00: OUI = 0x0885, Model = 0x22, Rev = 0x02, 1000baseT, FDX
How do you enable that command in u-boot? I think it is not enabled by default.
Ammar said:TI8148_EVM#dhcp
failed to read bmcr
BOOTP broadcast 1
Can you try the below sequence:
TI8148_EVM#setenv autoload no
TI8148_EVM#dhcp
link up on port 0, speed 100, full duplex
BOOTP broadcast 1
DHCP client bound to address 172.20.0.166
TI8148_EVM#
I connect DM814x TI EVM to desktop PC through 100Mbps switch, this is why my speed is 100. Do you connect your custom board to host PC directly? Does your host PC network card support 1000Mbps (1Gbps) speed?
Can you also try dhcp command with DM814x EVM connected to your host PC? Thus we can verify that everything from the host PC side is correct.
Regards,
Pavel
Dear Pavel,
1.Yes this mii command is not enabled by default , i added this cmd to enable it in dm814x config.h.
2. Using the old uboot , dhcp was not working i was able to load tftp and got the ping response after setting my ip manually , but only at 100 mbps.
i disable the internal delay by setting GMII_SEL to 0x33a. Before that ping was not working and tftp was only able to get a part of file.
3. Yes my ethernet driver supports 1Gbps .
Now 100 mbps is enough for me in uboot , what should i do to get 1Gbps at kernel level .
Ammar,
Does your ethernet works fine in linux kernel for 100Mbps?
DM814x linux kernel ethernet driver support 1Gbps by default, no need to change the driver, you should look into the porting code:
processors.wiki.ti.com/.../TI81XX_PSP_04.04.00.02_Feature_Performance_Guide
DM814x TI EVM comes with AR8031 PHY and RGMII mode is used. Do you use RGMII mode for your PHY? What are the differences between DM814x TI EVM ethernet and your custom board ethernet?
Do you use KSZ9031Rxx or KSZ9031Mxx PHY? Note that only KSZ9031Rxx support RGMII.
Regards,
Pavel
Thank You Pavel for reply,
Yes it is working fine 100 mbps speed, when i am connecting to 1000mbps switch , it shows link up , but same response as in uboot . I am not able to ping it or use nfs.
Yes i am using RGMII with KSZ9031RNX.
BR
Ammar
Thank you pavel for reply ,
I have tested TI Evm , a Development kit by Z3-Dm814x with the same switch , infact i am using one on same system .
BR
Ammar Zafar
Ammar said:I have tested TI Evm , a Development kit by Z3-Dm814x with the same switch , infact i am using one on same system .
Does this Z3-DM814x board support 1000Mbps speed? Where you able to get this 1000Mbps speed with your switch and host PC?
Ammar said:I have used Ti EVm dm814x by Mistral and this z3 Dm814x board , with this setup in 1000 Mbps mode.
From what I understand you were able to work fine in 1000 Mbps speed in linux kernel with DM814x TI EVM and your swicth/host PC, thus the problem should be in your custom board.
Ammar said:The problem is with 1000 mbps , the link is shown up and if autoneg is on , it keeps it on 1000 mbps , But if i disable auto neg it goes to
100 mbps .
Make sure you have stable 125MHz clock signal on rgmii_rxc and rgmii_txc pins.
See also what values you have in RGMII_CTL and SL1_MACCONTROL registers.
Ammar said:There are Skew delay setting in KSZ 9031 , may be changing that could make some effect , if you have any idea how can i do that or how can i add 9031 in micrel driver support and enable it in kernel it will be great help .
I see that Micrel driver (drivers/net/phy/micrel.c) is updated with KSZ9031 support in kernel 4.x You can check with Micrel if you can use 2.6.37 generic driver or you should port 4.x micrel driver to 2.6.37
Regards,
Pavel