Forum Discussion

dbhag2's avatar
dbhag2
Icon for New Contributor rankNew Contributor
6 years ago

No internet access through Ethernet with Linux Kernel 4.14

Hi,

I am upgrading my custom board which is using the Cyclone V socfpga from linux 3.10 to 4.14 and I am having difficulties in getting it connected to the internet.

I our emac setup is as explained in this link https://rocketboards.org/foswiki/Projects/CycloneVRGMIIExampleDesign

Here is the bootup message log: https://0bin.net/paste/GZOOq7cPgc37X9KG#z0XrAOy3Eiia1Kpz6NmD1K920EHnbV3u1KUsVM8WRT-

and our device tree: https://0bin.net/paste/cijoyBcQ0KUfidW8#M9L9pR8MvpyXhqxRuDCqe-QOaQNcHH4kIajcz0v6Gm1

The driver seems to be loaded correctly and the PHY is detected.

I would be really grateful if someone could point me in what could be the issue here. I have been struggling with this for months!

Thank you and Kind Regards,

Deva

3 Replies

  • FawazJ_Altera's avatar
    FawazJ_Altera
    Icon for Frequent Contributor rankFrequent Contributor

    Hello,

    May I know what is the output of ifconfig command from on your board?

    Thank you

  • dbhag2's avatar
    dbhag2
    Icon for New Contributor rankNew Contributor

    Hi FJumaah,

    Thank you for your answer!

    Here is the output of ifconfig

    # ifconfig
    eth0      Link encap:Ethernet  HWaddr 22:66:2F:0B:67:3B
              UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
              RX packets:78 errors:0 dropped:0 overruns:0 frame:0
              TX packets:5 errors:0 dropped:0 overruns:0 carrier:0
              collisions:0 txqueuelen:1000
              RX bytes:11408 (11.1 KiB)  TX bytes:1710 (1.6 KiB)
              Interrupt:29 Base address:0x2000
     
    lo        Link encap:Local Loopback
              inet addr:127.0.0.1  Mask:255.0.0.0
              UP LOOPBACK RUNNING  MTU:65536  Metric:1
              RX packets:0 errors:0 dropped:0 overruns:0 frame:0
              TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
              collisions:0 txqueuelen:1000
              RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

    If I use the command "ifconfig down" my board instantly reboots!

    Best Regards,

  • FawazJ_Altera's avatar
    FawazJ_Altera
    Icon for Frequent Contributor rankFrequent Contributor

    Hello,

    It seems driver issue.

    Can you set an IP to your ethernet port?

    ifconfig up eth0 192.168.XXX.XXX

    Let me know the ifconfig ouput and ping output after you set the IP.

    Thank you