POC-RK3568 -PC network bringup

My personal OS boots up the network works fine. If I power cycle OS, then TX stop working.

I did a register dump of CRU, GRF, GMAC and PHY and all the registers are the same when the issue occurs.

So it seems like there is some register state from Linux/u-boot that makes the network work and it gets cleared during hard reset.

Where could I get the Layout of the EVB board, whats CAN I see if the GMAC0 TX CLK is correct.

Hi, thanks for the detailed info. Before diving deeper into register-level debugging, I’d suggest a quick hardware-vs-software isolation step:

Have you tried flashing the official Firefly POC-RK3568-PC firmware (available at Firefly Community) and tested whether the TX issue still occurs after a power cycle?

If the official firmware works fine, then the problem is likely in your custom OS/U-boot initialization sequence (e.g. PHY reset timing, clock setup, or RGMII delay configuration). If the issue persists with the official firmware too, it’s more likely a hardware-level problem (e.g. PHY power rail stability, reference clock, or PCB routing).

Thanks, The official firmware works fine.

The description to questions we have here is:

  1. With the board running Firefly Linux, we flash our OS using the rkdeveloptool
  2. After flashing, the rkdeveloptool issues a soft reset command and our OS boots up
  3. At this point, the network works fine
  4. Perform a hard reset of the board. Our OS boots up and the Ethernet link using gmac0 (0xfe2a0000) is established at 1000M using RGMII
  5. OS is able to receive Ethernet frames from the Linux tester
  6. OS sends out Ethernet frames, but these frames are not received by the Linux tester
  7. The following checks have been verified
    1. All the CRU register settings related to gmac0 match with Firefly Linux
    2. All the GRF register settings related to gmac0 match with Firefly Linux
    3. All the PHY register settings match with Firefly Linux
    4. The TX MMC counters in dwmac increment normally and the TX descriptor operation is also normal (no TX errors)
    5. dwmac was put in loopback mode and the OS is able to receive the transmitted packets
    6. PHY was put in loopback mode and the OS is NOT able to receive the transmitted packets
  8. This narrows down the issue to TX path between MAC and PHY
  9. If we replace the soft reset at the end of flashing to a hard reset, then the issue is seen after hard reset
  10. After bringing up gmac0 in u-boot, the same behavior is observed in u-boot as well

Questions:

  1. What other registers/components should be checked?
  2. Does Firefly Linux perform any additional steps to enable Ethernet?

@neutionwei Could you please help on this?

  1. uboot from Firefly github does not have working Ethernet.
  2. Where can I find the uboot code for the original image shipped with the POC-RK3568-PC, that one worked.

Thanks for the update. To help narrow this down further, could you please share:

  1. U-Boot and kernel boot logs
    Please upload the full serial console log from power-on, including the U-Boot stage and the Linux boot log, both for the working case (after soft reset) and the failing case (after hard reset).
  2. Which SDK your build is based on
    Which Firefly SDK version or release date are you using? For example, is it from the official Firefly Linux SDK rk356x_linux_release / rk356x_linux_bsp_release, or a custom downstream version?
  3. The U-Boot GitHub link you are using
    Could you share the exact U-Boot repository URL and branch/commit you are building from? Firefly’s U-Boot for RK356x is normally managed through the Firefly Linux SDK repo, and the standalone GitHub version may not match the one used in the shipped POC-RK3568-PC image.

With these logs and version details, we can check whether the issue comes from a different U-Boot version, device tree, PHY reset configuration, or loader/rkbin mismatch.